[...]
builtin-report.c: In function ‘report__setup_sample_type’:
builtin-report.c:289:6: error: ‘dwarf_callchain_users’ undeclared (first use in this function)
if (dwarf_callchain_users) {
^
[...]
This is caused by the following commit from linux-4.4.y:
commit faece3af80729763bb28449fa803d12c962571bd
Author: Jin Yao <email address hidden>
Date: Fri Oct 11 10:21:22 2019 +0800
perf report: Add warning when libunwind not compiled in
[Fix]
Revert the mentioned commit. The variable 'dwarf_callchain_users' was introduced by eabad8c6856f "perf unwind: Do not look just at the global callchain_param.record_mode" which as of now hasn't been backported to stable linux-4.4.y.
[Test]
Build the kernel on PPA for powerpc, ppc64el and s390x.
[Regression Potential]
Null. This commit is supposed to only add a warning and is breaking the build for some architectures.
[Impact]
xenial/linux after the update to 4.4.208 upstream stable fails to build tools/perf on environments that don't have libunwind installed.
https:/ /launchpad. net/~canonical- kernel- team/+archive/ ubuntu/ ppa/+build/ 18530346/ +files/ buildlog_ ubuntu- xenial- powerpc. linux_4. 4.0-172. 201_BUILDING. txt.gz
[...] _setup_ sample_ type’: report. c:289:6: error: ‘dwarf_ callchain_ users’ undeclared (first use in this function) callchain_ users) {
builtin-report.c: In function ‘report_
builtin-
if (dwarf_
^
[...]
This is caused by the following commit from linux-4.4.y:
commit faece3af8072976 3bb28449fa803d1 2c962571bd
Author: Jin Yao <email address hidden>
Date: Fri Oct 11 10:21:22 2019 +0800
perf report: Add warning when libunwind not compiled in
[ Upstream commit 800d3f561659b54 36f8c57e7c26dd1 f6928b5615 ]
[Fix] callchain_ users' was introduced by eabad8c6856f "perf unwind: Do not look just at the global callchain_ param.record_ mode" which as of now hasn't been backported to stable linux-4.4.y.
Revert the mentioned commit. The variable 'dwarf_
[Test]
Build the kernel on PPA for powerpc, ppc64el and s390x.
[Regression Potential]
Null. This commit is supposed to only add a warning and is breaking the build for some architectures.