]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests/kprobe: Do not test for GRP/ without event failures
authorSteven Rostedt (Google) <rostedt@goodmis.org>
Tue, 12 Jul 2022 20:17:07 +0000 (16:17 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Aug 2022 09:18:34 +0000 (11:18 +0200)
commitd13b990d4fbecb7497bc42315eaa881522fe11f7
tree88c5873dc12928a5225a237fa23bac247bbdabb6
parent082da6a9c30fe0a00458ed36c28b603c86d516cb
selftests/kprobe: Do not test for GRP/ without event failures

[ Upstream commit f5eab65ff2b76449286d18efc7fee3e0b72f7d9b ]

A new feature is added where kprobes (and other probes) do not need to
explicitly state the event name when creating a probe. The event name will
come from what is being attached.

That is:

  # echo 'p:foo/ vfs_read' > kprobe_events

Will no longer error, but instead create an event:

  # cat kprobe_events
 p:foo/p_vfs_read_0 vfs_read

This should not be tested as an error case anymore. Remove it from the
selftest as now this feature "breaks" the selftest as it no longer fails
as expected.

Link: https://lore.kernel.org/all/1656296348-16111-1-git-send-email-quic_linyyuan@quicinc.com/
Link: https://lkml.kernel.org/r/20220712161707.6dc08a14@gandalf.local.home
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/ftrace/test.d/kprobe/kprobe_syntax_errors.tc