]> git.baikalelectronics.ru Git - kernel.git/commit
tracehook: get_signal_to_deliver
authorRoland McGrath <roland@redhat.com>
Sat, 26 Jul 2008 02:45:53 +0000 (19:45 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 26 Jul 2008 19:00:09 +0000 (12:00 -0700)
commit41a6e3987ded1b1c612aa5e8b0bbf33d78fc28a3
tree4219a0725d581310f729d4616361febd700f0574
parent45d02db6456bee9ef1a8ebe24c732cd8b366922f
tracehook: get_signal_to_deliver

This defines the tracehook_get_signal() hook to allow tracing code to slip
in before normal signal dequeuing.  This lays the groundwork for new
tracing features that can inject synthetic signals outside the normal
queue or control the disposition of delivered signals.  The calling
convention lets tracehook_get_signal() decide both exactly what will
happen and what signal number to report in the handler/exit.

Signed-off-by: Roland McGrath <roland@redhat.com>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Reviewed-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/tracehook.h
kernel/signal.c