aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_events.c
diff options
context:
space:
mode:
authorLi Zefan <lizf@cn.fujitsu.com>2009-08-19 03:54:51 -0400
committerIngo Molnar <mingo@elte.hu>2009-08-19 09:02:24 -0400
commit540b7b8d65575c80162f2a0f38e1d313c92a6042 (patch)
tree664bdd01ce8fce990e634a304f9b3ab51e50970c /kernel/trace/trace_events.c
parente647d6b314266adb904d4b84973eda0afa856946 (diff)
tracing/syscalls: Add filtering support
Add filtering support for syscall events: # echo 'mode == 0666' > events/syscalls/sys_enter_open # echo 'ret == 0' > events/syscalls/sys_exit_open # echo 1 > events/syscalls/sys_enter_open # echo 1 > events/syscalls/sys_exit_open # cat trace ... modprobe-3084 [001] 117.463140: sys_open(filename: 917d3e8, flags: 0, mode: 1b6) modprobe-3084 [001] 117.463176: sys_open -> 0x0 less-3086 [001] 117.510455: sys_open(filename: 9c6bdb8, flags: 8000, mode: 1b6) sendmail-2574 [001] 122.145840: sys_open(filename: b807a365, flags: 0, mode: 1b6) ... Signed-off-by: Li Zefan <lizf@cn.fujitsu.com> Cc: Jason Baron <jbaron@redhat.com> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Frederic Weisbecker <fweisbec@gmail.com> LKML-Reference: <4A8BAFCB.1040006@cn.fujitsu.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/trace_events.c')
-rw-r--r--kernel/trace/trace_events.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c
index 9c7ecfb3416f..79d352027a61 100644
--- a/kernel/trace/trace_events.c
+++ b/kernel/trace/trace_events.c
@@ -27,8 +27,8 @@ DEFINE_MUTEX(event_mutex);
27 27
28LIST_HEAD(ftrace_events); 28LIST_HEAD(ftrace_events);
29 29
30int trace_define_field(struct ftrace_event_call *call, char *type, 30int trace_define_field(struct ftrace_event_call *call, const char *type,
31 char *name, int offset, int size, int is_signed) 31 const char *name, int offset, int size, int is_signed)
32{ 32{
33 struct ftrace_event_field *field; 33 struct ftrace_event_field *field;
34 34
@@ -83,6 +83,7 @@ int trace_define_common_fields(struct ftrace_event_call *call)
83 83
84 return ret; 84 return ret;
85} 85}
86EXPORT_SYMBOL_GPL(trace_define_common_fields);
86 87
87#ifdef CONFIG_MODULES 88#ifdef CONFIG_MODULES
88 89