summaryrefslogtreecommitdiff
path: root/include/trace/events/afs.h
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2018-04-06 16:17:25 +0300
committerDavid Howells <dhowells@redhat.com>2018-04-09 23:54:48 +0300
commit5f702c8e124f967146a735a19f0b00a2469487d1 (patch)
tree16f1818dcb8412656be694a3071b7f31e4ee9094 /include/trace/events/afs.h
parent63a4681ff39cb63314b8ff41319e70fb0e606ed2 (diff)
downloadlinux-5f702c8e124f967146a735a19f0b00a2469487d1.tar.xz
afs: Trace protocol errors
Trace protocol errors detected in afs. Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'include/trace/events/afs.h')
-rw-r--r--include/trace/events/afs.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/trace/events/afs.h b/include/trace/events/afs.h
index f46dee0f5ced..f0820554caa9 100644
--- a/include/trace/events/afs.h
+++ b/include/trace/events/afs.h
@@ -554,6 +554,27 @@ TRACE_EVENT(afs_edit_dir,
__entry->name)
);
+TRACE_EVENT(afs_protocol_error,
+ TP_PROTO(struct afs_call *call, int error, const void *where),
+
+ TP_ARGS(call, error, where),
+
+ TP_STRUCT__entry(
+ __field(unsigned int, call )
+ __field(int, error )
+ __field(const void *, where )
+ ),
+
+ TP_fast_assign(
+ __entry->call = call ? call->debug_id : 0;
+ __entry->error = error;
+ __entry->where = where;
+ ),
+
+ TP_printk("c=%08x r=%d sp=%pSR",
+ __entry->call, __entry->error, __entry->where)
+ );
+
#endif /* _TRACE_AFS_H */
/* This part must be outside protection */