selftests/tracing: Fix event filter test to retry up to 10 times
authorMasami Hiramatsu (Google) <mhiramat@kernel.org>
Fri, 31 May 2024 09:43:37 +0000 (18:43 +0900)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 31 May 2024 14:35:43 +0000 (08:35 -0600)
commit0f42bdf59b4e428485aa922bef871bfa6cc505e0
treeec087b4f2d57357460636c63270c8e59fed8c77c
parentcb708ab9f584f159798b60853edcf0c8b67ce295
selftests/tracing: Fix event filter test to retry up to 10 times

Commit eb50d0f250e9 ("selftests/ftrace: Choose target function for filter
test from samples") choose the target function from samples, but sometimes
this test failes randomly because the target function does not hit at the
next time. So retry getting samples up to 10 times.

Fixes: eb50d0f250e9 ("selftests/ftrace: Choose target function for filter test from samples")
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/ftrace/test.d/filter/event-filter-function.tc