selftests/ftrace: Fix checkbashisms errors
authorMasami Hiramatsu (Google) <mhiramat@kernel.org>
Sat, 4 May 2024 00:33:19 +0000 (09:33 +0900)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 8 May 2024 22:49:20 +0000 (16:49 -0600)
commitb07b7e2fd51840c7dfffa98c4344ab36195bb8dc
tree1bcb425576eb0bc783f28eb12260a834313dc22c
parent2fd3ef1b9265eda7f53b9506f1ebfb67eb6435a2
selftests/ftrace: Fix checkbashisms errors

Fix the below checkbashisms errors. Because of these errors, these tests
will fail on dash shell.

possible bashism in test.d/kprobe/kretprobe_entry_arg.tc line 14 ('function' is useless):
function streq() {
possible bashism in test.d/dynevent/fprobe_entry_arg.tc line 14 ('function' is useless):
function streq() {

Fixes: f6e2253a617c ("selftests/ftrace: Add test cases for entry args at function exit")
Cc: stable@vger.kernel.org
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/ftrace/test.d/dynevent/fprobe_entry_arg.tc
tools/testing/selftests/ftrace/test.d/kprobe/kretprobe_entry_arg.tc