forked from Github_Repos/cvw
		
	parser rename
This commit is contained in:
		
							parent
							
								
									2322e66f9f
								
							
						
					
					
						commit
						8eb7ab0dca
					
				@ -31,4 +31,3 @@ then
 | 
				
			|||||||
    sudo chown cad $recordFile
 | 
					    sudo chown cad $recordFile
 | 
				
			||||||
    sudo chmod o-w $recordFile
 | 
					    sudo chmod o-w $recordFile
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
				
			|||||||
@ -33,7 +33,7 @@ then
 | 
				
			|||||||
    -bios $imageDir/fw_jump.elf -kernel $imageDir/Image -append "root=/dev/vda ro" -initrd $imageDir/rootfs.cpio \
 | 
					    -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 \
 | 
					    -singlestep -rtc clock=vm -icount shift=0,align=off,sleep=on,rr=replay,rrfile=$recordFile \
 | 
				
			||||||
    -d nochain,cpu,in_asm,int \
 | 
					    -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
 | 
					    # Cleanup
 | 
				
			||||||
    echo "Elevating permissions to restrict write access to $traceFile, $interruptsFile"
 | 
					    echo "Elevating permissions to restrict write access to $traceFile, $interruptsFile"
 | 
				
			||||||
@ -42,4 +42,3 @@ then
 | 
				
			|||||||
    sudo chmod o-w $traceFile
 | 
					    sudo chmod o-w $traceFile
 | 
				
			||||||
    sudo chmod o-w $interruptsFile
 | 
					    sudo chmod o-w $interruptsFile
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
				
			|||||||
@ -1,7 +1,6 @@
 | 
				
			|||||||
#! /usr/bin/python3
 | 
					#! /usr/bin/python3
 | 
				
			||||||
import fileinput, sys
 | 
					import fileinput, sys
 | 
				
			||||||
 | 
					
 | 
				
			||||||
sys.stderr.write("reminder: parse_qemu.py takes input from stdin\n")
 | 
					 | 
				
			||||||
parseState = "idle"
 | 
					parseState = "idle"
 | 
				
			||||||
beginPageFault = 0
 | 
					beginPageFault = 0
 | 
				
			||||||
inPageFault = 0
 | 
					inPageFault = 0
 | 
				
			||||||
@ -13,6 +12,7 @@ pageFaultRegs = {}
 | 
				
			|||||||
instrs = {}
 | 
					instrs = {}
 | 
				
			||||||
instrCount = 0
 | 
					instrCount = 0
 | 
				
			||||||
returnAdr = 0
 | 
					returnAdr = 0
 | 
				
			||||||
 | 
					sys.stderr.write("reminder: parse_qemu.py takes input from stdin\n")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def printPC(l):
 | 
					def printPC(l):
 | 
				
			||||||
    global parseState, inPageFault, CSRs, pageFaultCSRs, regs, pageFaultCSRs, instrs, instrCount
 | 
					    global parseState, inPageFault, CSRs, pageFaultCSRs, regs, pageFaultCSRs, instrs, instrCount
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user