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

# function::target\_set\_pid(3stap)

Does pid descend from target process?

## NAME

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

## SYNOPSIS

```
    target_set_pid(pid:)
```

## ARGUMENTS

*pid*

The pid of the process to query

## 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

[*tapset::target\_set*(3stap)](/tapset::target_set/3stap.md)
