diff options
author | Tom Zanussi <tzanussi@gmail.com> | 2009-03-31 01:49:16 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-04-13 18:00:51 -0400 |
commit | e45f2e2bd298e1ff687448e5fd15a3588b5807ec (patch) | |
tree | 353f132d53ecb3e991cf59c3d43a7664cb87b743 /kernel/trace/trace.c | |
parent | e1112b4d96859367a93468027c9635e2ac04eb3f (diff) |
tracing/filters: add TRACE_EVENT_FORMAT_NOFILTER event macro
Frederic Weisbecker suggested that the trace_special event shouldn't be
filterable; this patch adds a TRACE_EVENT_FORMAT_NOFILTER event macro
that allows an event format to be exported without having a filter
attached, and removes filtering from the trace_special event.
Signed-off-by: Tom Zanussi <tzanussi@gmail.com>
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/trace.c')
-rw-r--r-- | kernel/trace/trace.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 962e6179994a..c209d214169c 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c | |||
@@ -1064,7 +1064,6 @@ ftrace_trace_special(void *__tr, | |||
1064 | unsigned long arg1, unsigned long arg2, unsigned long arg3, | 1064 | unsigned long arg1, unsigned long arg2, unsigned long arg3, |
1065 | int pc) | 1065 | int pc) |
1066 | { | 1066 | { |
1067 | struct ftrace_event_call *call = &event_special; | ||
1068 | struct ring_buffer_event *event; | 1067 | struct ring_buffer_event *event; |
1069 | struct trace_array *tr = __tr; | 1068 | struct trace_array *tr = __tr; |
1070 | struct special_entry *entry; | 1069 | struct special_entry *entry; |
@@ -1077,7 +1076,6 @@ ftrace_trace_special(void *__tr, | |||
1077 | entry->arg1 = arg1; | 1076 | entry->arg1 = arg1; |
1078 | entry->arg2 = arg2; | 1077 | entry->arg2 = arg2; |
1079 | entry->arg3 = arg3; | 1078 | entry->arg3 = arg3; |
1080 | filter_check_discard(call, entry, event); | ||
1081 | trace_buffer_unlock_commit(tr, event, 0, pc); | 1079 | trace_buffer_unlock_commit(tr, event, 0, pc); |
1082 | } | 1080 | } |
1083 | 1081 | ||