From 11c8a7dc6e0ec3c31f081d1e30a04a6e7038f918 Mon Sep 17 00:00:00 2001 From: Brian Horton Date: Tue, 26 Jun 2012 16:30:33 -0500 Subject: ERRL: Hardware Callouts Support for HW and Procedure Callouts, including GARD and deconfigure information. . Add errl functions to get the information; . Add errlog userdetail code to package callout data; . Add to errlog commit function to find callout user-detail sections and call a HWAS:common function to process the callout. . Remove gardLevel from Targeting hwasState field Change-Id: I01c7c3721e6fd843a0ba2ad4df8399f6db68b590 RTC: 41276 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1266 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell Reviewed-by: A. Patrick Williams III --- src/usr/hwas/test/hwasGardTest.H | 67 ++++++++++++++++++++-------------------- 1 file changed, 34 insertions(+), 33 deletions(-) (limited to 'src/usr/hwas/test/hwasGardTest.H') diff --git a/src/usr/hwas/test/hwasGardTest.H b/src/usr/hwas/test/hwasGardTest.H index 9338678e9..f1d10c032 100644 --- a/src/usr/hwas/test/hwasGardTest.H +++ b/src/usr/hwas/test/hwasGardTest.H @@ -1,25 +1,26 @@ -// IBM_PROLOG_BEGIN_TAG -// This is an automatically generated prolog. -// -// $Source: src/usr/hwas/test/hwasGardTest.H $ -// -// IBM CONFIDENTIAL -// -// COPYRIGHT International Business Machines Corp. 2011 -// -// p1 -// -// Object Code Only (OCO) source materials -// Licensed Internal Code Source Materials -// IBM HostBoot Licensed Internal Code -// -// The source code for this program is not published or other- -// wise divested of its trade secrets, irrespective of what has -// been deposited with the U.S. Copyright Office. -// -// Origin: 30 -// -// IBM_PROLOG_END +/* IBM_PROLOG_BEGIN_TAG + * This is an automatically generated prolog. + * + * $Source: src/usr/hwas/test/hwasGardTest.H $ + * + * IBM CONFIDENTIAL + * + * COPYRIGHT International Business Machines Corp. 2011-2012 + * + * p1 + * + * Object Code Only (OCO) source materials + * Licensed Internal Code Source Materials + * IBM HostBoot Licensed Internal Code + * + * The source code for this program is not published or other- + * wise divested of its trade secrets, irrespective of what has + * been deposited with the U.S. Copyright Office. + * + * Origin: 30 + * + * IBM_PROLOG_END_TAG + */ #ifndef _HWASGARDTEST_H #define _HWASGARDTEST_H @@ -445,7 +446,7 @@ public: // valid PLID l_pErr = HWAS::theDeconfigGard(). createGardRecord(*l_pTarget, 0, - HWAS::DeconfigGard::GARD_SEVERITY_PREDICTIVE); + HWAS::GARD_Predictive); if (l_pErr) { @@ -469,11 +470,11 @@ public: break; } - if (l_records[0].iv_severity != - HWAS::DeconfigGard::GARD_SEVERITY_PREDICTIVE) + if (l_records[0].iv_errorType != + HWAS::GARD_Predictive) { - TS_FAIL("testGard4: Record severity %d, expected predictive", - l_records[0].iv_severity); + TS_FAIL("testGard4: Record errorType %d, expected predictive", + l_records[0].iv_errorType); break; } @@ -552,7 +553,7 @@ public: // valid PLID l_pErr = HWAS::theDeconfigGard(). createGardRecord(*l_pTarget, 0, - HWAS::DeconfigGard::GARD_SEVERITY_PREDICTIVE); + HWAS::GARD_Predictive); if (l_pErr) { @@ -563,7 +564,7 @@ public: // Create another GARD Record for the chip l_pErr = HWAS::theDeconfigGard(). createGardRecord(*l_pTarget, 0, - HWAS::DeconfigGard::GARD_SEVERITY_FATAL); + HWAS::GARD_Fatal); if (l_pErr) { @@ -662,7 +663,7 @@ public: // valid PLID l_pErr = HWAS::theDeconfigGard(). createGardRecord(*l_pTarget, 0, - HWAS::DeconfigGard::GARD_SEVERITY_PREDICTIVE); + HWAS::GARD_Predictive); if (l_pErr) { @@ -673,7 +674,7 @@ public: // Create another GARD Record for the chip l_pErr = HWAS::theDeconfigGard(). createGardRecord(*l_pTarget, 0, - HWAS::DeconfigGard::GARD_SEVERITY_FATAL); + HWAS::GARD_Fatal); if (l_pErr) { @@ -801,7 +802,7 @@ public: // valid PLID l_pErr = HWAS::theDeconfigGard(). createGardRecord(*l_pTarget, 0, - HWAS::DeconfigGard::GARD_SEVERITY_PREDICTIVE); + HWAS::GARD_Predictive); if (l_pErr) { @@ -812,7 +813,7 @@ public: // Create another GARD Record for the chip l_pErr = HWAS::theDeconfigGard(). createGardRecord(*l_pTarget, 0, - HWAS::DeconfigGard::GARD_SEVERITY_FATAL); + HWAS::GARD_Fatal); if (l_pErr) { -- cgit v1.2.1