diff options
| author | Namhyung Kim <[email protected]> | 2025-03-10 22:49:24 +0000 |
|---|---|---|
| committer | Namhyung Kim <[email protected]> | 2025-03-13 07:19:51 +0000 |
| commit | 30c5a3941d0f1633a6c4d6529eb3c6ff9b465b4a (patch) | |
| tree | 055da63399e13d98a0e3aeaff9fa52e9dcfc8f77 /tools/perf/util/annotate.h | |
| parent | perf annotate: Factor out __hist_entry__get_data_type() (diff) | |
| download | kernel-30c5a3941d0f1633a6c4d6529eb3c6ff9b465b4a.tar.gz kernel-30c5a3941d0f1633a6c4d6529eb3c6ff9b465b4a.zip | |
perf annotate: Implement code + data type annotation
Sometimes it's useful to see both instructions and their data type
together. Let's extend the annotate code to use data type profiling
functions.
To make it easy to pass more argument, introduce a struct to carry
necessary information together. Also add a new annotation_option called
'code_with_type' to control the behavior. This is not enabled yet but
it'll be set later from the command line.
For simplicity, this is implemented for --stdio only.
Reviewed-by: Ian Rogers <[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')
| -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 4eda409bfe0e..0e6e3f60a897 100644 --- a/tools/perf/util/annotate.h +++ b/tools/perf/util/annotate.h @@ -55,6 +55,7 @@ struct annotation_options { show_asm_raw, show_br_cntr, annotate_src, + code_with_type, full_addr; u8 offset_level; u8 disassemblers[MAX_DISASSEMBLERS]; |
