summaryrefslogtreecommitdiffstats
path: root/src/usr/targeting/common/utilFilter.C
diff options
context:
space:
mode:
authorNick Bofferding <bofferdn@us.ibm.com>2016-03-14 11:27:49 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-03-23 11:31:45 -0400
commit16ff4c0894f726ea97362536af36a413b1f255cd (patch)
tree78e5c57d3fe5307917dca729d444437db8ead3b3 /src/usr/targeting/common/utilFilter.C
parentefb976fc64fc447d93015d3bb950431f341b6c19 (diff)
downloadtalos-hostboot-16ff4c0894f726ea97362536af36a413b1f255cd.tar.gz
talos-hostboot-16ff4c0894f726ea97362536af36a413b1f255cd.zip
Support getChildren and getParent FAPI2 tests
- Added FAPI reason codes to support tests - Added special handlers to getParent/getChildren for pervasive associations - Added new APIs to filtering utilities to walk pervasive associations - Updated getParent/getChildren tests to fully exercise pervasive associations RTC: 148577 Change-Id: I0d8ec427e6c2092852a32c7da605d1c47c554b50 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/22084 Tested-by: Jenkins Server Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Tested-by: FSP CI Jenkins Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/targeting/common/utilFilter.C')
-rw-r--r--src/usr/targeting/common/utilFilter.C22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/usr/targeting/common/utilFilter.C b/src/usr/targeting/common/utilFilter.C
index aeca62ad3..a58a7e585 100644
--- a/src/usr/targeting/common/utilFilter.C
+++ b/src/usr/targeting/common/utilFilter.C
@@ -388,6 +388,17 @@ void getChildAffinityTargetsByState(
TargetService::CHILD_BY_AFFINITY);
}
+void getPervasiveChildTargetsByState(
+ TARGETING::TargetHandleList& o_vector,
+ const Target* i_target,
+ CLASS i_class,
+ TYPE i_type,
+ ResourceState i_state )
+
+{
+ getAffinityTargets(o_vector, i_target, i_class, i_type, i_state,
+ TargetService::PERVASIVE_CHILD);
+}
void getParentAffinityTargetsByState(
TARGETING::TargetHandleList& o_vector,
@@ -401,6 +412,17 @@ void getParentAffinityTargetsByState(
TargetService::PARENT_BY_AFFINITY);
}
+void getParentPervasiveTargetsByState(
+ TARGETING::TargetHandleList& o_vector,
+ const Target* i_target,
+ CLASS i_class,
+ TYPE i_type,
+ ResourceState i_state )
+{
+ getAffinityTargets(o_vector, i_target, i_class, i_type, i_state,
+ TargetService::PARENT_PERVASIVE);
+}
+
const Target * getParentChip( const Target * i_pChiplet )
{
OpenPOWER on IntegriCloud