[93d633]: stress / startstop.sh  Maximize  Restore  History

Download this file

28 lines (25 with data), 822 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
>startstop.log
OPP="--vmlinux=/boot/`uname -r`/vmlinux --ctr0-count=20000 --ctr0-event=CPU_CLK_UNHALTED"
while :; do
echo "starting" >>startstop.log
op_start $OPP >> startstop.log
rmmod oprofile >>startstop.log 2>&1
cat /var/lib/oprofile/oprofiled.log >>startstop.log
rmmod oprofile >>startstop.log 2>&1
echo "stopping" >> startstop.log
op_stop >> startstop.log
rmmod oprofile >>startstop.log 2>&1
sleep 3
echo "starting races" >> startstop.log
op_start $OPP >>startstop.log &
rmmod oprofile >>startstop.log 2>&1
sleep $(( $RANDOM / 1000 ))
rmmod oprofile >>startstop.log 2>&1
op_dump >> startstop.log &
cat /var/lib/oprofile/oprofiled.log >>startstop.log
rmmod oprofile >>startstop.log 2>&1
sleep $(( $RANDOM / 1000 ))
op_stop >>startstop.log &
rmmod oprofile >>startstop.log 2>&1
done

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks