summaryrefslogtreecommitdiff
path: root/samples/Makefile
diff options
context:
space:
mode:
authorSeongJae Park <sj@kernel.org>2024-12-10 13:50:26 -0800
committerAndrew Morton <akpm@linux-foundation.org>2025-01-13 22:40:57 -0800
commit19d7c3adfdd4adbd286429849ac22ce9cce32477 (patch)
tree2e420fd674d858950259f590f9344f408ca1d242 /samples/Makefile
parent08cc4c398ed2e4ba6119990eccd952ec3de1e241 (diff)
downloadlinux-19d7c3adfdd4adbd286429849ac22ce9cce32477.tar.gz
linux-19d7c3adfdd4adbd286429849ac22ce9cce32477.tar.bz2
linux-19d7c3adfdd4adbd286429849ac22ce9cce32477.zip
samples: add a skeleton of a sample DAMON module for working set size estimation
Patch series "mm/damon: add sample modules". Implement a proactive cold memory regions reclaiming logic of prcl sample module using DAMOS. The logic treats memory regions that not accessed at all for five or more seconds as cold, and reclaim those as soon as found. This patch (of 5): Add a skeleton for a sample DAMON static module that can be used for estimating working set size of a given process. Note that it is a static module since DAMON is not exporting symbols to loadable modules for now. It exposes two module parameters, namely 'pid' and 'enable'. 'pid' will specify the process that the module will estimate the working set size of. 'enable' will receive whether to start or stop the estimation. Because this is just a skeleton, the parameters do nothing, though. The functionalities will be implemented by following commits. Link: https://lkml.kernel.org/r/20241210215030.85675-1-sj@kernel.org Link: https://lkml.kernel.org/r/20241210215030.85675-2-sj@kernel.org Signed-off-by: SeongJae Park <sj@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'samples/Makefile')
-rw-r--r--samples/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/samples/Makefile b/samples/Makefile
index b85fa64390c5..726bb5293486 100644
--- a/samples/Makefile
+++ b/samples/Makefile
@@ -39,3 +39,4 @@ obj-$(CONFIG_SAMPLE_KMEMLEAK) += kmemleak/
obj-$(CONFIG_SAMPLE_CORESIGHT_SYSCFG) += coresight/
obj-$(CONFIG_SAMPLE_FPROBE) += fprobe/
obj-$(CONFIG_SAMPLES_RUST) += rust/
+obj-$(CONFIG_SAMPLE_DAMON_WSSE) += damon/