diff options
| author | Alexander Gordeev <agordeev@linux.ibm.com> | 2026-08-25 18:58:40 +0200 |
|---|---|---|
| committer | Masami Hiramatsu (Google) <mhiramat@kernel.org> | 2026-10-13 22:37:11 +0900 |
| commit | d4d028a7ae6401ce70825a3eb663f0a2dfc49db6 (patch) | |
| tree | 58ba38047940e665718fcc55b576a2db50e8edc8 | |
| parent | 3ccfe2a1a85f3639d770c9efe153ffdc58c60ac1 (diff) | |
ftrace/selftests: Change non-unique test symbol to init_once
The name_show symbol is not the best choise, because it often
appears only three times on s390 in kallsyms, with two of them
having module annotations [mdev] and [i2c_core].
Switch to init_once which has many more duplicate instances
all in vmlinux, making it a more reliable non-unique symbol
for testing kprobe registration failure.
Link: https://lore.kernel.org/all/67ac21cd214ec9371276df9ba790e9832cf328d4.1787670777.git.agordeev@linux.ibm.com/
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
| -rw-r--r-- | tools/testing/selftests/ftrace/test.d/kprobe/kprobe_non_uniq_symbol.tc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_non_uniq_symbol.tc b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_non_uniq_symbol.tc index 07b1177c1634..03eb9e70b438 100644 --- a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_non_uniq_symbol.tc +++ b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_non_uniq_symbol.tc @@ -3,7 +3,7 @@ # description: Test failure of registering kprobe on non unique symbol # requires: kprobe_events -SYMBOL='name_show' +SYMBOL='init_once' # We skip this test on kernel where SYMBOL is unique or does not exist. if [ "$(grep -c -E "[[:alnum:]]+ t ${SYMBOL}$" /proc/kallsyms)" -le '1' ]; then |
