From: Namhyung Kim Date: Thu, 11 Apr 2013 07:01:38 +0000 (+0900) Subject: tracing: Reset ftrace_graph_filter_enabled if count is zero X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9f50afccfdc15d95d7331acddcb0f7703df089ae;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git tracing: Reset ftrace_graph_filter_enabled if count is zero 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 Cc: Ingo Molnar Cc: Namhyung Kim Cc: stable@vger.kernel.org Signed-off-by: Namhyung Kim Signed-off-by: Steven Rostedt --- diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index c9f31491009f..9e3198782507 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c @@ -3792,7 +3792,8 @@ out: if (fail) return -EINVAL; - ftrace_graph_filter_enabled = 1; + ftrace_graph_filter_enabled = !!(*idx); + return 0; }