diff options
author | Dmitry Safonov <0x7f454c46@gmail.com> | 2015-09-29 12:46:16 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2015-10-20 20:04:14 -0400 |
commit | b86d9371be2fcb6ebf47e6c15d23d0ec1586664a (patch) | |
tree | b1f22fffd406652f8e967c6d74f31036329a3b9f /Documentation/trace/ftrace.txt | |
parent | 0b507e1ed1b7364def464cfb348ea7c9e87e6e18 (diff) |
Documentation: ftrace: Module globbing usage
Link: http://lkml.kernel.org/r/1443545176-3215-5-git-send-email-0x7f454c46@gmail.com
Signed-off-by: Dmitry Safonov <0x7f454c46@gmail.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'Documentation/trace/ftrace.txt')
-rw-r--r-- | Documentation/trace/ftrace.txt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Documentation/trace/ftrace.txt b/Documentation/trace/ftrace.txt index ef621d34ba5b..db18362c14f3 100644 --- a/Documentation/trace/ftrace.txt +++ b/Documentation/trace/ftrace.txt | |||
@@ -2437,6 +2437,23 @@ The following commands are supported: | |||
2437 | 2437 | ||
2438 | echo '!writeback*:mod:ext3' >> set_ftrace_filter | 2438 | echo '!writeback*:mod:ext3' >> set_ftrace_filter |
2439 | 2439 | ||
2440 | Mod command supports module globbing. Disable tracing for all | ||
2441 | functions except a specific module: | ||
2442 | |||
2443 | echo '!*:mod:!ext3' >> set_ftrace_filter | ||
2444 | |||
2445 | Disable tracing for all modules, but still trace kernel: | ||
2446 | |||
2447 | echo '!*:mod:*' >> set_ftrace_filter | ||
2448 | |||
2449 | Enable filter only for kernel: | ||
2450 | |||
2451 | echo '*write*:mod:!*' >> set_ftrace_filter | ||
2452 | |||
2453 | Enable filter for module globbing: | ||
2454 | |||
2455 | echo '*write*:mod:*snd*' >> set_ftrace_filter | ||
2456 | |||
2440 | - traceon/traceoff | 2457 | - traceon/traceoff |
2441 | These commands turn tracing on and off when the specified | 2458 | These commands turn tracing on and off when the specified |
2442 | functions are hit. The parameter determines how many times the | 2459 | functions are hit. The parameter determines how many times the |