1STAPPROBES.SIGNAL(5)          File Formats Manual         STAPPROBES.SIGNAL(5)
2
3
4

NAME

6       stapprobes.signal - systemtap signal probe points
7
8
9

DESCRIPTION

11       This  family  of  probe  points is used to probe signal activities.  It
12       contains the following probe points:
13
14
15       signal.send
16
17              Fires when a signal is sent to a process
18
19              Arguments:
20
21              sig
22                signal number
23
24              sig_name
25                a string representation of the signal
26
27              sig_pid
28                pid of the signal recipient process
29
30              pid_name
31                name of the signal recipient process
32
33              si_code
34                indicates the signal type
35
36              task
37                a task handle to the signal recipient
38
39              sinfo
40                the address of siginfo struct
41
42              shared
43                indicates whether this signal is shared by the thread group
44
45              send2queue
46                indicates whether this signal is sent to an existing sigqueue
47
48              name
49                name of the function used to send out this signal
50
51
52       signal.send.return
53
54              Fires when return from sending a signal
55
56              Arguments:
57
58              retstr
59                the return value
60
61                Return   values   for   "__group_send_sig_info"   and    "spe‐
62              cific_send_sig_info"
63
64                     -  return  0  if  the  signal  is  sucessfully  sent to a
65                     process, which means the following:
66
67                     <1> the signal is ignored by receiving process
68
69                     <2> this is a non-RT  signal  and  we  already  have  one
70                     queued
71
72                     <3> the signal is successfully added into the sigqueue of
73                     receiving process
74
75                     - return -EAGAIN if the sigqueue is overflow  the  signal
76                     was RT and sent by user using something other than kill()
77
78                Return values for "send_group_sigqueue"
79
80                     - return 0 if the signal is either sucessfully added into
81                     the sigqueue of receiving process or a SI_TIMER entry  is
82                     already queued so just increment the overrun count
83
84                     - return 1 if this signal is ignored by receiving process
85
86                Return values for "send_sigqueue"
87
88                     - return 0 if the signal is either sucessfully added into
89                     the sigqueue of receiving process or a SI_TIMER entry  is
90                     already queued so just increment the overrun count
91
92                     - return 1 if this signal is ignored by receiving process
93
94                     -   return   -1   if  the  task  is  marked  exiting,  so
95                     posix_timer_event can redirect it to the group leader
96
97              shared
98                indicates whether this signal is shared by the thread group
99
100              send2queue
101                indicates whether this signal is sent to an existing sigqueue
102
103              name
104                name of the function used to send out this signal
105
106
107
108       signal.checkperm
109
110              Fires when check permissions for sending the signal
111
112              Arguments:
113
114              sig
115                the number of the signal
116
117              sig_name
118                a string representation of the signal
119
120              sig_pid
121                pid of the signal recipient process
122
123              pid_name
124                name of the signal recipient process
125
126              si_code
127                indicates the signal type
128
129              task
130                a task handle to the signal recipient
131
132              sinfo
133                the address of siginfo struct
134
135              name
136                name of the probe point, is set to "signal.checkperm"
137
138
139       signal.checkperm.return
140
141              Fires when return from permissions check for sending a signal
142
143              Arguments:
144
145              retstr
146                the return value
147
148              name
149                name of the probe point, is set to "signal.checkperm"
150
151
152       signal.wakeup
153
154              Fires when wake up the process for new active signals
155
156              Arguments:
157
158              sig_pid
159                pid of the process to be woke up
160
161              pid_name
162                name of the process to be woke up
163
164              resume
165                indicate whether to wake up a task in STOPPED or TRACED state
166
167              state_mask
168                a string representation indicate the mask of task states  that
169              can    be    woken.   Possible   values   are   (TASK_INTERRUPT‐
170              IBLE|TASK_STOPPED|TASK_TRACED) and TASK_INTERRUPTIBLE.
171
172
173       signal.check_ignored
174
175              Fires when check whether the signal is ignored or not
176
177              Arguments:
178
179              sig_pid
180                pid of the signal recipient process
181
182              pid_name
183                name of the signal recipient process
184
185              sig
186                the signal to be checked
187
188              sig_name
189                name of the signal
190
191
192       signal.check_ignored.return
193
194              Fires when return from signal.check_ignored
195
196              Arguments:
197
198              retstr
199                return value. 0 indicate the current signal isn't ignored.
200
201
202       signal.force_segv
203
204              Forces SIGSEGV when there are some issues while handling signals
205              for the process
206
207              Arguments:
208
209              sig_pid
210                pid of the signal recipient process
211
212              pid_name
213                name of the signal recipient process
214
215              sig
216                the signal being handled
217
218              sig_name
219                name of this signal
220
221
222       signal.force_segv.return
223
224              Fires when return from signal.force_segv
225
226              Arguments:
227
228              retstr
229                return value. Always return 0
230
231
232       signal.syskill
233
234              Fires when sys_kill is called to send a signal to a process.
235
236              Arguments:
237
238              pid
239                pid of the recipient process
240
241              sig
242                the signal to be sent
243
244
245       signal.syskill.return
246
247              Fires when returning from sys_kill
248
249
250       signal.tgkill
251
252              Fires when sys_tgkill is called to send a signal to one specific
253              thread
254
255              Arguments:
256
257              pid
258                pid of the recipient thread
259
260              tgid
261                thread group id which the target thread should have
262
263              sig
264                the signal to be sent
265
266
267       signal.tgkill.return
268
269              Fires when returning from sys_tgkill
270
271
272       signal.tkill
273
274              Fires when sys_tkill is called to send  a  signal  to  a  single
275              process.
276
277              Arguments:
278
279              pid
280                pid of the recipient process
281
282              sig
283                the signal to be sent
284
285
286       signal.tkill.return
287
288              Fires when returning from sys_tkill
289
290
291       signal.send_sig_queue
292
293              Fires when queue a signal to a process
294
295              Arguments:
296
297              sig
298                the signal to be queued
299
300              sig_name
301                name of this signal
302
303              sig_pid
304                pid of the process to which the signal is queued
305
306              pid_name
307                name of the process  to which the signal is queued
308
309              sigqueue_addr
310                address of the signal queue
311
312
313       signal.send_sig_queue.return
314
315              Fires when return from signal.send_sig_queue
316
317              Arguments:
318
319              retstr
320                return value
321
322
323       signal.pending
324
325              Fires  when  examine  the  set  of  signals that are pending for
326              delivery to the calling thread
327
328              Arguments:
329
330              sigset_add
331                address of user space sigset_t
332
333              sigset_size
334                sigset size
335
336
337       signal.pending.return
338
339              Fires when return from signal.pending
340
341              Arguments:
342
343              retstr
344                return value
345
346
347       signal.handle
348
349              Fires when invoking the signal handler
350
351              Arguments:
352
353              sig
354                signal number
355
356              sig_name
357                signal name
358
359              sinfo
360                address of siginfo struct
361
362              sig_code
363                the si_code of siginfo
364
365              ka_addr
366                Address of the k_sigaction struct associated with the signal
367
368              oldset_addr
369                Address of a bit mask array of blocked signals
370
371              sig_mode
372                indicates whether the signal is a User  Mode  or  Kernel  mode
373              Signal
374
375
376       signal.handle.return
377
378              Fires when return from signal.handle
379
380              Arguments:
381
382              retstr
383                return value of handle_signal()
384
385
386       signal.do_action
387
388              Fires by calling thread to examine and change a signal action
389
390              Arguments:
391
392              sig
393                signal number
394
395              sigact_addr
396                address of the new sigaction struct associated with the signal
397
398              oldsigact_addr
399                address  of  a  previous  sigaction struct associated with the
400              signal
401
402              sa_handler
403                the new handler of the signal
404
405              sa_mask
406                the new mask of the signal
407
408
409       signal.do_action.return
410
411              Fires when return from signal.do_action
412
413              Arguments:
414
415              retstr
416                return value of do_sigaction()
417
418
419       signal.procmask
420
421              Fires by calling thread to examine and change blocked signals
422
423              Arguments:
424
425              how
426                indicates how to change the blocked signals.
427                Possible values are:
428                  SIG_BLOCK=0 for blocking signals
429                  SIG_UNBLOCK=1 for unblocking signals
430                  SIG_SETMASK=2 for setting the signal mask
431
432              sigset_addr
433                address of sigset_t to be set
434
435              oldsigset_addr
436                address of the old sigset_t
437
438              sigset
439                the actual sigset to be set
440
441
442       signal.procmask.return
443
444              Fires when return from signal.procmask
445
446              Arguments:
447
448              retstr
449                return value of sigprocmask()
450
451
452       signal.flush
453
454              Fires when flush all pending signals for a task
455
456              Arguments:
457
458              task
459                the task handler of the process
460
461              sig_pid
462                pid of the task
463
464              pid_name
465                name of the task
466
467

SEE ALSO

469       stap(1), stapprobes(5),
470
471
472
473
474IBM                               2008-03-27              STAPPROBES.SIGNAL(5)
Impressum