1# SPDX-License-Identifier: GPL-2.0-only
2
3menu "Data Access Monitoring"
4
5config DAMON
6	bool "DAMON: Data Access Monitoring Framework"
7	help
8	  This builds a framework that allows kernel subsystems to monitor
9	  access frequency of each memory region. The information can be useful
10	  for performance-centric DRAM level memory management.
11
12	  See https://damonitor.github.io/doc/html/latest-damon/index.html for
13	  more information.
14
15config DAMON_KUNIT_TEST
16	bool "Test for damon" if !KUNIT_ALL_TESTS
17	depends on DAMON && KUNIT=y
18	default KUNIT_ALL_TESTS
19	help
20	  This builds the DAMON Kunit test suite.
21
22	  For more information on KUnit and unit tests in general, please refer
23	  to the KUnit documentation.
24
25	  If unsure, say N.
26
27config DAMON_VADDR
28	bool "Data access monitoring primitives for virtual address spaces"
29	depends on DAMON && MMU
30	select PAGE_IDLE_FLAG
31	help
32	  This builds the default data access monitoring primitives for DAMON
33	  that works for virtual address spaces.
34
35config DAMON_VADDR_KUNIT_TEST
36	bool "Test for DAMON primitives" if !KUNIT_ALL_TESTS
37	depends on DAMON_VADDR && KUNIT=y
38	default KUNIT_ALL_TESTS
39	help
40	  This builds the DAMON virtual addresses primitives Kunit test suite.
41
42	  For more information on KUnit and unit tests in general, please refer
43	  to the KUnit documentation.
44
45	  If unsure, say N.
46
47config DAMON_DBGFS
48	bool "DAMON debugfs interface"
49	depends on DAMON_VADDR && DEBUG_FS
50	help
51	  This builds the debugfs interface for DAMON.  The user space admins
52	  can use the interface for arbitrary data access monitoring.
53
54	  If unsure, say N.
55
56config DAMON_DBGFS_KUNIT_TEST
57	bool "Test for damon debugfs interface" if !KUNIT_ALL_TESTS
58	depends on DAMON_DBGFS && KUNIT=y
59	default KUNIT_ALL_TESTS
60	help
61	  This builds the DAMON debugfs interface Kunit test suite.
62
63	  For more information on KUnit and unit tests in general, please refer
64	  to the KUnit documentation.
65
66	  If unsure, say N.
67
68endmenu
69