WIP FPC-III support
[linux/fpc-iii.git] / tools / testing / selftests / ftrace / test.d / trigger / inter-event / trigger-multi-actions-accept.tc
blob3ad6e3fd8ac9bbed1fde924302144c5cdc72ce00
1 #!/bin/sh
2 # SPDX-License-Identifier: GPL-2.0
3 # description: event trigger - test multiple actions on hist trigger
4 # requires: set_event synthetic_events events/sched/sched_process_fork/hist
6 fail() { #msg
7 echo $1
8 exit_fail
11 echo "Test multiple actions on hist trigger"
12 echo 'wakeup_latency u64 lat; pid_t pid' >> synthetic_events
13 TRIGGER1=events/sched/sched_wakeup/trigger
14 TRIGGER2=events/sched/sched_switch/trigger
16 echo 'hist:keys=pid:ts0=common_timestamp.usecs if comm=="cyclictest"' > $TRIGGER1
17 echo 'hist:keys=next_pid:wakeup_lat=common_timestamp.usecs-$ts0 if next_comm=="cyclictest"' >> $TRIGGER2
18 echo 'hist:keys=next_pid:onmatch(sched.sched_wakeup).wakeup_latency(sched.sched_switch.$wakeup_lat,next_pid) if next_comm=="cyclictest"' >> $TRIGGER2
19 echo 'hist:keys=next_pid:onmatch(sched.sched_wakeup).wakeup_latency(sched.sched_switch.$wakeup_lat,prev_pid) if next_comm=="cyclictest"' >> $TRIGGER2
20 echo 'hist:keys=next_pid if next_comm=="cyclictest"' >> $TRIGGER2
22 exit 0