]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Do not warn when connecting eprobe to non existing event
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 27 Oct 2021 16:08:54 +0000 (12:08 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 28 Oct 2021 01:47:55 +0000 (21:47 -0400)
commitc0da5f0fa3a6bb050d6323ad9e4941b26aeb3b5b
treeceaa0909b0823a346d9a7c4b32c14d84a0476be1
parent4c26203c55653705c6df82f4371b6b1a7a89d148
tracing: Do not warn when connecting eprobe to non existing event

When the syscall trace points are not configured in, the kselftests for
ftrace will try to attach an event probe (eprobe) to one of the system
call trace points. This triggered a WARNING, because the failure only
expects to see memory issues. But this is not the only failure. The user
may attempt to attach to a non existent event, and the kernel must not
warn about it.

Link: https://lkml.kernel.org/r/20211027120854.0680aa0f@gandalf.local.home
Fixes: 1a327be3f20f8 ("tracing: Add a probe that attaches to trace events")
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_eprobe.c