Commit 81699ead authored by Ramon Nou's avatar Ramon Nou
Browse files

added run script

parent 58a2cb38
Loading
Loading
Loading
Loading
Loading

scripts/run.sh

0 → 100755
+28 −0
Original line number Diff line number Diff line
NATIVE="./opendevnull --syscall getpid"
INTERC="LD_PRELOAD=./libeval_intercept.so ./opendevnull --syscall getpid"
SC2SC="LD_PRELOAD=./libeval_intercept.so ./opendevnull --syscall getpid --always_syscall"


REPEATS=3
ARCH="X86"

for ((i=1; i<=REPEATS; i++))
do
	OUTPUT=$($NATIVE | cut -f4 --delim=" ")
	echo "Native,$ARCH,"$OUTPUT 
done

for ((i=1; i<=REPEATS; i++))
do
        OUTPUT=$($INTERC | cut -f4 --delim=" ")
        echo "Syscall,$ARCH,"$OUTPUT
done


for ((i=1; i<=REPEATS; i++))
do
        OUTPUT=$($SC2SC | cut -f4 --delim=" ")
        echo "Syscall2S,$ARCH,"$OUTPUT
done