hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-multi-actions-accept.tc
....@@ -1,32 +1,12 @@
11 #!/bin/sh
2
+# SPDX-License-Identifier: GPL-2.0
23 # description: event trigger - test multiple actions on hist trigger
3
-
4
-
5
-do_reset() {
6
- reset_trigger
7
- echo > set_event
8
- clear_trace
9
-}
4
+# requires: set_event synthetic_events events/sched/sched_process_fork/hist
105
116 fail() { #msg
12
- do_reset
137 echo $1
148 exit_fail
159 }
16
-
17
-if [ ! -f set_event ]; then
18
- echo "event tracing is not supported"
19
- exit_unsupported
20
-fi
21
-
22
-if [ ! -f synthetic_events ]; then
23
- echo "synthetic event is not supported"
24
- exit_unsupported
25
-fi
26
-
27
-clear_synthetic_events
28
-reset_tracer
29
-do_reset
3010
3111 echo "Test multiple actions on hist trigger"
3212 echo 'wakeup_latency u64 lat; pid_t pid' >> synthetic_events
....@@ -38,7 +18,5 @@
3818 echo 'hist:keys=next_pid:onmatch(sched.sched_wakeup).wakeup_latency(sched.sched_switch.$wakeup_lat,next_pid) if next_comm=="cyclictest"' >> $TRIGGER2
3919 echo 'hist:keys=next_pid:onmatch(sched.sched_wakeup).wakeup_latency(sched.sched_switch.$wakeup_lat,prev_pid) if next_comm=="cyclictest"' >> $TRIGGER2
4020 echo 'hist:keys=next_pid if next_comm=="cyclictest"' >> $TRIGGER2
41
-
42
-do_reset
4321
4422 exit 0