diff options
| author | Tomas Glozar <tglozar@redhat.com> | 2026-01-19 12:52:21 +0100 |
|---|---|---|
| committer | Tomas Glozar <tglozar@redhat.com> | 2026-03-04 15:51:56 +0100 |
| commit | ef59e454156eb068ba3f2d9e14b397fd7953f65a (patch) | |
| tree | 0cc1243c7e7cd7299eece07429ab98be4a91cc58 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 3a4080e5e426352a78f944db0ff29e029d89193b (diff) | |
rtla/timerlat: Add --stack-format option
In the current implementation, the auto-analysis code for printing the
stack captured in the tracefs buffer of the aa instance stops at the
first encountered address that cannot be resolved into a function
symbol.
This is not always the desired behavior on all platforms; sometimes,
there might be resolvable entries after unresolvable ones, and
sometimes, the user might want to inspect the raw pointers for the
unresolvable entries.
Add a new option, --stack-format, with three values:
- truncate: stop at first unresolvable entry. This is the current
behavior, and is kept as the default.
- skip: skip unresolvable entries, but do not stop on them.
- full: print all entries, including unresolvable ones.
To make this work, the "size" field of the stack entry is now also read
and used as the maximum number of entries to print, capped at 64, since
that is the fixed length of the "caller" field.
Link: https://lore.kernel.org/r/20260119115222.744150-1-tglozar@redhat.com
Signed-off-by: Tomas Glozar <tglozar@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
