1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (c) 2013 Trond Myklebust <Trond.Myklebust@netapp.com>
6 #define TRACE_SYSTEM nfs
8 #if !defined(_TRACE_NFS_H) || defined(TRACE_HEADER_MULTI_READ)
11 #include <linux/tracepoint.h>
12 #include <linux/iversion.h>
14 TRACE_DEFINE_ENUM(DT_UNKNOWN
);
15 TRACE_DEFINE_ENUM(DT_FIFO
);
16 TRACE_DEFINE_ENUM(DT_CHR
);
17 TRACE_DEFINE_ENUM(DT_DIR
);
18 TRACE_DEFINE_ENUM(DT_BLK
);
19 TRACE_DEFINE_ENUM(DT_REG
);
20 TRACE_DEFINE_ENUM(DT_LNK
);
21 TRACE_DEFINE_ENUM(DT_SOCK
);
22 TRACE_DEFINE_ENUM(DT_WHT
);
24 #define nfs_show_file_type(ftype) \
25 __print_symbolic(ftype, \
26 { DT_UNKNOWN, "UNKNOWN" }, \
27 { DT_FIFO, "FIFO" }, \
33 { DT_SOCK, "SOCK" }, \
36 TRACE_DEFINE_ENUM(NFS_INO_INVALID_DATA
);
37 TRACE_DEFINE_ENUM(NFS_INO_INVALID_ATIME
);
38 TRACE_DEFINE_ENUM(NFS_INO_INVALID_ACCESS
);
39 TRACE_DEFINE_ENUM(NFS_INO_INVALID_ACL
);
40 TRACE_DEFINE_ENUM(NFS_INO_REVAL_PAGECACHE
);
41 TRACE_DEFINE_ENUM(NFS_INO_REVAL_FORCED
);
42 TRACE_DEFINE_ENUM(NFS_INO_INVALID_LABEL
);
43 TRACE_DEFINE_ENUM(NFS_INO_INVALID_CHANGE
);
44 TRACE_DEFINE_ENUM(NFS_INO_INVALID_CTIME
);
45 TRACE_DEFINE_ENUM(NFS_INO_INVALID_MTIME
);
46 TRACE_DEFINE_ENUM(NFS_INO_INVALID_SIZE
);
47 TRACE_DEFINE_ENUM(NFS_INO_INVALID_OTHER
);
49 #define nfs_show_cache_validity(v) \
50 __print_flags(v, "|", \
51 { NFS_INO_INVALID_DATA, "INVALID_DATA" }, \
52 { NFS_INO_INVALID_ATIME, "INVALID_ATIME" }, \
53 { NFS_INO_INVALID_ACCESS, "INVALID_ACCESS" }, \
54 { NFS_INO_INVALID_ACL, "INVALID_ACL" }, \
55 { NFS_INO_REVAL_PAGECACHE, "REVAL_PAGECACHE" }, \
56 { NFS_INO_REVAL_FORCED, "REVAL_FORCED" }, \
57 { NFS_INO_INVALID_LABEL, "INVALID_LABEL" }, \
58 { NFS_INO_INVALID_CHANGE, "INVALID_CHANGE" }, \
59 { NFS_INO_INVALID_CTIME, "INVALID_CTIME" }, \
60 { NFS_INO_INVALID_MTIME, "INVALID_MTIME" }, \
61 { NFS_INO_INVALID_SIZE, "INVALID_SIZE" }, \
62 { NFS_INO_INVALID_OTHER, "INVALID_OTHER" })
64 TRACE_DEFINE_ENUM(NFS_INO_ADVISE_RDPLUS
);
65 TRACE_DEFINE_ENUM(NFS_INO_STALE
);
66 TRACE_DEFINE_ENUM(NFS_INO_ACL_LRU_SET
);
67 TRACE_DEFINE_ENUM(NFS_INO_INVALIDATING
);
68 TRACE_DEFINE_ENUM(NFS_INO_FSCACHE
);
69 TRACE_DEFINE_ENUM(NFS_INO_FSCACHE_LOCK
);
70 TRACE_DEFINE_ENUM(NFS_INO_LAYOUTCOMMIT
);
71 TRACE_DEFINE_ENUM(NFS_INO_LAYOUTCOMMITTING
);
72 TRACE_DEFINE_ENUM(NFS_INO_LAYOUTSTATS
);
73 TRACE_DEFINE_ENUM(NFS_INO_ODIRECT
);
75 #define nfs_show_nfsi_flags(v) \
76 __print_flags(v, "|", \
77 { BIT(NFS_INO_ADVISE_RDPLUS), "ADVISE_RDPLUS" }, \
78 { BIT(NFS_INO_STALE), "STALE" }, \
79 { BIT(NFS_INO_ACL_LRU_SET), "ACL_LRU_SET" }, \
80 { BIT(NFS_INO_INVALIDATING), "INVALIDATING" }, \
81 { BIT(NFS_INO_FSCACHE), "FSCACHE" }, \
82 { BIT(NFS_INO_FSCACHE_LOCK), "FSCACHE_LOCK" }, \
83 { BIT(NFS_INO_LAYOUTCOMMIT), "NEED_LAYOUTCOMMIT" }, \
84 { BIT(NFS_INO_LAYOUTCOMMITTING), "LAYOUTCOMMIT" }, \
85 { BIT(NFS_INO_LAYOUTSTATS), "LAYOUTSTATS" }, \
86 { BIT(NFS_INO_ODIRECT), "ODIRECT" })
88 DECLARE_EVENT_CLASS(nfs_inode_event
,
90 const struct inode
*inode
103 const struct nfs_inode
*nfsi
= NFS_I(inode
);
104 __entry
->dev
= inode
->i_sb
->s_dev
;
105 __entry
->fileid
= nfsi
->fileid
;
106 __entry
->fhandle
= nfs_fhandle_hash(&nfsi
->fh
);
107 __entry
->version
= inode_peek_iversion_raw(inode
);
111 "fileid=%02x:%02x:%llu fhandle=0x%08x version=%llu ",
112 MAJOR(__entry
->dev
), MINOR(__entry
->dev
),
113 (unsigned long long)__entry
->fileid
,
115 (unsigned long long)__entry
->version
119 DECLARE_EVENT_CLASS(nfs_inode_event_done
,
121 const struct inode
*inode
,
125 TP_ARGS(inode
, error
),
128 __field(unsigned long, error
)
130 __field(u32
, fhandle
)
131 __field(unsigned char, type
)
133 __field(u64
, version
)
134 __field(loff_t
, size
)
135 __field(unsigned long, nfsi_flags
)
136 __field(unsigned long, cache_validity
)
140 const struct nfs_inode
*nfsi
= NFS_I(inode
);
141 __entry
->error
= error
< 0 ? -error
: 0;
142 __entry
->dev
= inode
->i_sb
->s_dev
;
143 __entry
->fileid
= nfsi
->fileid
;
144 __entry
->fhandle
= nfs_fhandle_hash(&nfsi
->fh
);
145 __entry
->type
= nfs_umode_to_dtype(inode
->i_mode
);
146 __entry
->version
= inode_peek_iversion_raw(inode
);
147 __entry
->size
= i_size_read(inode
);
148 __entry
->nfsi_flags
= nfsi
->flags
;
149 __entry
->cache_validity
= nfsi
->cache_validity
;
153 "error=%ld (%s) fileid=%02x:%02x:%llu fhandle=0x%08x "
154 "type=%u (%s) version=%llu size=%lld "
155 "cache_validity=0x%lx (%s) nfs_flags=0x%lx (%s)",
156 -__entry
->error
, nfs_show_status(__entry
->error
),
157 MAJOR(__entry
->dev
), MINOR(__entry
->dev
),
158 (unsigned long long)__entry
->fileid
,
161 nfs_show_file_type(__entry
->type
),
162 (unsigned long long)__entry
->version
,
163 (long long)__entry
->size
,
164 __entry
->cache_validity
,
165 nfs_show_cache_validity(__entry
->cache_validity
),
167 nfs_show_nfsi_flags(__entry
->nfsi_flags
)
171 #define DEFINE_NFS_INODE_EVENT(name) \
172 DEFINE_EVENT(nfs_inode_event, name, \
174 const struct inode *inode \
177 #define DEFINE_NFS_INODE_EVENT_DONE(name) \
178 DEFINE_EVENT(nfs_inode_event_done, name, \
180 const struct inode *inode, \
183 TP_ARGS(inode, error))
184 DEFINE_NFS_INODE_EVENT(nfs_refresh_inode_enter
);
185 DEFINE_NFS_INODE_EVENT_DONE(nfs_refresh_inode_exit
);
186 DEFINE_NFS_INODE_EVENT(nfs_revalidate_inode_enter
);
187 DEFINE_NFS_INODE_EVENT_DONE(nfs_revalidate_inode_exit
);
188 DEFINE_NFS_INODE_EVENT(nfs_invalidate_mapping_enter
);
189 DEFINE_NFS_INODE_EVENT_DONE(nfs_invalidate_mapping_exit
);
190 DEFINE_NFS_INODE_EVENT(nfs_getattr_enter
);
191 DEFINE_NFS_INODE_EVENT_DONE(nfs_getattr_exit
);
192 DEFINE_NFS_INODE_EVENT(nfs_setattr_enter
);
193 DEFINE_NFS_INODE_EVENT_DONE(nfs_setattr_exit
);
194 DEFINE_NFS_INODE_EVENT(nfs_writeback_page_enter
);
195 DEFINE_NFS_INODE_EVENT_DONE(nfs_writeback_page_exit
);
196 DEFINE_NFS_INODE_EVENT(nfs_writeback_inode_enter
);
197 DEFINE_NFS_INODE_EVENT_DONE(nfs_writeback_inode_exit
);
198 DEFINE_NFS_INODE_EVENT(nfs_fsync_enter
);
199 DEFINE_NFS_INODE_EVENT_DONE(nfs_fsync_exit
);
200 DEFINE_NFS_INODE_EVENT(nfs_access_enter
);
202 TRACE_EVENT(nfs_access_exit
,
204 const struct inode
*inode
,
206 unsigned int permitted
,
210 TP_ARGS(inode
, mask
, permitted
, error
),
213 __field(unsigned long, error
)
215 __field(u32
, fhandle
)
216 __field(unsigned char, type
)
218 __field(u64
, version
)
219 __field(loff_t
, size
)
220 __field(unsigned long, nfsi_flags
)
221 __field(unsigned long, cache_validity
)
222 __field(unsigned int, mask
)
223 __field(unsigned int, permitted
)
227 const struct nfs_inode
*nfsi
= NFS_I(inode
);
228 __entry
->error
= error
< 0 ? -error
: 0;
229 __entry
->dev
= inode
->i_sb
->s_dev
;
230 __entry
->fileid
= nfsi
->fileid
;
231 __entry
->fhandle
= nfs_fhandle_hash(&nfsi
->fh
);
232 __entry
->type
= nfs_umode_to_dtype(inode
->i_mode
);
233 __entry
->version
= inode_peek_iversion_raw(inode
);
234 __entry
->size
= i_size_read(inode
);
235 __entry
->nfsi_flags
= nfsi
->flags
;
236 __entry
->cache_validity
= nfsi
->cache_validity
;
237 __entry
->mask
= mask
;
238 __entry
->permitted
= permitted
;
242 "error=%ld (%s) fileid=%02x:%02x:%llu fhandle=0x%08x "
243 "type=%u (%s) version=%llu size=%lld "
244 "cache_validity=0x%lx (%s) nfs_flags=0x%lx (%s) "
245 "mask=0x%x permitted=0x%x",
246 -__entry
->error
, nfs_show_status(__entry
->error
),
247 MAJOR(__entry
->dev
), MINOR(__entry
->dev
),
248 (unsigned long long)__entry
->fileid
,
251 nfs_show_file_type(__entry
->type
),
252 (unsigned long long)__entry
->version
,
253 (long long)__entry
->size
,
254 __entry
->cache_validity
,
255 nfs_show_cache_validity(__entry
->cache_validity
),
257 nfs_show_nfsi_flags(__entry
->nfsi_flags
),
258 __entry
->mask
, __entry
->permitted
262 TRACE_DEFINE_ENUM(LOOKUP_FOLLOW
);
263 TRACE_DEFINE_ENUM(LOOKUP_DIRECTORY
);
264 TRACE_DEFINE_ENUM(LOOKUP_AUTOMOUNT
);
265 TRACE_DEFINE_ENUM(LOOKUP_PARENT
);
266 TRACE_DEFINE_ENUM(LOOKUP_REVAL
);
267 TRACE_DEFINE_ENUM(LOOKUP_RCU
);
268 TRACE_DEFINE_ENUM(LOOKUP_OPEN
);
269 TRACE_DEFINE_ENUM(LOOKUP_CREATE
);
270 TRACE_DEFINE_ENUM(LOOKUP_EXCL
);
271 TRACE_DEFINE_ENUM(LOOKUP_RENAME_TARGET
);
272 TRACE_DEFINE_ENUM(LOOKUP_JUMPED
);
273 TRACE_DEFINE_ENUM(LOOKUP_ROOT
);
274 TRACE_DEFINE_ENUM(LOOKUP_EMPTY
);
275 TRACE_DEFINE_ENUM(LOOKUP_DOWN
);
277 #define show_lookup_flags(flags) \
278 __print_flags(flags, "|", \
279 { LOOKUP_FOLLOW, "FOLLOW" }, \
280 { LOOKUP_DIRECTORY, "DIRECTORY" }, \
281 { LOOKUP_AUTOMOUNT, "AUTOMOUNT" }, \
282 { LOOKUP_PARENT, "PARENT" }, \
283 { LOOKUP_REVAL, "REVAL" }, \
284 { LOOKUP_RCU, "RCU" }, \
285 { LOOKUP_OPEN, "OPEN" }, \
286 { LOOKUP_CREATE, "CREATE" }, \
287 { LOOKUP_EXCL, "EXCL" }, \
288 { LOOKUP_RENAME_TARGET, "RENAME_TARGET" }, \
289 { LOOKUP_JUMPED, "JUMPED" }, \
290 { LOOKUP_ROOT, "ROOT" }, \
291 { LOOKUP_EMPTY, "EMPTY" }, \
292 { LOOKUP_DOWN, "DOWN" })
294 DECLARE_EVENT_CLASS(nfs_lookup_event
,
296 const struct inode
*dir
,
297 const struct dentry
*dentry
,
301 TP_ARGS(dir
, dentry
, flags
),
304 __field(unsigned long, flags
)
307 __string(name
, dentry
->d_name
.name
)
311 __entry
->dev
= dir
->i_sb
->s_dev
;
312 __entry
->dir
= NFS_FILEID(dir
);
313 __entry
->flags
= flags
;
314 __assign_str(name
, dentry
->d_name
.name
);
318 "flags=0x%lx (%s) name=%02x:%02x:%llu/%s",
320 show_lookup_flags(__entry
->flags
),
321 MAJOR(__entry
->dev
), MINOR(__entry
->dev
),
322 (unsigned long long)__entry
->dir
,
327 #define DEFINE_NFS_LOOKUP_EVENT(name) \
328 DEFINE_EVENT(nfs_lookup_event, name, \
330 const struct inode *dir, \
331 const struct dentry *dentry, \
334 TP_ARGS(dir, dentry, flags))
336 DECLARE_EVENT_CLASS(nfs_lookup_event_done
,
338 const struct inode
*dir
,
339 const struct dentry
*dentry
,
344 TP_ARGS(dir
, dentry
, flags
, error
),
347 __field(unsigned long, error
)
348 __field(unsigned long, flags
)
351 __string(name
, dentry
->d_name
.name
)
355 __entry
->dev
= dir
->i_sb
->s_dev
;
356 __entry
->dir
= NFS_FILEID(dir
);
357 __entry
->error
= error
< 0 ? -error
: 0;
358 __entry
->flags
= flags
;
359 __assign_str(name
, dentry
->d_name
.name
);
363 "error=%ld (%s) flags=0x%lx (%s) name=%02x:%02x:%llu/%s",
364 -__entry
->error
, nfs_show_status(__entry
->error
),
366 show_lookup_flags(__entry
->flags
),
367 MAJOR(__entry
->dev
), MINOR(__entry
->dev
),
368 (unsigned long long)__entry
->dir
,
373 #define DEFINE_NFS_LOOKUP_EVENT_DONE(name) \
374 DEFINE_EVENT(nfs_lookup_event_done, name, \
376 const struct inode *dir, \
377 const struct dentry *dentry, \
378 unsigned int flags, \
381 TP_ARGS(dir, dentry, flags, error))
383 DEFINE_NFS_LOOKUP_EVENT(nfs_lookup_enter
);
384 DEFINE_NFS_LOOKUP_EVENT_DONE(nfs_lookup_exit
);
385 DEFINE_NFS_LOOKUP_EVENT(nfs_lookup_revalidate_enter
);
386 DEFINE_NFS_LOOKUP_EVENT_DONE(nfs_lookup_revalidate_exit
);
388 TRACE_DEFINE_ENUM(O_WRONLY
);
389 TRACE_DEFINE_ENUM(O_RDWR
);
390 TRACE_DEFINE_ENUM(O_CREAT
);
391 TRACE_DEFINE_ENUM(O_EXCL
);
392 TRACE_DEFINE_ENUM(O_NOCTTY
);
393 TRACE_DEFINE_ENUM(O_TRUNC
);
394 TRACE_DEFINE_ENUM(O_APPEND
);
395 TRACE_DEFINE_ENUM(O_NONBLOCK
);
396 TRACE_DEFINE_ENUM(O_DSYNC
);
397 TRACE_DEFINE_ENUM(O_DIRECT
);
398 TRACE_DEFINE_ENUM(O_LARGEFILE
);
399 TRACE_DEFINE_ENUM(O_DIRECTORY
);
400 TRACE_DEFINE_ENUM(O_NOFOLLOW
);
401 TRACE_DEFINE_ENUM(O_NOATIME
);
402 TRACE_DEFINE_ENUM(O_CLOEXEC
);
404 #define show_open_flags(flags) \
405 __print_flags(flags, "|", \
406 { O_WRONLY, "O_WRONLY" }, \
407 { O_RDWR, "O_RDWR" }, \
408 { O_CREAT, "O_CREAT" }, \
409 { O_EXCL, "O_EXCL" }, \
410 { O_NOCTTY, "O_NOCTTY" }, \
411 { O_TRUNC, "O_TRUNC" }, \
412 { O_APPEND, "O_APPEND" }, \
413 { O_NONBLOCK, "O_NONBLOCK" }, \
414 { O_DSYNC, "O_DSYNC" }, \
415 { O_DIRECT, "O_DIRECT" }, \
416 { O_LARGEFILE, "O_LARGEFILE" }, \
417 { O_DIRECTORY, "O_DIRECTORY" }, \
418 { O_NOFOLLOW, "O_NOFOLLOW" }, \
419 { O_NOATIME, "O_NOATIME" }, \
420 { O_CLOEXEC, "O_CLOEXEC" })
422 TRACE_DEFINE_ENUM(FMODE_READ
);
423 TRACE_DEFINE_ENUM(FMODE_WRITE
);
424 TRACE_DEFINE_ENUM(FMODE_EXEC
);
426 #define show_fmode_flags(mode) \
427 __print_flags(mode, "|", \
428 { ((__force unsigned long)FMODE_READ), "READ" }, \
429 { ((__force unsigned long)FMODE_WRITE), "WRITE" }, \
430 { ((__force unsigned long)FMODE_EXEC), "EXEC" })
432 TRACE_EVENT(nfs_atomic_open_enter
,
434 const struct inode
*dir
,
435 const struct nfs_open_context
*ctx
,
439 TP_ARGS(dir
, ctx
, flags
),
442 __field(unsigned long, flags
)
443 __field(unsigned int, fmode
)
446 __string(name
, ctx
->dentry
->d_name
.name
)
450 __entry
->dev
= dir
->i_sb
->s_dev
;
451 __entry
->dir
= NFS_FILEID(dir
);
452 __entry
->flags
= flags
;
453 __entry
->fmode
= (__force
unsigned int)ctx
->mode
;
454 __assign_str(name
, ctx
->dentry
->d_name
.name
);
458 "flags=0x%lx (%s) fmode=%s name=%02x:%02x:%llu/%s",
460 show_open_flags(__entry
->flags
),
461 show_fmode_flags(__entry
->fmode
),
462 MAJOR(__entry
->dev
), MINOR(__entry
->dev
),
463 (unsigned long long)__entry
->dir
,
468 TRACE_EVENT(nfs_atomic_open_exit
,
470 const struct inode
*dir
,
471 const struct nfs_open_context
*ctx
,
476 TP_ARGS(dir
, ctx
, flags
, error
),
479 __field(unsigned long, error
)
480 __field(unsigned long, flags
)
481 __field(unsigned int, fmode
)
484 __string(name
, ctx
->dentry
->d_name
.name
)
488 __entry
->error
= -error
;
489 __entry
->dev
= dir
->i_sb
->s_dev
;
490 __entry
->dir
= NFS_FILEID(dir
);
491 __entry
->flags
= flags
;
492 __entry
->fmode
= (__force
unsigned int)ctx
->mode
;
493 __assign_str(name
, ctx
->dentry
->d_name
.name
);
497 "error=%ld (%s) flags=0x%lx (%s) fmode=%s "
498 "name=%02x:%02x:%llu/%s",
499 -__entry
->error
, nfs_show_status(__entry
->error
),
501 show_open_flags(__entry
->flags
),
502 show_fmode_flags(__entry
->fmode
),
503 MAJOR(__entry
->dev
), MINOR(__entry
->dev
),
504 (unsigned long long)__entry
->dir
,
509 TRACE_EVENT(nfs_create_enter
,
511 const struct inode
*dir
,
512 const struct dentry
*dentry
,
516 TP_ARGS(dir
, dentry
, flags
),
519 __field(unsigned long, flags
)
522 __string(name
, dentry
->d_name
.name
)
526 __entry
->dev
= dir
->i_sb
->s_dev
;
527 __entry
->dir
= NFS_FILEID(dir
);
528 __entry
->flags
= flags
;
529 __assign_str(name
, dentry
->d_name
.name
);
533 "flags=0x%lx (%s) name=%02x:%02x:%llu/%s",
535 show_open_flags(__entry
->flags
),
536 MAJOR(__entry
->dev
), MINOR(__entry
->dev
),
537 (unsigned long long)__entry
->dir
,
542 TRACE_EVENT(nfs_create_exit
,
544 const struct inode
*dir
,
545 const struct dentry
*dentry
,
550 TP_ARGS(dir
, dentry
, flags
, error
),
553 __field(unsigned long, error
)
554 __field(unsigned long, flags
)
557 __string(name
, dentry
->d_name
.name
)
561 __entry
->error
= -error
;
562 __entry
->dev
= dir
->i_sb
->s_dev
;
563 __entry
->dir
= NFS_FILEID(dir
);
564 __entry
->flags
= flags
;
565 __assign_str(name
, dentry
->d_name
.name
);
569 "error=%ld (%s) flags=0x%lx (%s) name=%02x:%02x:%llu/%s",
570 -__entry
->error
, nfs_show_status(__entry
->error
),
572 show_open_flags(__entry
->flags
),
573 MAJOR(__entry
->dev
), MINOR(__entry
->dev
),
574 (unsigned long long)__entry
->dir
,
579 DECLARE_EVENT_CLASS(nfs_directory_event
,
581 const struct inode
*dir
,
582 const struct dentry
*dentry
585 TP_ARGS(dir
, dentry
),
590 __string(name
, dentry
->d_name
.name
)
594 __entry
->dev
= dir
->i_sb
->s_dev
;
595 __entry
->dir
= NFS_FILEID(dir
);
596 __assign_str(name
, dentry
->d_name
.name
);
600 "name=%02x:%02x:%llu/%s",
601 MAJOR(__entry
->dev
), MINOR(__entry
->dev
),
602 (unsigned long long)__entry
->dir
,
607 #define DEFINE_NFS_DIRECTORY_EVENT(name) \
608 DEFINE_EVENT(nfs_directory_event, name, \
610 const struct inode *dir, \
611 const struct dentry *dentry \
613 TP_ARGS(dir, dentry))
615 DECLARE_EVENT_CLASS(nfs_directory_event_done
,
617 const struct inode
*dir
,
618 const struct dentry
*dentry
,
622 TP_ARGS(dir
, dentry
, error
),
625 __field(unsigned long, error
)
628 __string(name
, dentry
->d_name
.name
)
632 __entry
->dev
= dir
->i_sb
->s_dev
;
633 __entry
->dir
= NFS_FILEID(dir
);
634 __entry
->error
= error
< 0 ? -error
: 0;
635 __assign_str(name
, dentry
->d_name
.name
);
639 "error=%ld (%s) name=%02x:%02x:%llu/%s",
640 -__entry
->error
, nfs_show_status(__entry
->error
),
641 MAJOR(__entry
->dev
), MINOR(__entry
->dev
),
642 (unsigned long long)__entry
->dir
,
647 #define DEFINE_NFS_DIRECTORY_EVENT_DONE(name) \
648 DEFINE_EVENT(nfs_directory_event_done, name, \
650 const struct inode *dir, \
651 const struct dentry *dentry, \
654 TP_ARGS(dir, dentry, error))
656 DEFINE_NFS_DIRECTORY_EVENT(nfs_mknod_enter
);
657 DEFINE_NFS_DIRECTORY_EVENT_DONE(nfs_mknod_exit
);
658 DEFINE_NFS_DIRECTORY_EVENT(nfs_mkdir_enter
);
659 DEFINE_NFS_DIRECTORY_EVENT_DONE(nfs_mkdir_exit
);
660 DEFINE_NFS_DIRECTORY_EVENT(nfs_rmdir_enter
);
661 DEFINE_NFS_DIRECTORY_EVENT_DONE(nfs_rmdir_exit
);
662 DEFINE_NFS_DIRECTORY_EVENT(nfs_remove_enter
);
663 DEFINE_NFS_DIRECTORY_EVENT_DONE(nfs_remove_exit
);
664 DEFINE_NFS_DIRECTORY_EVENT(nfs_unlink_enter
);
665 DEFINE_NFS_DIRECTORY_EVENT_DONE(nfs_unlink_exit
);
666 DEFINE_NFS_DIRECTORY_EVENT(nfs_symlink_enter
);
667 DEFINE_NFS_DIRECTORY_EVENT_DONE(nfs_symlink_exit
);
669 TRACE_EVENT(nfs_link_enter
,
671 const struct inode
*inode
,
672 const struct inode
*dir
,
673 const struct dentry
*dentry
676 TP_ARGS(inode
, dir
, dentry
),
682 __string(name
, dentry
->d_name
.name
)
686 __entry
->dev
= inode
->i_sb
->s_dev
;
687 __entry
->fileid
= NFS_FILEID(inode
);
688 __entry
->dir
= NFS_FILEID(dir
);
689 __assign_str(name
, dentry
->d_name
.name
);
693 "fileid=%02x:%02x:%llu name=%02x:%02x:%llu/%s",
694 MAJOR(__entry
->dev
), MINOR(__entry
->dev
),
696 MAJOR(__entry
->dev
), MINOR(__entry
->dev
),
697 (unsigned long long)__entry
->dir
,
702 TRACE_EVENT(nfs_link_exit
,
704 const struct inode
*inode
,
705 const struct inode
*dir
,
706 const struct dentry
*dentry
,
710 TP_ARGS(inode
, dir
, dentry
, error
),
713 __field(unsigned long, error
)
717 __string(name
, dentry
->d_name
.name
)
721 __entry
->dev
= inode
->i_sb
->s_dev
;
722 __entry
->fileid
= NFS_FILEID(inode
);
723 __entry
->dir
= NFS_FILEID(dir
);
724 __entry
->error
= error
< 0 ? -error
: 0;
725 __assign_str(name
, dentry
->d_name
.name
);
729 "error=%ld (%s) fileid=%02x:%02x:%llu name=%02x:%02x:%llu/%s",
730 -__entry
->error
, nfs_show_status(__entry
->error
),
731 MAJOR(__entry
->dev
), MINOR(__entry
->dev
),
733 MAJOR(__entry
->dev
), MINOR(__entry
->dev
),
734 (unsigned long long)__entry
->dir
,
739 DECLARE_EVENT_CLASS(nfs_rename_event
,
741 const struct inode
*old_dir
,
742 const struct dentry
*old_dentry
,
743 const struct inode
*new_dir
,
744 const struct dentry
*new_dentry
747 TP_ARGS(old_dir
, old_dentry
, new_dir
, new_dentry
),
751 __field(u64
, old_dir
)
752 __field(u64
, new_dir
)
753 __string(old_name
, old_dentry
->d_name
.name
)
754 __string(new_name
, new_dentry
->d_name
.name
)
758 __entry
->dev
= old_dir
->i_sb
->s_dev
;
759 __entry
->old_dir
= NFS_FILEID(old_dir
);
760 __entry
->new_dir
= NFS_FILEID(new_dir
);
761 __assign_str(old_name
, old_dentry
->d_name
.name
);
762 __assign_str(new_name
, new_dentry
->d_name
.name
);
766 "old_name=%02x:%02x:%llu/%s new_name=%02x:%02x:%llu/%s",
767 MAJOR(__entry
->dev
), MINOR(__entry
->dev
),
768 (unsigned long long)__entry
->old_dir
,
770 MAJOR(__entry
->dev
), MINOR(__entry
->dev
),
771 (unsigned long long)__entry
->new_dir
,
775 #define DEFINE_NFS_RENAME_EVENT(name) \
776 DEFINE_EVENT(nfs_rename_event, name, \
778 const struct inode *old_dir, \
779 const struct dentry *old_dentry, \
780 const struct inode *new_dir, \
781 const struct dentry *new_dentry \
783 TP_ARGS(old_dir, old_dentry, new_dir, new_dentry))
785 DECLARE_EVENT_CLASS(nfs_rename_event_done
,
787 const struct inode
*old_dir
,
788 const struct dentry
*old_dentry
,
789 const struct inode
*new_dir
,
790 const struct dentry
*new_dentry
,
794 TP_ARGS(old_dir
, old_dentry
, new_dir
, new_dentry
, error
),
798 __field(unsigned long, error
)
799 __field(u64
, old_dir
)
800 __string(old_name
, old_dentry
->d_name
.name
)
801 __field(u64
, new_dir
)
802 __string(new_name
, new_dentry
->d_name
.name
)
806 __entry
->dev
= old_dir
->i_sb
->s_dev
;
807 __entry
->error
= -error
;
808 __entry
->old_dir
= NFS_FILEID(old_dir
);
809 __entry
->new_dir
= NFS_FILEID(new_dir
);
810 __assign_str(old_name
, old_dentry
->d_name
.name
);
811 __assign_str(new_name
, new_dentry
->d_name
.name
);
815 "error=%ld (%s) old_name=%02x:%02x:%llu/%s "
816 "new_name=%02x:%02x:%llu/%s",
817 -__entry
->error
, nfs_show_status(__entry
->error
),
818 MAJOR(__entry
->dev
), MINOR(__entry
->dev
),
819 (unsigned long long)__entry
->old_dir
,
821 MAJOR(__entry
->dev
), MINOR(__entry
->dev
),
822 (unsigned long long)__entry
->new_dir
,
826 #define DEFINE_NFS_RENAME_EVENT_DONE(name) \
827 DEFINE_EVENT(nfs_rename_event_done, name, \
829 const struct inode *old_dir, \
830 const struct dentry *old_dentry, \
831 const struct inode *new_dir, \
832 const struct dentry *new_dentry, \
835 TP_ARGS(old_dir, old_dentry, new_dir, \
838 DEFINE_NFS_RENAME_EVENT(nfs_rename_enter
);
839 DEFINE_NFS_RENAME_EVENT_DONE(nfs_rename_exit
);
841 DEFINE_NFS_RENAME_EVENT_DONE(nfs_sillyrename_rename
);
843 TRACE_EVENT(nfs_sillyrename_unlink
,
845 const struct nfs_unlinkdata
*data
,
849 TP_ARGS(data
, error
),
853 __field(unsigned long, error
)
855 __dynamic_array(char, name
, data
->args
.name
.len
+ 1)
859 struct inode
*dir
= d_inode(data
->dentry
->d_parent
);
860 size_t len
= data
->args
.name
.len
;
861 __entry
->dev
= dir
->i_sb
->s_dev
;
862 __entry
->dir
= NFS_FILEID(dir
);
863 __entry
->error
= -error
;
864 memcpy(__get_str(name
),
865 data
->args
.name
.name
, len
);
866 __get_str(name
)[len
] = 0;
870 "error=%ld (%s) name=%02x:%02x:%llu/%s",
871 -__entry
->error
, nfs_show_status(__entry
->error
),
872 MAJOR(__entry
->dev
), MINOR(__entry
->dev
),
873 (unsigned long long)__entry
->dir
,
878 TRACE_EVENT(nfs_initiate_read
,
880 const struct nfs_pgio_header
*hdr
887 __field(u32
, fhandle
)
889 __field(loff_t
, offset
)
894 const struct inode
*inode
= hdr
->inode
;
895 const struct nfs_inode
*nfsi
= NFS_I(inode
);
896 const struct nfs_fh
*fh
= hdr
->args
.fh
?
897 hdr
->args
.fh
: &nfsi
->fh
;
899 __entry
->offset
= hdr
->args
.offset
;
900 __entry
->count
= hdr
->args
.count
;
901 __entry
->dev
= inode
->i_sb
->s_dev
;
902 __entry
->fileid
= nfsi
->fileid
;
903 __entry
->fhandle
= nfs_fhandle_hash(fh
);
907 "fileid=%02x:%02x:%llu fhandle=0x%08x "
908 "offset=%lld count=%u",
909 MAJOR(__entry
->dev
), MINOR(__entry
->dev
),
910 (unsigned long long)__entry
->fileid
,
912 (long long)__entry
->offset
, __entry
->count
916 TRACE_EVENT(nfs_readpage_done
,
918 const struct rpc_task
*task
,
919 const struct nfs_pgio_header
*hdr
926 __field(u32
, fhandle
)
928 __field(loff_t
, offset
)
929 __field(u32
, arg_count
)
930 __field(u32
, res_count
)
936 const struct inode
*inode
= hdr
->inode
;
937 const struct nfs_inode
*nfsi
= NFS_I(inode
);
938 const struct nfs_fh
*fh
= hdr
->args
.fh
?
939 hdr
->args
.fh
: &nfsi
->fh
;
941 __entry
->status
= task
->tk_status
;
942 __entry
->offset
= hdr
->args
.offset
;
943 __entry
->arg_count
= hdr
->args
.count
;
944 __entry
->res_count
= hdr
->res
.count
;
945 __entry
->eof
= hdr
->res
.eof
;
946 __entry
->dev
= inode
->i_sb
->s_dev
;
947 __entry
->fileid
= nfsi
->fileid
;
948 __entry
->fhandle
= nfs_fhandle_hash(fh
);
952 "fileid=%02x:%02x:%llu fhandle=0x%08x "
953 "offset=%lld count=%u res=%u status=%d%s",
954 MAJOR(__entry
->dev
), MINOR(__entry
->dev
),
955 (unsigned long long)__entry
->fileid
,
957 (long long)__entry
->offset
, __entry
->arg_count
,
958 __entry
->res_count
, __entry
->status
,
959 __entry
->eof
? " eof" : ""
963 TRACE_DEFINE_ENUM(NFS_UNSTABLE
);
964 TRACE_DEFINE_ENUM(NFS_DATA_SYNC
);
965 TRACE_DEFINE_ENUM(NFS_FILE_SYNC
);
967 #define nfs_show_stable(stable) \
968 __print_symbolic(stable, \
969 { NFS_UNSTABLE, "UNSTABLE" }, \
970 { NFS_DATA_SYNC, "DATA_SYNC" }, \
971 { NFS_FILE_SYNC, "FILE_SYNC" })
973 TRACE_EVENT(nfs_initiate_write
,
975 const struct nfs_pgio_header
*hdr
982 __field(u32
, fhandle
)
984 __field(loff_t
, offset
)
986 __field(enum nfs3_stable_how
, stable
)
990 const struct inode
*inode
= hdr
->inode
;
991 const struct nfs_inode
*nfsi
= NFS_I(inode
);
992 const struct nfs_fh
*fh
= hdr
->args
.fh
?
993 hdr
->args
.fh
: &nfsi
->fh
;
995 __entry
->offset
= hdr
->args
.offset
;
996 __entry
->count
= hdr
->args
.count
;
997 __entry
->stable
= hdr
->args
.stable
;
998 __entry
->dev
= inode
->i_sb
->s_dev
;
999 __entry
->fileid
= nfsi
->fileid
;
1000 __entry
->fhandle
= nfs_fhandle_hash(fh
);
1004 "fileid=%02x:%02x:%llu fhandle=0x%08x "
1005 "offset=%lld count=%u stable=%s",
1006 MAJOR(__entry
->dev
), MINOR(__entry
->dev
),
1007 (unsigned long long)__entry
->fileid
,
1009 (long long)__entry
->offset
, __entry
->count
,
1010 nfs_show_stable(__entry
->stable
)
1014 TRACE_EVENT(nfs_writeback_done
,
1016 const struct rpc_task
*task
,
1017 const struct nfs_pgio_header
*hdr
1024 __field(u32
, fhandle
)
1025 __field(u64
, fileid
)
1026 __field(loff_t
, offset
)
1027 __field(u32
, arg_count
)
1028 __field(u32
, res_count
)
1029 __field(int, status
)
1030 __field(enum nfs3_stable_how
, stable
)
1031 __array(char, verifier
, NFS4_VERIFIER_SIZE
)
1035 const struct inode
*inode
= hdr
->inode
;
1036 const struct nfs_inode
*nfsi
= NFS_I(inode
);
1037 const struct nfs_fh
*fh
= hdr
->args
.fh
?
1038 hdr
->args
.fh
: &nfsi
->fh
;
1039 const struct nfs_writeverf
*verf
= hdr
->res
.verf
;
1041 __entry
->status
= task
->tk_status
;
1042 __entry
->offset
= hdr
->args
.offset
;
1043 __entry
->arg_count
= hdr
->args
.count
;
1044 __entry
->res_count
= hdr
->res
.count
;
1045 __entry
->stable
= verf
->committed
;
1046 memcpy(__entry
->verifier
,
1048 NFS4_VERIFIER_SIZE
);
1049 __entry
->dev
= inode
->i_sb
->s_dev
;
1050 __entry
->fileid
= nfsi
->fileid
;
1051 __entry
->fhandle
= nfs_fhandle_hash(fh
);
1055 "fileid=%02x:%02x:%llu fhandle=0x%08x "
1056 "offset=%lld count=%u res=%u status=%d stable=%s "
1058 MAJOR(__entry
->dev
), MINOR(__entry
->dev
),
1059 (unsigned long long)__entry
->fileid
,
1061 (long long)__entry
->offset
, __entry
->arg_count
,
1062 __entry
->res_count
, __entry
->status
,
1063 nfs_show_stable(__entry
->stable
),
1064 __print_hex_str(__entry
->verifier
, NFS4_VERIFIER_SIZE
)
1068 DECLARE_EVENT_CLASS(nfs_page_error_class
,
1070 const struct nfs_page
*req
,
1074 TP_ARGS(req
, error
),
1077 __field(const void *, req
)
1078 __field(pgoff_t
, index
)
1079 __field(unsigned int, offset
)
1080 __field(unsigned int, pgbase
)
1081 __field(unsigned int, bytes
)
1087 __entry
->index
= req
->wb_index
;
1088 __entry
->offset
= req
->wb_offset
;
1089 __entry
->pgbase
= req
->wb_pgbase
;
1090 __entry
->bytes
= req
->wb_bytes
;
1091 __entry
->error
= error
;
1095 "req=%p index=%lu offset=%u pgbase=%u bytes=%u error=%d",
1096 __entry
->req
, __entry
->index
, __entry
->offset
,
1097 __entry
->pgbase
, __entry
->bytes
, __entry
->error
1101 #define DEFINE_NFS_PAGEERR_EVENT(name) \
1102 DEFINE_EVENT(nfs_page_error_class, name, \
1104 const struct nfs_page *req, \
1107 TP_ARGS(req, error))
1109 DEFINE_NFS_PAGEERR_EVENT(nfs_write_error
);
1110 DEFINE_NFS_PAGEERR_EVENT(nfs_comp_error
);
1111 DEFINE_NFS_PAGEERR_EVENT(nfs_commit_error
);
1113 TRACE_EVENT(nfs_initiate_commit
,
1115 const struct nfs_commit_data
*data
1122 __field(u32
, fhandle
)
1123 __field(u64
, fileid
)
1124 __field(loff_t
, offset
)
1129 const struct inode
*inode
= data
->inode
;
1130 const struct nfs_inode
*nfsi
= NFS_I(inode
);
1131 const struct nfs_fh
*fh
= data
->args
.fh
?
1132 data
->args
.fh
: &nfsi
->fh
;
1134 __entry
->offset
= data
->args
.offset
;
1135 __entry
->count
= data
->args
.count
;
1136 __entry
->dev
= inode
->i_sb
->s_dev
;
1137 __entry
->fileid
= nfsi
->fileid
;
1138 __entry
->fhandle
= nfs_fhandle_hash(fh
);
1142 "fileid=%02x:%02x:%llu fhandle=0x%08x "
1143 "offset=%lld count=%u",
1144 MAJOR(__entry
->dev
), MINOR(__entry
->dev
),
1145 (unsigned long long)__entry
->fileid
,
1147 (long long)__entry
->offset
, __entry
->count
1151 TRACE_EVENT(nfs_commit_done
,
1153 const struct rpc_task
*task
,
1154 const struct nfs_commit_data
*data
1157 TP_ARGS(task
, data
),
1161 __field(u32
, fhandle
)
1162 __field(u64
, fileid
)
1163 __field(loff_t
, offset
)
1164 __field(int, status
)
1165 __field(enum nfs3_stable_how
, stable
)
1166 __array(char, verifier
, NFS4_VERIFIER_SIZE
)
1170 const struct inode
*inode
= data
->inode
;
1171 const struct nfs_inode
*nfsi
= NFS_I(inode
);
1172 const struct nfs_fh
*fh
= data
->args
.fh
?
1173 data
->args
.fh
: &nfsi
->fh
;
1174 const struct nfs_writeverf
*verf
= data
->res
.verf
;
1176 __entry
->status
= task
->tk_status
;
1177 __entry
->offset
= data
->args
.offset
;
1178 __entry
->stable
= verf
->committed
;
1179 memcpy(__entry
->verifier
,
1181 NFS4_VERIFIER_SIZE
);
1182 __entry
->dev
= inode
->i_sb
->s_dev
;
1183 __entry
->fileid
= nfsi
->fileid
;
1184 __entry
->fhandle
= nfs_fhandle_hash(fh
);
1188 "fileid=%02x:%02x:%llu fhandle=0x%08x "
1189 "offset=%lld status=%d stable=%s verifier=%s",
1190 MAJOR(__entry
->dev
), MINOR(__entry
->dev
),
1191 (unsigned long long)__entry
->fileid
,
1193 (long long)__entry
->offset
, __entry
->status
,
1194 nfs_show_stable(__entry
->stable
),
1195 __print_hex_str(__entry
->verifier
, NFS4_VERIFIER_SIZE
)
1199 TRACE_EVENT(nfs_fh_to_dentry
,
1201 const struct super_block
*sb
,
1202 const struct nfs_fh
*fh
,
1207 TP_ARGS(sb
, fh
, fileid
, error
),
1212 __field(u32
, fhandle
)
1213 __field(u64
, fileid
)
1217 __entry
->error
= error
;
1218 __entry
->dev
= sb
->s_dev
;
1219 __entry
->fileid
= fileid
;
1220 __entry
->fhandle
= nfs_fhandle_hash(fh
);
1224 "error=%d fileid=%02x:%02x:%llu fhandle=0x%08x ",
1226 MAJOR(__entry
->dev
), MINOR(__entry
->dev
),
1227 (unsigned long long)__entry
->fileid
,
1232 TRACE_DEFINE_ENUM(NFS_OK
);
1233 TRACE_DEFINE_ENUM(NFSERR_PERM
);
1234 TRACE_DEFINE_ENUM(NFSERR_NOENT
);
1235 TRACE_DEFINE_ENUM(NFSERR_IO
);
1236 TRACE_DEFINE_ENUM(NFSERR_NXIO
);
1237 TRACE_DEFINE_ENUM(ECHILD
);
1238 TRACE_DEFINE_ENUM(NFSERR_EAGAIN
);
1239 TRACE_DEFINE_ENUM(NFSERR_ACCES
);
1240 TRACE_DEFINE_ENUM(NFSERR_EXIST
);
1241 TRACE_DEFINE_ENUM(NFSERR_XDEV
);
1242 TRACE_DEFINE_ENUM(NFSERR_NODEV
);
1243 TRACE_DEFINE_ENUM(NFSERR_NOTDIR
);
1244 TRACE_DEFINE_ENUM(NFSERR_ISDIR
);
1245 TRACE_DEFINE_ENUM(NFSERR_INVAL
);
1246 TRACE_DEFINE_ENUM(NFSERR_FBIG
);
1247 TRACE_DEFINE_ENUM(NFSERR_NOSPC
);
1248 TRACE_DEFINE_ENUM(NFSERR_ROFS
);
1249 TRACE_DEFINE_ENUM(NFSERR_MLINK
);
1250 TRACE_DEFINE_ENUM(NFSERR_OPNOTSUPP
);
1251 TRACE_DEFINE_ENUM(NFSERR_NAMETOOLONG
);
1252 TRACE_DEFINE_ENUM(NFSERR_NOTEMPTY
);
1253 TRACE_DEFINE_ENUM(NFSERR_DQUOT
);
1254 TRACE_DEFINE_ENUM(NFSERR_STALE
);
1255 TRACE_DEFINE_ENUM(NFSERR_REMOTE
);
1256 TRACE_DEFINE_ENUM(NFSERR_WFLUSH
);
1257 TRACE_DEFINE_ENUM(NFSERR_BADHANDLE
);
1258 TRACE_DEFINE_ENUM(NFSERR_NOT_SYNC
);
1259 TRACE_DEFINE_ENUM(NFSERR_BAD_COOKIE
);
1260 TRACE_DEFINE_ENUM(NFSERR_NOTSUPP
);
1261 TRACE_DEFINE_ENUM(NFSERR_TOOSMALL
);
1262 TRACE_DEFINE_ENUM(NFSERR_SERVERFAULT
);
1263 TRACE_DEFINE_ENUM(NFSERR_BADTYPE
);
1264 TRACE_DEFINE_ENUM(NFSERR_JUKEBOX
);
1266 #define nfs_show_status(x) \
1267 __print_symbolic(x, \
1269 { NFSERR_PERM, "PERM" }, \
1270 { NFSERR_NOENT, "NOENT" }, \
1271 { NFSERR_IO, "IO" }, \
1272 { NFSERR_NXIO, "NXIO" }, \
1273 { ECHILD, "CHILD" }, \
1274 { NFSERR_EAGAIN, "AGAIN" }, \
1275 { NFSERR_ACCES, "ACCES" }, \
1276 { NFSERR_EXIST, "EXIST" }, \
1277 { NFSERR_XDEV, "XDEV" }, \
1278 { NFSERR_NODEV, "NODEV" }, \
1279 { NFSERR_NOTDIR, "NOTDIR" }, \
1280 { NFSERR_ISDIR, "ISDIR" }, \
1281 { NFSERR_INVAL, "INVAL" }, \
1282 { NFSERR_FBIG, "FBIG" }, \
1283 { NFSERR_NOSPC, "NOSPC" }, \
1284 { NFSERR_ROFS, "ROFS" }, \
1285 { NFSERR_MLINK, "MLINK" }, \
1286 { NFSERR_OPNOTSUPP, "OPNOTSUPP" }, \
1287 { NFSERR_NAMETOOLONG, "NAMETOOLONG" }, \
1288 { NFSERR_NOTEMPTY, "NOTEMPTY" }, \
1289 { NFSERR_DQUOT, "DQUOT" }, \
1290 { NFSERR_STALE, "STALE" }, \
1291 { NFSERR_REMOTE, "REMOTE" }, \
1292 { NFSERR_WFLUSH, "WFLUSH" }, \
1293 { NFSERR_BADHANDLE, "BADHANDLE" }, \
1294 { NFSERR_NOT_SYNC, "NOTSYNC" }, \
1295 { NFSERR_BAD_COOKIE, "BADCOOKIE" }, \
1296 { NFSERR_NOTSUPP, "NOTSUPP" }, \
1297 { NFSERR_TOOSMALL, "TOOSMALL" }, \
1298 { NFSERR_SERVERFAULT, "REMOTEIO" }, \
1299 { NFSERR_BADTYPE, "BADTYPE" }, \
1300 { NFSERR_JUKEBOX, "JUKEBOX" })
1302 TRACE_EVENT(nfs_xdr_status
,
1304 const struct xdr_stream
*xdr
,
1308 TP_ARGS(xdr
, error
),
1311 __field(unsigned int, task_id
)
1312 __field(unsigned int, client_id
)
1314 __field(unsigned long, error
)
1318 const struct rpc_rqst
*rqstp
= xdr
->rqst
;
1319 const struct rpc_task
*task
= rqstp
->rq_task
;
1321 __entry
->task_id
= task
->tk_pid
;
1322 __entry
->client_id
= task
->tk_client
->cl_clid
;
1323 __entry
->xid
= be32_to_cpu(rqstp
->rq_xid
);
1324 __entry
->error
= error
;
1328 "task:%u@%d xid=0x%08x error=%ld (%s)",
1329 __entry
->task_id
, __entry
->client_id
, __entry
->xid
,
1330 -__entry
->error
, nfs_show_status(__entry
->error
)
1334 #endif /* _TRACE_NFS_H */
1336 #undef TRACE_INCLUDE_PATH
1337 #define TRACE_INCLUDE_PATH .
1338 #define TRACE_INCLUDE_FILE nfstrace
1339 /* This part must be outside protection */
1340 #include <trace/define_trace.h>