diff options
author | Xu Yang <xu.yang_2@nxp.com> | 2024-08-19 05:34:03 +0300 |
---|---|---|
committer | Namhyung Kim <namhyung@kernel.org> | 2024-09-02 21:59:24 +0300 |
commit | aee1d55922977bf9282398283a72d38fc5514540 (patch) | |
tree | d43ab405509382377958378520f35cdbd20c9e4a /tools/include/trace | |
parent | 287bd5cf06e0f2c02293ce942777ad1f18059ed3 (diff) | |
download | linux-aee1d55922977bf9282398283a72d38fc5514540.tar.xz |
perf python: include "util/sample.h"
The 32-bit arm build system will complain:
tools/perf/util/python.c:75:28: error: field ‘sample’ has incomplete type
75 | struct perf_sample sample;
However, arm64 build system doesn't complain this.
The root cause is arm64 define "HAVE_KVM_STAT_SUPPORT := 1" in
tools/perf/arch/arm64/Makefile, but arm arch doesn't define this.
This will lead to kvm-stat.h include other header files on arm64 build
system, especially "util/sample.h" for util/python.c.
This will try to directly include "util/sample.h" for "util/python.c" to
avoid such build issue on arm platform.
Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
Cc: imx@lists.linux.dev
Link: https://lore.kernel.org/r/20240819023403.201324-1-xu.yang_2@nxp.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/include/trace')
0 files changed, 0 insertions, 0 deletions