diff options
author | Mike Jones <mjjones@us.ibm.com> | 2012-01-18 12:52:54 -0600 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2012-01-21 08:59:55 -0600 |
commit | 3f916bbc415d43620a4b62b6ea22e75fd3785072 (patch) | |
tree | d5d4a9efa824616a02069137f11f91ce98af2411 | |
parent | e34527e8f72bfde8dce055399ebe6a1a3b18f5f0 (diff) | |
download | talos-hostboot-3f916bbc415d43620a4b62b6ea22e75fd3785072.tar.gz talos-hostboot-3f916bbc415d43620a4b62b6ea22e75fd3785072.zip |
HWPF: Reduce number of Hostboot FAPI trace buffers from 4 to 2
Change-Id: Ie4429dfd9ed16f0676886641996de925bbd69764
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/619
Tested-by: Jenkins Server
Reviewed-by: Monte K. Copeland <copelanm@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
-rw-r--r-- | src/include/usr/hwpf/plat/fapiPlatTrace.H | 22 | ||||
-rw-r--r-- | src/usr/hwpf/plat/fapiPlatUtil.C | 8 |
2 files changed, 11 insertions, 19 deletions
diff --git a/src/include/usr/hwpf/plat/fapiPlatTrace.H b/src/include/usr/hwpf/plat/fapiPlatTrace.H index 3b5ec2bb9..c24faafb2 100644 --- a/src/include/usr/hwpf/plat/fapiPlatTrace.H +++ b/src/include/usr/hwpf/plat/fapiPlatTrace.H @@ -40,32 +40,28 @@ //****************************************************************************** // Trace buffer names //****************************************************************************** -const char * const FAPI_INF_TRACE_NAME = "FAPI_T"; +const char * const FAPI_TRACE_NAME = "FAPI"; const char * const FAPI_IMP_TRACE_NAME = "FAPI_I"; -const char * const FAPI_ERR_TRACE_NAME = "FAPI_E"; -const char * const FAPI_DBG_TRACE_NAME = "FAPI_D"; const char * const FAPI_SCAN_TRACE_NAME = "SCAN"; //****************************************************************************** // Trace descriptors that are defined in a C file //****************************************************************************** -extern trace_desc_t* g_fapiInfTd; +extern trace_desc_t* g_fapiTd; extern trace_desc_t* g_fapiImpTd; -extern trace_desc_t* g_fapiErrTd; -extern trace_desc_t* g_fapiDbgTd; extern trace_desc_t* g_fapiScanTd; -// Information traces (standard flight recorder that can wrap often) -#define FAPI_INF(_fmt_, _args_...) TRACFCOMP(g_fapiInfTd, _fmt_, ##_args_ ) +// Information traces (go into fast trace buffer that can wrap often) +#define FAPI_INF(_fmt_, _args_...) TRACFCOMP(g_fapiTd, _fmt_, ##_args_ ) -// Important traces (should not wrap often) +// Important traces (go into slow trace buffer that should not wrap often) #define FAPI_IMP(_fmt_, _args_...) TRACFCOMP(g_fapiImpTd, _fmt_, ##_args_ ) -// Error traces (should not wrap often) -#define FAPI_ERR(_fmt_, _args_...) TRACFCOMP(g_fapiErrTd, _fmt_, ##_args_ ) +// Error traces (go into slow trace buffer that should not wrap often) +#define FAPI_ERR(_fmt_, _args_...) TRACFCOMP(g_fapiImpTd, _fmt_, ##_args_ ) -// Debug traces (can wrap often) -#define FAPI_DBG(_fmt_, _args_...) TRACDCOMP(g_fapiDbgTd, _fmt_, ##_args_) +// Debug traces (go into fast trace buffer that can wrap often) +#define FAPI_DBG(_fmt_, _args_...) TRACDCOMP(g_fapiTd, _fmt_, ##_args_) // Scan traces #define FAPI_SCAN(_fmt_, _args_...) TRACFCOMP(g_fapiScanTd, _fmt_, ##_args_) diff --git a/src/usr/hwpf/plat/fapiPlatUtil.C b/src/usr/hwpf/plat/fapiPlatUtil.C index 9094a94f6..829eb757d 100644 --- a/src/usr/hwpf/plat/fapiPlatUtil.C +++ b/src/usr/hwpf/plat/fapiPlatUtil.C @@ -40,19 +40,15 @@ //****************************************************************************** // Trace descriptors //****************************************************************************** -trace_desc_t* g_fapiInfTd; +trace_desc_t* g_fapiTd; trace_desc_t* g_fapiImpTd; -trace_desc_t* g_fapiErrTd; -trace_desc_t* g_fapiDbgTd; trace_desc_t* g_fapiScanTd; //****************************************************************************** // Global TracInit objects. Construction will initialize the trace buffer //****************************************************************************** -TRAC_INIT(&g_fapiInfTd, FAPI_INF_TRACE_NAME, 4096); +TRAC_INIT(&g_fapiTd, FAPI_TRACE_NAME, 4096); TRAC_INIT(&g_fapiImpTd, FAPI_IMP_TRACE_NAME, 4096); -TRAC_INIT(&g_fapiErrTd, FAPI_ERR_TRACE_NAME, 4096); -TRAC_INIT(&g_fapiDbgTd, FAPI_DBG_TRACE_NAME, 4096); TRAC_INIT(&g_fapiScanTd, FAPI_SCAN_TRACE_NAME, 4096); extern "C" |