mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-25 19:42:19 +00:00
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 <irogers@google.com> Link: https://lore.kernel.org/r/20250310224925.799005-7-namhyung@kernel.org Signed-off-by: Namhyung Kim <namhyung@kernel.org>
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user