]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
UBUNTU: SAUCE: selftests/ftrace: avoid failure when trying to probe a notrace function
authorThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Mon, 8 Jul 2019 18:14:24 +0000 (15:14 -0300)
committerAndrea Righi <andrea.righi@canonical.com>
Mon, 25 Nov 2019 13:56:41 +0000 (14:56 +0100)
Check that the function is on available_filter_functions. If it's not,
mark the test as unresolved, instead of failing it.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
tools/testing/selftests/ftrace/test.d/kprobe/kprobe_eventname.tc

index 3ff236719b6e87891d42ef4f27fb585d21ad9ca3..d06dc860a8398c236fa83dec0d3829c768ecf3ff 100644 (file)
@@ -40,6 +40,7 @@ find_dot_func() {
 
 FUNC=`find_dot_func | tail -n 1`
 [ "x" != "x$FUNC" ] || exit_unresolved
+grep -n "$FUNC" available_filter_functions || exit_unresolved
 echo "p $FUNC" > kprobe_events
 EVENT=`grep $FUNC kprobe_events | cut -f 1 -d " " | cut -f 2 -d:`
 [ "x" != "x$EVENT" ] || exit_failure