Commit 57d01ad0 authored by Steven Rostedt (Red Hat)'s avatar Steven Rostedt (Red Hat) Committed by Steven Rostedt

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: default avatarSteven Rostedt <rostedt@goodmis.org>
parent 77fd5c15
...@@ -230,6 +230,13 @@ struct ftrace_event_call { ...@@ -230,6 +230,13 @@ struct ftrace_event_call {
struct list_head *files; struct list_head *files;
void *mod; void *mod;
void *data; void *data;
/*
* bit 0: filter_active
* bit 1: allow trace by non root (cap any)
* bit 2: failed to apply filter
* bit 3: ftrace internal event (do not enable)
* bit 4: Event was enabled by module
*/
int flags; /* static flags of different events */ int flags; /* static flags of different events */
#ifdef CONFIG_PERF_EVENTS #ifdef CONFIG_PERF_EVENTS
...@@ -248,7 +255,7 @@ enum { ...@@ -248,7 +255,7 @@ enum {
/* /*
* Ftrace event file flags: * Ftrace event file flags:
* ENABELD - The event is enabled * ENABLED - The event is enabled
* RECORDED_CMD - The comms should be recorded at sched_switch * RECORDED_CMD - The comms should be recorded at sched_switch
*/ */
enum { enum {
...@@ -265,12 +272,8 @@ struct ftrace_event_file { ...@@ -265,12 +272,8 @@ struct ftrace_event_file {
/* /*
* 32 bit flags: * 32 bit flags:
* bit 1: enabled * bit 0: enabled
* bit 2: filter_active * bit 1: enabled cmd record
* bit 3: enabled cmd record
* bit 4: allow trace by non root (cap any)
* bit 5: failed to apply filter
* bit 6: ftrace internal event (do not enable)
* *
* Changes to flags must hold the event_mutex. * Changes to flags must hold the event_mutex.
* *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment