xref: /openbmc/linux/include/trace/events/rxrpc.h (revision 82e6fdd6)
1 /* AF_RXRPC tracepoints
2  *
3  * Copyright (C) 2016 Red Hat, Inc. All Rights Reserved.
4  * Written by David Howells (dhowells@redhat.com)
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public Licence
8  * as published by the Free Software Foundation; either version
9  * 2 of the Licence, or (at your option) any later version.
10  */
11 #undef TRACE_SYSTEM
12 #define TRACE_SYSTEM rxrpc
13 
14 #if !defined(_TRACE_RXRPC_H) || defined(TRACE_HEADER_MULTI_READ)
15 #define _TRACE_RXRPC_H
16 
17 #include <linux/tracepoint.h>
18 
19 /*
20  * Define enums for tracing information.
21  *
22  * These should all be kept sorted, making it easier to match the string
23  * mapping tables further on.
24  */
25 #ifndef __RXRPC_DECLARE_TRACE_ENUMS_ONCE_ONLY
26 #define __RXRPC_DECLARE_TRACE_ENUMS_ONCE_ONLY
27 
28 enum rxrpc_skb_trace {
29 	rxrpc_skb_rx_cleaned,
30 	rxrpc_skb_rx_freed,
31 	rxrpc_skb_rx_got,
32 	rxrpc_skb_rx_lost,
33 	rxrpc_skb_rx_purged,
34 	rxrpc_skb_rx_received,
35 	rxrpc_skb_rx_rotated,
36 	rxrpc_skb_rx_seen,
37 	rxrpc_skb_tx_cleaned,
38 	rxrpc_skb_tx_freed,
39 	rxrpc_skb_tx_got,
40 	rxrpc_skb_tx_new,
41 	rxrpc_skb_tx_rotated,
42 	rxrpc_skb_tx_seen,
43 };
44 
45 enum rxrpc_conn_trace {
46 	rxrpc_conn_got,
47 	rxrpc_conn_new_client,
48 	rxrpc_conn_new_service,
49 	rxrpc_conn_put_client,
50 	rxrpc_conn_put_service,
51 	rxrpc_conn_queued,
52 	rxrpc_conn_reap_service,
53 	rxrpc_conn_seen,
54 };
55 
56 enum rxrpc_client_trace {
57 	rxrpc_client_activate_chans,
58 	rxrpc_client_alloc,
59 	rxrpc_client_chan_activate,
60 	rxrpc_client_chan_disconnect,
61 	rxrpc_client_chan_pass,
62 	rxrpc_client_chan_unstarted,
63 	rxrpc_client_cleanup,
64 	rxrpc_client_count,
65 	rxrpc_client_discard,
66 	rxrpc_client_duplicate,
67 	rxrpc_client_exposed,
68 	rxrpc_client_replace,
69 	rxrpc_client_to_active,
70 	rxrpc_client_to_culled,
71 	rxrpc_client_to_idle,
72 	rxrpc_client_to_inactive,
73 	rxrpc_client_to_upgrade,
74 	rxrpc_client_to_waiting,
75 	rxrpc_client_uncount,
76 };
77 
78 enum rxrpc_call_trace {
79 	rxrpc_call_connected,
80 	rxrpc_call_error,
81 	rxrpc_call_got,
82 	rxrpc_call_got_kernel,
83 	rxrpc_call_got_userid,
84 	rxrpc_call_new_client,
85 	rxrpc_call_new_service,
86 	rxrpc_call_put,
87 	rxrpc_call_put_kernel,
88 	rxrpc_call_put_noqueue,
89 	rxrpc_call_put_userid,
90 	rxrpc_call_queued,
91 	rxrpc_call_queued_ref,
92 	rxrpc_call_release,
93 	rxrpc_call_seen,
94 };
95 
96 enum rxrpc_transmit_trace {
97 	rxrpc_transmit_await_reply,
98 	rxrpc_transmit_end,
99 	rxrpc_transmit_queue,
100 	rxrpc_transmit_queue_last,
101 	rxrpc_transmit_rotate,
102 	rxrpc_transmit_rotate_last,
103 	rxrpc_transmit_wait,
104 };
105 
106 enum rxrpc_receive_trace {
107 	rxrpc_receive_end,
108 	rxrpc_receive_front,
109 	rxrpc_receive_incoming,
110 	rxrpc_receive_queue,
111 	rxrpc_receive_queue_last,
112 	rxrpc_receive_rotate,
113 };
114 
115 enum rxrpc_recvmsg_trace {
116 	rxrpc_recvmsg_cont,
117 	rxrpc_recvmsg_data_return,
118 	rxrpc_recvmsg_dequeue,
119 	rxrpc_recvmsg_enter,
120 	rxrpc_recvmsg_full,
121 	rxrpc_recvmsg_hole,
122 	rxrpc_recvmsg_next,
123 	rxrpc_recvmsg_requeue,
124 	rxrpc_recvmsg_return,
125 	rxrpc_recvmsg_terminal,
126 	rxrpc_recvmsg_to_be_accepted,
127 	rxrpc_recvmsg_wait,
128 };
129 
130 enum rxrpc_rtt_tx_trace {
131 	rxrpc_rtt_tx_data,
132 	rxrpc_rtt_tx_ping,
133 };
134 
135 enum rxrpc_rtt_rx_trace {
136 	rxrpc_rtt_rx_ping_response,
137 	rxrpc_rtt_rx_requested_ack,
138 };
139 
140 enum rxrpc_timer_trace {
141 	rxrpc_timer_begin,
142 	rxrpc_timer_exp_ack,
143 	rxrpc_timer_exp_hard,
144 	rxrpc_timer_exp_idle,
145 	rxrpc_timer_exp_keepalive,
146 	rxrpc_timer_exp_lost_ack,
147 	rxrpc_timer_exp_normal,
148 	rxrpc_timer_exp_ping,
149 	rxrpc_timer_exp_resend,
150 	rxrpc_timer_expired,
151 	rxrpc_timer_init_for_reply,
152 	rxrpc_timer_init_for_send_reply,
153 	rxrpc_timer_restart,
154 	rxrpc_timer_set_for_ack,
155 	rxrpc_timer_set_for_hard,
156 	rxrpc_timer_set_for_idle,
157 	rxrpc_timer_set_for_keepalive,
158 	rxrpc_timer_set_for_lost_ack,
159 	rxrpc_timer_set_for_normal,
160 	rxrpc_timer_set_for_ping,
161 	rxrpc_timer_set_for_resend,
162 	rxrpc_timer_set_for_send,
163 };
164 
165 enum rxrpc_propose_ack_trace {
166 	rxrpc_propose_ack_client_tx_end,
167 	rxrpc_propose_ack_input_data,
168 	rxrpc_propose_ack_ping_for_keepalive,
169 	rxrpc_propose_ack_ping_for_lost_ack,
170 	rxrpc_propose_ack_ping_for_lost_reply,
171 	rxrpc_propose_ack_ping_for_params,
172 	rxrpc_propose_ack_processing_op,
173 	rxrpc_propose_ack_respond_to_ack,
174 	rxrpc_propose_ack_respond_to_ping,
175 	rxrpc_propose_ack_retry_tx,
176 	rxrpc_propose_ack_rotate_rx,
177 	rxrpc_propose_ack_terminal_ack,
178 };
179 
180 enum rxrpc_propose_ack_outcome {
181 	rxrpc_propose_ack_subsume,
182 	rxrpc_propose_ack_update,
183 	rxrpc_propose_ack_use,
184 };
185 
186 enum rxrpc_congest_change {
187 	rxrpc_cong_begin_retransmission,
188 	rxrpc_cong_cleared_nacks,
189 	rxrpc_cong_new_low_nack,
190 	rxrpc_cong_no_change,
191 	rxrpc_cong_progress,
192 	rxrpc_cong_retransmit_again,
193 	rxrpc_cong_rtt_window_end,
194 	rxrpc_cong_saw_nack,
195 };
196 
197 #endif /* end __RXRPC_DECLARE_TRACE_ENUMS_ONCE_ONLY */
198 
199 /*
200  * Declare tracing information enums and their string mappings for display.
201  */
202 #define rxrpc_skb_traces \
203 	EM(rxrpc_skb_rx_cleaned,		"Rx CLN") \
204 	EM(rxrpc_skb_rx_freed,			"Rx FRE") \
205 	EM(rxrpc_skb_rx_got,			"Rx GOT") \
206 	EM(rxrpc_skb_rx_lost,			"Rx *L*") \
207 	EM(rxrpc_skb_rx_purged,			"Rx PUR") \
208 	EM(rxrpc_skb_rx_received,		"Rx RCV") \
209 	EM(rxrpc_skb_rx_rotated,		"Rx ROT") \
210 	EM(rxrpc_skb_rx_seen,			"Rx SEE") \
211 	EM(rxrpc_skb_tx_cleaned,		"Tx CLN") \
212 	EM(rxrpc_skb_tx_freed,			"Tx FRE") \
213 	EM(rxrpc_skb_tx_got,			"Tx GOT") \
214 	EM(rxrpc_skb_tx_new,			"Tx NEW") \
215 	EM(rxrpc_skb_tx_rotated,		"Tx ROT") \
216 	E_(rxrpc_skb_tx_seen,			"Tx SEE")
217 
218 #define rxrpc_conn_traces \
219 	EM(rxrpc_conn_got,			"GOT") \
220 	EM(rxrpc_conn_new_client,		"NWc") \
221 	EM(rxrpc_conn_new_service,		"NWs") \
222 	EM(rxrpc_conn_put_client,		"PTc") \
223 	EM(rxrpc_conn_put_service,		"PTs") \
224 	EM(rxrpc_conn_queued,			"QUE") \
225 	EM(rxrpc_conn_reap_service,		"RPs") \
226 	E_(rxrpc_conn_seen,			"SEE")
227 
228 #define rxrpc_client_traces \
229 	EM(rxrpc_client_activate_chans,		"Activa") \
230 	EM(rxrpc_client_alloc,			"Alloc ") \
231 	EM(rxrpc_client_chan_activate,		"ChActv") \
232 	EM(rxrpc_client_chan_disconnect,	"ChDisc") \
233 	EM(rxrpc_client_chan_pass,		"ChPass") \
234 	EM(rxrpc_client_chan_unstarted,		"ChUnst") \
235 	EM(rxrpc_client_cleanup,		"Clean ") \
236 	EM(rxrpc_client_count,			"Count ") \
237 	EM(rxrpc_client_discard,		"Discar") \
238 	EM(rxrpc_client_duplicate,		"Duplic") \
239 	EM(rxrpc_client_exposed,		"Expose") \
240 	EM(rxrpc_client_replace,		"Replac") \
241 	EM(rxrpc_client_to_active,		"->Actv") \
242 	EM(rxrpc_client_to_culled,		"->Cull") \
243 	EM(rxrpc_client_to_idle,		"->Idle") \
244 	EM(rxrpc_client_to_inactive,		"->Inac") \
245 	EM(rxrpc_client_to_upgrade,		"->Upgd") \
246 	EM(rxrpc_client_to_waiting,		"->Wait") \
247 	E_(rxrpc_client_uncount,		"Uncoun")
248 
249 #define rxrpc_conn_cache_states \
250 	EM(RXRPC_CONN_CLIENT_INACTIVE,		"Inac") \
251 	EM(RXRPC_CONN_CLIENT_WAITING,		"Wait") \
252 	EM(RXRPC_CONN_CLIENT_ACTIVE,		"Actv") \
253 	EM(RXRPC_CONN_CLIENT_UPGRADE,		"Upgd") \
254 	EM(RXRPC_CONN_CLIENT_CULLED,		"Cull") \
255 	E_(RXRPC_CONN_CLIENT_IDLE,		"Idle") \
256 
257 #define rxrpc_call_traces \
258 	EM(rxrpc_call_connected,		"CON") \
259 	EM(rxrpc_call_error,			"*E*") \
260 	EM(rxrpc_call_got,			"GOT") \
261 	EM(rxrpc_call_got_kernel,		"Gke") \
262 	EM(rxrpc_call_got_userid,		"Gus") \
263 	EM(rxrpc_call_new_client,		"NWc") \
264 	EM(rxrpc_call_new_service,		"NWs") \
265 	EM(rxrpc_call_put,			"PUT") \
266 	EM(rxrpc_call_put_kernel,		"Pke") \
267 	EM(rxrpc_call_put_noqueue,		"PNQ") \
268 	EM(rxrpc_call_put_userid,		"Pus") \
269 	EM(rxrpc_call_queued,			"QUE") \
270 	EM(rxrpc_call_queued_ref,		"QUR") \
271 	EM(rxrpc_call_release,			"RLS") \
272 	E_(rxrpc_call_seen,			"SEE")
273 
274 #define rxrpc_transmit_traces \
275 	EM(rxrpc_transmit_await_reply,		"AWR") \
276 	EM(rxrpc_transmit_end,			"END") \
277 	EM(rxrpc_transmit_queue,		"QUE") \
278 	EM(rxrpc_transmit_queue_last,		"QLS") \
279 	EM(rxrpc_transmit_rotate,		"ROT") \
280 	EM(rxrpc_transmit_rotate_last,		"RLS") \
281 	E_(rxrpc_transmit_wait,			"WAI")
282 
283 #define rxrpc_receive_traces \
284 	EM(rxrpc_receive_end,			"END") \
285 	EM(rxrpc_receive_front,			"FRN") \
286 	EM(rxrpc_receive_incoming,		"INC") \
287 	EM(rxrpc_receive_queue,			"QUE") \
288 	EM(rxrpc_receive_queue_last,		"QLS") \
289 	E_(rxrpc_receive_rotate,		"ROT")
290 
291 #define rxrpc_recvmsg_traces \
292 	EM(rxrpc_recvmsg_cont,			"CONT") \
293 	EM(rxrpc_recvmsg_data_return,		"DATA") \
294 	EM(rxrpc_recvmsg_dequeue,		"DEQU") \
295 	EM(rxrpc_recvmsg_enter,			"ENTR") \
296 	EM(rxrpc_recvmsg_full,			"FULL") \
297 	EM(rxrpc_recvmsg_hole,			"HOLE") \
298 	EM(rxrpc_recvmsg_next,			"NEXT") \
299 	EM(rxrpc_recvmsg_requeue,		"REQU") \
300 	EM(rxrpc_recvmsg_return,		"RETN") \
301 	EM(rxrpc_recvmsg_terminal,		"TERM") \
302 	EM(rxrpc_recvmsg_to_be_accepted,	"TBAC") \
303 	E_(rxrpc_recvmsg_wait,			"WAIT")
304 
305 #define rxrpc_rtt_tx_traces \
306 	EM(rxrpc_rtt_tx_data,			"DATA") \
307 	E_(rxrpc_rtt_tx_ping,			"PING")
308 
309 #define rxrpc_rtt_rx_traces \
310 	EM(rxrpc_rtt_rx_ping_response,		"PONG") \
311 	E_(rxrpc_rtt_rx_requested_ack,		"RACK")
312 
313 #define rxrpc_timer_traces \
314 	EM(rxrpc_timer_begin,			"Begin ") \
315 	EM(rxrpc_timer_expired,			"*EXPR*") \
316 	EM(rxrpc_timer_exp_ack,			"ExpAck") \
317 	EM(rxrpc_timer_exp_hard,		"ExpHrd") \
318 	EM(rxrpc_timer_exp_idle,		"ExpIdl") \
319 	EM(rxrpc_timer_exp_keepalive,		"ExpKA ") \
320 	EM(rxrpc_timer_exp_lost_ack,		"ExpLoA") \
321 	EM(rxrpc_timer_exp_normal,		"ExpNml") \
322 	EM(rxrpc_timer_exp_ping,		"ExpPng") \
323 	EM(rxrpc_timer_exp_resend,		"ExpRsn") \
324 	EM(rxrpc_timer_init_for_reply,		"IniRpl") \
325 	EM(rxrpc_timer_init_for_send_reply,	"SndRpl") \
326 	EM(rxrpc_timer_restart,			"Restrt") \
327 	EM(rxrpc_timer_set_for_ack,		"SetAck") \
328 	EM(rxrpc_timer_set_for_hard,		"SetHrd") \
329 	EM(rxrpc_timer_set_for_idle,		"SetIdl") \
330 	EM(rxrpc_timer_set_for_keepalive,	"KeepAl") \
331 	EM(rxrpc_timer_set_for_lost_ack,	"SetLoA") \
332 	EM(rxrpc_timer_set_for_normal,		"SetNml") \
333 	EM(rxrpc_timer_set_for_ping,		"SetPng") \
334 	EM(rxrpc_timer_set_for_resend,		"SetRTx") \
335 	E_(rxrpc_timer_set_for_send,		"SetSnd")
336 
337 #define rxrpc_propose_ack_traces \
338 	EM(rxrpc_propose_ack_client_tx_end,	"ClTxEnd") \
339 	EM(rxrpc_propose_ack_input_data,	"DataIn ") \
340 	EM(rxrpc_propose_ack_ping_for_keepalive, "KeepAlv") \
341 	EM(rxrpc_propose_ack_ping_for_lost_ack,	"LostAck") \
342 	EM(rxrpc_propose_ack_ping_for_lost_reply, "LostRpl") \
343 	EM(rxrpc_propose_ack_ping_for_params,	"Params ") \
344 	EM(rxrpc_propose_ack_processing_op,	"ProcOp ") \
345 	EM(rxrpc_propose_ack_respond_to_ack,	"Rsp2Ack") \
346 	EM(rxrpc_propose_ack_respond_to_ping,	"Rsp2Png") \
347 	EM(rxrpc_propose_ack_retry_tx,		"RetryTx") \
348 	EM(rxrpc_propose_ack_rotate_rx,		"RxAck  ") \
349 	E_(rxrpc_propose_ack_terminal_ack,	"ClTerm ")
350 
351 #define rxrpc_propose_ack_outcomes \
352 	EM(rxrpc_propose_ack_subsume,		" Subsume") \
353 	EM(rxrpc_propose_ack_update,		" Update") \
354 	E_(rxrpc_propose_ack_use,		"")
355 
356 #define rxrpc_congest_modes \
357 	EM(RXRPC_CALL_CONGEST_AVOIDANCE,	"CongAvoid") \
358 	EM(RXRPC_CALL_FAST_RETRANSMIT,		"FastReTx ") \
359 	EM(RXRPC_CALL_PACKET_LOSS,		"PktLoss  ") \
360 	E_(RXRPC_CALL_SLOW_START,		"SlowStart")
361 
362 #define rxrpc_congest_changes \
363 	EM(rxrpc_cong_begin_retransmission,	" Retrans") \
364 	EM(rxrpc_cong_cleared_nacks,		" Cleared") \
365 	EM(rxrpc_cong_new_low_nack,		" NewLowN") \
366 	EM(rxrpc_cong_no_change,		"") \
367 	EM(rxrpc_cong_progress,			" Progres") \
368 	EM(rxrpc_cong_retransmit_again,		" ReTxAgn") \
369 	EM(rxrpc_cong_rtt_window_end,		" RttWinE") \
370 	E_(rxrpc_cong_saw_nack,			" SawNack")
371 
372 #define rxrpc_pkts \
373 	EM(0,					"?00") \
374 	EM(RXRPC_PACKET_TYPE_DATA,		"DATA") \
375 	EM(RXRPC_PACKET_TYPE_ACK,		"ACK") \
376 	EM(RXRPC_PACKET_TYPE_BUSY,		"BUSY") \
377 	EM(RXRPC_PACKET_TYPE_ABORT,		"ABORT") \
378 	EM(RXRPC_PACKET_TYPE_ACKALL,		"ACKALL") \
379 	EM(RXRPC_PACKET_TYPE_CHALLENGE,		"CHALL") \
380 	EM(RXRPC_PACKET_TYPE_RESPONSE,		"RESP") \
381 	EM(RXRPC_PACKET_TYPE_DEBUG,		"DEBUG") \
382 	EM(9,					"?09") \
383 	EM(10,					"?10") \
384 	EM(11,					"?11") \
385 	EM(12,					"?12") \
386 	EM(RXRPC_PACKET_TYPE_VERSION,		"VERSION") \
387 	EM(14,					"?14") \
388 	E_(15,					"?15")
389 
390 #define rxrpc_ack_names \
391 	EM(0,					"-0-") \
392 	EM(RXRPC_ACK_REQUESTED,			"REQ") \
393 	EM(RXRPC_ACK_DUPLICATE,			"DUP") \
394 	EM(RXRPC_ACK_OUT_OF_SEQUENCE,		"OOS") \
395 	EM(RXRPC_ACK_EXCEEDS_WINDOW,		"WIN") \
396 	EM(RXRPC_ACK_NOSPACE,			"MEM") \
397 	EM(RXRPC_ACK_PING,			"PNG") \
398 	EM(RXRPC_ACK_PING_RESPONSE,		"PNR") \
399 	EM(RXRPC_ACK_DELAY,			"DLY") \
400 	EM(RXRPC_ACK_IDLE,			"IDL") \
401 	E_(RXRPC_ACK__INVALID,			"-?-")
402 
403 /*
404  * Export enum symbols via userspace.
405  */
406 #undef EM
407 #undef E_
408 #define EM(a, b) TRACE_DEFINE_ENUM(a);
409 #define E_(a, b) TRACE_DEFINE_ENUM(a);
410 
411 rxrpc_skb_traces;
412 rxrpc_conn_traces;
413 rxrpc_client_traces;
414 rxrpc_call_traces;
415 rxrpc_transmit_traces;
416 rxrpc_receive_traces;
417 rxrpc_recvmsg_traces;
418 rxrpc_rtt_tx_traces;
419 rxrpc_rtt_rx_traces;
420 rxrpc_timer_traces;
421 rxrpc_propose_ack_traces;
422 rxrpc_propose_ack_outcomes;
423 rxrpc_congest_changes;
424 
425 /*
426  * Now redefine the EM() and E_() macros to map the enums to the strings that
427  * will be printed in the output.
428  */
429 #undef EM
430 #undef E_
431 #define EM(a, b)	{ a, b },
432 #define E_(a, b)	{ a, b }
433 
434 TRACE_EVENT(rxrpc_conn,
435 	    TP_PROTO(struct rxrpc_connection *conn, enum rxrpc_conn_trace op,
436 		     int usage, const void *where),
437 
438 	    TP_ARGS(conn, op, usage, where),
439 
440 	    TP_STRUCT__entry(
441 		    __field(struct rxrpc_connection *,	conn		)
442 		    __field(int,			op		)
443 		    __field(int,			usage		)
444 		    __field(const void *,		where		)
445 			     ),
446 
447 	    TP_fast_assign(
448 		    __entry->conn = conn;
449 		    __entry->op = op;
450 		    __entry->usage = usage;
451 		    __entry->where = where;
452 			   ),
453 
454 	    TP_printk("C=%p %s u=%d sp=%pSR",
455 		      __entry->conn,
456 		      __print_symbolic(__entry->op, rxrpc_conn_traces),
457 		      __entry->usage,
458 		      __entry->where)
459 	    );
460 
461 TRACE_EVENT(rxrpc_client,
462 	    TP_PROTO(struct rxrpc_connection *conn, int channel,
463 		     enum rxrpc_client_trace op),
464 
465 	    TP_ARGS(conn, channel, op),
466 
467 	    TP_STRUCT__entry(
468 		    __field(struct rxrpc_connection *,	conn		)
469 		    __field(u32,			cid		)
470 		    __field(int,			channel		)
471 		    __field(int,			usage		)
472 		    __field(enum rxrpc_client_trace,	op		)
473 		    __field(enum rxrpc_conn_cache_state, cs		)
474 			     ),
475 
476 	    TP_fast_assign(
477 		    __entry->conn = conn;
478 		    __entry->channel = channel;
479 		    __entry->usage = atomic_read(&conn->usage);
480 		    __entry->op = op;
481 		    __entry->cid = conn->proto.cid;
482 		    __entry->cs = conn->cache_state;
483 			   ),
484 
485 	    TP_printk("C=%p h=%2d %s %s i=%08x u=%d",
486 		      __entry->conn,
487 		      __entry->channel,
488 		      __print_symbolic(__entry->op, rxrpc_client_traces),
489 		      __print_symbolic(__entry->cs, rxrpc_conn_cache_states),
490 		      __entry->cid,
491 		      __entry->usage)
492 	    );
493 
494 TRACE_EVENT(rxrpc_call,
495 	    TP_PROTO(struct rxrpc_call *call, enum rxrpc_call_trace op,
496 		     int usage, const void *where, const void *aux),
497 
498 	    TP_ARGS(call, op, usage, where, aux),
499 
500 	    TP_STRUCT__entry(
501 		    __field(struct rxrpc_call *,	call		)
502 		    __field(int,			op		)
503 		    __field(int,			usage		)
504 		    __field(const void *,		where		)
505 		    __field(const void *,		aux		)
506 			     ),
507 
508 	    TP_fast_assign(
509 		    __entry->call = call;
510 		    __entry->op = op;
511 		    __entry->usage = usage;
512 		    __entry->where = where;
513 		    __entry->aux = aux;
514 			   ),
515 
516 	    TP_printk("c=%p %s u=%d sp=%pSR a=%p",
517 		      __entry->call,
518 		      __print_symbolic(__entry->op, rxrpc_call_traces),
519 		      __entry->usage,
520 		      __entry->where,
521 		      __entry->aux)
522 	    );
523 
524 TRACE_EVENT(rxrpc_skb,
525 	    TP_PROTO(struct sk_buff *skb, enum rxrpc_skb_trace op,
526 		     int usage, int mod_count, const void *where),
527 
528 	    TP_ARGS(skb, op, usage, mod_count, where),
529 
530 	    TP_STRUCT__entry(
531 		    __field(struct sk_buff *,		skb		)
532 		    __field(enum rxrpc_skb_trace,	op		)
533 		    __field(int,			usage		)
534 		    __field(int,			mod_count	)
535 		    __field(const void *,		where		)
536 			     ),
537 
538 	    TP_fast_assign(
539 		    __entry->skb = skb;
540 		    __entry->op = op;
541 		    __entry->usage = usage;
542 		    __entry->mod_count = mod_count;
543 		    __entry->where = where;
544 			   ),
545 
546 	    TP_printk("s=%p %s u=%d m=%d p=%pSR",
547 		      __entry->skb,
548 		      __print_symbolic(__entry->op, rxrpc_skb_traces),
549 		      __entry->usage,
550 		      __entry->mod_count,
551 		      __entry->where)
552 	    );
553 
554 TRACE_EVENT(rxrpc_rx_packet,
555 	    TP_PROTO(struct rxrpc_skb_priv *sp),
556 
557 	    TP_ARGS(sp),
558 
559 	    TP_STRUCT__entry(
560 		    __field_struct(struct rxrpc_host_header,	hdr		)
561 			     ),
562 
563 	    TP_fast_assign(
564 		    memcpy(&__entry->hdr, &sp->hdr, sizeof(__entry->hdr));
565 			   ),
566 
567 	    TP_printk("%08x:%08x:%08x:%04x %08x %08x %02x %02x %s",
568 		      __entry->hdr.epoch, __entry->hdr.cid,
569 		      __entry->hdr.callNumber, __entry->hdr.serviceId,
570 		      __entry->hdr.serial, __entry->hdr.seq,
571 		      __entry->hdr.type, __entry->hdr.flags,
572 		      __entry->hdr.type <= 15 ?
573 		      __print_symbolic(__entry->hdr.type, rxrpc_pkts) : "?UNK")
574 	    );
575 
576 TRACE_EVENT(rxrpc_rx_done,
577 	    TP_PROTO(int result, int abort_code),
578 
579 	    TP_ARGS(result, abort_code),
580 
581 	    TP_STRUCT__entry(
582 		    __field(int,			result		)
583 		    __field(int,			abort_code	)
584 			     ),
585 
586 	    TP_fast_assign(
587 		    __entry->result = result;
588 		    __entry->abort_code = abort_code;
589 			   ),
590 
591 	    TP_printk("r=%d a=%d", __entry->result, __entry->abort_code)
592 	    );
593 
594 TRACE_EVENT(rxrpc_abort,
595 	    TP_PROTO(const char *why, u32 cid, u32 call_id, rxrpc_seq_t seq,
596 		     int abort_code, int error),
597 
598 	    TP_ARGS(why, cid, call_id, seq, abort_code, error),
599 
600 	    TP_STRUCT__entry(
601 		    __array(char,			why, 4		)
602 		    __field(u32,			cid		)
603 		    __field(u32,			call_id		)
604 		    __field(rxrpc_seq_t,		seq		)
605 		    __field(int,			abort_code	)
606 		    __field(int,			error		)
607 			     ),
608 
609 	    TP_fast_assign(
610 		    memcpy(__entry->why, why, 4);
611 		    __entry->cid = cid;
612 		    __entry->call_id = call_id;
613 		    __entry->abort_code = abort_code;
614 		    __entry->error = error;
615 		    __entry->seq = seq;
616 			   ),
617 
618 	    TP_printk("%08x:%08x s=%u a=%d e=%d %s",
619 		      __entry->cid, __entry->call_id, __entry->seq,
620 		      __entry->abort_code, __entry->error, __entry->why)
621 	    );
622 
623 TRACE_EVENT(rxrpc_transmit,
624 	    TP_PROTO(struct rxrpc_call *call, enum rxrpc_transmit_trace why),
625 
626 	    TP_ARGS(call, why),
627 
628 	    TP_STRUCT__entry(
629 		    __field(struct rxrpc_call *,	call		)
630 		    __field(enum rxrpc_transmit_trace,	why		)
631 		    __field(rxrpc_seq_t,		tx_hard_ack	)
632 		    __field(rxrpc_seq_t,		tx_top		)
633 		    __field(int,			tx_winsize	)
634 			     ),
635 
636 	    TP_fast_assign(
637 		    __entry->call = call;
638 		    __entry->why = why;
639 		    __entry->tx_hard_ack = call->tx_hard_ack;
640 		    __entry->tx_top = call->tx_top;
641 		    __entry->tx_winsize = call->tx_winsize;
642 			   ),
643 
644 	    TP_printk("c=%p %s f=%08x n=%u/%u",
645 		      __entry->call,
646 		      __print_symbolic(__entry->why, rxrpc_transmit_traces),
647 		      __entry->tx_hard_ack + 1,
648 		      __entry->tx_top - __entry->tx_hard_ack,
649 		      __entry->tx_winsize)
650 	    );
651 
652 TRACE_EVENT(rxrpc_rx_data,
653 	    TP_PROTO(struct rxrpc_call *call, rxrpc_seq_t seq,
654 		     rxrpc_serial_t serial, u8 flags, u8 anno),
655 
656 	    TP_ARGS(call, seq, serial, flags, anno),
657 
658 	    TP_STRUCT__entry(
659 		    __field(struct rxrpc_call *,	call		)
660 		    __field(rxrpc_seq_t,		seq		)
661 		    __field(rxrpc_serial_t,		serial		)
662 		    __field(u8,				flags		)
663 		    __field(u8,				anno		)
664 			     ),
665 
666 	    TP_fast_assign(
667 		    __entry->call = call;
668 		    __entry->seq = seq;
669 		    __entry->serial = serial;
670 		    __entry->flags = flags;
671 		    __entry->anno = anno;
672 			   ),
673 
674 	    TP_printk("c=%p DATA %08x q=%08x fl=%02x a=%02x",
675 		      __entry->call,
676 		      __entry->serial,
677 		      __entry->seq,
678 		      __entry->flags,
679 		      __entry->anno)
680 	    );
681 
682 TRACE_EVENT(rxrpc_rx_ack,
683 	    TP_PROTO(struct rxrpc_call *call,
684 		     rxrpc_serial_t serial, rxrpc_serial_t ack_serial,
685 		     rxrpc_seq_t first, rxrpc_seq_t prev, u8 reason, u8 n_acks),
686 
687 	    TP_ARGS(call, serial, ack_serial, first, prev, reason, n_acks),
688 
689 	    TP_STRUCT__entry(
690 		    __field(struct rxrpc_call *,	call		)
691 		    __field(rxrpc_serial_t,		serial		)
692 		    __field(rxrpc_serial_t,		ack_serial	)
693 		    __field(rxrpc_seq_t,		first		)
694 		    __field(rxrpc_seq_t,		prev		)
695 		    __field(u8,				reason		)
696 		    __field(u8,				n_acks		)
697 			     ),
698 
699 	    TP_fast_assign(
700 		    __entry->call = call;
701 		    __entry->serial = serial;
702 		    __entry->ack_serial = ack_serial;
703 		    __entry->first = first;
704 		    __entry->prev = prev;
705 		    __entry->reason = reason;
706 		    __entry->n_acks = n_acks;
707 			   ),
708 
709 	    TP_printk("c=%p %08x %s r=%08x f=%08x p=%08x n=%u",
710 		      __entry->call,
711 		      __entry->serial,
712 		      __print_symbolic(__entry->reason, rxrpc_ack_names),
713 		      __entry->ack_serial,
714 		      __entry->first,
715 		      __entry->prev,
716 		      __entry->n_acks)
717 	    );
718 
719 TRACE_EVENT(rxrpc_rx_abort,
720 	    TP_PROTO(struct rxrpc_call *call, rxrpc_serial_t serial,
721 		     u32 abort_code),
722 
723 	    TP_ARGS(call, serial, abort_code),
724 
725 	    TP_STRUCT__entry(
726 		    __field(struct rxrpc_call *,	call		)
727 		    __field(rxrpc_serial_t,		serial		)
728 		    __field(u32,			abort_code	)
729 			     ),
730 
731 	    TP_fast_assign(
732 		    __entry->call = call;
733 		    __entry->serial = serial;
734 		    __entry->abort_code = abort_code;
735 			   ),
736 
737 	    TP_printk("c=%p ABORT %08x ac=%d",
738 		      __entry->call,
739 		      __entry->serial,
740 		      __entry->abort_code)
741 	    );
742 
743 TRACE_EVENT(rxrpc_rx_rwind_change,
744 	    TP_PROTO(struct rxrpc_call *call, rxrpc_serial_t serial,
745 		     u32 rwind, bool wake),
746 
747 	    TP_ARGS(call, serial, rwind, wake),
748 
749 	    TP_STRUCT__entry(
750 		    __field(struct rxrpc_call *,	call		)
751 		    __field(rxrpc_serial_t,		serial		)
752 		    __field(u32,			rwind		)
753 		    __field(bool,			wake		)
754 			     ),
755 
756 	    TP_fast_assign(
757 		    __entry->call = call;
758 		    __entry->serial = serial;
759 		    __entry->rwind = rwind;
760 		    __entry->wake = wake;
761 			   ),
762 
763 	    TP_printk("c=%p %08x rw=%u%s",
764 		      __entry->call,
765 		      __entry->serial,
766 		      __entry->rwind,
767 		      __entry->wake ? " wake" : "")
768 	    );
769 
770 TRACE_EVENT(rxrpc_tx_data,
771 	    TP_PROTO(struct rxrpc_call *call, rxrpc_seq_t seq,
772 		     rxrpc_serial_t serial, u8 flags, bool retrans, bool lose),
773 
774 	    TP_ARGS(call, seq, serial, flags, retrans, lose),
775 
776 	    TP_STRUCT__entry(
777 		    __field(struct rxrpc_call *,	call		)
778 		    __field(rxrpc_seq_t,		seq		)
779 		    __field(rxrpc_serial_t,		serial		)
780 		    __field(u8,				flags		)
781 		    __field(bool,			retrans		)
782 		    __field(bool,			lose		)
783 			     ),
784 
785 	    TP_fast_assign(
786 		    __entry->call = call;
787 		    __entry->seq = seq;
788 		    __entry->serial = serial;
789 		    __entry->flags = flags;
790 		    __entry->retrans = retrans;
791 		    __entry->lose = lose;
792 			   ),
793 
794 	    TP_printk("c=%p DATA %08x q=%08x fl=%02x%s%s",
795 		      __entry->call,
796 		      __entry->serial,
797 		      __entry->seq,
798 		      __entry->flags,
799 		      __entry->retrans ? " *RETRANS*" : "",
800 		      __entry->lose ? " *LOSE*" : "")
801 	    );
802 
803 TRACE_EVENT(rxrpc_tx_ack,
804 	    TP_PROTO(struct rxrpc_call *call, rxrpc_serial_t serial,
805 		     rxrpc_seq_t ack_first, rxrpc_serial_t ack_serial,
806 		     u8 reason, u8 n_acks),
807 
808 	    TP_ARGS(call, serial, ack_first, ack_serial, reason, n_acks),
809 
810 	    TP_STRUCT__entry(
811 		    __field(struct rxrpc_call *,	call		)
812 		    __field(rxrpc_serial_t,		serial		)
813 		    __field(rxrpc_seq_t,		ack_first	)
814 		    __field(rxrpc_serial_t,		ack_serial	)
815 		    __field(u8,				reason		)
816 		    __field(u8,				n_acks		)
817 			     ),
818 
819 	    TP_fast_assign(
820 		    __entry->call = call;
821 		    __entry->serial = serial;
822 		    __entry->ack_first = ack_first;
823 		    __entry->ack_serial = ack_serial;
824 		    __entry->reason = reason;
825 		    __entry->n_acks = n_acks;
826 			   ),
827 
828 	    TP_printk(" c=%p ACK  %08x %s f=%08x r=%08x n=%u",
829 		      __entry->call,
830 		      __entry->serial,
831 		      __print_symbolic(__entry->reason, rxrpc_ack_names),
832 		      __entry->ack_first,
833 		      __entry->ack_serial,
834 		      __entry->n_acks)
835 	    );
836 
837 TRACE_EVENT(rxrpc_receive,
838 	    TP_PROTO(struct rxrpc_call *call, enum rxrpc_receive_trace why,
839 		     rxrpc_serial_t serial, rxrpc_seq_t seq),
840 
841 	    TP_ARGS(call, why, serial, seq),
842 
843 	    TP_STRUCT__entry(
844 		    __field(struct rxrpc_call *,	call		)
845 		    __field(enum rxrpc_receive_trace,	why		)
846 		    __field(rxrpc_serial_t,		serial		)
847 		    __field(rxrpc_seq_t,		seq		)
848 		    __field(rxrpc_seq_t,		hard_ack	)
849 		    __field(rxrpc_seq_t,		top		)
850 			     ),
851 
852 	    TP_fast_assign(
853 		    __entry->call = call;
854 		    __entry->why = why;
855 		    __entry->serial = serial;
856 		    __entry->seq = seq;
857 		    __entry->hard_ack = call->rx_hard_ack;
858 		    __entry->top = call->rx_top;
859 			   ),
860 
861 	    TP_printk("c=%p %s r=%08x q=%08x w=%08x-%08x",
862 		      __entry->call,
863 		      __print_symbolic(__entry->why, rxrpc_receive_traces),
864 		      __entry->serial,
865 		      __entry->seq,
866 		      __entry->hard_ack,
867 		      __entry->top)
868 	    );
869 
870 TRACE_EVENT(rxrpc_recvmsg,
871 	    TP_PROTO(struct rxrpc_call *call, enum rxrpc_recvmsg_trace why,
872 		     rxrpc_seq_t seq, unsigned int offset, unsigned int len,
873 		     int ret),
874 
875 	    TP_ARGS(call, why, seq, offset, len, ret),
876 
877 	    TP_STRUCT__entry(
878 		    __field(struct rxrpc_call *,	call		)
879 		    __field(enum rxrpc_recvmsg_trace,	why		)
880 		    __field(rxrpc_seq_t,		seq		)
881 		    __field(unsigned int,		offset		)
882 		    __field(unsigned int,		len		)
883 		    __field(int,			ret		)
884 			     ),
885 
886 	    TP_fast_assign(
887 		    __entry->call = call;
888 		    __entry->why = why;
889 		    __entry->seq = seq;
890 		    __entry->offset = offset;
891 		    __entry->len = len;
892 		    __entry->ret = ret;
893 			   ),
894 
895 	    TP_printk("c=%p %s q=%08x o=%u l=%u ret=%d",
896 		      __entry->call,
897 		      __print_symbolic(__entry->why, rxrpc_recvmsg_traces),
898 		      __entry->seq,
899 		      __entry->offset,
900 		      __entry->len,
901 		      __entry->ret)
902 	    );
903 
904 TRACE_EVENT(rxrpc_rtt_tx,
905 	    TP_PROTO(struct rxrpc_call *call, enum rxrpc_rtt_tx_trace why,
906 		     rxrpc_serial_t send_serial),
907 
908 	    TP_ARGS(call, why, send_serial),
909 
910 	    TP_STRUCT__entry(
911 		    __field(struct rxrpc_call *,	call		)
912 		    __field(enum rxrpc_rtt_tx_trace,	why		)
913 		    __field(rxrpc_serial_t,		send_serial	)
914 			     ),
915 
916 	    TP_fast_assign(
917 		    __entry->call = call;
918 		    __entry->why = why;
919 		    __entry->send_serial = send_serial;
920 			   ),
921 
922 	    TP_printk("c=%p %s sr=%08x",
923 		      __entry->call,
924 		      __print_symbolic(__entry->why, rxrpc_rtt_tx_traces),
925 		      __entry->send_serial)
926 	    );
927 
928 TRACE_EVENT(rxrpc_rtt_rx,
929 	    TP_PROTO(struct rxrpc_call *call, enum rxrpc_rtt_rx_trace why,
930 		     rxrpc_serial_t send_serial, rxrpc_serial_t resp_serial,
931 		     s64 rtt, u8 nr, s64 avg),
932 
933 	    TP_ARGS(call, why, send_serial, resp_serial, rtt, nr, avg),
934 
935 	    TP_STRUCT__entry(
936 		    __field(struct rxrpc_call *,	call		)
937 		    __field(enum rxrpc_rtt_rx_trace,	why		)
938 		    __field(u8,				nr		)
939 		    __field(rxrpc_serial_t,		send_serial	)
940 		    __field(rxrpc_serial_t,		resp_serial	)
941 		    __field(s64,			rtt		)
942 		    __field(u64,			avg		)
943 			     ),
944 
945 	    TP_fast_assign(
946 		    __entry->call = call;
947 		    __entry->why = why;
948 		    __entry->send_serial = send_serial;
949 		    __entry->resp_serial = resp_serial;
950 		    __entry->rtt = rtt;
951 		    __entry->nr = nr;
952 		    __entry->avg = avg;
953 			   ),
954 
955 	    TP_printk("c=%p %s sr=%08x rr=%08x rtt=%lld nr=%u avg=%lld",
956 		      __entry->call,
957 		      __print_symbolic(__entry->why, rxrpc_rtt_rx_traces),
958 		      __entry->send_serial,
959 		      __entry->resp_serial,
960 		      __entry->rtt,
961 		      __entry->nr,
962 		      __entry->avg)
963 	    );
964 
965 TRACE_EVENT(rxrpc_timer,
966 	    TP_PROTO(struct rxrpc_call *call, enum rxrpc_timer_trace why,
967 		     unsigned long now),
968 
969 	    TP_ARGS(call, why, now),
970 
971 	    TP_STRUCT__entry(
972 		    __field(struct rxrpc_call *,		call		)
973 		    __field(enum rxrpc_timer_trace,		why		)
974 		    __field(long,				now		)
975 		    __field(long,				ack_at		)
976 		    __field(long,				ack_lost_at	)
977 		    __field(long,				resend_at	)
978 		    __field(long,				ping_at		)
979 		    __field(long,				expect_rx_by	)
980 		    __field(long,				expect_req_by	)
981 		    __field(long,				expect_term_by	)
982 		    __field(long,				timer		)
983 			     ),
984 
985 	    TP_fast_assign(
986 		    __entry->call		= call;
987 		    __entry->why		= why;
988 		    __entry->now		= now;
989 		    __entry->ack_at		= call->ack_at;
990 		    __entry->ack_lost_at	= call->ack_lost_at;
991 		    __entry->resend_at		= call->resend_at;
992 		    __entry->expect_rx_by	= call->expect_rx_by;
993 		    __entry->expect_req_by	= call->expect_req_by;
994 		    __entry->expect_term_by	= call->expect_term_by;
995 		    __entry->timer		= call->timer.expires;
996 			   ),
997 
998 	    TP_printk("c=%p %s a=%ld la=%ld r=%ld xr=%ld xq=%ld xt=%ld t=%ld",
999 		      __entry->call,
1000 		      __print_symbolic(__entry->why, rxrpc_timer_traces),
1001 		      __entry->ack_at - __entry->now,
1002 		      __entry->ack_lost_at - __entry->now,
1003 		      __entry->resend_at - __entry->now,
1004 		      __entry->expect_rx_by - __entry->now,
1005 		      __entry->expect_req_by - __entry->now,
1006 		      __entry->expect_term_by - __entry->now,
1007 		      __entry->timer - __entry->now)
1008 	    );
1009 
1010 TRACE_EVENT(rxrpc_rx_lose,
1011 	    TP_PROTO(struct rxrpc_skb_priv *sp),
1012 
1013 	    TP_ARGS(sp),
1014 
1015 	    TP_STRUCT__entry(
1016 		    __field_struct(struct rxrpc_host_header,	hdr		)
1017 			     ),
1018 
1019 	    TP_fast_assign(
1020 		    memcpy(&__entry->hdr, &sp->hdr, sizeof(__entry->hdr));
1021 			   ),
1022 
1023 	    TP_printk("%08x:%08x:%08x:%04x %08x %08x %02x %02x %s *LOSE*",
1024 		      __entry->hdr.epoch, __entry->hdr.cid,
1025 		      __entry->hdr.callNumber, __entry->hdr.serviceId,
1026 		      __entry->hdr.serial, __entry->hdr.seq,
1027 		      __entry->hdr.type, __entry->hdr.flags,
1028 		      __entry->hdr.type <= 15 ?
1029 		      __print_symbolic(__entry->hdr.type, rxrpc_pkts) : "?UNK")
1030 	    );
1031 
1032 TRACE_EVENT(rxrpc_propose_ack,
1033 	    TP_PROTO(struct rxrpc_call *call, enum rxrpc_propose_ack_trace why,
1034 		     u8 ack_reason, rxrpc_serial_t serial, bool immediate,
1035 		     bool background, enum rxrpc_propose_ack_outcome outcome),
1036 
1037 	    TP_ARGS(call, why, ack_reason, serial, immediate, background,
1038 		    outcome),
1039 
1040 	    TP_STRUCT__entry(
1041 		    __field(struct rxrpc_call *,		call		)
1042 		    __field(enum rxrpc_propose_ack_trace,	why		)
1043 		    __field(rxrpc_serial_t,			serial		)
1044 		    __field(u8,					ack_reason	)
1045 		    __field(bool,				immediate	)
1046 		    __field(bool,				background	)
1047 		    __field(enum rxrpc_propose_ack_outcome,	outcome		)
1048 			     ),
1049 
1050 	    TP_fast_assign(
1051 		    __entry->call	= call;
1052 		    __entry->why	= why;
1053 		    __entry->serial	= serial;
1054 		    __entry->ack_reason	= ack_reason;
1055 		    __entry->immediate	= immediate;
1056 		    __entry->background	= background;
1057 		    __entry->outcome	= outcome;
1058 			   ),
1059 
1060 	    TP_printk("c=%p %s %s r=%08x i=%u b=%u%s",
1061 		      __entry->call,
1062 		      __print_symbolic(__entry->why, rxrpc_propose_ack_traces),
1063 		      __print_symbolic(__entry->ack_reason, rxrpc_ack_names),
1064 		      __entry->serial,
1065 		      __entry->immediate,
1066 		      __entry->background,
1067 		      __print_symbolic(__entry->outcome, rxrpc_propose_ack_outcomes))
1068 	    );
1069 
1070 TRACE_EVENT(rxrpc_retransmit,
1071 	    TP_PROTO(struct rxrpc_call *call, rxrpc_seq_t seq, u8 annotation,
1072 		     s64 expiry),
1073 
1074 	    TP_ARGS(call, seq, annotation, expiry),
1075 
1076 	    TP_STRUCT__entry(
1077 		    __field(struct rxrpc_call *,	call		)
1078 		    __field(rxrpc_seq_t,		seq		)
1079 		    __field(u8,				annotation	)
1080 		    __field(s64,			expiry		)
1081 			     ),
1082 
1083 	    TP_fast_assign(
1084 		    __entry->call = call;
1085 		    __entry->seq = seq;
1086 		    __entry->annotation = annotation;
1087 		    __entry->expiry = expiry;
1088 			   ),
1089 
1090 	    TP_printk("c=%p q=%x a=%02x xp=%lld",
1091 		      __entry->call,
1092 		      __entry->seq,
1093 		      __entry->annotation,
1094 		      __entry->expiry)
1095 	    );
1096 
1097 TRACE_EVENT(rxrpc_congest,
1098 	    TP_PROTO(struct rxrpc_call *call, struct rxrpc_ack_summary *summary,
1099 		     rxrpc_serial_t ack_serial, enum rxrpc_congest_change change),
1100 
1101 	    TP_ARGS(call, summary, ack_serial, change),
1102 
1103 	    TP_STRUCT__entry(
1104 		    __field(struct rxrpc_call *,		call		)
1105 		    __field(enum rxrpc_congest_change,		change		)
1106 		    __field(rxrpc_seq_t,			hard_ack	)
1107 		    __field(rxrpc_seq_t,			top		)
1108 		    __field(rxrpc_seq_t,			lowest_nak	)
1109 		    __field(rxrpc_serial_t,			ack_serial	)
1110 		    __field_struct(struct rxrpc_ack_summary,	sum		)
1111 			     ),
1112 
1113 	    TP_fast_assign(
1114 		    __entry->call	= call;
1115 		    __entry->change	= change;
1116 		    __entry->hard_ack	= call->tx_hard_ack;
1117 		    __entry->top	= call->tx_top;
1118 		    __entry->lowest_nak	= call->acks_lowest_nak;
1119 		    __entry->ack_serial	= ack_serial;
1120 		    memcpy(&__entry->sum, summary, sizeof(__entry->sum));
1121 			   ),
1122 
1123 	    TP_printk("c=%p r=%08x %s q=%08x %s cw=%u ss=%u nr=%u,%u nw=%u,%u r=%u b=%u u=%u d=%u l=%x%s%s%s",
1124 		      __entry->call,
1125 		      __entry->ack_serial,
1126 		      __print_symbolic(__entry->sum.ack_reason, rxrpc_ack_names),
1127 		      __entry->hard_ack,
1128 		      __print_symbolic(__entry->sum.mode, rxrpc_congest_modes),
1129 		      __entry->sum.cwnd,
1130 		      __entry->sum.ssthresh,
1131 		      __entry->sum.nr_acks, __entry->sum.nr_nacks,
1132 		      __entry->sum.nr_new_acks, __entry->sum.nr_new_nacks,
1133 		      __entry->sum.nr_rot_new_acks,
1134 		      __entry->top - __entry->hard_ack,
1135 		      __entry->sum.cumulative_acks,
1136 		      __entry->sum.dup_acks,
1137 		      __entry->lowest_nak, __entry->sum.new_low_nack ? "!" : "",
1138 		      __print_symbolic(__entry->change, rxrpc_congest_changes),
1139 		      __entry->sum.retrans_timeo ? " rTxTo" : "")
1140 	    );
1141 
1142 TRACE_EVENT(rxrpc_disconnect_call,
1143 	    TP_PROTO(struct rxrpc_call *call),
1144 
1145 	    TP_ARGS(call),
1146 
1147 	    TP_STRUCT__entry(
1148 		    __field(struct rxrpc_call *,	call		)
1149 		    __field(u32,			abort_code	)
1150 			     ),
1151 
1152 	    TP_fast_assign(
1153 		    __entry->call = call;
1154 		    __entry->abort_code = call->abort_code;
1155 			   ),
1156 
1157 	    TP_printk("c=%p ab=%08x",
1158 		      __entry->call,
1159 		      __entry->abort_code)
1160 	    );
1161 
1162 TRACE_EVENT(rxrpc_improper_term,
1163 	    TP_PROTO(struct rxrpc_call *call),
1164 
1165 	    TP_ARGS(call),
1166 
1167 	    TP_STRUCT__entry(
1168 		    __field(struct rxrpc_call *,	call		)
1169 		    __field(u32,			abort_code	)
1170 			     ),
1171 
1172 	    TP_fast_assign(
1173 		    __entry->call = call;
1174 		    __entry->abort_code = call->abort_code;
1175 			   ),
1176 
1177 	    TP_printk("c=%p ab=%08x",
1178 		      __entry->call,
1179 		      __entry->abort_code)
1180 	    );
1181 
1182 TRACE_EVENT(rxrpc_rx_eproto,
1183 	    TP_PROTO(struct rxrpc_call *call, rxrpc_serial_t serial,
1184 		     const char *why),
1185 
1186 	    TP_ARGS(call, serial, why),
1187 
1188 	    TP_STRUCT__entry(
1189 		    __field(struct rxrpc_call *,	call		)
1190 		    __field(rxrpc_serial_t,		serial		)
1191 		    __field(const char *,		why		)
1192 			     ),
1193 
1194 	    TP_fast_assign(
1195 		    __entry->call = call;
1196 		    __entry->serial = serial;
1197 		    __entry->why = why;
1198 			   ),
1199 
1200 	    TP_printk("c=%p EPROTO %08x %s",
1201 		      __entry->call,
1202 		      __entry->serial,
1203 		      __entry->why)
1204 	    );
1205 
1206 TRACE_EVENT(rxrpc_connect_call,
1207 	    TP_PROTO(struct rxrpc_call *call),
1208 
1209 	    TP_ARGS(call),
1210 
1211 	    TP_STRUCT__entry(
1212 		    __field(struct rxrpc_call *,	call		)
1213 		    __field(unsigned long,		user_call_ID	)
1214 		    __field(u32,			cid		)
1215 		    __field(u32,			call_id		)
1216 			     ),
1217 
1218 	    TP_fast_assign(
1219 		    __entry->call = call;
1220 		    __entry->user_call_ID = call->user_call_ID;
1221 		    __entry->cid = call->cid;
1222 		    __entry->call_id = call->call_id;
1223 			   ),
1224 
1225 	    TP_printk("c=%p u=%p %08x:%08x",
1226 		      __entry->call,
1227 		      (void *)__entry->user_call_ID,
1228 		      __entry->cid,
1229 		      __entry->call_id)
1230 	    );
1231 
1232 #endif /* _TRACE_RXRPC_H */
1233 
1234 /* This part must be outside protection */
1235 #include <trace/define_trace.h>
1236