selftests/ftrace: Fix to check required event file
authorMasami Hiramatsu (Google) <mhiramat@kernel.org>
Tue, 21 May 2024 00:00:22 +0000 (09:00 +0900)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 29 May 2024 18:24:07 +0000 (12:24 -0600)
commitf6c3c83db1d939ebdb8c8922748ae647d8126d91
treee137645a45f85368b8b2f96cbae7c45c7bc1cbd0
parent2032e61e24fe9fe55d6c7a34fb5506c911b3e280
selftests/ftrace: Fix to check required event file

The dynevent/test_duplicates.tc test case uses `syscalls/sys_enter_openat`
event for defining eprobe on it. Since this `syscalls` events depend on
CONFIG_FTRACE_SYSCALLS=y, if it is not set, the test will fail.

Add the event file to `required` line so that the test will return
`unsupported` result.

Fixes: 297e1dcdca3d ("selftests/ftrace: Add selftest for testing duplicate eprobes and kprobes")
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/ftrace/test.d/dynevent/test_duplicates.tc