diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/ftrace_event.h | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/include/linux/ftrace_event.h b/include/linux/ftrace_event.h index 0be028527633..5ac97a42950d 100644 --- a/include/linux/ftrace_event.h +++ b/include/linux/ftrace_event.h | |||
@@ -143,6 +143,16 @@ struct ftrace_event_class { | |||
143 | int (*raw_init)(struct ftrace_event_call *); | 143 | int (*raw_init)(struct ftrace_event_call *); |
144 | }; | 144 | }; |
145 | 145 | ||
146 | enum { | ||
147 | TRACE_EVENT_FL_ENABLED_BIT, | ||
148 | TRACE_EVENT_FL_FILTERED_BIT, | ||
149 | }; | ||
150 | |||
151 | enum { | ||
152 | TRACE_EVENT_FL_ENABLED = (1 << TRACE_EVENT_FL_ENABLED_BIT), | ||
153 | TRACE_EVENT_FL_FILTERED = (1 << TRACE_EVENT_FL_FILTERED_BIT), | ||
154 | }; | ||
155 | |||
146 | struct ftrace_event_call { | 156 | struct ftrace_event_call { |
147 | struct list_head list; | 157 | struct list_head list; |
148 | struct ftrace_event_class *class; | 158 | struct ftrace_event_class *class; |
@@ -154,8 +164,15 @@ struct ftrace_event_call { | |||
154 | void *mod; | 164 | void *mod; |
155 | void *data; | 165 | void *data; |
156 | 166 | ||
157 | int enabled; | 167 | /* |
158 | int filter_active; | 168 | * 32 bit flags: |
169 | * bit 1: enabled | ||
170 | * bit 2: filter_active | ||
171 | * | ||
172 | * Must hold event_mutex to change. | ||
173 | */ | ||
174 | unsigned int flags; | ||
175 | |||
159 | int perf_refcount; | 176 | int perf_refcount; |
160 | }; | 177 | }; |
161 | 178 | ||