diff options
author | SeongJae Park <sj@kernel.org> | 2022-03-23 00:48:49 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2022-03-23 01:57:12 +0300 |
commit | 9f7b053a0f6121f89e00d1688bfca0bf278caa25 (patch) | |
tree | 68a5e104b570ddfdadad7630d184c9a919296ca7 /mm/damon/paddr.c | |
parent | f7d911c39cbbb88d625216a0cfd0517a3047c46e (diff) | |
download | linux-9f7b053a0f6121f89e00d1688bfca0bf278caa25.tar.xz |
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>
Diffstat (limited to 'mm/damon/paddr.c')
0 files changed, 0 insertions, 0 deletions