Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9f50afcc authored by Namhyung Kim's avatar Namhyung Kim Committed by Steven Rostedt
Browse files

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 <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Namhyung Kim <namhyung.kim@lge.com>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarNamhyung Kim <namhyung@kernel.org>
Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
parent 39e30cd1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3792,7 +3792,8 @@ out:
	if (fail)
		return -EINVAL;

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

	return 0;
}