aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/annotate.c
diff options
context:
space:
mode:
authorNamhyung Kim <[email protected]>2024-03-29 21:58:11 +0000
committerArnaldo Carvalho de Melo <[email protected]>2024-04-03 14:48:57 +0000
commit6d17edc113de1e21fc66afa76be475a4f7c91826 (patch)
tree2eeb2e8b94fafde549e35c0a13c220292150611d /tools/perf/util/annotate.c
parentperf annotate: Split out util/disasm.c (diff)
downloadkernel-6d17edc113de1e21fc66afa76be475a4f7c91826.tar.gz
kernel-6d17edc113de1e21fc66afa76be475a4f7c91826.zip
perf annotate: Use libcapstone to disassemble
Now it can use the capstone library to disassemble the instructions. Let's use that (if available) for perf annotate to speed up. Currently it only supports x86 architecture. With this change I can see ~3x speed up in data type profiling. But note that capstone cannot give the source file and line number info. For now, users should use the external objdump for that by specifying the --objdump option explicitly. Signed-off-by: Namhyung Kim <[email protected]> Tested-by: Ian Rogers <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Changbin Du <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Kan Liang <[email protected]> Cc: Peter Zijlstra <[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