aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/annotate.c
diff options
context:
space:
mode:
authorNamhyung Kim <[email protected]>2025-03-10 22:49:19 +0000
committerNamhyung Kim <[email protected]>2025-03-13 07:19:51 +0000
commitce2289ad0a2102f73d2b2b100f4dcf13021cf05b (patch)
tree1e2b2520d6ab7416be8497b24a54ff6f6c0e911c /tools/perf/util/annotate.c
parentperf ftrace: Use atomic inc to update histogram in BPF (diff)
downloadkernel-ce2289ad0a2102f73d2b2b100f4dcf13021cf05b.tar.gz
kernel-ce2289ad0a2102f73d2b2b100f4dcf13021cf05b.zip
perf annotate-data: Add annotated_data_type__get_member_name()
Factor out a function to get the name of member field at the given offset. This will be used in other places. Also update the output of typeoff sort key a little bit. As we know that some special types like (stack operation), (stack canary) and (unknown) won't have fields, skip printing the offset and field. For example, the following change is expected. "(stack operation) +0 (no field)" ==> "(stack operation)" 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.c')
0 files changed, 0 insertions, 0 deletions