Skip to content

Commit

Permalink
Enable tools to take fsp-trace from system path
Browse files Browse the repository at this point in the history
fsp-trace is not created as part of sbe build output. So will use
system path for fsp-trace. It can be overridden by manually putting
fsp-trace in sbe build output.

Change-Id: Ia27de410f3c705e7fc9f6d0604977e0074849a46
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/41154
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: RAJA DAS <rajadas2@in.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Shakeeb A. Pasha B K <shakeebbk@in.ibm.com>
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
  • Loading branch information
sgupta2m committed May 31, 2017
1 parent 59c8bfe commit bcbe74a
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/tools/debug/sbe-debug.py
Expand Up @@ -32,14 +32,20 @@
import binascii
err = False

baseAddr = 0xfffe8000
syms = {};
if 'SBE_TOOLS_PATH' in os.environ:
SBE_TOOLS_PATH = os.environ['SBE_TOOLS_PATH'];
else:
print "SBE_TOOLS_PATH not defined"
exit(1)

baseAddr = 0xfffe8000
def getTraceFilePath():
fspTrace = SBE_TOOLS_PATH + "/fsp-trace"
if(not os.path.isfile(fspTrace)):
fspTrace = "fsp-trace"
return fspTrace


def fillSymTable(sbeObjDir, target, ddsuffix ):
if (target == 'AWAN'):
Expand Down Expand Up @@ -84,7 +90,7 @@ def collectTrace( sbeObjDir, target, node, proc, ddsuffix, file_path ):
print "ERROR running %s: %d " % ( cmd1, rc )
return 1
cmd2 = sbeObjDir + "/ppe2fsp DumpPIBMEM sbetrace.bin "
cmd3 = (sbeObjDir + "/fsp-trace -s " + sbeObjDir +\
cmd3 = (getTraceFilePath() + " -s " + sbeObjDir +\
"/sbeStringFile_"+ddsuffix+" sbetrace.bin > "+\
"sbe_"+str(proc)+"_tracMERG")
cmd4 = "mv DumpPIBMEM dumpPibMem_trace"
Expand Down Expand Up @@ -150,7 +156,8 @@ def forcedCollectTrace( sbeObjDir, target, node, proc, ddsuffix, file_path ):
len = "0x1000"
createPibmemDumpFile("DumpPIBMEM", offset, len);
cmd2 = sbeObjDir + "/ppe2fsp DumpPIBMEM sbetrace.bin "
cmd3 = (sbeObjDir + "/fsp-trace -s " + sbeObjDir +\

cmd3 = (getTraceFilePath() + " -s " + sbeObjDir +\
"/sbeStringFile_"+ddsuffix+" sbetrace.bin > "+\
"sbe_"+str(proc)+"_tracMERG")
cmd4 = "mv DumpPIBMEM dumpPibMem_trace"
Expand Down

0 comments on commit bcbe74a

Please sign in to comment.