Skip to content

Commit

Permalink
Create CONFIG_NO_FAPI_TRACE to ignore all FAPI traces
Browse files Browse the repository at this point in the history
The new CONFIG_NO_FAPI_TRACE skips writing all "FAPI" traces to
both the console and trace memory buffers. It defaults to "n", as
in FAPI traces WILL be processed.

Change-Id: Ic5ea7a8c0be54952fd18a34a3f30f15227d93988
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/93473
Reviewed-by: Ilya Smirnov <ismirno@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: Dean Sanner <dsanner@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: Christian R Geddes <crgeddes@us.ibm.com>
Reviewed-by: William G Hoffa <wghoffa@us.ibm.com>
  • Loading branch information
mabaiocchi authored and wghoffa committed Mar 19, 2020
1 parent a91c553 commit a8368a4
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/usr/trace/HBconfig
Expand Up @@ -23,3 +23,8 @@ config NO_FAPI_IN_TRACE_LITE_OUTPUT
default y
help
Do not output FAPI traces when CONSOLE_TRACE_LITE is enabled.

config NO_FAPI_TRACE
default n
help
FAPI traces are not written to console or trace buffers.
18 changes: 17 additions & 1 deletion src/usr/trace/service.C
Expand Up @@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
/* Contributors Listed Below - COPYRIGHT 2012,2019 */
/* Contributors Listed Below - COPYRIGHT 2012,2020 */
/* [+] Google Inc. */
/* [+] International Business Machines Corp. */
/* */
Expand Down Expand Up @@ -104,6 +104,14 @@ namespace TRACE
}
}

#ifdef CONFIG_NO_FAPI_TRACE
// Skip FAPI trace
if (!strcmp( i_td->iv_compName, "FAPI" ))
{
return;
}
#endif

#ifdef CONFIG_CONSOLE_OUTPUT_TRACE
{
va_list args;
Expand Down Expand Up @@ -377,6 +385,14 @@ namespace TRACE
}
}

#ifdef CONFIG_NO_FAPI_TRACE
// Skip FAPI trace
if (!strcmp( i_td->iv_compName, "FAPI" ))
{
return;
}
#endif

#ifdef CONFIG_CONSOLE_OUTPUT_TRACE
{
// Output binary data.
Expand Down

0 comments on commit a8368a4

Please sign in to comment.