]> Git Repo - linux.git/commitdiff
tracing: Reset ftrace_graph_filter_enabled if count is zero
authorNamhyung Kim <[email protected]>
Thu, 11 Apr 2013 07:01:38 +0000 (16:01 +0900)
committerSteven Rostedt <[email protected]>
Sat, 13 Apr 2013 03:02:30 +0000 (23:02 -0400)
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/[email protected]
Cc: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: [email protected]
Signed-off-by: Namhyung Kim <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
kernel/trace/ftrace.c

index c9f31491009fbcb82f6662f037ed1c6f1d56a812..9e3198782507dfb0f3417d9e02ab92a6eb375378 100644 (file)
@@ -3792,7 +3792,8 @@ out:
        if (fail)
                return -EINVAL;
 
-       ftrace_graph_filter_enabled = 1;
+       ftrace_graph_filter_enabled = !!(*idx);
+
        return 0;
 }
 
This page took 0.055117 seconds and 4 git commands to generate.