From ad181494c943f15cf2d744e57b59ea5b7c166646 Mon Sep 17 00:00:00 2001 From: Dan Crowell Date: Mon, 16 Apr 2018 10:33:14 -0500 Subject: Force hb dump on VFS crashes Added flag to force a HB dump for most VFS crashes. Also added a few constants in the ErrlEntry constructor to make the bool args more obvious. Change-Id: I4f90ee694cece10f567df787f851dca78a895ad7 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/57272 Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Tested-by: FSP CI Jenkins Reviewed-by: Martin Gloff Reviewed-by: Christian R. Geddes Reviewed-by: Daniel M. Crowell --- src/include/usr/errl/errlentry.H | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/include/usr/errl') diff --git a/src/include/usr/errl/errlentry.H b/src/include/usr/errl/errlentry.H index dede1c21b..4a3c8a634 100644 --- a/src/include/usr/errl/errlentry.H +++ b/src/include/usr/errl/errlentry.H @@ -98,6 +98,12 @@ class ErrlEntry friend class ErrlTest; public: + /** Constants to use in constructor */ + static constexpr bool ADD_SW_CALLOUT = true; + static constexpr bool NO_SW_CALLOUT = false; + static constexpr bool FORCE_DUMP = true; + static constexpr bool NO_FORCE_DUMP = false; + /** * @brief ErrlEntry constructor. Builds an error log with info * constructed from the input. @@ -137,8 +143,8 @@ public: const uint16_t i_reasonCode, const uint64_t i_user1 = 0, const uint64_t i_user2 = 0, - const bool i_hbSwError = false, - const bool i_hbDump = false ); + const bool i_hbSwError = ErrlEntry::NO_SW_CALLOUT, + const bool i_hbDump = ErrlEntry::NO_FORCE_DUMP ); /** * @brief Destructor -- cgit v1.2.3