diff options
author | SeongJae Park <sj38.park@gmail.com> | 2024-03-09 12:35:40 -0800 |
---|---|---|
committer | SeongJae Park <sj38.park@gmail.com> | 2024-03-09 12:36:21 -0800 |
commit | c79c993a235000b4bef074520d12324ac569e5f2 (patch) | |
tree | 3bc329a3a56cf2dd73c10e01815b883a9864b4a5 | |
parent | ddffacb2807ae4de23f18f5a43912780f061a46b (diff) | |
download | damo-c79c993a235000b4bef074520d12324ac569e5f2.tar.gz |
_damon_sysfs: Support schemes_filters_young feature check
Signed-off-by: SeongJae Park <sj38.park@gmail.com>
-rw-r--r-- | _damon_sysfs.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/_damon_sysfs.py b/_damon_sysfs.py index 4352dde7..63825e14 100644 --- a/_damon_sysfs.py +++ b/_damon_sysfs.py @@ -823,6 +823,11 @@ def update_supported_features(): # anon and memcg were supported from the beginning feature_supports['schemes_filters_anon'] = True feature_supports['schemes_filters_memcg'] = True + kdamonds_for_feature_check[0].contexts[0].schemes[0].filters = [ + _damon.DamosFilter('young', True)] + err = stage_kdamonds(kdamonds_for_feature_check) + if err is None: + feature_supports['schemes_filters_young'] = True if os.path.isfile(os.path.join(scheme_dir_of(0, 0, 0), 'apply_interval_us')): feature_supports['schemes_apply_interval'] = True |