diff options
| author | Namhyung Kim <[email protected]> | 2025-06-25 23:03:39 +0000 |
|---|---|---|
| committer | Namhyung Kim <[email protected]> | 2025-06-26 22:15:48 +0000 |
| commit | e201757f7a0a901e313d638c545ed6cd0dc6870e (patch) | |
| tree | 501454cc707e4cb7e6e1cd8fd5f0e3fb6c3336e6 /tools/perf/util/annotate.h | |
| parent | tools: Remove libcrypto dependency (diff) | |
| download | kernel-e201757f7a0a901e313d638c545ed6cd0dc6870e.tar.gz kernel-e201757f7a0a901e313d638c545ed6cd0dc6870e.zip | |
perf annotate: Fix source code annotate with objdump
Recently it uses llvm and capstone to speed up annotation or disassembly
of instructions. But they don't support source code view yet. Until it
fixed, we can force to use objdump for source code annotation.
To prevent performance loss, it's disabled by default and turned it on
when user requests it in TUI by pressing 's' key.
Acked-by: Ian Rogers <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reported-by: Ingo Molnar <[email protected]>
Signed-off-by: Namhyung Kim <[email protected]>
Diffstat (limited to 'tools/perf/util/annotate.h')
| -rw-r--r-- | tools/perf/util/annotate.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/annotate.h b/tools/perf/util/annotate.h index bbb89b32f398..8b5131d257b0 100644 --- a/tools/perf/util/annotate.h +++ b/tools/perf/util/annotate.h @@ -294,6 +294,7 @@ struct annotated_source { int nr_entries; int nr_asm_entries; int max_jump_sources; + bool tried_source; u64 start; struct { u8 addr; |
