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

# [NAME](#NAME)

function::backtrace - Hex backtrace of current kernel stack

# [SYNOPSIS](#SYNOPSIS)

```


    backtrace:string()
```

# [ARGUMENTS](#ARGUMENTS)

None

# [DESCRIPTION](#DESCRIPTION)

This function returns a string of hex addresses that are a backtrace of the kernel stack. Output may be truncated as per maximum string length (MAXSTRINGLEN). See **ubacktrace** for user-space backtrace.

# [SEE ALSO0](#SEE_ALSO0)

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

September 2026 SystemTap Tapset Reference Ver

---

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