[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250409-nfsd-tracepoints-v2-3-cf4e084fdd9c@kernel.org>
Date: Wed, 09 Apr 2025 10:32:25 -0400
From: Jeff Layton <jlayton@...nel.org>
To: Chuck Lever <chuck.lever@...cle.com>, Neil Brown <neilb@...e.de>,
Olga Kornievskaia <okorniev@...hat.com>, Dai Ngo <Dai.Ngo@...cle.com>,
Tom Talpey <tom@...pey.com>, Trond Myklebust <trondmy@...nel.org>,
Anna Schumaker <anna@...nel.org>
Cc: Sargun Dillon <sargun@...gun.me>, linux-nfs@...r.kernel.org,
linux-kernel@...r.kernel.org, Jeff Layton <jlayton@...nel.org>
Subject: [PATCH v2 03/12] sunrpc: move the SVC_RQST_EVENT_*() macros to
common header
We need this for some of the nfsd tracepoints, so move them to the
common misc/sunrpc.h infrastructure.
Signed-off-by: Jeff Layton <jlayton@...nel.org>
---
include/trace/events/sunrpc.h | 23 -----------------------
include/trace/misc/sunrpc.h | 23 +++++++++++++++++++++++
2 files changed, 23 insertions(+), 23 deletions(-)
diff --git a/include/trace/events/sunrpc.h b/include/trace/events/sunrpc.h
index b5a0f0bc1a3b7cfd90ce0181a8a419db810988bb..bd6a1e3631c291c55bde37cb73d2086d9b15c5de 100644
--- a/include/trace/events/sunrpc.h
+++ b/include/trace/events/sunrpc.h
@@ -1716,29 +1716,6 @@ TRACE_DEFINE_ENUM(SVC_COMPLETE);
{ SVC_PENDING, "SVC_PENDING" }, \
{ SVC_COMPLETE, "SVC_COMPLETE" })
-#define SVC_RQST_ENDPOINT_FIELDS(r) \
- __sockaddr(server, (r)->rq_xprt->xpt_locallen) \
- __sockaddr(client, (r)->rq_xprt->xpt_remotelen) \
- __field(unsigned int, netns_ino) \
- __field(u32, xid)
-
-#define SVC_RQST_ENDPOINT_ASSIGNMENTS(r) \
- do { \
- struct svc_xprt *xprt = (r)->rq_xprt; \
- __assign_sockaddr(server, &xprt->xpt_local, \
- xprt->xpt_locallen); \
- __assign_sockaddr(client, &xprt->xpt_remote, \
- xprt->xpt_remotelen); \
- __entry->netns_ino = xprt->xpt_net->ns.inum; \
- __entry->xid = be32_to_cpu((r)->rq_xid); \
- } while (0)
-
-#define SVC_RQST_ENDPOINT_FORMAT \
- "xid=0x%08x server=%pISpc client=%pISpc"
-
-#define SVC_RQST_ENDPOINT_VARARGS \
- __entry->xid, __get_sockaddr(server), __get_sockaddr(client)
-
TRACE_EVENT_CONDITION(svc_authenticate,
TP_PROTO(
const struct svc_rqst *rqst,
diff --git a/include/trace/misc/sunrpc.h b/include/trace/misc/sunrpc.h
index 588557d07ea820116219cf8ac7b049976a7d89b1..c3c8feede26087bad9b4c8dd0019606ee9982259 100644
--- a/include/trace/misc/sunrpc.h
+++ b/include/trace/misc/sunrpc.h
@@ -15,4 +15,27 @@
#define SUNRPC_TRACE_TASK_SPECIFIER \
"task:" SUNRPC_TRACE_PID_SPECIFIER "@" SUNRPC_TRACE_CLID_SPECIFIER
+#define SVC_RQST_ENDPOINT_FIELDS(r) \
+ __sockaddr(server, (r)->rq_xprt->xpt_locallen) \
+ __sockaddr(client, (r)->rq_xprt->xpt_remotelen) \
+ __field(unsigned int, netns_ino) \
+ __field(u32, xid)
+
+#define SVC_RQST_ENDPOINT_ASSIGNMENTS(r) \
+ do { \
+ struct svc_xprt *xprt = (r)->rq_xprt; \
+ __assign_sockaddr(server, &xprt->xpt_local, \
+ xprt->xpt_locallen); \
+ __assign_sockaddr(client, &xprt->xpt_remote, \
+ xprt->xpt_remotelen); \
+ __entry->netns_ino = xprt->xpt_net->ns.inum; \
+ __entry->xid = be32_to_cpu((r)->rq_xid); \
+ } while (0)
+
+#define SVC_RQST_ENDPOINT_FORMAT \
+ "xid=0x%08x server=%pISpc client=%pISpc"
+
+#define SVC_RQST_ENDPOINT_VARARGS \
+ __entry->xid, __get_sockaddr(server), __get_sockaddr(client)
+
#endif /* _TRACE_SUNRPC_BASE_H */
--
2.49.0
Powered by blists - more mailing lists