ftrace, sched: Add TRACE_FLAG_PREEMPT_RESCHED
authorPeter Zijlstra <peterz@infradead.org>
Fri, 4 Oct 2013 15:28:26 +0000 (17:28 +0200)
committerIngo Molnar <mingo@kernel.org>
Mon, 11 Nov 2013 11:43:39 +0000 (12:43 +0100)
commite5137b50a0640009fd63a3e65c14bc6e1be8796a
treeef8475a7281a78d7ad7bd6694b44c8a32c12f970
parent7053ea1a34fa8567cb5e3c39e04ace4c5d0fbeaa
ftrace, sched: Add TRACE_FLAG_PREEMPT_RESCHED

Since the introduction of PREEMPT_NEED_RESCHED in:

  f27dde8deef3 ("sched: Add NEED_RESCHED to the preempt_count")

we need to be able to look at both TIF_NEED_RESCHED and
PREEMPT_NEED_RESCHED to understand the full preemption behaviour.

Add it to the trace output.

Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Cc: Fengguang Wu <fengguang.wu@intel.com>
Cc: Huang Ying <ying.huang@intel.com>
Cc: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Link: http://lkml.kernel.org/r/20131004152826.GP3081@twins.programming.kicks-ass.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Documentation/trace/ftrace.txt
kernel/trace/trace.c
kernel/trace/trace.h
kernel/trace/trace_output.c