#Sets the BRISTLECONE parameter with a certain instruction count, probability and
#number of failures that can be injected
#export BRISTLECONE="-initializerandom -injectinstructionfailures 10 0.00001667 1 -debugtask"
-export BRISTLECONE="-initializerandom -injectinstructionfailures 35 0.00001667 50 -debugtask"
+export BRISTLECONE="-initializerandom -injectinstructionfailures 35 0.00001667 50"
rm -rf results
mkdir results
cd results
-while [ $i -le 299 ]; # The number of runs
+while [ $i -le 201 ]; # The number of runs
do
mkdir trial$i
cd trial$i
let errorcount=0
let count=0
- ../../trans.bin & #Launch server executable in background
+ ../../trans.bin &> log & #Launch server executable in background
sleep 2;
../../Workload/workload 127.0.0.1 2>/dev/null & #Run the first workload
echo $i >> ../output;
let "i+=1";
process=`ps | grep workload | grep -v grep | awk '{print $1}'`
kill -9 $process
-ps | grep trans | grep -v grep | awk '{print $1}' | xargs kill -9 #Kill the server
+process=`ps | grep trans | grep -v grep | awk '{print $1}'`
+cat ../../gdbquery | gdb ../../trans.bin $process &> output
+kill -1 $process
+sleep 1
+kill $process
sleep 1;
cd ..
done