mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 07:03:03 +02:00
NFSD: Add a Call equivalent to the NFSD_TRACE_PROC_RES macros
Introduce tracing helpers that can be used before the procedure status code is known. These macros are similar to the SVC_RQST_ENDPOINT helpers, but they can be modified to include NFS-specific fields if that is needed later. Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
This commit is contained in:
parent
45e3eda46d
commit
218927aa47
|
|
@ -18,6 +18,23 @@
|
|||
#include "nfsfh.h"
|
||||
#include "xdr4.h"
|
||||
|
||||
#define NFSD_TRACE_PROC_CALL_FIELDS(r) \
|
||||
__field(unsigned int, netns_ino) \
|
||||
__field(u32, xid) \
|
||||
__sockaddr(server, (r)->rq_xprt->xpt_locallen) \
|
||||
__sockaddr(client, (r)->rq_xprt->xpt_remotelen)
|
||||
|
||||
#define NFSD_TRACE_PROC_CALL_ASSIGNMENTS(r) \
|
||||
do { \
|
||||
struct svc_xprt *xprt = (r)->rq_xprt; \
|
||||
__entry->netns_ino = SVC_NET(r)->ns.inum; \
|
||||
__entry->xid = be32_to_cpu((r)->rq_xid); \
|
||||
__assign_sockaddr(server, &xprt->xpt_local, \
|
||||
xprt->xpt_locallen); \
|
||||
__assign_sockaddr(client, &xprt->xpt_remote, \
|
||||
xprt->xpt_remotelen); \
|
||||
} while (0)
|
||||
|
||||
#define NFSD_TRACE_PROC_RES_FIELDS(r) \
|
||||
__field(unsigned int, netns_ino) \
|
||||
__field(u32, xid) \
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user