Re: [PATCH 01/11] mm/damon/core: add damon_ctx->addr_unit
From: SeongJae Park
Date: Thu Aug 21 2025 - 13:10:25 EST
On Thu, 21 Aug 2025 18:51:49 +0800 Quanmin Yan <yanquanmin1@xxxxxxxxxx> wrote:
> From: SeongJae Park <sj@xxxxxxxxxx>
>
> In some cases, some of the real address that handled by the underlying
> operations set cannot be handled by DAMON since it uses only 'unsinged
> long' as the address type. Using DAMON for physical address space
> monitoring of 32 bit ARM devices with large physical address extension
> (LPAE) is one example[1].
>
> Add a parameter name 'addr_unit' to core layer to help such cases.
> DAMON core API callers can set it as the scale factor that will be used
> by the operations set for translating the core layer's addresses to the
> real address by multiplying the parameter value to the core layer
> address. Support of the parameter is up to each operations set layer.
> The support from the physical address space operations set (paddr) will
> be added with following commits.
>
> [1] https://lore.kernel.org/20250408075553.959388-1-zuoze1@xxxxxxxxxx
>
> Signed-off-by: SeongJae Park <sj@xxxxxxxxxx>
> Signed-off-by: Quanmin Yan <yanquanmin1@xxxxxxxxxx>
Reviewed-by: SeongJae Park <sj@xxxxxxxxxx>
Thanks,
SJ
[...]