Add config option for page_owner support for pages in swap space.
Signed-off-by: Mauricio Faria de Oliveira <mfo@igalia.com>
---
mm/Kconfig.debug | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/mm/Kconfig.debug b/mm/Kconfig.debug
index 7638d75b27db..60bc0b6c3d69 100644
--- a/mm/Kconfig.debug
+++ b/mm/Kconfig.debug
@@ -119,6 +119,15 @@ config PAGE_OWNER
If unsure, say N.
+config SWAP_PAGE_OWNER
+ bool "Track page owner in swap space (EXPERIMENTAL)"
+ depends on PAGE_OWNER
+ help
+ This also keeps track of what call chain is the owner of a page
+ in swap space, maintaining the initial call chain over swap-out
+ and swap-in (otherwise lost at swap-out and reset at swap-in).
+ You should pass the "page_owner=on,swap" parameter to enable it.
+
config PAGE_TABLE_CHECK
bool "Check for invalid mappings in user page tables"
depends on ARCH_SUPPORTS_PAGE_TABLE_CHECK
--
2.51.0