diff options
| author | Stephen Cprek <smcprek@us.ibm.com> | 2017-11-27 11:44:14 -0600 |
|---|---|---|
| committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2017-12-05 15:16:08 -0500 |
| commit | 5b5972e5580c20b3dc34bf529f7ddc1a2d872a52 (patch) | |
| tree | 702ebd5824df5bf8246f6baca7e34e1370e858ef /src/usr/secureboot/trusted/base | |
| parent | ca52131dad3de16f44b9c9f07b5413edf1e9742a (diff) | |
| download | talos-hostboot-5b5972e5580c20b3dc34bf529f7ddc1a2d872a52.tar.gz talos-hostboot-5b5972e5580c20b3dc34bf529f7ddc1a2d872a52.zip | |
Create a Trusted boot trace component and collect trace on errors
Error log trace never included "TRBOOT" trace
Change-Id: I0ff99d3d3cc78a7a25c576059d69d1644a2c802d
RTC: 181899
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/50077
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com>
Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/secureboot/trusted/base')
| -rw-r--r-- | src/usr/secureboot/trusted/base/trustedbootMsg.C | 7 | ||||
| -rw-r--r-- | src/usr/secureboot/trusted/base/trustedboot_base.C | 6 |
2 files changed, 9 insertions, 4 deletions
diff --git a/src/usr/secureboot/trusted/base/trustedbootMsg.C b/src/usr/secureboot/trusted/base/trustedbootMsg.C index 9b5b2b847..ce9d8f9b6 100644 --- a/src/usr/secureboot/trusted/base/trustedbootMsg.C +++ b/src/usr/secureboot/trusted/base/trustedbootMsg.C @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2016 */ +/* Contributors Listed Below - COPYRIGHT 2016,2017 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -82,9 +82,10 @@ namespace TRUSTEDBOOT 0, true); err->collectTrace(SECURE_COMP_NAME); + err->collectTrace(TRBOOT_COMP_NAME); // Log this failure here since we can't reply to caller - errlCommit(err, SECURE_COMP_ID); + errlCommit(err, TRBOOT_COMP_ID); } } @@ -102,7 +103,7 @@ namespace TRUSTEDBOOT TRACFCOMP(g_trac_trustedboot, ERR_MRK "AsyncMessage::respond with error log"); // Since we can't pass back to the caller we will commit the log - errlCommit(iv_errl, SECURE_COMP_ID); + errlCommit(iv_errl, TRBOOT_COMP_ID); delete iv_errl; iv_errl = NULL; diff --git a/src/usr/secureboot/trusted/base/trustedboot_base.C b/src/usr/secureboot/trusted/base/trustedboot_base.C index b94484bb8..2ec67ef81 100644 --- a/src/usr/secureboot/trusted/base/trustedboot_base.C +++ b/src/usr/secureboot/trusted/base/trustedboot_base.C @@ -57,7 +57,7 @@ // ---------------------------------------------- trace_desc_t* g_trac_trustedboot = nullptr; -TRAC_INIT( & g_trac_trustedboot, "TRBOOT", KILOBYTE ); +TRAC_INIT( & g_trac_trustedboot, TRBOOT_COMP_NAME, KILOBYTE ); namespace TRUSTEDBOOT { @@ -156,6 +156,7 @@ errlHndl_t pcrExtendSeparator(bool i_sendAsync) 0, true); err->collectTrace(SECURE_COMP_NAME); + err->collectTrace(TRBOOT_COMP_NAME); } delete msg; msg = NULL; @@ -180,6 +181,7 @@ errlHndl_t pcrExtendSeparator(bool i_sendAsync) 0, true); err->collectTrace(SECURE_COMP_NAME); + err->collectTrace(TRBOOT_COMP_NAME); } } @@ -264,6 +266,7 @@ errlHndl_t pcrExtend(TPM_Pcr i_pcr, 0, true); err->collectTrace(SECURE_COMP_NAME); + err->collectTrace(TRBOOT_COMP_NAME); } delete msg; msg = NULL; @@ -288,6 +291,7 @@ errlHndl_t pcrExtend(TPM_Pcr i_pcr, 0, true); err->collectTrace(SECURE_COMP_NAME); + err->collectTrace(TRBOOT_COMP_NAME); } } |

