]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf annotate: Implement code + data type annotation
authorNamhyung Kim <namhyung@kernel.org>
Mon, 10 Mar 2025 22:49:24 +0000 (15:49 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Thu, 13 Mar 2025 07:19:51 +0000 (00:19 -0700)
commit30c5a3941d0f1633a6c4d6529eb3c6ff9b465b4a
tree055da63399e13d98a0e3aeaff9fa52e9dcfc8f77
parent236ee2569a5de7ae3bf2bce94a4101f528ce7de8
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>
tools/perf/util/annotate.c
tools/perf/util/annotate.h