hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/tools/testing/selftests/ftrace/test.d/ftrace/fgraph-filter.tc
....@@ -1,22 +1,11 @@
11 #!/bin/sh
22 # SPDX-License-Identifier: GPL-2.0
33 # description: ftrace - function graph filters
4
+# requires: set_ftrace_filter function_graph:tracer
45
56 # Make sure that function graph filtering works
67
7
-if ! grep -q function_graph available_tracers; then
8
- echo "no function graph tracer configured"
9
- exit_unsupported
10
-fi
11
-
12
-do_reset() {
13
- reset_tracer
14
- enable_tracing
15
- clear_trace
16
-}
17
-
188 fail() { # msg
19
- do_reset
209 echo $1
2110 exit_fail
2211 }
....@@ -47,7 +36,5 @@
4736 if [ $count -eq 0 ]; then
4837 fail "No schedule traces found?"
4938 fi
50
-
51
-do_reset
5239
5340 exit 0