diff options
author | Mike Jones <mjjones@us.ibm.com> | 2012-09-24 20:38:58 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2012-10-04 16:51:04 -0500 |
commit | 9c88d3c004d60d016c4d3bf5a3c2988cce7121c9 (patch) | |
tree | 28eb4e6671d865a4c6897ab34ad1fee231a98202 /src/usr/hwpf/hwp/fapiTestHwpFfdc.C | |
parent | d05fe5a6cb9d9dfa92954db9923603fdb6c8adca (diff) | |
download | talos-hostboot-9c88d3c004d60d016c4d3bf5a3c2988cce7121c9.tar.gz talos-hostboot-9c88d3c004d60d016c4d3bf5a3c2988cce7121c9.zip |
HWPF: Allow automatic collection of register FFDC data when HWP error created
If HWP Error XML contains an element called <collectRegisterFfdc> which
identifies the registers to collect as FFDC then when the error is
created, those registers are automatically collected and stored in the
error log. Also create Hostboot parsers to parse the data.
Change-Id: I521527b97e0db0c808db81773ba0fe9aa00477ad
RTC: 46029
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1866
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/hwpf/hwp/fapiTestHwpFfdc.C')
-rw-r--r-- | src/usr/hwpf/hwp/fapiTestHwpFfdc.C | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/usr/hwpf/hwp/fapiTestHwpFfdc.C b/src/usr/hwpf/hwp/fapiTestHwpFfdc.C index f1f042966..f001ce28d 100644 --- a/src/usr/hwpf/hwp/fapiTestHwpFfdc.C +++ b/src/usr/hwpf/hwp/fapiTestHwpFfdc.C @@ -54,7 +54,9 @@ fapi::ReturnCode hwpTestFfdc1(const fapi::Target & i_target, // Collect a uint64_t worth of FFDC uint64_t l_ffdc = 0x1122334455667788ULL; - fapi::ReturnCodeFfdc::addEIFfdc(o_rc, l_ffdc); + // Add FFDC specified by RC_TEST_ERROR_B + uint64_t & UNIT_TEST_FFDC_DATA = l_ffdc; + FAPI_ADD_INFO_TO_HWP_ERROR(o_rc, RC_TEST_ERROR_B); FAPI_INF("hwpTestFfdc1: End HWP"); return fapi::FAPI_RC_SUCCESS; |