linux/tools/testing/selftests/ftrace/test.d
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
..
00basic selftests/ftrace: Fix to use remount when testing mount GID option 2025-01-14 17:06:32 -07:00
direct selftests/ftrace: Convert required interface checks into requires list 2020-06-16 10:39:20 -06:00
dynevent selftests/ftrace: Let fprobe test consider already enabled functions 2025-02-27 21:02:09 -05:00
event selftests/ftrace: Add test that tests event :mod: commands 2025-01-16 09:41:50 -05:00
filter selftests/tracing: Fix event filter test to retry up to 10 times 2024-05-31 08:35:43 -06:00
ftrace ftrace updates for v6.13: 2024-11-20 11:34:10 -08:00
instances selftests/ftrace: Correctly enable event in instance-event.tc 2023-09-05 16:41:28 -06:00
kprobe selftests/ftrace: adjust offset for kprobe syntax error test 2024-12-11 10:08:04 -07:00
preemptirq selftests: ftrace: Use "grep -E" instead of "egrep" 2022-11-25 10:57:32 -07:00
selftest
tracer selftests/ftrace: Convert tracer tests to use 'requires' to specify program dependency 2022-10-28 02:01:17 -06:00
trigger selftests/tracing: Add hist poll() support test 2025-01-07 11:48:07 -05:00
functions tracing/selftests: Add tracefs mount options test 2024-11-01 08:57:55 -04:00
template selftests/ftrace: Support ":README" suffix for requires 2020-06-16 10:42:47 -06:00