checkpoint generator off-by-one error fix

This commit is contained in:
bbracker 2021-10-27 14:10:29 -07:00
parent 52529db40b
commit d14fa074ec

View File

@ -3,7 +3,7 @@
source genSettings.sh source genSettings.sh
tcpPort=1236 tcpPort=1236
instrs=10000000 instrs=480000000
checkOutDir="$outDir/checkpoint$instrs" checkOutDir="$outDir/checkpoint$instrs"
checkIntermedDir="$checkOutDir/intermediate-outputs" checkIntermedDir="$checkOutDir/intermediate-outputs"
@ -32,7 +32,7 @@ then
# Post-Process GDB outputs # Post-Process GDB outputs
./parseState.py "$checkOutDir" ./parseState.py "$checkOutDir"
./fix_mem.py "$checkIntermedDir/ramGDB.txt" "$checkOutDir/ram.txt" ./fix_mem.py "$checkIntermedDir/ramGDB.txt" "$checkOutDir/ram.txt"
tail -n+$instrs "$outDir/$traceFile" > "$checkOutDir/$traceFile" tail -n+$($instrs+1) "$outDir/$traceFile" > "$checkOutDir/$traceFile"
else else
echo "You can change the number of instructions by editing the \"instrs\" variable in this script." echo "You can change the number of instructions by editing the \"instrs\" variable in this script."
echo "Have a nice day!" echo "Have a nice day!"