]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - kernel/trace/trace.c
tracing: let user specify tracing_thresh after selecting function_graph
authorStanislav Fomichev <stfomichev@yandex-team.ru>
Fri, 18 Jul 2014 11:17:27 +0000 (15:17 +0400)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 18 Jul 2014 19:48:52 +0000 (15:48 -0400)
commit6508fa761c330a1d2b4ae36199d08dbcb70e3ddb
treec5c76da37fddea1160d8a18ace06d89da3e20ec9
parent021c5b34452d52e51664f09b98cd50c5495e74b6
tracing: let user specify tracing_thresh after selecting function_graph

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 add update_thresh callback which is called whenever
tracing_thresh is updated and for function_graph tracer we register
handler which reinitializes tracer depending on tracing_thresh.

Link: http://lkml.kernel.org/p/20140718111727.GA3206@stfomichev-desktop.yandex.net
Signed-off-by: Stanislav Fomichev <stfomichev@yandex-team.ru>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace.c
kernel/trace/trace.h
kernel/trace/trace_functions_graph.c