parser rename

This commit is contained in:
bbracker 2022-02-25 20:05:10 +00:00
parent 2322e66f9f
commit 8eb7ab0dca
3 changed files with 2 additions and 4 deletions

View File

@ -31,4 +31,3 @@ then
sudo chown cad $recordFile
sudo chmod o-w $recordFile
fi

View File

@ -33,7 +33,7 @@ then
-bios $imageDir/fw_jump.elf -kernel $imageDir/Image -append "root=/dev/vda ro" -initrd $imageDir/rootfs.cpio \
-singlestep -rtc clock=vm -icount shift=0,align=off,sleep=on,rr=replay,rrfile=$recordFile \
-d nochain,cpu,in_asm,int \
2>&1 >/dev/null | ./parseQemuToGDB.py | ./parseGDBtoTrace.py $interruptsFile | ./remove_dup.awk > $traceFile)
2>&1 >/dev/null | ./parseQEMUtoGDB.py | ./parseGDBtoTrace.py $interruptsFile | ./remove_dup.awk > $traceFile)
# Cleanup
echo "Elevating permissions to restrict write access to $traceFile, $interruptsFile"
@ -42,4 +42,3 @@ then
sudo chmod o-w $traceFile
sudo chmod o-w $interruptsFile
fi

View File

@ -1,7 +1,6 @@
#! /usr/bin/python3
import fileinput, sys
sys.stderr.write("reminder: parse_qemu.py takes input from stdin\n")
parseState = "idle"
beginPageFault = 0
inPageFault = 0
@ -13,6 +12,7 @@ pageFaultRegs = {}
instrs = {}
instrCount = 0
returnAdr = 0
sys.stderr.write("reminder: parse_qemu.py takes input from stdin\n")
def printPC(l):
global parseState, inPageFault, CSRs, pageFaultCSRs, regs, pageFaultCSRs, instrs, instrCount