1FUNCTION::SPRINT_BAC(3stap) Context Functions FUNCTION::SPRINT_BAC(3stap)
2
3
4
6 function::sprint_backtrace - Return stack back trace as string
7 (EXPERIMENTAL)
8
10 sprint_backtrace:string()
11
13 None
14
16 Returns a simple (kernel) backtrace. One line per address. Includes the
17 symbol name (or hex address if symbol couldn't be resolved) and module
18 name (if found). Includes the offset from the start of the function if
19 found, otherwise the offset will be added to the module (if found,
20 between brackets). Returns the backtrace as string (each line
21 terminated by a newline character). Note that the returned stack will
22 be truncated to MAXSTRINGLEN, to print fuller and richer stacks use
23 print_backtrace. Equivalent to sprint_stack(backtrace), but more
24 efficient (no need to translate between hex strings and final backtrace
25 string).
26
27
28
29SystemTap Tapset Reference August 2011 FUNCTION::SPRINT_BAC(3stap)