mirror of
https://github.com/torvalds/linux.git
synced 2026-09-12 20:53:03 +02:00
mm/damon/sysfs-schemes: set probe hits as pseudo moving sums
DAMON sysfs interface exposes damon_region->probe_hits via probe hit files. Because the counters are completed only at the end of the aggregation interval, users can show incomplete values if they requested the file content update (update_schemes_tried_regions command) in the middle of an aggregation interval. Set the value as the pseudo moving sum value of the counter, similar to that for nr_accesses. Link: https://lore.kernel.org/20260703170605.94472-4-sj@kernel.org Signed-off-by: SJ Park <sj@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
2ec26dd341
commit
a9298dd669
|
|
@ -110,7 +110,8 @@ static int damos_sysfs_probes_add_dirs(struct damos_sysfs_probes *probes,
|
|||
struct damos_sysfs_probe *sys_probe;
|
||||
int err;
|
||||
|
||||
sys_probe = damos_sysfs_probe_alloc(region->probe_hits[i]);
|
||||
sys_probe = damos_sysfs_probe_alloc(
|
||||
damon_probe_hits_mvsum(i, region, ctx));
|
||||
if (!sys_probe) {
|
||||
damos_sysfs_probes_rm_dirs(probes);
|
||||
return -ENOMEM;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user