diff options
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r-- | kernel/trace/trace.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index d9eb39e4bb38..f267723c3c52 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h | |||
@@ -804,6 +804,18 @@ struct ftrace_event_call { | |||
804 | #endif | 804 | #endif |
805 | }; | 805 | }; |
806 | 806 | ||
807 | struct event_subsystem { | ||
808 | struct list_head list; | ||
809 | const char *name; | ||
810 | struct dentry *entry; | ||
811 | struct filter_pred **preds; | ||
812 | }; | ||
813 | |||
814 | #define events_for_each(event) \ | ||
815 | for (event = __start_ftrace_events; \ | ||
816 | (unsigned long)event < (unsigned long)__stop_ftrace_events; \ | ||
817 | event++) | ||
818 | |||
807 | #define MAX_FILTER_PRED 8 | 819 | #define MAX_FILTER_PRED 8 |
808 | 820 | ||
809 | struct filter_pred; | 821 | struct filter_pred; |
@@ -832,6 +844,9 @@ extern int filter_add_pred(struct ftrace_event_call *call, | |||
832 | struct filter_pred *pred); | 844 | struct filter_pred *pred); |
833 | extern void filter_free_preds(struct ftrace_event_call *call); | 845 | extern void filter_free_preds(struct ftrace_event_call *call); |
834 | extern int filter_match_preds(struct ftrace_event_call *call, void *rec); | 846 | extern int filter_match_preds(struct ftrace_event_call *call, void *rec); |
847 | extern void filter_free_subsystem_preds(struct event_subsystem *system); | ||
848 | extern int filter_add_subsystem_pred(struct event_subsystem *system, | ||
849 | struct filter_pred *pred); | ||
835 | 850 | ||
836 | void event_trace_printk(unsigned long ip, const char *fmt, ...); | 851 | void event_trace_printk(unsigned long ip, const char *fmt, ...); |
837 | extern struct ftrace_event_call __start_ftrace_events[]; | 852 | extern struct ftrace_event_call __start_ftrace_events[]; |