---
name: "function::print_ubacktrace"
section: "3stap"
platform: "linux"
package: "systemtap-doc"
version: "5.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/function::print_ubacktrace"
---

# function::print\_ubacktrace(3stap)

Print stack back trace for current user-space task.

## NAME

function::print\_ubacktrace - Print stack back trace for current user-space task.

## SYNOPSIS

```
1) print_ubacktrace()
```

```
2) print_ubacktrace(pc:long,sp:long,fp:long)
```

## ARGUMENTS

*pc*

override PC

*sp*

override SP

*fp*

override FP

## DESCRIPTION

1\)

2\) Equivalent to print\_ustack(**ubacktrace**), except that deeper stack nesting may be supported. Returns nothing. See **print\_backtrace** for kernel backtrace.

Equivalent to **print\_ubacktrace**, but it performs the backtrace using the pc, sp, and fp provided. Useful

## 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-unwind*(3stap)](/tapset::ucontext-unwind/3stap.md)

## SEE ALSO0

[*tapset::ucontext-unwind*(3stap)](/tapset::ucontext-unwind/3stap.md)
