tracing/function_graph: Fix filters for function_graph threshold
authorJoel Fernandes <agnel.joel@gmail.com>
Sat, 18 Jun 2016 05:44:54 +0000 (22:44 -0700)
committerSteven Rostedt <rostedt@goodmis.org>
Mon, 27 Jun 2016 17:29:24 +0000 (13:29 -0400)
commit7fa8b7171a638ad896acabd9a17183b75b70aeb4
tree07b6570578e9f03a9397ef8a42753625fd000d9d
parentbe54f69c26193de31053190761e521903b89d098
tracing/function_graph: Fix filters for function_graph threshold

Function graph tracer currently ignores filters if tracing_thresh is set.
For example, even if set_ftrace_pid is set, then its ignored if tracing_thresh
set, resulting in all processes being traced.

To fix this, we reuse the same entry function as when tracing_thresh is not
set and do everything as in the regular case except for writing the function entry
to the ring buffer.

Link: http://lkml.kernel.org/r/1466228694-2677-1-git-send-email-agnel.joel@gmail.com
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@redhat.com>
Signed-off-by: Joel Fernandes <agnel.joel@gmail.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_functions_graph.c
This page took 0.024349 seconds and 5 git commands to generate.