hung_task debugging: Add tracepoint to report the hang
authorOleg Nesterov <oleg@redhat.com>
Sat, 19 Oct 2013 16:18:28 +0000 (18:18 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 31 Oct 2013 10:16:18 +0000 (11:16 +0100)
commit6a716c90a51338009c3bc1f460829afaed8f922d
tree85e821a30e0f9350a2b67ff94d758632eec92689
parent4c4e4f61368164f326fe59e2156c70d7faa72c17
hung_task debugging: Add tracepoint to report the hang

Currently check_hung_task() prints a warning if it detects the
problem, but it is not convenient to watch the system logs if
user-space wants to be notified about the hang.

Add the new trace_sched_process_hang() into check_hung_task(),
this way a user-space monitor can easily wait for the hang and
potentially resolve a problem.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: Dave Sullivan <dsulliva@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/r/20131019161828.GA7439@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/trace/events/sched.h
kernel/hung_task.c