[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1365663302-2170-2-git-send-email-namhyung@kernel.org>
Date: Thu, 11 Apr 2013 15:55:02 +0900
From: Namhyung Kim <namhyung@...nel.org>
To: Steven Rostedt <rostedt@...dmis.org>
Cc: Frederic Weisbecker <fweisbec@...il.com>,
Ingo Molnar <mingo@...nel.org>,
LKML <linux-kernel@...r.kernel.org>,
Namhyung Kim <namhyung.kim@....com>
Subject: [PATCH 2/2] tracing: Reset ftrace_graph_filter_enabled if count is zero
From: Namhyung Kim <namhyung.kim@....com>
The ftrace_graph_count can be decreased with a "!" pattern, so that
the enabled flag should be updated too.
Signed-off-by: Namhyung Kim <namhyung@...nel.org>
---
kernel/trace/ftrace.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
index be2bcb7ab2f7..3b5ef16692c5 100644
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@ -3779,7 +3779,11 @@ out:
if (fail)
return -EINVAL;
- ftrace_graph_filter_enabled = 1;
+ if (*idx)
+ ftrace_graph_filter_enabled = 1;
+ else
+ ftrace_graph_filter_enabled = 0;
+
return 0;
}
--
1.7.11.7
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists