|PLWP_GETSPYMASTER(3PROC)||Process Control Library Functions||PLWP_GETSPYMASTER(3PROC)|
get agent LWP spy master information
Process Control Library (libproc, -lproc)
*P, lwpid_t lwpid, psinfo_t
function returns information about the spy master that corresponds to the
agent LWP for the thread lwpid in the process handle
The agent LWP allows another process to inject actions into the target process. When an agent LWP is created, it leverages an existing thread in the process and it also creates a record of whom created the agent, which is called the spy master. For more information on the agent LWP and the spy master, see proc(5).
Note, process handles that correspond to a file, created by Pgrab_file(3PROC), cannot have an agent LWP created for them and thus cannot have any spy master information. In addition, core files from older releases may not have any data on the spy master.
Plwp_getpsinfo() function will fail
The thread, lwpid does not
have an active agent,
PR_AGENT is not set in the
member of the thread's status information.
|May 11, 2016||OmniOS|