diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2016-04-23 01:11:33 +0300 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2016-06-20 16:54:19 +0300 |
commit | 345ddcc882d8896dcbdcb3e0ee4a415fc23ec8b0 (patch) | |
tree | 49af19740e387650bd088a321e2add61b03bbd36 /kernel/trace/trace_functions.c | |
parent | 76c813e26606d35ea9d8d6f96e646b3944c730a9 (diff) | |
download | linux-345ddcc882d8896dcbdcb3e0ee4a415fc23ec8b0.tar.xz |
ftrace: Have set_ftrace_pid use the bitmap like events do
Convert set_ftrace_pid to use the bitmap like set_event_pid does. This
allows for instances to use the pid filtering as well, and will allow for
function-fork option to set if the children of a traced function should be
traced or not.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_functions.c')
-rw-r--r-- | kernel/trace/trace_functions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace_functions.c b/kernel/trace/trace_functions.c index 5a095c2e4b69..0efa00d80623 100644 --- a/kernel/trace/trace_functions.c +++ b/kernel/trace/trace_functions.c @@ -43,7 +43,7 @@ static int allocate_ftrace_ops(struct trace_array *tr) /* Currently only the non stack verision is supported */ ops->func = function_trace_call; - ops->flags = FTRACE_OPS_FL_RECURSION_SAFE; + ops->flags = FTRACE_OPS_FL_RECURSION_SAFE | FTRACE_OPS_FL_PID; tr->ops = ops; ops->private = tr; |