Skip to contentSkip to conversation

selftests/ftrace: Fix required features for VFS type test case

PATCH New Masami Hiramatsu (Google) 1 participant 1 message May 4, 2024

Subsystems (2)
lore
Share & tools
lore

Masami Hiramatsu (Google)

author maintainer
#0 lore raw

PATCH 1/1 selftests/ftrace: Fix required features for VFS type test case

From: Masami Hiramatsu (Google) <[email protected]>

Since the VFS type argument test case uses fprobe events, it must check the availablity of dynamic_events file and fprobe events syntax in README. Without this fix, the test fails if CONFIG_FPROBE_EVENTS=n.

Fixes ee97e5e135c6 ("selftests/ftrace: add fprobe test cases for VFS type "%pd" and "%pD"")
---
 .../ftrace/test.d/dynevent/fprobe_args_vfs.tc      |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
tools/testing/selftests/ftrace/test.d/dynevent/fprobe_args_vfs.tc +2 -1
index 49a833bf334c..c6a9d2466a71 100644
@@ -1,7 +1,8 @@
 #!/bin/sh
 # SPDX-License-Identifier: GPL-2.0
 # description: Fprobe event VFS type argument
-# requires: kprobe_events "%pd/%pD":README
+# requires: dynamic_events "%pd/%pD":README "f[:[<group>/][<event>]] <func-name>[%return] [<args>]":README
+
 
 : "Test argument %pd with name for fprobe"
 echo 'f:testprobe dput name=$arg1:%pd' > dynamic_events