diff options
author | Maciej Wieczor-Retman <maciej.wieczor-retman@intel.com> | 2024-02-16 11:35:28 +0300 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2024-02-24 01:19:15 +0300 |
commit | 00616416488868a8b98343863e5ac078506e44e8 (patch) | |
tree | 2990c521d9c043631ad618ffe3eddc897e9f182c /scripts/generate_rust_analyzer.py | |
parent | e331ac141f1df6d151d24e60ff16e93ec075509e (diff) | |
download | linux-00616416488868a8b98343863e5ac078506e44e8.tar.xz |
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 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions