]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dtrace: ensure signal-handled is fired with correct signal
authorKris Van Hees <kris.van.hees@oracle.com>
Wed, 20 Jan 2016 07:48:08 +0000 (02:48 -0500)
committerKris Van Hees <kris.van.hees@oracle.com>
Sat, 30 Jan 2016 09:55:05 +0000 (04:55 -0500)
commit6eb5d1664232ea38f51d8ae706b784876b0a7089
treeddb5778ae184e69e32a2fddd43944029fbaeec22
parentf6c672dade320d03c23756927cd4239f9bb08f59
dtrace: ensure signal-handled is fired with correct signal

When sending a signal to a process that neither ignores nor handles
that signal, it is translated into a SIGKILL because the signal will
effectively cause the process to be terminated.  As a result, one
would see a signal-send probe for the original signal, and a
signal-handled probe for SIGKILL.

Since in these cases the original signal is retained within the
target task for exit reporting, it is possible to report the original
signal number in the signal-handled probe.  This commit accomplishes
that to ensure that accurate pairing for signal probes is possible.

Orabug: 22573604
Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
Acked-by: Nick Alcock <nick.alcock@oracle.com>
kernel/signal.c