tracing: let trace_signal_generate() report more info, kill overflow_fail/lose_info
authorOleg Nesterov <oleg@redhat.com>
Tue, 22 Nov 2011 20:13:48 +0000 (21:13 +0100)
committerOleg Nesterov <oleg@redhat.com>
Fri, 13 Jan 2012 17:48:50 +0000 (18:48 +0100)
commit6c303d3ab39f0dc69546f179c424ee1124f50906
tree40fd551256229f2ac1f931c3f9e650ba67deefc7
parent099469502f62fbe0d7e4f0b83a2f22538367f734
tracing: let trace_signal_generate() report more info, kill overflow_fail/lose_info

__send_signal()->trace_signal_generate() doesn't report enough info.
The users want to know was the signal actually delivered or not, and
they also need the shared/private info.

The patch moves trace_signal_generate() at the end of __send_signal()
and adds the 2 additional arguments.

This also allows us to kill trace_signal_overflow_fail/lose_info, we
can simply add the appropriate TRACE_SIGNAL_ "result" codes.

Reported-by: Seiji Aguchi <saguchi@redhat.com>
Reviewed-by: Seiji Aguchi <seiji.aguchi@hds.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
include/trace/events/signal.h
kernel/signal.c