function::ucallers(3stap)

function::ucallers3stap

Return first n elements of user stack backtrace

Usage

    ucallers:string(n:long)

Arguments

n

number of levels to descend in the stack (not counting the top level). If n is -1, print the entire stack.

Overview

This function returns a string of the first n hex addresses from the backtrace of the user stack. Output may be truncated as per maximum string length (MAXSTRINGLEN).

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 ALSO0

tapset::ucontext(3stap)

Releases

6 releases since Debian 8 (Jessie); the text changed 5 times.

  1. 8
  2. 9
  3. 10
  4. 11
  5. 12
  6. 13

From systemtap-doc 5.1-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.