]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sunrpc: add a Kconfig option to redirect dfprintk() output to trace buffer
authorJeff Layton <jlayton@kernel.org>
Fri, 22 Aug 2025 13:19:23 +0000 (09:19 -0400)
committerAnna Schumaker <anna.schumaker@oracle.com>
Tue, 23 Sep 2025 17:28:19 +0000 (13:28 -0400)
commitec7d8e68ef0ec5c635c8f9e93cd881673445a397
tree5fbb8ada5e1a37c7ae1fa730d2b1589b0d9425b1
parent9082aae154be2d9e208b56e249cb886612f7c6cf
sunrpc: add a Kconfig option to redirect dfprintk() output to trace buffer

We have a lot of old dprintk() call sites that aren't going anywhere
anytime soon. At the same time, turning them up is a serious burden on
the host due to the console locking overhead.

Add a new Kconfig option that redirects dfprintk() output to the trace
buffer. This is more efficient than logging to the console and allows
for proper interleaving of dprintk and static tracepoint events.

Since using trace_printk() causes scary warnings to pop at boot time,
this new option defaults to "n".

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
include/linux/sunrpc/debug.h
net/sunrpc/Kconfig