aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/kernel-parameters.txt
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-05-28 13:37:24 -0400
committerSteven Rostedt <rostedt@goodmis.org>2009-06-01 23:23:10 -0400
commit2af15d6a44b871ad4c2a651302374cde8f335480 (patch)
tree39f06d511e3e1d1970fe4571128549c1c26230c1 /Documentation/kernel-parameters.txt
parentf2aebaee653a35b01c3665de2cbb1e31456b8ea8 (diff)
ftrace: add kernel command line function filtering
When using ftrace=function on the command line to trace functions on boot up, one can not filter out functions that are commonly called. This patch adds two new ftrace command line commands. ftrace_notrace=function-list ftrace_filter=function-list Where function-list is a comma separated list of functions to filter. The ftrace_notrace will make the functions listed not be included in the function tracing, and ftrace_filter will only trace the functions listed. These two act the same as the debugfs/tracing/set_ftrace_notrace and debugfs/tracing/set_ftrace_filter respectively. The simple glob expressions that are allowed by the filter files can also be used by the command line interface. ftrace_notrace=rcu*,*lock,*spin* Will not trace any function that starts with rcu, ends with lock, or has the word spin in it. Note, if the self tests are enabled, they may interfere with the filtering set by the command lines. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'Documentation/kernel-parameters.txt')
-rw-r--r--Documentation/kernel-parameters.txt17
1 files changed, 15 insertions, 2 deletions
diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt
index 9243dd84f4d6..fcd3bfbe74e8 100644
--- a/Documentation/kernel-parameters.txt
+++ b/Documentation/kernel-parameters.txt
@@ -751,12 +751,25 @@ and is between 256 and 4096 characters. It is defined in the file
751 ia64_pal_cache_flush instead of SAL_CACHE_FLUSH. 751 ia64_pal_cache_flush instead of SAL_CACHE_FLUSH.
752 752
753 ftrace=[tracer] 753 ftrace=[tracer]
754 [ftrace] will set and start the specified tracer 754 [FTRACE] will set and start the specified tracer
755 as early as possible in order to facilitate early 755 as early as possible in order to facilitate early
756 boot debugging. 756 boot debugging.
757 757
758 ftrace_dump_on_oops 758 ftrace_dump_on_oops
759 [ftrace] will dump the trace buffers on oops. 759 [FTRACE] will dump the trace buffers on oops.
760
761 ftrace_filter=[function-list]
762 [FTRACE] Limit the functions traced by the function
763 tracer at boot up. function-list is a comma separated
764 list of functions. This list can be changed at run
765 time by the set_ftrace_filter file in the debugfs
766 tracing directory.
767
768 ftrace_notrace=[function-list]
769 [FTRACE] Do not trace the functions specified in
770 function-list. This list can be changed at run time
771 by the set_ftrace_notrace file in the debugfs
772 tracing directory.
760 773
761 gamecon.map[2|3]= 774 gamecon.map[2|3]=
762 [HW,JOY] Multisystem joystick and NES/SNES/PSX pad 775 [HW,JOY] Multisystem joystick and NES/SNES/PSX pad