]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Use one prologue for the preempt irqs off tracer function tracers
authorSteven Rostedt <srostedt@redhat.com>
Tue, 5 Oct 2010 23:41:43 +0000 (19:41 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Mon, 18 Oct 2010 14:53:36 +0000 (10:53 -0400)
commit9a0b17adb566d55d0162bcec6fc685df692c67ad
tree5ef2d83c172b0e22dea1532d33e491471a1cc6e7
parent5a7c3b97f815b1ce069eb37524d86500032900a7
tracing: Use one prologue for the preempt irqs off tracer function tracers

The preempt and irqsoff tracers have three types of function tracers.
Normal function tracer, function graph entry, and function graph return.
Each of these use a complex dance to prevent recursion and whether
to trace the data or not (depending if interrupts are enabled or not).

This patch moves the duplicate code into a single routine, to
prevent future mistakes with modifying duplicate complex code.

Cc: Jiri Olsa <jolsa@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_irqsoff.c