diff options
author | 2025-01-06 11:33:58 -0800 | |
---|---|---|
committer | 2025-01-25 20:22:28 -0800 | |
commit | a2a60f9e5708f421446eb846217dad7f623c8d33 (patch) | |
tree | 3be33147bf313c7dcfd2ac4ca7c275eab85e7202 /mm/damon/sysfs.c | |
parent | mm/damon/core: pass per-region filter-passed bytes to damos_walk_control->walk_fn() (diff) | |
download | wireguard-linux-a2a60f9e5708f421446eb846217dad7f623c8d33.tar.xz wireguard-linux-a2a60f9e5708f421446eb846217dad7f623c8d33.zip |
mm/damon/sysfs-schemes: expose per-region filter-passed bytes
Per-region operations set-handled DAMOS filters passed memory size
information is provided to only DAMON core API users. Further expose it
to the user space by adding a new DAMON sysfs interface file under each
scheme tried region directory.
Link: https://lkml.kernel.org/r/20250106193401.109161-14-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to '')
-rw-r--r-- | mm/damon/sysfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/damon/sysfs.c b/mm/damon/sysfs.c index 224873ca8aa6..deeab04d3b46 100644 --- a/mm/damon/sysfs.c +++ b/mm/damon/sysfs.c @@ -1461,7 +1461,8 @@ static void damon_sysfs_schemes_tried_regions_upd_one(void *data, struct damon_c damos_sysfs_populate_region_dir( sysfs_kdamond->contexts->contexts_arr[0]->schemes, - ctx, t, r, s, walk_data->total_bytes_only); + ctx, t, r, s, walk_data->total_bytes_only, + sz_filter_passed); } static int damon_sysfs_update_schemes_tried_regions( |