FUNCTION::TARGET\_SET(3stap) Kernel Process Tapset FUNCTION::TARGET\_SET(3stap)

# [NAME](#NAME)

function::target\_set\_pid - Does pid descend from target process?

# [SYNOPSIS](#SYNOPSIS)

```


    target_set_pid(pid:)
```

# [ARGUMENTS](#ARGUMENTS)

*pid*

The pid of the process to query

# [DESCRIPTION](#DESCRIPTION)

This function returns whether the given process-id is within the “target set”, that is whether it is a descendant of the top-level **target** process.

# [SEE ALSO0](#SEE_ALSO0)

[*tapset::target\_set*(3stap)](/man/enterprise-packages/systemtap/tapset::target_set.3stap)

September 2026 SystemTap Tapset Reference Ver

---

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