diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2009-08-06 22:33:02 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2009-08-26 00:32:06 -0400 |
commit | aa38e9fc3ea804290efd3a39316d7f7e6c945800 (patch) | |
tree | 8f9766b20c9006c1373f11c927fb46441e01df0f /kernel/trace/trace.h | |
parent | 6591b493871cf9b17de2ba272edb8ab529a8058b (diff) |
tracing/filters: Add filter_type to struct ftrace_event_field
The type of a field is stored as a string in @type, and here
we add @filter_type which is an enum value.
This prepares for later patches, so we can specifically assign
different @filter_type for the same @type.
For example normally a "char *" field is treated as a ptr,
but we may want it to be treated as a string when doing filting.
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
LKML-Reference: <4A7B925E.9030605@cn.fujitsu.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r-- | kernel/trace/trace.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index 300ef788c976..64dda5709cb9 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h | |||
@@ -755,6 +755,7 @@ struct ftrace_event_field { | |||
755 | struct list_head link; | 755 | struct list_head link; |
756 | char *name; | 756 | char *name; |
757 | char *type; | 757 | char *type; |
758 | int filter_type; | ||
758 | int offset; | 759 | int offset; |
759 | int size; | 760 | int size; |
760 | int is_signed; | 761 | int is_signed; |
@@ -800,6 +801,7 @@ extern int apply_subsystem_event_filter(struct event_subsystem *system, | |||
800 | char *filter_string); | 801 | char *filter_string); |
801 | extern void print_subsystem_event_filter(struct event_subsystem *system, | 802 | extern void print_subsystem_event_filter(struct event_subsystem *system, |
802 | struct trace_seq *s); | 803 | struct trace_seq *s); |
804 | extern int filter_assign_type(const char *type); | ||
803 | 805 | ||
804 | static inline int | 806 | static inline int |
805 | filter_check_discard(struct ftrace_event_call *call, void *rec, | 807 | filter_check_discard(struct ftrace_event_call *call, void *rec, |