]> err.no Git - linux-2.6/commit
ftrace: add trace_function api for other tracers to use
authorSteven Rostedt <srostedt@srostedt@redhat.com>
Mon, 12 May 2008 19:20:49 +0000 (21:20 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 23 May 2008 18:55:55 +0000 (20:55 +0200)
commit6fb44b717c10ecf37beaaebd312f3afa93fed714
treea86ec44e761ac9ea2cae992fb6351cbfbea434ac
parent2a2cc8f7c4d0dfd75720867f7dc58d24f075edfc
ftrace: add trace_function api for other tracers to use

A new check was added in the ftrace function that wont trace if the CPU
trace buffer is disabled.  Unfortunately, other tracers used ftrace() to
write to the buffer after they disabled it. The new disable check makes
these calls into a nop.

This patch changes the __ftrace that is called without the check into a
new api for the other tracers to use, called "trace_function". The other
tracers use this interface instead when the trace CPU buffer is already
disabled.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/trace/trace.c
kernel/trace/trace.h
kernel/trace/trace_irqsoff.c
kernel/trace/trace_sched_wakeup.c