summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/build/Makefile1
-rwxr-xr-xsrc/tools/debug/sbe-debug.py10
2 files changed, 7 insertions, 4 deletions
diff --git a/src/build/Makefile b/src/build/Makefile
index 1f7cdb6a..6f5cc330 100644
--- a/src/build/Makefile
+++ b/src/build/Makefile
@@ -108,6 +108,7 @@ SIMICS_PPE_TAR_FILES += $(IMG_DIR)/sbeStringFile
SIMICS_PPE_TAR_FILES += $(PPETRACEPP_BIN_DIR)/ppe2fsp
SIMICS_BB_TAR_FILES += $(SIMICSTOOLS_SRCDIR)/*
SIMICS_BB_TAR_FILES += $(DEBUGTOOLS_SRCDIR)/simics-debug-framework.py
+SIMICS_BB_TAR_FILES += $(DEBUGTOOLS_SRCDIR)/sbe-debug.py
SIMICS_PPETRACEPP_TAR_FILES += $(PPETRACEPP_DIR)/cmvc/makefile
SIMICS_PPETRACEPP_TAR_FILES += $(PPETRACEPP_DIR)/ppe2fsp.h
SIMICS_PPETRACEPP_TAR_FILES += $(PPETRACEPP_DIR)/ppe2fsp.c
diff --git a/src/tools/debug/sbe-debug.py b/src/tools/debug/sbe-debug.py
index ba5d4dc2..330fc108 100755
--- a/src/tools/debug/sbe-debug.py
+++ b/src/tools/debug/sbe-debug.py
@@ -150,8 +150,10 @@ def sbeState( sbeObjDir, target, node, proc ):
print "ERROR running %s: %d " % ( cmd1, rc )
return 1
-def sbeStatus():
- cmd = "getcfam pu 2809"
+def sbeStatus( node, proc ):
+ cmd = ("getcfam pu 2809" +\
+ " -n" + str(node) + " -p" + str(proc))
+ print "cmd:", cmd
output = os.popen(cmd).read()
output = output.split()
if ("ERROR:" in output):
@@ -227,7 +229,7 @@ def main( argv ):
print "Parsing everything"
collectTrace( sbeObjDir, args.target, args.node, args.proc )
collectAttr( sbeObjDir, args.target, args.node, args.proc )
- sbeStatus()
+ sbeStatus( args.node, args.proc )
elif ( args.level == 'trace' ):
collectTrace( sbeObjDir, args.target, args.node, args.proc )
elif ( args.level == 'attr' ):
@@ -237,7 +239,7 @@ def main( argv ):
elif ( args.level == 'sbestate' ):
sbeState( sbeObjDir, args.target, args.node, args.proc )
elif ( args.level == 'sbestatus' ):
- sbeStatus()
+ sbeStatus( args.node, args.proc )
# On cronus, Enable FIFO mode
rc = os.system( cmdFifoOn )
OpenPOWER on IntegriCloud