FUNCTION::TARGET
Section: Context Functions (3stap)
Updated: November 2022
Index
Return to Main Contents
NAME
function::target - Return the process ID of the target process
SYNOPSIS
target:long()
ARGUMENTS
None
DESCRIPTION
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 ALSO
tapset::context(3stap)
Index
- NAME
-
- SYNOPSIS
-
- ARGUMENTS
-
- DESCRIPTION
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 15:22:17 GMT, November 16, 2022