forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/tools/testing/selftests/ftrace/test.d/ftrace/func_event_triggers.tc
....@@ -3,18 +3,14 @@
33 # description: ftrace - test for function event triggers
44 # flags: instance
55 #
6
+# The triggers are set within the set_ftrace_filter file
7
+# requires: set_ftrace_filter
8
+#
69 # Ftrace allows to add triggers to functions, such as enabling or disabling
710 # tracing, enabling or disabling trace events, or recording a stack trace
811 # within the ring buffer.
912 #
1013 # This test is designed to test event triggers
11
-#
12
-
13
-# The triggers are set within the set_ftrace_filter file
14
-if [ ! -f set_ftrace_filter ]; then
15
- echo "set_ftrace_filter not found? Is dynamic ftrace not set?"
16
- exit_unsupported
17
-fi
1814
1915 do_reset() {
2016 reset_ftrace_filter
....@@ -25,14 +21,11 @@
2521 }
2622
2723 fail() { # mesg
28
- do_reset
2924 echo $1
3025 exit_fail
3126 }
3227
3328 SLEEP_TIME=".1"
34
-
35
-do_reset
3629
3730 echo "Testing function probes with events:"
3831