diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2009-08-06 22:33:22 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2009-08-26 00:32:06 -0400 |
commit | 43b51ead3f752a3935116e5b1a94254b8573734f (patch) | |
tree | 5d9e88635c85ba7b1d273dea3c4d8d96e5000154 /kernel/trace/trace_syscalls.c | |
parent | aa38e9fc3ea804290efd3a39316d7f7e6c945800 (diff) |
tracing/filters: Add __field_ext() to TRACE_EVENT
Add __field_ext(), so a field can be assigned to a specific
filter_type, which matches a corresponding filter function.
For example, a later patch will allow this:
__field_ext(const char *, str, FILTER_PTR_STR);
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
LKML-Reference: <4A7B9272.6050709@cn.fujitsu.com>
[
Fixed a -1 to FILTER_OTHER
Forward ported to latest kernel.
]
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_syscalls.c')
-rw-r--r-- | kernel/trace/trace_syscalls.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/kernel/trace/trace_syscalls.c b/kernel/trace/trace_syscalls.c index 46c1b977a2cb..97a2454760b0 100644 --- a/kernel/trace/trace_syscalls.c +++ b/kernel/trace/trace_syscalls.c | |||
@@ -194,7 +194,8 @@ int syscall_enter_define_fields(struct ftrace_event_call *call) | |||
194 | for (i = 0; i < meta->nb_args; i++) { | 194 | for (i = 0; i < meta->nb_args; i++) { |
195 | ret = trace_define_field(call, meta->types[i], | 195 | ret = trace_define_field(call, meta->types[i], |
196 | meta->args[i], offset, | 196 | meta->args[i], offset, |
197 | sizeof(unsigned long), 0); | 197 | sizeof(unsigned long), 0, |
198 | FILTER_OTHER); | ||
198 | offset += sizeof(unsigned long); | 199 | offset += sizeof(unsigned long); |
199 | } | 200 | } |
200 | 201 | ||
@@ -210,7 +211,8 @@ int syscall_exit_define_fields(struct ftrace_event_call *call) | |||
210 | if (ret) | 211 | if (ret) |
211 | return ret; | 212 | return ret; |
212 | 213 | ||
213 | ret = trace_define_field(call, SYSCALL_FIELD(unsigned long, ret), 0); | 214 | ret = trace_define_field(call, SYSCALL_FIELD(unsigned long, ret), 0, |
215 | FILTER_OTHER); | ||
214 | 216 | ||
215 | return ret; | 217 | return ret; |
216 | } | 218 | } |