diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2018-03-27 10:52:57 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2018-04-03 15:08:14 -0400 |
commit | 79e0b4e247b3d1787ade451cc0187e8d3b0e6e53 (patch) | |
tree | 6910f83e647e7d6c2b3ff46cffb494ea321d810b /fs/nfsd/trace.h | |
parent | afa720a0910bd0fe4a714ab9b902ff6e845900c3 (diff) |
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.h | 15 |
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, | |||
15 | TP_PROTO(struct svc_rqst *rqstp, | 15 | TP_PROTO(struct svc_rqst *rqstp, |
16 | struct svc_fh *fhp, | 16 | struct svc_fh *fhp, |
17 | loff_t offset, | 17 | loff_t offset, |
18 | int len), | 18 | unsigned long len), |
19 | TP_ARGS(rqstp, fhp, offset, len), | 19 | TP_ARGS(rqstp, fhp, offset, len), |
20 | TP_STRUCT__entry( | 20 | TP_STRUCT__entry( |
21 | __field(u32, xid) | 21 | __field(u32, xid) |
22 | __field(u32, fh_hash) | 22 | __field(u32, fh_hash) |
23 | __field(loff_t, offset) | 23 | __field(loff_t, offset) |
24 | __field(int, len) | 24 | __field(unsigned long, len) |
25 | ), | 25 | ), |
26 | TP_fast_assign( | 26 | TP_fast_assign( |
27 | __entry->xid = be32_to_cpu(rqstp->rq_xid); | 27 | __entry->xid = be32_to_cpu(rqstp->rq_xid); |
28 | do { | 28 | __entry->fh_hash = knfsd_fh_hash(&fhp->fh_handle); |
29 | struct knfsd_fh fh; | ||
30 | |||
31 | fh_copy_shallow(&fh, &fhp->fh_handle); | ||
32 | __entry->fh_hash = knfsd_fh_hash(&fh); | ||
33 | } while (0); | ||
34 | __entry->offset = offset; | 29 | __entry->offset = offset; |
35 | __entry->len = len; | 30 | __entry->len = len; |
36 | ), | 31 | ), |
37 | TP_printk("xid=0x%08x fh_hash=0x%08x offset=%lld len=%d", | 32 | TP_printk("xid=0x%08x fh_hash=0x%08x offset=%lld len=%lu", |
38 | __entry->xid, __entry->fh_hash, | 33 | __entry->xid, __entry->fh_hash, |
39 | __entry->offset, __entry->len) | 34 | __entry->offset, __entry->len) |
40 | ) | 35 | ) |
@@ -44,7 +39,7 @@ DEFINE_EVENT(nfsd_io_class, name, \ | |||
44 | TP_PROTO(struct svc_rqst *rqstp, \ | 39 | TP_PROTO(struct svc_rqst *rqstp, \ |
45 | struct svc_fh *fhp, \ | 40 | struct svc_fh *fhp, \ |
46 | loff_t offset, \ | 41 | loff_t offset, \ |
47 | int len), \ | 42 | unsigned long len), \ |
48 | TP_ARGS(rqstp, fhp, offset, len)) | 43 | TP_ARGS(rqstp, fhp, offset, len)) |
49 | 44 | ||
50 | DEFINE_NFSD_IO_EVENT(read_start); | 45 | DEFINE_NFSD_IO_EVENT(read_start); |