diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2016-04-22 18:11:33 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2016-06-20 09:54:19 -0400 |
commit | 345ddcc882d8896dcbdcb3e0ee4a415fc23ec8b0 (patch) | |
tree | 49af19740e387650bd088a321e2add61b03bbd36 /kernel/trace/trace_functions.c | |
parent | 76c813e26606d35ea9d8d6f96e646b3944c730a9 (diff) |
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) | |||
43 | 43 | ||
44 | /* Currently only the non stack verision is supported */ | 44 | /* Currently only the non stack verision is supported */ |
45 | ops->func = function_trace_call; | 45 | ops->func = function_trace_call; |
46 | ops->flags = FTRACE_OPS_FL_RECURSION_SAFE; | 46 | ops->flags = FTRACE_OPS_FL_RECURSION_SAFE | FTRACE_OPS_FL_PID; |
47 | 47 | ||
48 | tr->ops = ops; | 48 | tr->ops = ops; |
49 | ops->private = tr; | 49 | ops->private = tr; |