1FUNCTION::TARGET(3stap) Context Functions FUNCTION::TARGET(3stap)
2
3
4
6 function::target - Return the process ID of the target process
7
9 target:long()
10
12 None
13
15 This function returns the process ID of the target process. This is
16 useful in conjunction with the -x PID or -c CMD command-line options to
17 stap. An example of its use is to create scripts that filter on a
18 specific process.
19
20 -x <pid> target returns the pid specified by -x
21
22 -c <command> target returns the pid for the executed command specified
23 by -c
24
26 tapset::context(3stap)
27
28
29
30SystemTap Tapset Reference November 2020 FUNCTION::TARGET(3stap)