linux/tools/testing/selftests/ftrace/test.d/dynevent
Heiko Carstens 3908b6baf2 selftests/ftrace: Let fprobe test consider already enabled functions
The fprobe test fails on Fedora 41 since the fprobe test assumption that
the number of enabled_functions is zero before the test starts is not
necessarily true. Some user space tools, like systemd, add BPF programs
that attach to functions. Those will show up in the enabled_functions table
and must be taken into account by the fprobe test.

Therefore count the number of lines of enabled_functions before tests
start, and use that as base when comparing expected results.

Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Sven Schnelle <svens@linux.ibm.com>
Cc: Vasily Gorbik <gor@linux.ibm.com>
Cc: Alexander Gordeev <agordeev@linux.ibm.com>
Link: https://lore.kernel.org/20250226142703.910860-1-hca@linux.ibm.com
Fixes: e85c5e9792 ("selftests/ftrace: Update fprobe test to check enabled_functions file")
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
2025-02-27 21:02:09 -05:00
..
add_remove_btfarg.tc selftests/ftrace: Fix BTFARG testcase to check fprobe is enabled correctly 2024-05-08 16:49:14 -06:00
add_remove_eprobe.tc selftests/ftrace: Add test case for GRP/ only input 2022-07-24 19:11:17 -04:00
add_remove_fprobe.tc selftests/ftrace: Let fprobe test consider already enabled functions 2025-02-27 21:02:09 -05:00
add_remove_fprobe_repeat.tc selftests/ftrace: Add a test case for repeating register/unregister fprobe 2024-12-26 10:50:06 -05:00
add_remove_kprobe.tc selftests/ftrace: Add test case for GRP/ only input 2022-07-24 19:11:17 -04:00
add_remove_synth.tc selftests/ftrace: Support ":README" suffix for requires 2020-06-16 10:42:47 -06:00
add_remove_tprobe.tc selftests/ftrace: Add tracepoint probe test case 2023-06-06 21:39:56 +09:00
add_remove_tprobe_module.tc sefltests/tracing: Add a test for tracepoint events on modules 2024-09-25 23:23:44 +09:00
add_remove_uprobe.tc selftests/ftrace: Make uprobe test more robust against binary name 2025-01-14 17:06:32 -07:00
clear_select_events.tc selftests/ftrace: Use $FUNCTION_FORK to reference kernel fork function 2020-10-27 16:44:18 -06:00
eprobes_syntax_errors.tc selftests/ftrace: Fix eprobe syntax test case to check filter support 2023-02-21 08:49:16 +09:00
fprobe_args_vfs.tc selftests/ftrace: Fix required features for VFS type test case 2024-05-10 15:00:42 +09:00
fprobe_entry_arg.tc selftests/ftrace: Fix checkbashisms errors 2024-05-08 16:49:20 -06:00
fprobe_syntax_errors.tc selftests: ftrace: Remove obsolate maxactive syntax check 2024-12-26 10:50:06 -05:00
generic_clear_event.tc selftests/ftrace: Use $FUNCTION_FORK to reference kernel fork function 2020-10-27 16:44:18 -06:00
test_duplicates.tc selftests/ftrace: Fix to check required event file 2024-05-29 12:24:07 -06:00
tprobe_syntax_errors.tc tracing/fprobe: Support raw tracepoints on future loaded modules 2024-09-25 23:23:44 +09:00