summaryrefslogtreecommitdiff
path: root/kernel/ptrace.c
diff options
context:
space:
mode:
authorSteven Rostedt <rostedt@goodmis.org>2011-09-29 17:24:30 (GMT)
committerScott Wood <scottwood@freescale.com>2014-04-10 00:18:36 (GMT)
commite5ce7a77922dff56cbe9d8f6d68eed3bf3958137 (patch)
tree014b6773e226a826fceee056113c8fcf50714dc0 /kernel/ptrace.c
parent5e4496397a80d602544777cc64f0c755b0846e7a (diff)
downloadlinux-fsl-qoriq-e5ce7a77922dff56cbe9d8f6d68eed3bf3958137.tar.xz
tracing: Account for preempt off in preempt_schedule()
The preempt_schedule() uses the preempt_disable_notrace() version because it can cause infinite recursion by the function tracer as the function tracer uses preempt_enable_notrace() which may call back into the preempt_schedule() code as the NEED_RESCHED is still set and the PREEMPT_ACTIVE has not been set yet. See commit: d1f74e20b5b064a130cd0743a256c2d3cfe84010 that made this change. The preemptoff and preemptirqsoff latency tracers require the first and last preempt count modifiers to enable tracing. But this skips the checks. Since we can not convert them back to the non notrace version, we can use the idle() hooks for the latency tracers here. That is, the start/stop_critical_timings() works well to manually start and stop the latency tracer for preempt off timings. Signed-off-by: Steven Rostedt <rostedt@goodmis.org> Signed-off-by: Clark Williams <williams@redhat.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/ptrace.c')
0 files changed, 0 insertions, 0 deletions