Re: [PATCH v8 2/7] lib/ref_tracker: improve printing stats

From: Eric Dumazet
Date: Tue Apr 25 2023 - 08:42:46 EST


On Tue, Apr 25, 2023 at 12:06 AM Andrzej Hajda <andrzej.hajda@xxxxxxxxx> wrote:
>
> In case the library is tracking busy subsystem, simply
> printing stack for every active reference will spam log
> with long, hard to read, redundant stack traces. To improve
> readabilty following changes have been made:
> - reports are printed per stack_handle - log is more compact,
> - added display name for ref_tracker_dir - it will differentiate
> multiple subsystems,
> - stack trace is printed indented, in the same printk call,
> - info about dropped references is printed as well.
>
> Signed-off-by: Andrzej Hajda <andrzej.hajda@xxxxxxxxx>
> Reviewed-by: Andi Shyti <andi.shyti@xxxxxxxxxxxxxxx>

Reviewed-by: Eric Dumazet <edumazet@xxxxxxxxxx>