]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests/ftrace: Make uprobe test more robust against binary name
authorMasami Hiramatsu (Google) <mhiramat@kernel.org>
Tue, 7 Jan 2025 12:11:16 +0000 (21:11 +0900)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 15 Jan 2025 00:06:32 +0000 (17:06 -0700)
commit89ae64384e5886e8e7c9cc0fcc31e50f4987fae8
treedf0a0ed9978ae294934e7dc0b7825302ba8d9266
parent159ca65c42d90d5ab98fc31b708b12c0be2c26e0
selftests/ftrace: Make uprobe test more robust against binary name

Make add_remove_uprobe test case more robust against various real
binary name.
Current add_remove_uprobe.tc test expects the real binary of /bin/sh
is '*/bin/*sh', but it does not work on busybox environment.
Instead of using fixed pattern, use readlink to identify real binary
name.

Link: https://lore.kernel.org/r/173625187633.1383744.2840679071525852811.stgit@devnote2
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/ftrace/test.d/dynevent/add_remove_uprobe.tc