From c03003723f00e8d9200b4a03bf55495c48cb0d77 Mon Sep 17 00:00:00 2001 From: crgeddes Date: Tue, 28 Jun 2016 13:15:54 -0500 Subject: Refactor fapi2 scom interface to use pib_err_mask Up to this point we have been ignoring pib err mask. This commit adds the pib_err_mask support to to platform RTC: 144507 Change-Id: Ie810f0915d6ba8091ea4740e705ba550dbad6eae Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26382 Tested-by: Jenkins Server Reviewed-by: Andrew J. Geissler Tested-by: FSP CI Jenkins Reviewed-by: Michael Baiocchi Reviewed-by: Daniel M. Crowell --- src/usr/errl/errlentry.C | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/usr/errl') diff --git a/src/usr/errl/errlentry.C b/src/usr/errl/errlentry.C index b010cc438..2cc64faf1 100644 --- a/src/usr/errl/errlentry.C +++ b/src/usr/errl/errlentry.C @@ -1657,5 +1657,22 @@ uint64_t ErrlEntry::unflatten( const void * i_buffer, uint64_t i_len ) return rc; } +//@brief Return the list of User Detail sections +//NOTE: You can pass COMP_ID 0 into this function for wildcard +std::vector ErrlEntry::getUDSections(compId_t i_compId) +{ + std::vector copy_vector; + + for(auto const & section : iv_SectionVector) + { + if((section->compId() == i_compId) || (i_compId == 0)) + { + copy_vector.push_back(section); + } + } + + return copy_vector; +} + } // End namespace -- cgit v1.2.1