aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>2013-03-12 12:38:06 -0400
committerSteven Rostedt <rostedt@goodmis.org>2013-03-15 00:36:02 -0400
commit57d01ad09721fb7719c4c8c72b434398186f35a0 (patch)
tree83285d16cb40c61e4a41f2b3095c925c82ac2b9c
parent77fd5c15e3216b901be69047ca43b05ae9099951 (diff)
tracing: Fix comments for ftrace_event_file/call flags
Most of the flags for the struct ftrace_event_file were moved over to the flags of the struct ftrace_event_call, but the comments were never updated. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r--include/linux/ftrace_event.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/include/linux/ftrace_event.h b/include/linux/ftrace_event.h
index d84c4a575514..4cb6cd8338a4 100644
--- a/include/linux/ftrace_event.h
+++ b/include/linux/ftrace_event.h
@@ -230,6 +230,13 @@ struct ftrace_event_call {
230 struct list_head *files; 230 struct list_head *files;
231 void *mod; 231 void *mod;
232 void *data; 232 void *data;
233 /*
234 * bit 0: filter_active
235 * bit 1: allow trace by non root (cap any)
236 * bit 2: failed to apply filter
237 * bit 3: ftrace internal event (do not enable)
238 * bit 4: Event was enabled by module
239 */
233 int flags; /* static flags of different events */ 240 int flags; /* static flags of different events */
234 241
235#ifdef CONFIG_PERF_EVENTS 242#ifdef CONFIG_PERF_EVENTS
@@ -248,7 +255,7 @@ enum {
248 255
249/* 256/*
250 * Ftrace event file flags: 257 * Ftrace event file flags:
251 * ENABELD - The event is enabled 258 * ENABLED - The event is enabled
252 * RECORDED_CMD - The comms should be recorded at sched_switch 259 * RECORDED_CMD - The comms should be recorded at sched_switch
253 */ 260 */
254enum { 261enum {
@@ -265,12 +272,8 @@ struct ftrace_event_file {
265 272
266 /* 273 /*
267 * 32 bit flags: 274 * 32 bit flags:
268 * bit 1: enabled 275 * bit 0: enabled
269 * bit 2: filter_active 276 * bit 1: enabled cmd record
270 * bit 3: enabled cmd record
271 * bit 4: allow trace by non root (cap any)
272 * bit 5: failed to apply filter
273 * bit 6: ftrace internal event (do not enable)
274 * 277 *
275 * Changes to flags must hold the event_mutex. 278 * Changes to flags must hold the event_mutex.
276 * 279 *