logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

function::sprint_ubacktrace - Return stack back trace for current user-space task as string.

Arguments

       None

Description

       Returns a simple backtrace for the current task. One line per address. Includes the symbol name (or hex
       address if symbol couldn't be resolved) and module name (if found). Includes the offset from the start of
       the function if found, otherwise the offset will be added to the module (if found, between brackets).
       Returns the backtrace as string (each line terminated by a newline character). Note that the returned
       stack will be truncated to MAXSTRINGLEN, to print fuller and richer stacks use print_ubacktrace.
       Equivalent to sprint_ustack(ubacktrace), but more efficient (no need to translate between hex strings and
       final backtrace string).

Name

       function::sprint_ubacktrace - Return stack back trace for current user-space task as string.

Note

       To get (full) backtraces for user space applications and shared shared libraries not mentioned in the
       current script run stap with -d /path/to/exe-or-so and/or add --ldd to load all needed unwind data.

See Also

tapset::ucontext-unwind(3stap)

SystemTap Tapset Reference                         April 2024                        FUNCTION::SPRINT_UBA(3stap)

Synopsis

           sprint_ubacktrace:string()

See Also