diff options
author | Andrew Geissler <andrewg@us.ibm.com> | 2018-07-23 15:42:34 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2018-07-27 12:22:16 -0500 |
commit | 3b48d9e5a62c322d044955334c6349dc8b955cc5 (patch) | |
tree | 75847e941582b55dc8a994ffbf3d4203fe16a35c /src/build/debug | |
parent | 85a561df01c8237bdaa48c62871b2cf0101abbbc (diff) | |
download | talos-hostboot-3b48d9e5a62c322d044955334c6349dc8b955cc5.tar.gz talos-hostboot-3b48d9e5a62c322d044955334c6349dc8b955cc5.zip |
Avoid SIMICS exception if SBE tracMERG not available
It's not clear what's causing the failure to retrieve SBE traces but
do not want to cause SIMICS to fail when this happens. Best to
allow SIMICS to continue so further FFDC can be gathered.
Change-Id: Icbde1065769a3755e0a4276a06ce627af0edcb3a
CQ: SW437459
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/63172
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Prachi Gupta <pragupta@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/build/debug')
-rw-r--r-- | src/build/debug/simics-debug-framework.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/build/debug/simics-debug-framework.py b/src/build/debug/simics-debug-framework.py index 90c8f8396..e04b3dd8c 100644 --- a/src/build/debug/simics-debug-framework.py +++ b/src/build/debug/simics-debug-framework.py @@ -550,7 +550,10 @@ def magic_instruction_callback(user_arg, cpu, arg): cmd1 = "sbe-trace %d"%(proc_num) print "cmd1", cmd1 # copy the file somewhere safe - cmd2 = "shell \"echo '==HB Collecting Traces (iar=%X,rc=%X,sbe=%d)==' >> sbetrace.hb.txt; cat sbe_%d_tracMERG >> sbetrace.hb.txt\""%(cpu.iar,rc,proc_num,proc_num) + # Ignore any issues with generating tracMERG via || true on cat, best to + # continue running and gather other FFDC to debug why SBE tracMERG can not be + # retrieved then cause SIMICS to fail with a "file not found" exception + cmd2 = "shell \"echo '==HB Collecting Traces (iar=%X,rc=%X,sbe=%d)==' >> sbetrace.hb.txt; ( cat sbe_%d_tracMERG || true ) >> sbetrace.hb.txt\""%(cpu.iar,rc,proc_num,proc_num) print "cmd2", cmd2 saveCommand = "%s; %s"%(cmd1,cmd2) |