diff options
author | Maciej Wieczor-Retman <maciej.wieczor-retman@intel.com> | 2024-02-16 09:35:28 +0100 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2024-02-23 15:19:15 -0700 |
commit | 00616416488868a8b98343863e5ac078506e44e8 (patch) | |
tree | 2990c521d9c043631ad618ffe3eddc897e9f182c /tools/perf/scripts/python/stackcollapse.py | |
parent | e331ac141f1df6d151d24e60ff16e93ec075509e (diff) |
selftests/resctrl: Split validate_resctrl_feature_request()
validate_resctrl_feature_request() is used to test both if a resource is
present in the info directory, and if a passed monitoring feature is
present in the mon_features file.
Refactor validate_resctrl_feature_request() into two smaller functions
that each accomplish one check to give feature checking more
granularity:
- Resource directory presence in the /sys/fs/resctrl/info directory.
- Feature name presence in the /sys/fs/resctrl/info/<RESOURCE>/mon_features
file.
Signed-off-by: Maciej Wieczor-Retman <maciej.wieczor-retman@intel.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions