aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/annotate.c
diff options
context:
space:
mode:
authorChen Pei <[email protected]>2024-04-15 09:55:32 +0000
committerArnaldo Carvalho de Melo <[email protected]>2024-04-19 01:22:51 +0000
commitb828a23a75a012b9242166b78ff1c3ff2189f436 (patch)
treefc039d1bd963138c0dbc89553d413f8a092b24bd /tools/perf/util/annotate.c
parentperf vendor events arm64: AmpereOne/AmpereOneX: Mark L1D_CACHE_INVAL impacted... (diff)
downloadkernel-b828a23a75a012b9242166b78ff1c3ff2189f436.tar.gz
kernel-b828a23a75a012b9242166b78ff1c3ff2189f436.zip
perf genelf: Fix compiling with libelf on rv32
When cross-compiling perf with libelf, the following error occurred: In file included from tests/genelf.c:14: tests/../util/genelf.h:50:2: error: #error "unsupported architecture" 50 | #error "unsupported architecture" | ^~~~~ tests/../util/genelf.h:59:5: warning: "GEN_ELF_CLASS" is not defined, evaluates to 0 [-Wundef] 59 | #if GEN_ELF_CLASS == ELFCLASS64 Fix this by adding GEN-ELF-ARCH and GEN-ELF-CLASS definitions for rv32. Reviewed-by: Ian Rogers <[email protected]> Signed-off-by: Chen Pei <[email protected]> Cc: Albert Ou <[email protected]> Cc: Palmer Dabbelt <[email protected]> Cc: Paul Walmsley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/annotate.c')
0 files changed, 0 insertions, 0 deletions