netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] sunrpc: allow dprintk() to go to the trace buffer instead of console
@ 2025-08-22 13:19 Jeff Layton
  2025-08-22 13:19 ` [PATCH v2 1/2] sunrpc: remove dfprintk_cont() and dfprintk_rcu_cont() Jeff Layton
  2025-08-22 13:19 ` [PATCH v2 2/2] sunrpc: add a Kconfig option to redirect dfprintk() output to trace buffer Jeff Layton
  0 siblings, 2 replies; 7+ messages in thread
From: Jeff Layton @ 2025-08-22 13:19 UTC (permalink / raw)
  To: Trond Myklebust, Anna Schumaker, Chuck Lever, NeilBrown,
	Olga Kornievskaia, Dai Ngo, Tom Talpey, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Simon Horman
  Cc: linux-nfs, linux-kernel, netdev, Jeff Layton

While we have added a lot of static tracepoints in the last few years,
we still have a load of dprintks in place at all levels of the
NFS/NLM/RPC stack. At the same time, they're pretty useless under any
significant load due to the console overhead.

This adds a new Kconfig switch to allow those to go to the trace buffer
instead. In addition to being more efficient, that allows us to enable
static tracepoints alongside dprintk() and get a unified log.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
---
Changes in v2:
- pr_default() doesn't exist. Use printk(KERN_DEFAULT ...) instead.
- Link to v1: https://lore.kernel.org/r/20250821-nfs-testing-v1-0-f06099963eda@kernel.org

---
Jeff Layton (2):
      sunrpc: remove dfprintk_cont() and dfprintk_rcu_cont()
      sunrpc: add a Kconfig option to redirect dfprintk() output to trace buffer

 fs/nfs/write.c               |  6 +++---
 include/linux/sunrpc/debug.h | 30 ++++++++----------------------
 net/sunrpc/Kconfig           | 14 ++++++++++++++
 3 files changed, 25 insertions(+), 25 deletions(-)
---
base-commit: 80a1bea0cd81de70c56b37a8292c23d57419776f
change-id: 20250821-nfs-testing-2b21070952d4

Best regards,
-- 
Jeff Layton <jlayton@kernel.org>


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-08-27 14:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-22 13:19 [PATCH v2 0/2] sunrpc: allow dprintk() to go to the trace buffer instead of console Jeff Layton
2025-08-22 13:19 ` [PATCH v2 1/2] sunrpc: remove dfprintk_cont() and dfprintk_rcu_cont() Jeff Layton
2025-08-27 14:23   ` Simon Horman
2025-08-27 14:41   ` Chuck Lever
2025-08-22 13:19 ` [PATCH v2 2/2] sunrpc: add a Kconfig option to redirect dfprintk() output to trace buffer Jeff Layton
2025-08-27 14:24   ` Simon Horman
2025-08-27 14:43   ` Chuck Lever

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).