linux/tools/testing/selftests/ftrace/test.d/kprobe
Hari Bathini 777f290ab3 selftests/ftrace: adjust offset for kprobe syntax error test
In 'NOFENTRY_ARGS' test case for syntax check, any offset X of
`vfs_read+X` except function entry offset (0) fits the criterion,
even if that offset is not at instruction boundary, as the parser
comes before probing. But with "ENDBR64" instruction on x86, offset
4 is treated as function entry. So, X can't be 4 as well. Thus, 8
was used as offset for the test case. On 64-bit powerpc though, any
offset <= 16 can be considered function entry depending on build
configuration (see arch_kprobe_on_func_entry() for implementation
details). So, use `vfs_read+20` to accommodate that scenario too.

Link: https://lore.kernel.org/r/20241129202621.721159-1-hbathini@linux.ibm.com
Fixes: 4231f30fcc ("selftests/ftrace: Add BTF arguments test cases")
Suggested-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Hari Bathini <hbathini@linux.ibm.com>
Acked-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2024-12-11 10:08:04 -07:00
..
add_and_remove.tc
busy_check.tc
kprobe_args_char.tc selftests/ftrace: Add required dependency for kprobe tests 2024-08-14 05:41:26 -06:00
kprobe_args_comm.tc
kprobe_args_string.tc selftests/ftrace: Add required dependency for kprobe tests 2024-08-14 05:41:26 -06:00
kprobe_args_symbol.tc
kprobe_args_syntax.tc selftests/ftrace: Add riscv support for kprobe arg tests 2023-10-18 14:33:44 -06:00
kprobe_args_type.tc
kprobe_args_user.tc
kprobe_args_vfs.tc selftests/ftrace: add kprobe test cases for VFS type "%pd" and "%pD" 2024-05-01 23:18:47 +09:00
kprobe_args.tc
kprobe_eventname.tc tracing/selftests: Fix kprobe event name test for .isra. functions 2024-05-29 12:24:31 -06:00
kprobe_ftrace.tc
kprobe_insn_boundary.tc selftests/ftrace: Add new test case which adds multiple consecutive probes in a function 2023-06-06 21:39:57 +09:00
kprobe_module.tc
kprobe_multiprobe.tc
kprobe_non_uniq_symbol.tc selftests/ftrace: Add new test case which checks non unique symbol 2023-10-20 22:11:49 +09:00
kprobe_opt_types.tc selftests/ftrace: Add new test case which checks for optimized probes 2023-06-23 17:35:40 +09:00
kprobe_syntax_errors.tc selftests/ftrace: adjust offset for kprobe syntax error test 2024-12-11 10:08:04 -07:00
kretprobe_args.tc
kretprobe_entry_arg.tc selftests/ftrace: Fix checkbashisms errors 2024-05-08 16:49:20 -06:00
kretprobe_maxactive.tc
kretprobe_return_suffix.tc
multiple_kprobes.tc
probepoint.tc
profile.tc
uprobe_syntax_errors.tc