1FUNCTION::SPRINT_BAC(3stap)    Context Functions   FUNCTION::SPRINT_BAC(3stap)
2
3
4

NAME

6       function::sprint_backtrace - Return stack back trace as string
7

SYNOPSIS

9           sprint_backtrace:string()
10

ARGUMENTS

12       None
13

DESCRIPTION

15       Returns a simple (kernel) backtrace. One line per address. Includes the
16       symbol name (or hex address if symbol couldn't be resolved) and module
17       name (if found). Includes the offset from the start of the function if
18       found, otherwise the offset will be added to the module (if found,
19       between brackets). Returns the backtrace as string (each line
20       terminated by a newline character). Note that the returned stack will
21       be truncated to MAXSTRINGLEN, to print fuller and richer stacks use
22       print_backtrace. Equivalent to sprint_stack(backtrace), but more
23       efficient (no need to translate between hex strings and final backtrace
24       string).
25

SEE ALSO

27       tapset::context-unwind(3stap)
28
29
30
31SystemTap Tapset Reference         May 2022        FUNCTION::SPRINT_BAC(3stap)
Impressum