OSDN Git Service

tracing: Do note expose stack_trace_filter without DYNAMIC_FTRACE
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 11 Jul 2017 23:21:04 +0000 (19:21 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 11 Jul 2017 23:21:04 +0000 (19:21 -0400)
commitbbd1d27d863d5c0acee65ecd0c2e34035e1df5ea
tree51b0930471b32f25996e5968b4cfc2428d3cd00a
parentdc8d387210e3e2ab294031e8f6542329bc9141c4
tracing: Do note expose stack_trace_filter without DYNAMIC_FTRACE

The "stack_trace_filter" file only makes sense if DYNAMIC_FTRACE is
configured in. If it is not, then the user can not filter any functions.

Not only that, the open function causes warnings when DYNAMIC_FTRACE is not
set.

Link: http://lkml.kernel.org/r/20170710110521.600806-1-arnd@arndb.de
Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_stack.c