nfsd: Fix NFSD trace points
authorChuck Lever <chuck.lever@oracle.com>
Tue, 27 Mar 2018 14:52:43 +0000 (10:52 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 3 Apr 2018 19:08:13 +0000 (15:08 -0400)
commitafa720a0910bd0fe4a714ab9b902ff6e845900c3
treeb76eace46040f90ffbc690ca2ca111c508bb7d33
parent55f5088c22cc83dbc64394abfbf76cd1ff5e7cd0
nfsd: Fix NFSD trace points

nfsd-1915  [003] 77915.780959: write_opened:
[FAILED TO PARSE] xid=3286130958 fh=0 offset=154624 len=1
nfsd-1915  [003] 77915.780960: write_io_done:
[FAILED TO PARSE] xid=3286130958 fh=0 offset=154624 len=1
nfsd-1915  [003] 77915.780964: write_done:
[FAILED TO PARSE] xid=3286130958 fh=0 offset=154624 len=1

Byte swapping and knfsd_fh_hash() are not available in "trace-cmd
report", where the print format string is actually used. These
data transformations have to be done during the TP_fast_assign step.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/trace.h