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

# function::pstrace(3stap)

Chain of processes and pids back to init(1)

## NAME

function::pstrace - Chain of processes and pids back to [init(1)](/init/1.md)

## SYNOPSIS

```
    pstrace:string(task:long)
```

## ARGUMENTS

*task*

Pointer to task struct of process

## DESCRIPTION

This function returns a string listing execname and pid for each process starting from *task* back to the process ancestor that [init(1)](/init/1.md) spawned.

## SEE ALSO0

[*tapset::pstrace*(3stap)](/tapset::pstrace/3stap.md)
