이 콘텐츠는 선택한 언어로 제공되지 않습니다.
function::target
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
target
returns the pid for the executed command specified by -c