From 735531f69b8db22ec2acc8b0aa1b73106a892f77 Mon Sep 17 00:00:00 2001 From: Marty Gloff Date: Fri, 7 Jul 2017 16:52:37 -0500 Subject: Log build level for SBE and HCODE customization Extract build information from the XIP header for the SBE and HCODE images. Trace the information. Also use it as FFDC for related error logs. Save the SBE build information in the SB keyword of MVPD. Change-Id: I600a71ae6cbf342643261da14f6b3b2e6bf3cbf1 RTC: 168827 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/42951 Reviewed-by: Matt Derksen Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Tested-by: FSP CI Jenkins Tested-by: Jenkins OP HW Reviewed-by: Christian R. Geddes Reviewed-by: Daniel M. Crowell --- src/usr/isteps/pm/pm_common.C | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'src/usr/isteps/pm') diff --git a/src/usr/isteps/pm/pm_common.C b/src/usr/isteps/pm/pm_common.C index 15a91c5a1..c7170fbd1 100644 --- a/src/usr/isteps/pm/pm_common.C +++ b/src/usr/isteps/pm/pm_common.C @@ -29,10 +29,14 @@ #include #include +#include #include #include -#include +#include + +#include + // targeting support #include #include @@ -61,6 +65,8 @@ #include #include +#include + #include #include @@ -297,6 +303,12 @@ namespace HBPM l_pImageIn, l_lidId); + // Pull build information from XIP header and trace it + Util::imageBuild_t l_imageBuild; + Util::pullTraceBuildInfo(l_pImageIn, + l_imageBuild, + ISTEPS_TRACE::g_trac_isteps_trace); + ImageType_t l_imgType; // Check if we have a valid ring override section and @@ -332,6 +344,12 @@ namespace HBPM { TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace, ERR_MRK"loadHcode: p9_hcode_image_build failed!" ); + l_errl->addFFDC( ISTEP_COMP_ID, + reinterpret_cast(&l_imageBuild), + sizeof(Util::imageBuild_t), + 0, // Version + ERRORLOG::ERRL_UDT_NOFORMAT, // parser ignores + false ); // merge l_errl->collectTrace("ISTEPS_TRACE",256); break; -- cgit v1.2.1