]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/damon/core: implement per-scheme ops-handled filter-passed bytes stat
authorSeongJae Park <sj@kernel.org>
Mon, 6 Jan 2025 19:33:52 +0000 (11:33 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 26 Jan 2025 04:22:27 +0000 (20:22 -0800)
commit60fa9355a6c620f7b727d3fdb433fb6cf714a9b0
tree24d458f70255f4db05ace63244459a965a42d981
parentc0cb9d91bf297fdcd3bd3126d793a22e720e1990
mm/damon/core: implement per-scheme ops-handled filter-passed bytes stat

Implement a new per-DAMOS scheme statistic field, namely
sz_ops_filter_passed, using the changed damon_operations->apply_scheme()
interface.  It counts total bytes of memory that given DAMOS action tried
to be applied, and passed the operations layer handled region-internal
filters of the scheme.  DAMON API users can access it using DAMON-internal
safe access features such as damon_call() and/or damos_walk().

Link: https://lkml.kernel.org/r/20250106193401.109161-8-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>
include/linux/damon.h
mm/damon/core.c