]> git.baikalelectronics.ru Git - kernel.git/commit
mm/damon: introduce struct damos_access_pattern
authorYajun Deng <yajun.deng@linux.dev>
Thu, 8 Sep 2022 19:14:43 +0000 (19:14 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 3 Oct 2022 21:03:05 +0000 (14:03 -0700)
commita8b8e6095c6593bcb09a8356d6d783b720124ec9
tree0f8ed0b5c352016722bef52948d7e166fc5ec252
parentdff4aa4ce8851f247bce4170d63d87c0d6a6aa60
mm/damon: introduce struct damos_access_pattern

damon_new_scheme() has too many parameters, so introduce struct
damos_access_pattern to simplify it.

In additon, we can't use a bpf trace kprobe that has more than 5
parameters.

Link: https://lkml.kernel.org/r/20220908191443.129534-1-sj@kernel.org
Signed-off-by: Yajun Deng <yajun.deng@linux.dev>
Signed-off-by: SeongJae Park <sj@kernel.org>
Reviewed-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/damon.h
mm/damon/core.c
mm/damon/dbgfs.c
mm/damon/lru_sort.c
mm/damon/reclaim.c
mm/damon/sysfs.c