Re: [PATCH 0/3] mm/damon: export DAMON symbols and add sample loadable modules

From: Christoph Hellwig
Date: Tue Dec 05 2023 - 00:12:58 EST


On Tue, Dec 05, 2023 at 02:28:55AM +0000, SeongJae Park wrote:
> DAMON cannot be used from loadable modules since it is not exporting its
> symbols.

And that is a good thing. We should absolutely not allow random modules
probing MM internals. What you posted here is basically just adding
hooks without even real in-kernel users.