1FUNCTION::TARGET(3stap)        Context Functions       FUNCTION::TARGET(3stap)
2
3
4

NAME

6       function::target - Return the process ID of the target process
7

SYNOPSIS

9           target:long()
10

ARGUMENTS

12       None
13

DESCRIPTION

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

SEE ALSO

26       tapset::context(3stap)
27
28
29
30SystemTap Tapset Reference         May 2019            FUNCTION::TARGET(3stap)
Impressum