mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] tracing: let user specify tracing_thresh after selecting function_graph
@ 2014-06-03 17:12 Stanislav Fomichev
  2014-06-03 22:57 ` Steven Rostedt
  0 siblings, 1 reply; 10+ messages in thread
From: Stanislav Fomichev @ 2014-06-03 17:12 UTC (permalink / raw)
  To: rostedt, fweisbec, mingo, jovi.zhangwei, namhyung.kim,
	tom.zanussi, stfomichev
  Cc: linux-kernel

Currently, tracing_thresh works only if we specify it before selecting
function_graph tracer. If we do the opposite, tracing_thresh will change
it's value, but it will not be applied.
To fix it, we need to always register handlers which take tracing_thresh into
account.

Signed-off-by: Stanislav Fomichev <stfomichev@yandex-team.ru>
---
 kernel/trace/trace_functions_graph.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/kernel/trace/trace_functions_graph.c b/kernel/trace/trace_functions_graph.c
index deff11200261..a894031986a3 100644
--- a/kernel/trace/trace_functions_graph.c
+++ b/kernel/trace/trace_functions_graph.c
@@ -433,12 +433,8 @@ static int graph_trace_init(struct trace_array *tr)
 	int ret;
 
 	set_graph_array(tr);
-	if (tracing_thresh)
-		ret = register_ftrace_graph(&trace_graph_thresh_return,
-					    &trace_graph_thresh_entry);
-	else
-		ret = register_ftrace_graph(&trace_graph_return,
-					    &trace_graph_entry);
+	ret = register_ftrace_graph(&trace_graph_thresh_return,
+				    &trace_graph_thresh_entry);
 	if (ret)
 		return ret;
 	tracing_start_cmdline_record();
-- 
1.8.3.2


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-07-18 11:17 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-03 17:12 [PATCH] tracing: let user specify tracing_thresh after selecting function_graph Stanislav Fomichev
2014-06-03 22:57 ` Steven Rostedt
2014-06-04 13:33   ` [PATCHv2] " Stanislav Fomichev
2014-06-04 19:41     ` Steven Rostedt
2014-06-05  7:38       ` Stanislav Fomichev
2014-07-15  9:27         ` Stanislav Fomichev
2014-07-15 13:04           ` Steven Rostedt
2014-07-15 15:31             ` [PATCHv3] " Stanislav Fomichev
2014-07-17 18:08               ` Steven Rostedt
2014-07-18 11:17                 ` [PATCHv4] " Stanislav Fomichev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®