From 16ff4c0894f726ea97362536af36a413b1f255cd Mon Sep 17 00:00:00 2001 From: Nick Bofferding Date: Mon, 14 Mar 2016 11:27:49 -0500 Subject: 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 Tested-by: FSP CI Jenkins Reviewed-by: Christian R. Geddes Reviewed-by: Daniel M. Crowell --- src/usr/targeting/common/utilFilter.C | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'src/usr/targeting/common/utilFilter.C') 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 ) { -- cgit v1.2.1