[ 3.5.y.z extended stable ] Patch "tracing: Reset ftrace_graph_filter_enabled if count is zero" has been added to staging queue

Luis Henriques luis.henriques at canonical.com
Tue May 7 10:33:16 UTC 2013


This is a note to let you know that I have just added a patch titled

    tracing: Reset ftrace_graph_filter_enabled if count is zero

to the linux-3.5.y-queue branch of the 3.5.y.z extended stable tree 
which can be found at:

 http://kernel.ubuntu.com/git?p=ubuntu/linux.git;a=shortlog;h=refs/heads/linux-3.5.y-queue

If you, or anyone else, feels it should not be added to this tree, please 
reply to this email.

For more information about the 3.5.y.z tree, see
https://wiki.ubuntu.com/Kernel/Dev/ExtendedStable

Thanks.
-Luis

------

>From 62db4b9c8ac9555c58d45342e6cba3b004fc4ca7 Mon Sep 17 00:00:00 2001
From: Namhyung Kim <namhyung.kim at lge.com>
Date: Thu, 11 Apr 2013 16:01:38 +0900
Subject: [PATCH] tracing: Reset ftrace_graph_filter_enabled if count is zero

commit 9f50afccfdc15d95d7331acddcb0f7703df089ae upstream.

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 at gmail.com>
Cc: Ingo Molnar <mingo at kernel.org>
Cc: Namhyung Kim <namhyung.kim at lge.com>
Signed-off-by: Namhyung Kim <namhyung at kernel.org>
Signed-off-by: Steven Rostedt <rostedt at goodmis.org>
Signed-off-by: Luis Henriques <luis.henriques at canonical.com>
---
 kernel/trace/ftrace.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
index 80b2000..36759bf 100644
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@ -3579,7 +3579,8 @@ out:
 	if (fail)
 		return -EINVAL;

-	ftrace_graph_filter_enabled = 1;
+	ftrace_graph_filter_enabled = !!(*idx);
+
 	return 0;
 }

--
1.8.1.2





More information about the kernel-team mailing list