FUNCTION::UBACKTRACE(3stap) Context Functions FUNCTION::UBACKTRACE(3stap)

# [NAME](#NAME)

function::ubacktrace - Hex backtrace of current user-space task stack.

# [SYNOPSIS](#SYNOPSIS)

```


    ubacktrace:string()
```

# [ARGUMENTS](#ARGUMENTS)

None

# [DESCRIPTION](#DESCRIPTION)

Return a string of hex addresses that are a backtrace of the stack of the current task. Output may be truncated as per maximum string length. Returns empty string when current probe point cannot determine user backtrace. See **backtrace** for kernel traceback.

# [NOTE](#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](#SEE_ALSO0)

[*tapset::ucontext-unwind*(3stap)](/man/enterprise-packages/systemtap/tapset::ucontext-unwind.3stap)

September 2026 SystemTap Tapset Reference Ver

---

Document: function::ubacktrace(3stap) from systemtap 5.6-r1 (Chainguard OS)
Source: https://sourceware.org/git/systemtap.git
