summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorSJ Park <sj@kernel.org>2026-07-03 10:06:02 -0700
committerAndrew Morton <akpm@linux-foundation.org>2026-07-30 19:40:39 -0700
commit2ec26dd341d123be8a5577207f25dbecf164e220 (patch)
tree791ab3552658c1005cd3677727f5034fd81e7e94 /include/linux
parentaa497a270f68bec8fa0d83b70608cddb0c7275ff (diff)
mm/damon/core: introduce damon_probe_hits_mvsum()
Implement a function for getting a reasonable best effort quality pseudo moving sums of probe_hits on demands. It reuses the internal function for the pseudo moving sum for data access frequency (nr_accesses). Link: https://lore.kernel.org/20260703170605.94472-3-sj@kernel.org Signed-off-by: SJ Park <sj@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/damon.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/damon.h b/include/linux/damon.h
index 4f7e305b261c..616bdf0954b5 100644
--- a/include/linux/damon.h
+++ b/include/linux/damon.h
@@ -1003,6 +1003,8 @@ void damon_add_probe(struct damon_ctx *ctx, struct damon_probe *probe);
struct damon_region *damon_new_region(unsigned long start, unsigned long end);
unsigned int damon_nr_accesses_mvsum(struct damon_region *r,
struct damon_ctx *ctx);
+unsigned char damon_probe_hits_mvsum(int probe_idx, struct damon_region *r,
+ struct damon_ctx *ctx);
int damon_set_regions(struct damon_target *t, struct damon_addr_range *ranges,
unsigned int nr_ranges, unsigned long min_region_sz);