diff options
| author | Josh Poimboeuf <[email protected]> | 2025-07-29 18:23:05 +0000 |
|---|---|---|
| committer | Steven Rostedt (Google) <[email protected]> | 2025-07-29 18:46:07 +0000 |
| commit | 71753c6ed2bf2aee5be26c1bc06a94c9e3713ade (patch) | |
| tree | a182f9adeb6d0da383c519797de6607c274f58e0 /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | Linux 6.16-rc5 (diff) | |
| download | kernel-71753c6ed2bf2aee5be26c1bc06a94c9e3713ade.tar.gz kernel-71753c6ed2bf2aee5be26c1bc06a94c9e3713ade.zip | |
unwind_user: Add user space unwinding API with frame pointer support
Introduce a generic API for unwinding user stacks.
In order to expand user space unwinding to be able to handle more complex
scenarios, such as deferred unwinding and reading user space information,
create a generic interface that all architectures can use that support the
various unwinding methods.
This is an alternative method for handling user space stack traces from
the simple stack_trace_save_user() API. This does not replace that
interface, but this interface will be used to expand the functionality of
user space stack walking.
None of the structures introduced will be exposed to user space tooling.
Support for frame pointer unwinding is added. For an architecture to
support frame pointer unwinding it needs to enable
CONFIG_HAVE_UNWIND_USER_FP and define ARCH_INIT_USER_FP_FRAME.
By encoding the frame offsets in struct unwind_user_frame, much of this
code can also be reused for future unwinder implementations like sframe.
Cc: Masami Hiramatsu <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Andrii Nakryiko <[email protected]>
Cc: Indu Bhagat <[email protected]>
Cc: "Jose E. Marchesi" <[email protected]>
Cc: Beau Belgrave <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Jens Axboe <[email protected]>
Cc: Florian Weimer <[email protected]>
Cc: Sam James <[email protected]>
Link: https://lore.kernel.org/[email protected]
Reviewed-by: Jens Remus <[email protected]>
Signed-off-by: Josh Poimboeuf <[email protected]>
Co-developed-by: Mathieu Desnoyers <[email protected]>
Link: https://lore.kernel.org/all/[email protected]/
Signed-off-by: Mathieu Desnoyers <[email protected]>
Co-developed-by: Steven Rostedt (Google) <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions
