brintos

brintos / linux-shallow public Read only

0
0
Text · 988 B · 3ad6e3f Raw
23 lines · plain
1#!/bin/sh2# SPDX-License-Identifier: GPL-2.03# description: event trigger - test multiple actions on hist trigger4# requires: set_event synthetic_events events/sched/sched_process_fork/hist5 6fail() { #msg7    echo $18    exit_fail9}10 11echo "Test multiple actions on hist trigger"12echo 'wakeup_latency u64 lat; pid_t pid' >> synthetic_events13TRIGGER1=events/sched/sched_wakeup/trigger14TRIGGER2=events/sched/sched_switch/trigger15 16echo 'hist:keys=pid:ts0=common_timestamp.usecs if comm=="cyclictest"' > $TRIGGER117echo 'hist:keys=next_pid:wakeup_lat=common_timestamp.usecs-$ts0 if next_comm=="cyclictest"' >> $TRIGGER218echo 'hist:keys=next_pid:onmatch(sched.sched_wakeup).wakeup_latency(sched.sched_switch.$wakeup_lat,next_pid) if next_comm=="cyclictest"' >> $TRIGGER219echo 'hist:keys=next_pid:onmatch(sched.sched_wakeup).wakeup_latency(sched.sched_switch.$wakeup_lat,prev_pid) if next_comm=="cyclictest"' >> $TRIGGER220echo 'hist:keys=next_pid if next_comm=="cyclictest"' >> $TRIGGER221 22exit 023