FUNCTION::TASK\_ANCES(3stap) Context Functions FUNCTION::TASK\_ANCES(3stap)

# [NAME](#NAME)

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

# [SYNOPSIS](#SYNOPSIS)

```


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

# [ARGUMENTS](#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](#DESCRIPTION)

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

# [SEE ALSO0](#SEE_ALSO0)

[*tapset::task\_ancestry*(3stap)](/man/enterprise-packages/systemtap/tapset::task_ancestry.3stap)

September 2026 SystemTap Tapset Reference Ver

---

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