]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc47ae9f8f2633f2685f83215ff8ca8a46a6e54c9
tree85e821a30e0f9350a2b67ff94d758632eec92689
parent2cdc097627bccab715976b45249c04fac9ec5511
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