Skip to content

Commit 2a30c11

Browse files
Steven Rostedt (Red Hat)rostedt
authored andcommitted
tracing: Add comment for trace event flag IGNORE_ENABLE
All the trace event flags have comments but the IGNORE_ENABLE flag which is set for ftrace internal events that should not be enabled via the debugfs "enable" file. That is, if the top level enable file is set, it will enable all events. It use to just check the ftrace event call descriptor "reg" field and skip those whithout it, but now some ftrace internal events have a reg field but still need to be skipped. The flag was created to ignore those events. Now document it. Signed-off-by: Steven Rostedt <[email protected]>
1 parent f1dc672 commit 2a30c11

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/linux/ftrace_event.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ enum {
204204
* FILTERED - The event has a filter attached
205205
* CAP_ANY - Any user can enable for perf
206206
* NO_SET_FILTER - Set when filter has error and is to be ignored
207+
* IGNORE_ENABLE - For ftrace internal events, do not enable with debugfs file
207208
*/
208209
enum {
209210
TRACE_EVENT_FL_FILTERED = (1 << TRACE_EVENT_FL_FILTERED_BIT),

0 commit comments

Comments
 (0)