lkml.org 
[lkml]   [2013]   [Apr]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 2/2] tracing: Reset ftrace_graph_filter_enabled if count is zero
Date
From: Namhyung Kim <namhyung.kim@lge.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@kernel.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


\
 
 \ /
  Last update: 2013-04-11 09:42    [W:0.034 / U:1.248 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site