diff options
| author | Aaron Tomlin <atomlin@atomlin.com> | 2026-07-19 15:10:00 -0400 |
|---|---|---|
| committer | Namhyung Kim <namhyung@kernel.org> | 2026-07-23 22:59:42 -0700 |
| commit | da85966dfd23a3b03e00ee3bce6ad301f0a2b229 (patch) | |
| tree | 2207088d579c46654e3476633c5fbb15090d9d25 /tools/perf/util/session.h | |
| parent | ab74d1fbe0618940f0d8100e36f7383d903afe5f (diff) | |
| download | linux-next-da85966dfd23a3b03e00ee3bce6ad301f0a2b229.tar.gz linux-next-da85966dfd23a3b03e00ee3bce6ad301f0a2b229.zip | |
perf trace: Format instruction pointer fields as hexadecimal
Provide a helper function trace__field_is_ip() in
trace__fprintf_tp_fields() to ensure that tracepoint fields representing
instruction pointers such as "__probe_ip", "caller_ip", and
"call_site" are always formatted as hexadecimal memory addresses rather
than signed integers.
For example, when running a kmem:kfree tracepoint:
# perf trace --show-cpu --event kmem:kfree --max-event 1
Before this change, "call_site" was represented as a signed integer:
0.000 [003] xfce4-terminal/2201 kmem:kfree(call_site: -1714572588, ptr: 0xffff8afee0303000)
After this change, "call_site" is correctly represented in hexadecimal:
0.000 [003] xfce4-terminal/2201 kmem:kfree(call_site: 0xffffffff99cf1194, ptr: 0xffff8afee0303000)
This improves the readability of perf trace output by making code
addresses straightforward to parse and map to kernel symbols.
Signed-off-by: Aaron Tomlin <atomlin@atomlin.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/util/session.h')
0 files changed, 0 insertions, 0 deletions
