]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ref_tracker: have callers pass output function to pr_ostream()
authorJeff Layton <jlayton@kernel.org>
Wed, 18 Jun 2025 14:24:16 +0000 (10:24 -0400)
committerJakub Kicinski <kuba@kernel.org>
Fri, 20 Jun 2025 00:02:03 +0000 (17:02 -0700)
commit49c94af071fc6c9f5e1db52b3031dec28daa90c3
tree49cf6bcec90a520283a10ddb3acc451aba4a24f0
parente209f9193a4724c1d4bc0b155c7beb78aa5d2928
ref_tracker: have callers pass output function to pr_ostream()

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@lunn.ch>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Link: https://patch.msgid.link/20250618-reftrack-dbgfs-v15-3-24fc37ead144@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/ref_tracker.h
lib/ref_tracker.c