]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Test the 'Do not trace this pid' case in create event
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Sat, 27 Nov 2021 21:45:26 +0000 (16:45 -0500)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Sat, 27 Nov 2021 21:50:43 +0000 (16:50 -0500)
commitad78a028fe8f503dc58b95dd7fae17fb8884b741
treeaa47e315e72299e731c25cbd4f7c6bb14352f73c
parente17b9668a69b33493f8f1ad47d138fd2949171e8
tracing: Test the 'Do not trace this pid' case in create event

When creating a new event (via a module, kprobe, eprobe, etc), the
descriptors that are created must add flags for pid filtering if an
instance has pid filtering enabled, as the flags are used at the time the
event is executed to know if pid filtering should be done or not.

The "Only trace this pid" case was added, but a cut and paste error made
that case checked twice, instead of checking the "Trace all but this pid"
case.

Link: https://lore.kernel.org/all/202111280401.qC0z99JB-lkp@intel.com/
Fixes: f030f40c22d5 ("tracing: Check pid filtering when creating events")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_events.c