2 # description: event trigger - test multiple actions on hist trigger
17 if [ ! -f set_event ]; then
18 echo "event tracing is not supported"
22 if [ ! -f synthetic_events ]; then
23 echo "synthetic event is not supported"
27 clear_synthetic_events
31 echo "Test multiple actions on hist trigger"
32 echo 'wakeup_latency u64 lat; pid_t pid' >> synthetic_events
33 TRIGGER1=events/sched/sched_wakeup/trigger
34 TRIGGER2=events/sched/sched_switch/trigger
36 echo 'hist:keys=pid:ts0=common_timestamp.usecs if comm=="cyclictest"' > $TRIGGER1
37 echo 'hist:keys=next_pid:wakeup_lat=common_timestamp.usecs-$ts0 if next_comm=="cyclictest"' >> $TRIGGER2
38 echo 'hist:keys=next_pid:onmatch(sched.sched_wakeup).wakeup_latency(sched.sched_switch.$wakeup_lat,next_pid) if next_comm=="cyclictest"' >> $TRIGGER2
39 echo 'hist:keys=next_pid:onmatch(sched.sched_wakeup).wakeup_latency(sched.sched_switch.$wakeup_lat,prev_pid) if next_comm=="cyclictest"' >> $TRIGGER2
40 echo 'hist:keys=next_pid if next_comm=="cyclictest"' >> $TRIGGER2