2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-17 09:43:59 +08:00
linux-next/mm/damon
SeongJae Park 9f7b053a0f mm/damon: let monitoring operations can be registered and selected
In-kernel DAMON user code like DAMON debugfs interface should set 'struct
damon_operations' of its 'struct damon_ctx' on its own.  Therefore, the
client code should depend on all supporting monitoring operations
implementations that it could use.  For example, DAMON debugfs interface
depends on both vaddr and paddr, while some of the users are not always
interested in both.

To minimize such unnecessary dependencies, this commit makes the
monitoring operations can be registered by implementing code and then
dynamically selected by the user code without build-time dependency.

Link: https://lkml.kernel.org/r/20220215184603.1479-3-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Xin Hao <xhao@linux.alibaba.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2022-03-22 15:57:12 -07:00
..
core-test.h mm/damon: remove the target id concept 2022-03-22 15:57:12 -07:00
core.c mm/damon: let monitoring operations can be registered and selected 2022-03-22 15:57:12 -07:00
dbgfs-test.h mm/damon: rename damon_primitives to damon_operations 2022-03-22 15:57:12 -07:00
dbgfs.c mm/damon: rename damon_primitives to damon_operations 2022-03-22 15:57:12 -07:00
Kconfig mm/damon: rename damon_primitives to damon_operations 2022-03-22 15:57:12 -07:00
Makefile mm/damon: rename damon_primitives to damon_operations 2022-03-22 15:57:12 -07:00
ops-common.c mm/damon: rename damon_primitives to damon_operations 2022-03-22 15:57:12 -07:00
ops-common.h mm/damon: rename damon_primitives to damon_operations 2022-03-22 15:57:12 -07:00
paddr.c mm/damon: rename damon_primitives to damon_operations 2022-03-22 15:57:12 -07:00
reclaim.c mm/damon: rename damon_primitives to damon_operations 2022-03-22 15:57:12 -07:00
vaddr-test.h mm/damon: rename damon_primitives to damon_operations 2022-03-22 15:57:12 -07:00
vaddr.c mm/damon: rename damon_primitives to damon_operations 2022-03-22 15:57:12 -07:00