Skip to content

Commit

Permalink
tracing: Reset ftrace_graph_filter_enabled if count is zero
Browse files Browse the repository at this point in the history
The ftrace_graph_count can be decreased with a "!" pattern, so that
the enabled flag should be updated too.

Link: http://lkml.kernel.org/r/1365663698-2413-1-git-send-email-namhyung@kernel.org

Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Namhyung Kim <namhyung.kim@lge.com>
Cc: stable@vger.kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
  • Loading branch information
Namhyung Kim authored and Steven Rostedt committed Apr 13, 2013
1 parent 39e30cd commit 9f50afc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kernel/trace/ftrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -3792,7 +3792,8 @@ ftrace_set_func(unsigned long *array, int *idx, char *buffer)
if (fail)
return -EINVAL;

ftrace_graph_filter_enabled = 1;
ftrace_graph_filter_enabled = !!(*idx);

return 0;
}

Expand Down

0 comments on commit 9f50afc

Please sign in to comment.