Skip to content

Commit

Permalink
Fix in forced trace command for DD2
Browse files Browse the repository at this point in the history
Change-Id: If8a92cb7a0ceaf19dc20f24b9fa58062ac176ddc
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/40199
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
  • Loading branch information
Shakeebbk authored and sgupta2m committed May 16, 2017
1 parent b30ca1a commit 9c12471
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/tools/debug/sbe-debug.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,11 @@ def forcedCollectTrace( sbeObjDir, target, node, proc, ddsuffix, file_path ):
return 1

# find offset of trace buffer in PIBMEM dump
trace_pattern = [2, 0, 0, 115, 98, 101, 95, 115, 101, 101, 112, 114, 111, 109, 95, 68, 68, 49, 0, 0]
# version = 0x00 0x02
# rsvd = 0x00 0x00
# image_str = "sbe_seeprom_DD1\0"
image_str = "sbe_seeprom_" + ddsuffix
trace_pattern = [0, 2, 0, 0] + [ord(a) for a in image_str] + [0]
data_read = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
trace_index = 0
#print trace_pattern
Expand All @@ -135,7 +139,7 @@ def forcedCollectTrace( sbeObjDir, target, node, proc, ddsuffix, file_path ):
while byte != "":
byte = f.read(1)
data_read = data_read[1:]+[ord(byte)]
#print data_read
#print [chr(a) for a in data_read]
if data_read == trace_pattern:
trace_index -= 20
break
Expand Down

0 comments on commit 9c12471

Please sign in to comment.