Re: [PATCH] mm: append __GFP_COMP flag for trace_malloc

From: Matthew Wilcox
Date: Mon Apr 26 2021 - 22:54:29 EST


On Tue, Apr 27, 2021 at 10:43:20AM +0800, Xiongwei Song wrote:
> From: Xiongwei Song <sxwjean@xxxxxxxxx>
>
> When calling kmalloc_order, the flags should include __GFP_COMP here,
> so that trace_malloc can trace the precise flags.

I suppose that depends on your point of view. Should we report the
flags used by the caller, or the flags that we used to allocate memory?
And why does it matter?