kernel_optimize_test/kernel/trace
Steven Rostedt 41c52c0db9 ftrace: set_ftrace_notrace feature
While debugging latencies in the RT kernel, I found that it would be nice
to be able to filter away functions from the trace than just to filter
on functions.

I added a new interface to the debugfs tracing directory called

  set_ftrace_notrace

When dynamic frace is enabled, this lets you filter away functions that will
not be recorded in the trace. It is similar to adding 'notrace' to those
functions but by doing it without recompiling the kernel.

Here's how set_ftrace_filter and set_ftrace_notrace interact. Remember, if
set_ftrace_filter is set, it removes all functions from the trace execpt for
those listed in the set_ftrace_filter. set_ftrace_notrace will prevent those
functions from being traced.

If you were to set one function in both set_ftrace_filter and
set_ftrace_notrace and that function was the same, then you would end up
with an empty trace.

the set of functions to trace is:

  set_ftrace_filter == empty then

     all functions not in set_ftrace_notrace

  else

     set of the set_ftrace_filter and not in set of set_ftrace_notrace.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2008-05-26 22:51:37 +02:00
..
ftrace.c ftrace: set_ftrace_notrace feature 2008-05-26 22:51:37 +02:00
Kconfig ftrace: add have dynamic ftrace config for archs 2008-05-23 22:49:18 +02:00
Makefile ftrace: fix dynamic ftrace selftest 2008-05-23 21:13:23 +02:00
trace_functions.c ftrace: fix comm on function trace output 2008-05-23 21:52:12 +02:00
trace_irqsoff.c ftrace: remove printks from irqsoff trace 2008-05-26 22:51:27 +02:00
trace_sched_switch.c ftrace: move ftrace_special to trace.c 2008-05-26 22:51:09 +02:00
trace_sched_wakeup.c ftrace: add function tracing to wake up tracing 2008-05-26 22:51:22 +02:00
trace_selftest_dynamic.c ftrace: fix dynamic ftrace selftest 2008-05-23 21:13:23 +02:00
trace_selftest.c ftrace: limit use of check pages 2008-05-26 22:39:45 +02:00
trace.c ftrace: move ftrace_special to trace.c 2008-05-26 22:51:09 +02:00
trace.h ftrace: stacktrace fix 2008-05-23 22:34:56 +02:00