aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/annotate.h
diff options
context:
space:
mode:
authorNamhyung Kim <[email protected]>2025-03-05 23:28:38 +0000
committerNamhyung Kim <[email protected]>2025-03-07 00:00:25 +0000
commitb0920abe0d529101bcf2eb1cd309032d2a42b4db (patch)
tree0cd60cfc895ebf2820acdbe1918a381fe97ad1e6 /tools/perf/util/annotate.h
parentperf test: Fix leak in "Synthesize attr update" test (diff)
downloadkernel-b0920abe0d529101bcf2eb1cd309032d2a42b4db.tar.gz
kernel-b0920abe0d529101bcf2eb1cd309032d2a42b4db.zip
perf report: Do not process non-JIT BPF ksymbol events
The length of PERF_RECORD_KSYMBOL for BPF is a size of JITed code so it'd be 0 when it's not JITed. The ksymbol is needed to symbolize the code when it gets samples in the region but non-JITed code cannot get samples. Thus it'd be ok to ignore them. Actually it caused a performance issue in the perf tools on old ARM kernels where it can refuse to JIT some BPF codes. It ended up splitting the existing kernel map (kallsyms). And later lookup for a kernel symbol would create a new kernel map from kallsyms and then split it again and again. :( Probably there's a bug in the kernel map/symbol handling in perf tools. But I think we need to fix this anyway. Reported-by: Kevin Nomura <[email protected]> Acked-by: Song Liu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Namhyung Kim <[email protected]>
Diffstat (limited to 'tools/perf/util/annotate.h')
0 files changed, 0 insertions, 0 deletions