summaryrefslogtreecommitdiffstats
path: root/man/tapset::signal.3stap
blob: decdded8fcb2f8f715a018a7dad1166cfa4405b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
.\" -*- nroff -*-
.TH TAPSET::SIGNAL 3stap "" "IBM"
.SH NAME
tapset::signal \- systemtap signal probe points

.\" macros
.de SAMPLE
.br
.RS
.nf
.nh
..
.de ESAMPLE
.hy
.fi
.RE
..

.SH DESCRIPTION

This family of probe points is used to probe signal activities.
It contains the following probe points:

.P
.TP
.B signal.send

Fires when a signal is sent to a process

.B Arguments:

.I sig
  signal number

.I sig_name
  a string representation of the signal

.I sig_pid
  pid of the signal recipient process

.I pid_name
  name of the signal recipient process

.I si_code
  indicates the signal type

.I task
  a task handle to the signal recipient

.I sinfo
  the address of siginfo struct

.I shared
  indicates whether this signal is shared by the thread group

.I send2queue
  indicates whether this signal is sent to an existing sigqueue

.I name
  name of the function used to send out this signal

.P
.TP
.B signal.send.return

Fires when return from sending a signal

.B Arguments:

.I retstr
  the return value

  Return values for "__group_send_sig_info" and "specific_send_sig_info"

.RS
.RS
- return 0 if the signal is successfully sent to a process,
which means the following:

<1> the signal is ignored by receiving process

<2> this is a non-RT signal and we already have one queued

<3> the signal is successfully added into the sigqueue of receiving process

- return \-EAGAIN if the sigqueue is overflow the signal was RT and sent 
by user using something other than kill()
.RE

  Return values for "send_group_sigqueue"

.RS
- return 0 if the signal is either successfully added into the
sigqueue of receiving process or a SI_TIMER entry is already
queued so just increment the overrun count

- return 1 if this signal is ignored by receiving process
.RE

  Return values for "send_sigqueue"

.RS
- return 0 if the signal is either successfully added into the
sigqueue of receiving process or a SI_TIMER entry is already
queued so just increment the overrun count

- return 1 if this signal is ignored by receiving process

- return \-1 if the task is marked exiting, so posix_timer_event
can redirect it to the group leader
.RE

.I shared
  indicates whether this signal is shared by the thread group

.I send2queue
  indicates whether this signal is sent to an existing sigqueue

.I name
  name of the function used to send out this signal


.RE
.RE
.P
.TP
.B signal.checkperm

Fires when check permissions for sending the signal

.B Arguments:

.I sig
  the number of the signal

.I sig_name
  a string representation of the signal

.I sig_pid
  pid of the signal recipient process

.I pid_name
  name of the signal recipient process

.I si_code
  indicates the signal type

.I task
  a task handle to the signal recipient

.I sinfo
  the address of siginfo struct

.I name
  name of the probe point, is set to "signal.checkperm"

.P
.TP
.B signal.checkperm.return

Fires when return from permissions check for sending a signal

.B Arguments:

.I retstr
  the return value

.I name
  name of the probe point, is set to "signal.checkperm"

.P
.TP
.B signal.wakeup

Fires when wake up the process for new active signals

.B Arguments:

.I sig_pid
  pid of the process to be woke up

.I pid_name
  name of the process to be woke up

.I resume
  indicate whether to wake up a task in STOPPED or TRACED state

.I state_mask
  a string representation indicate the mask of task states
that can be woken. Possible values are
(TASK_INTERRUPTIBLE|TASK_STOPPED|TASK_TRACED) and
TASK_INTERRUPTIBLE.

.P
.TP
.B signal.check_ignored

Fires when check whether the signal is ignored or not

.B Arguments:

.I sig_pid
  pid of the signal recipient process

.I pid_name
  name of the signal recipient process

.I sig
  the signal to be checked

.I sig_name
  name of the signal

.P
.TP
.B signal.check_ignored.return

Fires when return from signal.check_ignored

.B Arguments:

.I retstr
  return value. 0 indicate the current signal isn't ignored.

.P
.TP
.B signal.force_segv

Forces SIGSEGV when there are some issues while handling 
signals for the process 

.B Arguments:

.I sig_pid
  pid of the signal recipient process

.I pid_name
  name of the signal recipient process

.I sig
  the signal being handled

.I sig_name
  name of this signal

.P
.TP
.B signal.force_segv.return

Fires when return from signal.force_segv

.B Arguments:

.I retstr
  return value. Always return 0

.P
.TP
.B signal.syskill

Fires when sys_kill is called to send a signal to a process.

.B Arguments:

.I pid
  pid of the recipient process

.I sig
  the signal to be sent

.P
.TP
.B signal.syskill.return

Fires when returning from sys_kill

.P
.TP
.B signal.tgkill

Fires when sys_tgkill is called to send a signal to one specific thread

.B Arguments:

.I pid
  pid of the recipient thread

.I tgid
  thread group id which the target thread should have

.I sig
  the signal to be sent

.P
.TP
.B signal.tgkill.return

Fires when returning from sys_tgkill

.P
.TP
.B signal.tkill

Fires when sys_tkill is called to send a signal to a single process.

.B Arguments:

.I pid
  pid of the recipient process

.I sig
  the signal to be sent

.P
.TP
.B signal.tkill.return

Fires when returning from sys_tkill

.P
.TP
.B signal.send_sig_queue

Fires when queue a signal to a process

.B Arguments:

.I sig
  the signal to be queued

.I sig_name
  name of this signal

.I sig_pid
  pid of the process to which the signal is queued

.I pid_name
  name of the process  to which the signal is queued

.I sigqueue_addr
  address of the signal queue

.P
.TP
.B signal.send_sig_queue.return

Fires when return from signal.send_sig_queue

.B Arguments:

.I retstr
  return value

.P
.TP
.B signal.pending

Fires when examine the set of signals that are 
pending for delivery to the calling thread

.B Arguments:

.I sigset_add
  address of user space sigset_t

.I sigset_size
  sigset size

.P
.TP
.B signal.pending.return

Fires when return from signal.pending

.B Arguments:

.I retstr
  return value

.P
.TP
.B signal.handle

Fires when invoking the signal handler

.B Arguments:

.I sig
  signal number

.I sig_name
  signal name

.I sinfo
  address of siginfo struct

.I sig_code
  the si_code of siginfo

.I ka_addr
  Address of the k_sigaction struct associated with the signal

.I oldset_addr
  Address of a bit mask array of blocked signals

.I sig_mode
  indicates whether the signal is a User Mode or Kernel mode Signal

.P
.TP
.B signal.handle.return

Fires when return from signal.handle

.B Arguments:

.I retstr
  return value of handle_signal()

.P
.TP
.B signal.do_action

Fires by calling thread to examine and change a signal action
 
.B Arguments:

.I sig
  signal number

.I sigact_addr
  address of the new sigaction struct associated with the signal

.I oldsigact_addr
  address of a previous sigaction struct associated with the signal

.I sa_handler
  the new handler of the signal

.I sa_mask
  the new mask of the signal

.P
.TP
.B signal.do_action.return

Fires when return from signal.do_action

.B Arguments:

.I retstr
  return value of do_sigaction()

.P
.TP
.B signal.procmask

Fires by calling thread to examine and change blocked signals

.B Arguments:

.I how
  indicates how to change the blocked signals. 
  Possible values are:
    SIG_BLOCK=0 for blocking signals
    SIG_UNBLOCK=1 for unblocking signals
    SIG_SETMASK=2 for setting the signal mask

.I sigset_addr
  address of sigset_t to be set

.I oldsigset_addr
  address of the old sigset_t

.I sigset
  the actual sigset to be set

.P
.TP
.B signal.procmask.return

Fires when return from signal.procmask

.B Arguments:

.I retstr
  return value of sigprocmask()

.P
.TP
.B signal.flush

Fires when flush all pending signals for a task

.B Arguments:

.I task
  the task handler of the process

.I sig_pid
  pid of the task

.I pid_name
  name of the task

.SH SEE ALSO
.IR stap (1),
.IR stapprobes (3stap)