From 18f23d0d54d6e256a45e29b5d067678e74b9e7e2 Mon Sep 17 00:00:00 2001 From: shakeeb Date: Mon, 16 May 2016 11:00:49 +0530 Subject: Modify sbe.sym file to include size of symbols Modify sbe.sym to include size of symbols. Modify relevant scripts to take into account the update in sbe.sym Change-Id: Ib5a74835638e73b439ba7859d3b1c56846d34a49 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24574 Tested-by: Jenkins Server Reviewed-by: Sachin Gupta --- sbe/build/simics/simics-debug-framework.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sbe/build') diff --git a/sbe/build/simics/simics-debug-framework.py b/sbe/build/simics/simics-debug-framework.py index 4058ae97..e9a903c9 100755 --- a/sbe/build/simics/simics-debug-framework.py +++ b/sbe/build/simics/simics-debug-framework.py @@ -41,12 +41,12 @@ def fillSymTable(): f = open( symFile, 'r') for line in f: words = line.split() - if( len(words) == 3): - syms[words[2]] = words[0] + if( len( words ) == 4 ): + syms[words[3]] = [words[0], words[1]] def collectTrace ( procNr ): fileName = "sbe_" + `procNr` + "_tracMERG" - cmd1 = "pipe \"p9Proc" + `procNr` + ".sbe.mibo_space.x 0x" + syms['g_pk_trace_buf'] + " 0x2028\" \"sed 's/^p:0x........ //g' | sed 's/ ................$//g' | sed 's/ //g' | xxd -r -p> ppetrace.bin\"" + cmd1 = "pipe \"p9Proc" + `procNr` + ".sbe.mibo_space.x 0x" + syms['g_pk_trace_buf'][0] + " 0x2028\" \"sed 's/^p:0x........ //g' | sed 's/ ................$//g' | sed 's/ //g' | xxd -r -p> ppetrace.bin\"" cmd2 = "shell \"" + SBE_TOOLS_PATH + "/ppe2fsp ppetrace.bin sbetrace.bin \"" cmd3 = "shell \"" + SBE_TOOLS_PATH + "/fsp-trace -s " + SBE_TOOLS_PATH + "/trexStringFile sbetrace.bin >" + fileName + "\"" cmd4 = "shell \"" + "cat " + fileName + "\"" -- cgit v1.2.1