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

# function::print\_stack(3stap)

Print out kernel stack from string

## NAME

function::print\_stack - Print out kernel stack from string

## SYNOPSIS

```
    print_stack(stk:string)
```

## ARGUMENTS

*stk*

String with list of hexadecimal addresses

## DESCRIPTION

This function performs a symbolic lookup of the addresses in the given string, which is assumed to be the result of a prior call to **backtrace**.

Print one line per address, including the address, the name of the function containing the address, and an estimate of its position within that function. Return nothing.

## NOTE

it is recommended to use **print\_syms** instead of this function.

## SEE ALSO0

[*tapset::context-symbols*(3stap)](/tapset::context-symbols/3stap.md)
