]> www.infradead.org Git - users/willy/pagecache.git/commit
selftests/ftrace: Update fprobe test to check enabled_functions file
authorSteven Rostedt <rostedt@goodmis.org>
Thu, 20 Feb 2025 20:20:14 +0000 (15:20 -0500)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Fri, 21 Feb 2025 14:36:12 +0000 (09:36 -0500)
commite85c5e9792b942381ad92ccd0ff745b6d408a91f
treed9fe247a251dd5cb8adb84ab47836ccf66f19795
parentca26554a1498bc905c4a39fb42d55d93f3ae8df2
selftests/ftrace: Update fprobe test to check enabled_functions file

A few bugs were found in the fprobe accounting logic along with it using
the function graph infrastructure. Update the fprobe selftest to catch
those bugs in case they or something similar shows up in the future.

The test now checks the enabled_functions file which shows all the
functions attached to ftrace or fgraph. When enabling a fprobe, make sure
that its corresponding function is also added to that file. Also add two
more fprobes to enable to make sure that the fprobe logic works properly
with multiple probes.

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/20250220202055.733001756@goodmis.org
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Tested-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
tools/testing/selftests/ftrace/test.d/dynevent/add_remove_fprobe.tc