diff options
author | Dan Crowell <dcrowell@us.ibm.com> | 2018-08-20 16:35:49 -0500 |
---|---|---|
committer | William G. Hoffa <wghoffa@us.ibm.com> | 2018-10-02 08:57:58 -0500 |
commit | 46b6d71b01b4936cfdf1e3236cde199a3940a231 (patch) | |
tree | f413bdd97c15a311b154a971a7338ef3d0772f25 /src/usr/secureboot/runtime | |
parent | 01fcdb647ea0a6c899b9de21ed144f16dc2f2afb (diff) | |
download | talos-hostboot-46b6d71b01b4936cfdf1e3236cde199a3940a231.tar.gz talos-hostboot-46b6d71b01b4936cfdf1e3236cde199a3940a231.zip |
Add consistent enter-exit traces for all runtime interfaces
Created a new 'HBRT' trace buffer that is exclusively used to
bound the external calls into our runtime image.
Modified the return code values to be the reasoncode of the error
log we commit instead of a generic '-1' value that is not
very helpful.
Change-Id: Id41288ea1903bf6d11e967fcb10a8184153943c8
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/64871
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: Brian J. Stegmiller <bjs@us.ibm.com>
Reviewed-by: Matt Derksen <mderkse1@us.ibm.com>
Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/usr/secureboot/runtime')
-rw-r--r-- | src/usr/secureboot/runtime/rt_secureboot.C | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/usr/secureboot/runtime/rt_secureboot.C b/src/usr/secureboot/runtime/rt_secureboot.C index 0c24c3875..7c297be9e 100644 --- a/src/usr/secureboot/runtime/rt_secureboot.C +++ b/src/usr/secureboot/runtime/rt_secureboot.C @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2016,2017 */ +/* Contributors Listed Below - COPYRIGHT 2016,2018 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -41,6 +41,8 @@ #include <targeting/common/targetservice.H> #include <devicefw/userif.H> +extern trace_desc_t* g_trac_hbrt; + namespace SECUREBOOT { using namespace TARGETING; @@ -122,6 +124,7 @@ int verify_container( { int rc = 0; + TRACFCOMP(g_trac_hbrt, ENTER_MRK" verify_container" ); SB_ENTER( "verify_container: " "container ptr = %p, " @@ -134,6 +137,7 @@ int verify_container( SB_EXIT( "verify_container: rc = %d",rc); + TRACFCOMP(g_trac_hbrt, EXIT_MRK" verify_container: rc=0x%X", rc ); return rc; } |