Re: [PATCH v3] tracing: add 'accounted' entry into output of allocation tracepoints

From: Shakeel Butt
Date: Wed May 18 2022 - 11:10:18 EST


On Tue, May 17, 2022 at 11:24 PM Vasily Averin <vvs@xxxxxxxxxx> wrote:
>
> Slab caches marked with SLAB_ACCOUNT force accounting for every
> allocation from this cache even if __GFP_ACCOUNT flag is not passed.
> Unfortunately, at the moment this flag is not visible in ftrace output,
> and this makes it difficult to analyze the accounted allocations.
>
> This patch adds boolean "allocated" entry into trace output,
> and set it to 'true' for calls used __GFP_ACCOUNT flag and
> for allocations from caches marked with SLAB_ACCOUNT.
>
> Signed-off-by: Vasily Averin <vvs@xxxxxxxxxx>

Acked-by: Shakeel Butt <shakeelb@xxxxxxxxxx>