tracing: Add trace_array parameter to create_event_filter()
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Mon, 1 Apr 2019 20:07:48 +0000 (16:07 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Mon, 8 Apr 2019 13:22:28 +0000 (09:22 -0400)
commit1e144d73f7295f766568c357448a11eb12868e29
tree70e4f89f9aa6690724b026acfe77df96a5116351
parentab105a4fb89496c71c5a0f3222347c506c30feb0
tracing: Add trace_array parameter to create_event_filter()

Pass in the trace_array that represents the instance the filter being
changed is in to create_event_filter(). This will allow for error messages
that happen when writing to the filter can be displayed in the proper
instance "error_log" file.

Note, for calls to create_filter() (that was also modified to support
create_event_filter()), that changes filters that do not exist in a instance
(for perf for example), NULL may be passed in, which means that there will
not be any message to log for that filter.

Reviewed-by: Masami Hiramatsu <mhiramat@kernel.org>
Reviewed-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Tested-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace.h
kernel/trace/trace_events_filter.c
kernel/trace/trace_events_trigger.c