1TAPSET::CONTEXT(3stap)                                  TAPSET::CONTEXT(3stap)
2
3
4

NAME

6       tapset::context - systemtap context tapset
7
8

DESCRIPTION

10        Context  functions provide additional information about where an event
11       occurred. These functions can provide information such as  a  backtrace
12       to  where  the  event  occurred and the current register values for the
13       processor.
14
15
16
17       print_regs
18              Print a register dump
19
20              See function::print_regs(3stap)
21               for details.
22
23       pp     Returns the active probe point
24
25              See function::pp(3stap)
26               for details.
27
28       ppfunc Returns the function name parsed from pp()
29
30              See function::ppfunc(3stap)
31               for details.
32
33       probe_type
34              The low level probe handler type of the current probe.
35
36              See function::probe_type(3stap)
37               for details.
38
39       execname
40              Returns the execname of a target  process  (or  group  of
41              processes)
42
43              See function::execname(3stap)
44               for details.
45
46       pid    Returns the ID of a target process
47
48              See function::pid(3stap)
49               for details.
50
51       ns_pid Returns  the  ID  of  a  target  process as seen in a pid
52              namespace
53
54              See function::ns_pid(3stap)
55               for details.
56
57       tid    Returns the thread ID of a target process
58
59              See function::tid(3stap)
60               for details.
61
62       ns_tid Returns the thread ID of a target process as  seen  in  a
63              pid namespace
64
65              See function::ns_tid(3stap)
66               for details.
67
68       ppid   Returns  the  process  ID  of  a  target process's parent
69              process
70
71              See function::ppid(3stap)
72               for details.
73
74       ns_ppid
75              Returns the process  ID  of  a  target  process's  parent
76              process as seen in a pid namespace
77
78              See function::ns_ppid(3stap)
79               for details.
80
81       pgrp   Returns the process group ID of the current process
82
83              See function::pgrp(3stap)
84               for details.
85
86       ns_pgrp
87              Returns  the  process  group ID of the current process as
88              seen in a pid namespace
89
90              See function::ns_pgrp(3stap)
91               for details.
92
93       sid    Returns the session ID of the current process
94
95              See function::sid(3stap)
96               for details.
97
98       ns_sid Returns the session ID of the current process as seen  in
99              a pid namespace
100
101              See function::ns_sid(3stap)
102               for details.
103
104       pexecname
105              Returns the execname of a target process's parent process
106
107              See function::pexecname(3stap)
108               for details.
109
110       gid    Returns the group ID of a target process
111
112              See function::gid(3stap)
113               for details.
114
115       ns_gid Returns  the  group  ID  of a target process as seen in a
116              user namespace
117
118              See function::ns_gid(3stap)
119               for details.
120
121       egid   Returns the effective gid of a target process
122
123              See function::egid(3stap)
124               for details.
125
126       ns_egid
127              Returns the effective gid of a target process as seen  in
128              a user namespace
129
130              See function::ns_egid(3stap)
131               for details.
132
133       uid    Returns the user ID of a target process
134
135              See function::uid(3stap)
136               for details.
137
138       ns_uid Returns the user ID of a target process as seen in a user
139              namespace
140
141              See function::ns_uid(3stap)
142               for details.
143
144       euid   Return the effective uid of a target process
145
146              See function::euid(3stap)
147               for details.
148
149       ns_euid
150              Returns the effective user ID of a target process as seen
151              in a user namespace
152
153              See function::ns_euid(3stap)
154               for details.
155
156       is_myproc
157              Determines if the current probe point has occurred in the
158              user's own process
159
160              See function::is_myproc(3stap)
161               for details.
162
163       cpuid  Returns the current cpu number
164
165              See function::cpuid(3stap)
166               for details.
167
168       cpu    Returns the current cpu number
169
170              See function::cpu(3stap)
171               for details.
172
173       registers_valid
174              Determines validity of  register()  and  u_register()  in
175              current context
176
177              See function::registers_valid(3stap)
178               for details.
179
180       user_mode
181              Determines if probe point occurs in user-mode
182
183              See function::user_mode(3stap)
184               for details.
185
186       is_return
187              Whether the current probe context is a return probe
188
189              See function::is_return(3stap)
190               for details.
191
192       target Return the process ID of the target process
193
194              See function::target(3stap)
195               for details.
196
197       module_name
198              The module name of the current script
199
200              See function::module_name(3stap)
201               for details.
202
203       module_size
204              The module size of the current script
205
206              See function::module_size(3stap)
207               for details.
208
209       stp_pid
210              The process id of the stapio process
211
212              See function::stp_pid(3stap)
213               for details.
214
215       remote_id
216              The index of this instance in a remote execution.
217
218              See function::remote_id(3stap)
219               for details.
220
221       remote_uri
222              The name of this instance in a remote execution.
223
224              See function::remote_uri(3stap)
225               for details.
226
227       stack_size
228              Return the size of the kernel stack
229
230              See function::stack_size(3stap)
231               for details.
232
233       stack_used
234              Returns the amount of kernel stack used
235
236              See function::stack_used(3stap)
237               for details.
238
239       stack_unused
240              Returns the amount of kernel stack currently available
241
242              See function::stack_unused(3stap)
243               for details.
244
245       addr   Address of the current probe point.
246
247              See function::addr(3stap)
248               for details.
249
250       uaddr  User space address of current running task
251
252              See function::uaddr(3stap)
253               for details.
254
255       cmdline_args
256              Fetch command line arguments from current process
257
258              See function::cmdline_args(3stap)
259               for details.
260
261       cmdline_arg
262              Fetch a command line argument
263
264              See function::cmdline_arg(3stap)
265               for details.
266
267       cmdline_str
268              Fetch all command line arguments from current process
269
270              See function::cmdline_str(3stap)
271               for details.
272
273

SEE ALSO

275           function::print_regs(3stap),        function::pp(3stap),
276       function::ppfunc(3stap),        function::probe_type(3stap),
277       function::execname(3stap),            function::pid(3stap),
278       function::ns_pid(3stap),            function::tid(3stap),
279       function::ns_tid(3stap),            function::ppid(3stap),
280       function::ns_ppid(3stap),           function::pgrp(3stap),
281       function::ns_pgrp(3stap),            function::sid(3stap),
282       function::ns_sid(3stap),        function::pexecname(3stap),
283       function::gid(3stap),             function::ns_gid(3stap),
284       function::egid(3stap),           function::ns_egid(3stap),
285       function::uid(3stap),             function::ns_uid(3stap),
286       function::euid(3stap),           function::ns_euid(3stap),
287       function::is_myproc(3stap),          function::cpuid(3stap),
288       function::cpu(3stap),      function::registers_valid(3stap),
289       function::user_mode(3stap),       function::is_return(3stap),
290       function::target(3stap),       function::module_name(3stap),
291       function::module_size(3stap),       function::stp_pid(3stap),
292       function::remote_id(3stap),      function::remote_uri(3stap),
293       function::stack_size(3stap),      function::stack_used(3stap),
294       function::stack_unused(3stap),        function::addr(3stap),
295       function::uaddr(3stap),        function::cmdline_args(3stap),
296       function::cmdline_arg(3stap),    function::cmdline_str(3stap),
297       stap(1), stapprobes(3stap)
298
299
300
301SystemTap Tapset Reference       October 2018           TAPSET::CONTEXT(3stap)
Impressum