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

# function::task\_ancestry(3stap)

The ancestry of the given task

## NAME

function::task\_ancestry - The ancestry of the given task

## SYNOPSIS

```
    task_ancestry:string(task:long,with_time:long)
```

## ARGUMENTS

*task*

task\_struct pointer

*with\_time*

set to 1 to also print the start time of processes (given as a delta from boot time)

## DESCRIPTION

Return the ancestry of the given task in the form of “grandparent\_process=\>parent\_process=\>process”.

## SEE ALSO0

[*tapset::task\_ancestry*(3stap)](/tapset::task_ancestry/3stap.md)
