]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Fix pid filtering when triggers are attached
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 26 Nov 2021 22:34:42 +0000 (17:34 -0500)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 26 Nov 2021 22:37:06 +0000 (17:37 -0500)
commite9f77a69f1f7ab9117760fcb13085d8e923af90c
treeb1c3427dd94738944c3de54ff1d82954b8b66a33
parent486967fa406984d065bbedfe35ce6f1de7238f72
tracing: Fix pid filtering when triggers are attached

If a event is filtered by pid and a trigger that requires processing of
the event to happen is a attached to the event, the discard portion does
not take the pid filtering into account, and the event will then be
recorded when it should not have been.

Cc: stable@vger.kernel.org
Fixes: 8adda433032ee ("tracing: Implement event pid filtering")
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace.h