summaryrefslogtreecommitdiffstats
path: root/src/usr/errl
diff options
context:
space:
mode:
authorcrgeddes <crgeddes@us.ibm.com>2016-06-28 13:15:54 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-07-28 10:33:08 -0400
commitc03003723f00e8d9200b4a03bf55495c48cb0d77 (patch)
tree05b0e0b6f4f1ad00a7e3dd401e4e0c8bce0cbc18 /src/usr/errl
parent1cf86502a50785bed28c15f47d24f452e83b0892 (diff)
downloadtalos-hostboot-c03003723f00e8d9200b4a03bf55495c48cb0d77.tar.gz
talos-hostboot-c03003723f00e8d9200b4a03bf55495c48cb0d77.zip
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 <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/errl')
-rw-r--r--src/usr/errl/errlentry.C17
1 files changed, 17 insertions, 0 deletions
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<ErrlUD*> ErrlEntry::getUDSections(compId_t i_compId)
+{
+ std::vector<ErrlUD*> 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
OpenPOWER on IntegriCloud