mm-damon-implement-primitives-for-physical-address-space-monitoring.patch removed from -mm tree
The patch titled
Subject: mm/damon: implement primitives for physical address space monitoring
has been removed from the -mm tree. Its filename was
mm-damon-implement-primitives-for-physical-address-space-monitoring.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: SeongJae Park <[email protected]>
Subject: mm/damon: implement primitives for physical address space monitoring
This commit implements the monitoring primitives for the physical memory address space. Internally, it uses the PTE Accessed bit, similar to that of the virtual address spaces monitoring primitives. It supports only user memory pages, as idle pages tracking does. If the monitoring target physical memory address range contains non-user memory pages, access check of the pages will do nothing but simply treat the pages as not accessed.
---
include/linux/damon.h | 10 + mm/damon/Kconfig | 8 + mm/damon/Makefile | 1 mm/damon/paddr.c | 224 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 243 insertions(+)
include/linux/damon.h renamed from include/linux/damon.h~mm-damon-implement-primitives-for-physical-address-space-monitoring +10 -0
@@ -351,4 +351,14 @@ void damon_va_set_primitives(struct damo#endif /* CONFIG_DAMON_VADDR */ +#ifdef CONFIG_DAMON_PADDR + +/* Monitoring primitives for the physical memory address space */ +void damon_pa_prepare_access_checks (struct damon_ctx *ctx); +unsigned int damon_pa_check_accesses (struct damon_ctx *ctx); +bool damon_pa_target_valid (void *t); +void damon_pa_set_primitives (struct damon_ctx *ctx); + +#endif /* CONFIG_DAMON_PADDR */ +#endif /* _DAMON_H */
mm/damon/Kconfig renamed from mm/damon/Kconfig~mm-damon-implement-primitives-for-physical-address-space-monitoring +8 -0
@@ -32,6 +32,14 @@ config DAMON_VADDR This builds the default data access monitoring primitives for DAMON that work for virtual address spaces. +config DAMON_PADDR + bool "Data access monitoring primitives for the physical address space" + depends on DAMON && MMU + select PAGE_IDLE_FLAG + help + This builds the default data access monitoring primitives for DAMON + that works for the physical address space. + config DAMON_VADDR_KUNIT_TEST bool "Test for DAMON primitives" if !KUNIT_ALL_TESTS depends on DAMON_VADDR && KUNIT=y
mm/damon/Makefile renamed from mm/damon/Makefile~mm-damon-implement-primitives-for-physical-address-space-monitoring +1 -0
@@ -2,4 +2,5 @@ obj-$(CONFIG_DAMON) := core.o obj-$(CONFIG_DAMON_VADDR) += prmtv-common.o vaddr.o +obj-$(CONFIG_DAMON_PADDR) += prmtv-common.o paddr.o obj-$(CONFIG_DAMON_DBGFS) += dbgfs.o
mm/damon/paddr.c new file +224 -0
224 lines not on this page · raw message
_
Patches currently in -mm which might be from [email protected] are