aboutsummaryrefslogtreecommitdiffstats
path: root/include/trace
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2016-09-08 06:10:12 -0400
committerDavid Howells <dhowells@redhat.com>2016-09-08 06:10:12 -0400
commit49e19ec7d3499f79d2b3a45bb28418e89512fd7a (patch)
treef1969d57bc0f7018b64552a4b1a45028addc90d0 /include/trace
parent2ab27215ea27475a0b279732ba8a934bfab57ef0 (diff)
rxrpc: Add tracepoints to record received packets and end of data_ready
Add two tracepoints: (1) Record the RxRPC protocol header of packets retrieved from the UDP socket by the data_ready handler. (2) Record the outcome of the data_ready handler. Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'include/trace')
-rw-r--r--include/trace/events/rxrpc.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/include/trace/events/rxrpc.h b/include/trace/events/rxrpc.h
index 6b06cf050bc0..ea3b10ed91a8 100644
--- a/include/trace/events/rxrpc.h
+++ b/include/trace/events/rxrpc.h
@@ -80,6 +80,44 @@ TRACE_EVENT(rxrpc_skb,
80 __entry->where) 80 __entry->where)
81 ); 81 );
82 82
83TRACE_EVENT(rxrpc_rx_packet,
84 TP_PROTO(struct rxrpc_skb_priv *sp),
85
86 TP_ARGS(sp),
87
88 TP_STRUCT__entry(
89 __field_struct(struct rxrpc_host_header, hdr )
90 ),
91
92 TP_fast_assign(
93 memcpy(&__entry->hdr, &sp->hdr, sizeof(__entry->hdr));
94 ),
95
96 TP_printk("%08x:%08x:%08x:%04x %08x %08x %02x %02x",
97 __entry->hdr.epoch, __entry->hdr.cid,
98 __entry->hdr.callNumber, __entry->hdr.serviceId,
99 __entry->hdr.serial, __entry->hdr.seq,
100 __entry->hdr.type, __entry->hdr.flags)
101 );
102
103TRACE_EVENT(rxrpc_rx_done,
104 TP_PROTO(int result, int abort_code),
105
106 TP_ARGS(result, abort_code),
107
108 TP_STRUCT__entry(
109 __field(int, result )
110 __field(int, abort_code )
111 ),
112
113 TP_fast_assign(
114 __entry->result = result;
115 __entry->abort_code = abort_code;
116 ),
117
118 TP_printk("r=%d a=%d", __entry->result, __entry->abort_code)
119 );
120
83TRACE_EVENT(rxrpc_abort, 121TRACE_EVENT(rxrpc_abort,
84 TP_PROTO(const char *why, u32 cid, u32 call_id, rxrpc_seq_t seq, 122 TP_PROTO(const char *why, u32 cid, u32 call_id, rxrpc_seq_t seq,
85 int abort_code, int error), 123 int abort_code, int error),