]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit91fe27ff9fde793e10e2a154dc65665fad8fa679
treef4d460de486ada2eb4aadc9368d7455778721f56
parenta0d2ea15187460de0d733e54902741822a3add90
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: 7f91887c7a8ff ("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