table of contents
other versions
- buster 4.0-1
- buster-backports 4.4-1~bpo10+1
- testing 4.4-2
- unstable 4.4-2
- experimental 4.5-1
FUNCTION::TARGET(3stap) | Context Functions | FUNCTION::TARGET(3stap) |
NAME¶
function::target - Return the process ID of the target processSYNOPSIS¶
target:long()
ARGUMENTS¶
NoneDESCRIPTION¶
This function returns the process ID of the target process. This is useful in conjunction with the -x PID or -c CMD command-line options to stap. An example of its use is to create scripts that filter on a specific process.-x <pid> target returns the pid specified by -x
-c <command> target returns the pid for the executed command specified by -c
SEE ALSO0¶
tapset::context(3stap)November 2020 | SystemTap Tapset Reference |