2 .\" This file and its contents are supplied under the terms of the
3 .\" Common Development and Distribution License ("CDDL"), version 1.0.
4 .\" You may only use this file in accordance with the terms of version
7 .\" A full copy of the text of the CDDL should have accompanied this
8 .\" source. A copy of the CDDL is also available via the Internet at
9 .\" http://www.illumos.org/license/CDDL.
12 .\" Copyright 2015 Joyent, Inc.
15 .Dt PLWP_GETSPYMASTER 3PROC
19 .Nd get agent LWP spy master information
25 .Fa "struct ps_prochandle *P"
32 function returns information about the spy master that corresponds to
33 the agent LWP for the thread
38 The agent LWP allows another process to inject actions into the target process.
39 When an agent LWP is created, it leverages an existing thread in the process and
40 it also creates a record of whom created the agent, which is called the spy
42 For more information on the agent LWP and the spy master, see
45 If the thread identified
47 has an agent LWP, the corresponding ps information (see
49 for the definition of the
54 Note, process handles that correspond to a file, created by
55 .Xr Pgrab_file 3PROC ,
56 cannot have an agent LWP created for them and thus cannot have any spy
58 In addition, core files from older releases may not have any data on the spy
61 Upon successful completion, the
75 For a full list of possible errors also see the
82 function will fail if:
86 refers to a file handle obtained through
90 does not have any information about the spy master.
94 refers to a core file and the specified thread does not exist.
98 does not have an active agent,
102 member of the thread's status information.
106 refers to an active process and the specified thread does not exist.
108 .Sh INTERFACE STABILITY