[PATCH v15 3/9] ref_tracker: have callers pass output function to pr_ostream()

Krzysztof Karas krzysztof.karas at intel.com
Mon Jun 23 12:57:58 UTC 2025


Hi Jeff,

> In a later patch, we'll be adding a 3rd mechanism for outputting
> ref_tracker info via seq_file. Instead of a conditional, have the caller
> set a pointer to an output function in struct ostream. As part of this,
> the log prefix must be explicitly passed in, as it's too late for the
> pr_fmt macro.
> 
> Reviewed-by: Andrew Lunn <andrew at lunn.ch>
> Signed-off-by: Jeff Layton <jlayton at kernel.org>
> ---
>  include/linux/ref_tracker.h |  2 ++
>  lib/ref_tracker.c           | 52 ++++++++++++++++++++++++++++++++-------------
>  2 files changed, 39 insertions(+), 15 deletions(-)
Looks good to me:
Reviewed-by: Krzysztof Karas <krzysztof.karas at intel.com>

Best Regards,
Krzysztof


More information about the Intel-gfx mailing list