diff options
| author | Nick Bofferding <bofferdn@us.ibm.com> | 2016-03-14 11:27:49 -0500 |
|---|---|---|
| committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2016-03-23 11:31:45 -0400 |
| commit | 16ff4c0894f726ea97362536af36a413b1f255cd (patch) | |
| tree | 78e5c57d3fe5307917dca729d444437db8ead3b3 /src/include/usr/targeting | |
| parent | efb976fc64fc447d93015d3bb950431f341b6c19 (diff) | |
| download | talos-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/include/usr/targeting')
| -rw-r--r-- | src/include/usr/targeting/common/utilFilter.H | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/include/usr/targeting/common/utilFilter.H b/src/include/usr/targeting/common/utilFilter.H index 9c501f418..4771edace 100644 --- a/src/include/usr/targeting/common/utilFilter.H +++ b/src/include/usr/targeting/common/utilFilter.H @@ -183,6 +183,26 @@ void getChildAffinityTargetsByState ( TARGETING::TargetHandleList& o_vector, ResourceState i_state ); /** + * @brief Given an input target, finds all the targets linked to it via a + * PERVASIVE_CHILD relationship and writes them to the output vector. + * The class, type, and resource state further filter the set of results. + * + * @parm[out] o_vector, reference to vector of target pointers + * @parm[in] i_target, source target to search from + * @parm[in] i_class, class of the targets to be obtained + * @parm[in] i_type, type of the targets to be obtained + * @parm[in] i_state, specifies state the target should be in + * + * @return N/A + */ +void getPervasiveChildTargetsByState ( + TARGETING::TargetHandleList& o_vector, + const Target* i_target, + CLASS i_class, + TYPE i_type, + ResourceState i_state ); + +/** * @brief Populate the o_vector with target object pointers which are * affinity children of the input target * @@ -221,6 +241,25 @@ void getChildAffinityTargets ( TARGETING::TargetHandleList& o_vector, void getParentAffinityTargetsByState ( TARGETING::TargetHandleList& o_vector, const Target * i_target, CLASS i_class, TYPE i_type, ResourceState i_state ); +/** + * @brief Given an input target, finds all the targets linked to it via a + * PARENT_PERVASIVE relationship and writes them to the output vector. + * The class, type, and resource state further filter the set of results. + * + * @parm[out] o_vector, reference to vector of target pointers + * @parm[in] i_target, source target to search from + * @parm[in] i_class, class of the targets to be obtained + * @parm[in] i_type, type of the targets to be obtained + * @parm[in] i_state, specifies state the target should be in + * + * @return N/A + */ +void getParentPervasiveTargetsByState ( + TARGETING::TargetHandleList& o_vector, + const Target* i_target, + CLASS i_class, + TYPE i_type, + ResourceState i_state); /** * @brief Populate the o_vector with target object pointers which are |

