diff options
author | zhangwei(Jovi) <jovi.zhangwei@huawei.com> | 2013-03-11 03:13:42 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2013-03-15 13:22:07 -0400 |
commit | b3a8c6fd7bb61c910bd4f80ae1d75056e8f98c19 (patch) | |
tree | 6f99dd222887d6ec1b5ba785863d3ad1cd0156ff /kernel/trace/trace.h | |
parent | bd6df18716fa45bc4aa9587aca033de909e5382b (diff) |
tracing: Move find_event_field() into trace_events.c
By moving find_event_field() and trace_find_field() into trace_events.c,
the ftrace_common_fields list and trace_get_fields() can become local to
the trace_events.c file.
find_event_field() is renamed to trace_find_event_field() to conform to
the tracing global function names.
Link: http://lkml.kernel.org/r/513D8426.9070109@huawei.com
Signed-off-by: zhangwei(Jovi) <jovi.zhangwei@huawei.com>
[ rostedt: Modified trace_find_field() to trace_find_event_field() ]
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r-- | kernel/trace/trace.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index 5cc52361bc9f..9e014582e763 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h | |||
@@ -995,8 +995,6 @@ struct filter_pred { | |||
995 | unsigned short right; | 995 | unsigned short right; |
996 | }; | 996 | }; |
997 | 997 | ||
998 | extern struct list_head ftrace_common_fields; | ||
999 | |||
1000 | extern enum regex_type | 998 | extern enum regex_type |
1001 | filter_parse_regex(char *buff, int len, char **search, int *not); | 999 | filter_parse_regex(char *buff, int len, char **search, int *not); |
1002 | extern void print_event_filter(struct ftrace_event_call *call, | 1000 | extern void print_event_filter(struct ftrace_event_call *call, |
@@ -1009,8 +1007,8 @@ extern void print_subsystem_event_filter(struct event_subsystem *system, | |||
1009 | struct trace_seq *s); | 1007 | struct trace_seq *s); |
1010 | extern int filter_assign_type(const char *type); | 1008 | extern int filter_assign_type(const char *type); |
1011 | 1009 | ||
1012 | struct list_head * | 1010 | struct ftrace_event_field * |
1013 | trace_get_fields(struct ftrace_event_call *event_call); | 1011 | trace_find_event_field(struct ftrace_event_call *call, char *name); |
1014 | 1012 | ||
1015 | static inline int | 1013 | static inline int |
1016 | filter_check_discard(struct ftrace_event_call *call, void *rec, | 1014 | filter_check_discard(struct ftrace_event_call *call, void *rec, |