summaryrefslogtreecommitdiffstats
path: root/src/build/debug
diff options
context:
space:
mode:
authorChristian Geddes <crgeddes@us.ibm.com>2018-10-23 10:23:14 -0500
committerWilliam G. Hoffa <wghoffa@us.ibm.com>2018-10-25 14:43:33 -0500
commit4ee84ba35b54e491f3d3b9337b640898755eb231 (patch)
tree71c1081dc056394b0f55ac9dc72c61e6e969c137 /src/build/debug
parentfecb93f473161bae5bded405aaca525c78f80a22 (diff)
downloadtalos-hostboot-4ee84ba35b54e491f3d3b9337b640898755eb231.tar.gz
talos-hostboot-4ee84ba35b54e491f3d3b9337b640898755eb231.zip
Add way for developers to disable hb sim logging via env variable
There was a request to add a way to disable a new feature that was added to allow hostboot to temporarily elevate and capture simics component logs. When hostboot puts the magic instructions to enable log capture and elevate log levels it causes log spam and adds to IPL time in simics. Simics devs can now set DISABLE_HB_SIMICS_LOGS = 1 and the magic instruction will look for that env var and skip collecting or elevating the logs. Change-Id: Ib31bad3485833f642533dfd52af9cf941a2772d6 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/67882 Reviewed-by: CALEB SCHLOSSIN <calebs@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Ilya Smirnov <ismirno@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: William G. Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/build/debug')
-rw-r--r--src/build/debug/simics-debug-framework.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/build/debug/simics-debug-framework.py b/src/build/debug/simics-debug-framework.py
index eae2952c4..59b3109e1 100644
--- a/src/build/debug/simics-debug-framework.py
+++ b/src/build/debug/simics-debug-framework.py
@@ -584,6 +584,10 @@ def magic_instruction_callback(user_arg, cpu, arg):
dateCommand = "shell \" date +'%s > TRACE REGS: %d %d' \""%(percent_s,first_num,second_num)
SIM_run_alone(run_command, dateCommand )
if arg == 7022: # MAGIC_SET_LOG_LEVEL
+ if( os.environ.has_key('DISABLE_HB_SIMICS_LOGS') ):
+ print("Skipping Hostboot Simics Logging because DISABLE_HB_SIMICS_LOGS")
+ return
+
hb_hrmor = cpu.hrmor
per_node = 0x200000000000 #32TB
per_chip = 0x40000000000 #4TB
@@ -629,8 +633,11 @@ def magic_instruction_callback(user_arg, cpu, arg):
else :
couldNotFindCommand = "shell \" Unable to find valid object on this system type, neither %s nor %s were found \""%(D1Proc0String, P9Proc0String)
SIM_run_alone(run_command, couldNotFindCommand )
-
if arg == 7023: # MAGIC_TOGGLE_OUTPUT
+ if( os.environ.has_key('DISABLE_HB_SIMICS_LOGS') ):
+ print("Skipping Hostboot Simics Logging because DISABLE_HB_SIMICS_LOGS")
+ return
+
enable = cpu.r4
zero = 0;
if enable > zero :
OpenPOWER on IntegriCloud