tracing: Apply trace filters on all output channels
authorPingfan Liu <kernelfans@gmail.com>
Sat, 14 Aug 2021 03:45:38 +0000 (11:45 +0800)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Mon, 16 Aug 2021 15:01:52 +0000 (11:01 -0400)
commit6c34df6f350df9579ce99d887a2b5fa14cc13b32
treef4d460de486ada2eb4aadc9368d7455778721f56
parent5acce0bff2a0420ce87d4591daeb867f47d552c2
tracing: Apply trace filters on all output channels

The event filters are not applied on all of the output, which results in
the flood of printk when using tp_printk. Unfolding
event_trigger_unlock_commit_regs() into trace_event_buffer_commit(), so
the filters can be applied on every output.

Link: https://lkml.kernel.org/r/20210814034538.8428-1-kernelfans@gmail.com
Cc: stable@vger.kernel.org
Fixes: 0daa2302968c1 ("tracing: Add tp_printk cmdline to have tracepoints go to printk()")
Signed-off-by: Pingfan Liu <kernelfans@gmail.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace.c
kernel/trace/trace.h