diff options
author | Namhyung Kim <namhyung@kernel.org> | 2025-03-11 01:49:19 +0300 |
---|---|---|
committer | Namhyung Kim <namhyung@kernel.org> | 2025-03-13 10:19:51 +0300 |
commit | ce2289ad0a2102f73d2b2b100f4dcf13021cf05b (patch) | |
tree | 1e2b2520d6ab7416be8497b24a54ff6f6c0e911c /tools/perf/util/trace-event-scripting.c | |
parent | e1cde2d5e92f6728a022754650b9cb1e38358d50 (diff) | |
download | linux-ce2289ad0a2102f73d2b2b100f4dcf13021cf05b.tar.xz |
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 <irogers@google.com>
Link: https://lore.kernel.org/r/20250310224925.799005-2-namhyung@kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions