diff options
author | Namhyung Kim <namhyung.kim@lge.com> | 2013-10-14 10:24:23 +0200 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2013-10-19 04:15:25 +0200 |
commit | 9aa72b4bf823b7b439fbba95fa84abee3b9d6d79 (patch) | |
tree | 848399ae19cbfe4927fd60179c3c2f8f2d02e73a /kernel/trace/trace.h | |
parent | tracing: Fix potential out-of-bounds in trace_get_user() (diff) | |
download | linux-9aa72b4bf823b7b439fbba95fa84abee3b9d6d79.tar.xz linux-9aa72b4bf823b7b439fbba95fa84abee3b9d6d79.zip |
ftrace: Get rid of ftrace_graph_filter_enabled
The ftrace_graph_filter_enabled means that user sets function filter
and it always has same meaning of ftrace_graph_count > 0.
Link: http://lkml.kernel.org/r/1381739066-7531-2-git-send-email-namhyung@kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r-- | kernel/trace/trace.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index 10c86fb7a2b4..40211cef2796 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h @@ -730,7 +730,6 @@ extern void __trace_graph_return(struct trace_array *tr, #ifdef CONFIG_DYNAMIC_FTRACE /* TODO: make this variable */ #define FTRACE_GRAPH_MAX_FUNCS 32 -extern int ftrace_graph_filter_enabled; extern int ftrace_graph_count; extern unsigned long ftrace_graph_funcs[FTRACE_GRAPH_MAX_FUNCS]; @@ -738,7 +737,7 @@ static inline int ftrace_graph_addr(unsigned long addr) { int i; - if (!ftrace_graph_filter_enabled) + if (!ftrace_graph_count) return 1; for (i = 0; i < ftrace_graph_count; i++) { |