aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fs/nfsd/trace.h
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2018-03-27 10:52:57 -0400
committerJ. Bruce Fields <bfields@redhat.com>2018-04-03 15:08:14 -0400
commit79e0b4e247b3d1787ade451cc0187e8d3b0e6e53 (patch)
tree6910f83e647e7d6c2b3ff46cffb494ea321d810b /fs/nfsd/trace.h
parentnfsd: Fix NFSD trace points (diff)
downloadwireguard-linux-79e0b4e247b3d1787ade451cc0187e8d3b0e6e53.tar.xz
wireguard-linux-79e0b4e247b3d1787ade451cc0187e8d3b0e6e53.zip
nfsd: Record request byte count, not count of vectors
Byte count is more helpful to know than vector count. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/trace.h')
-rw-r--r--fs/nfsd/trace.h15
1 files changed, 5 insertions, 10 deletions
diff --git a/fs/nfsd/trace.h b/fs/nfsd/trace.h
index 3aa3f3b1eeaa..9b7950602fad 100644
--- a/fs/nfsd/trace.h
+++ b/fs/nfsd/trace.h
@@ -15,26 +15,21 @@ DECLARE_EVENT_CLASS(nfsd_io_class,
TP_PROTO(struct svc_rqst *rqstp,
struct svc_fh *fhp,
loff_t offset,
- int len),
+ unsigned long len),
TP_ARGS(rqstp, fhp, offset, len),
TP_STRUCT__entry(
__field(u32, xid)
__field(u32, fh_hash)
__field(loff_t, offset)
- __field(int, len)
+ __field(unsigned long, len)
),
TP_fast_assign(
__entry->xid = be32_to_cpu(rqstp->rq_xid);
- do {
- struct knfsd_fh fh;
-
- fh_copy_shallow(&fh, &fhp->fh_handle);
- __entry->fh_hash = knfsd_fh_hash(&fh);
- } while (0);
+ __entry->fh_hash = knfsd_fh_hash(&fhp->fh_handle);
__entry->offset = offset;
__entry->len = len;
),
- TP_printk("xid=0x%08x fh_hash=0x%08x offset=%lld len=%d",
+ TP_printk("xid=0x%08x fh_hash=0x%08x offset=%lld len=%lu",
__entry->xid, __entry->fh_hash,
__entry->offset, __entry->len)
)
@@ -44,7 +39,7 @@ DEFINE_EVENT(nfsd_io_class, name, \
TP_PROTO(struct svc_rqst *rqstp, \
struct svc_fh *fhp, \
loff_t offset, \
- int len), \
+ unsigned long len), \
TP_ARGS(rqstp, fhp, offset, len))
DEFINE_NFSD_IO_EVENT(read_start);