xref: /openbmc/linux/include/trace/events/rxrpc.h (revision 7fa25105b2d32fcb0f38668bc20d0adf6508322f)
1b4d0d230SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-or-later */
2df844fd4SDavid Howells /* AF_RXRPC tracepoints
3df844fd4SDavid Howells  *
4df844fd4SDavid Howells  * Copyright (C) 2016 Red Hat, Inc. All Rights Reserved.
5df844fd4SDavid Howells  * Written by David Howells (dhowells@redhat.com)
6df844fd4SDavid Howells  */
7df844fd4SDavid Howells #undef TRACE_SYSTEM
8df844fd4SDavid Howells #define TRACE_SYSTEM rxrpc
9df844fd4SDavid Howells 
10df844fd4SDavid Howells #if !defined(_TRACE_RXRPC_H) || defined(TRACE_HEADER_MULTI_READ)
11df844fd4SDavid Howells #define _TRACE_RXRPC_H
12df844fd4SDavid Howells 
13df844fd4SDavid Howells #include <linux/tracepoint.h>
14494337c9SDavid Howells #include <linux/errqueue.h>
15df844fd4SDavid Howells 
16b54a134aSDavid Howells /*
17b54a134aSDavid Howells  * Declare tracing information enums and their string mappings for display.
18b54a134aSDavid Howells  */
19b54a134aSDavid Howells #define rxrpc_skb_traces \
20d57a3a15SDavid Howells 	EM(rxrpc_skb_ack,			"ACK") \
21987db9f7SDavid Howells 	EM(rxrpc_skb_cleaned,			"CLN") \
22d4d02d8bSDavid Howells 	EM(rxrpc_skb_cloned_jumbo,		"CLJ") \
23987db9f7SDavid Howells 	EM(rxrpc_skb_freed,			"FRE") \
24987db9f7SDavid Howells 	EM(rxrpc_skb_got,			"GOT") \
25987db9f7SDavid Howells 	EM(rxrpc_skb_lost,			"*L*") \
26987db9f7SDavid Howells 	EM(rxrpc_skb_new,			"NEW") \
27987db9f7SDavid Howells 	EM(rxrpc_skb_purged,			"PUR") \
28987db9f7SDavid Howells 	EM(rxrpc_skb_received,			"RCV") \
29987db9f7SDavid Howells 	EM(rxrpc_skb_rotated,			"ROT") \
30d0d5c0cdSDavid Howells 	EM(rxrpc_skb_seen,			"SEE") \
31d0d5c0cdSDavid Howells 	EM(rxrpc_skb_unshared,			"UNS") \
32d0d5c0cdSDavid Howells 	E_(rxrpc_skb_unshared_nomem,		"US0")
33b54a134aSDavid Howells 
3409d2bf59SDavid Howells #define rxrpc_local_traces \
350fde882fSDavid Howells 	EM(rxrpc_local_free,			"FREE        ") \
360fde882fSDavid Howells 	EM(rxrpc_local_get_client_conn,		"GET conn-cln") \
370fde882fSDavid Howells 	EM(rxrpc_local_get_for_use,		"GET for-use ") \
380fde882fSDavid Howells 	EM(rxrpc_local_get_peer,		"GET peer    ") \
390fde882fSDavid Howells 	EM(rxrpc_local_get_prealloc_conn,	"GET conn-pre") \
400fde882fSDavid Howells 	EM(rxrpc_local_get_queue,		"GET queue   ") \
4109d2bf59SDavid Howells 	EM(rxrpc_local_new,			"NEW         ") \
420fde882fSDavid Howells 	EM(rxrpc_local_processing,		"PROCESSING  ") \
430fde882fSDavid Howells 	EM(rxrpc_local_put_already_queued,	"PUT alreadyq") \
440fde882fSDavid Howells 	EM(rxrpc_local_put_bind,		"PUT bind    ") \
450fde882fSDavid Howells 	EM(rxrpc_local_put_for_use,		"PUT for-use ") \
460fde882fSDavid Howells 	EM(rxrpc_local_put_kill_conn,		"PUT conn-kil") \
470fde882fSDavid Howells 	EM(rxrpc_local_put_peer,		"PUT peer    ") \
480fde882fSDavid Howells 	EM(rxrpc_local_put_prealloc_conn,	"PUT conn-pre") \
490fde882fSDavid Howells 	EM(rxrpc_local_put_release_sock,	"PUT rel-sock") \
500fde882fSDavid Howells 	EM(rxrpc_local_put_queue,		"PUT queue   ") \
510fde882fSDavid Howells 	EM(rxrpc_local_queued,			"QUEUED      ") \
520fde882fSDavid Howells 	EM(rxrpc_local_see_tx_ack,		"SEE tx-ack  ") \
530fde882fSDavid Howells 	EM(rxrpc_local_stop,			"STOP        ") \
540fde882fSDavid Howells 	EM(rxrpc_local_stopped,			"STOPPED     ") \
550fde882fSDavid Howells 	EM(rxrpc_local_unuse_bind,		"UNU bind    ") \
560fde882fSDavid Howells 	EM(rxrpc_local_unuse_conn_work,		"UNU conn-wrk") \
570fde882fSDavid Howells 	EM(rxrpc_local_unuse_peer_keepalive,	"UNU peer-kpa") \
580fde882fSDavid Howells 	EM(rxrpc_local_unuse_release_sock,	"UNU rel-sock") \
590fde882fSDavid Howells 	EM(rxrpc_local_unuse_work,		"UNU work    ") \
600fde882fSDavid Howells 	EM(rxrpc_local_use_conn_work,		"USE conn-wrk") \
610fde882fSDavid Howells 	EM(rxrpc_local_use_lookup,		"USE lookup  ") \
620fde882fSDavid Howells 	EM(rxrpc_local_use_peer_keepalive,	"USE peer-kpa") \
630fde882fSDavid Howells 	E_(rxrpc_local_use_work,		"USE work    ")
6409d2bf59SDavid Howells 
651159d4b4SDavid Howells #define rxrpc_peer_traces \
6647c810a7SDavid Howells 	EM(rxrpc_peer_free,			"FREE        ") \
6747c810a7SDavid Howells 	EM(rxrpc_peer_get_accept,		"GET accept  ") \
6847c810a7SDavid Howells 	EM(rxrpc_peer_get_activate_call,	"GET act-call") \
6947c810a7SDavid Howells 	EM(rxrpc_peer_get_bundle,		"GET bundle  ") \
7047c810a7SDavid Howells 	EM(rxrpc_peer_get_client_conn,		"GET cln-conn") \
7147c810a7SDavid Howells 	EM(rxrpc_peer_get_input_error,		"GET inpt-err") \
7247c810a7SDavid Howells 	EM(rxrpc_peer_get_keepalive,		"GET keepaliv") \
7347c810a7SDavid Howells 	EM(rxrpc_peer_get_lookup_client,	"GET look-cln") \
7447c810a7SDavid Howells 	EM(rxrpc_peer_get_service_conn,		"GET srv-conn") \
7547c810a7SDavid Howells 	EM(rxrpc_peer_new_client,		"NEW client  ") \
7647c810a7SDavid Howells 	EM(rxrpc_peer_new_prealloc,		"NEW prealloc") \
7747c810a7SDavid Howells 	EM(rxrpc_peer_put_bundle,		"PUT bundle  ") \
7847c810a7SDavid Howells 	EM(rxrpc_peer_put_call,			"PUT call    ") \
7947c810a7SDavid Howells 	EM(rxrpc_peer_put_conn,			"PUT conn    ") \
8047c810a7SDavid Howells 	EM(rxrpc_peer_put_discard_tmp,		"PUT disc-tmp") \
8147c810a7SDavid Howells 	EM(rxrpc_peer_put_input_error,		"PUT inpt-err") \
8247c810a7SDavid Howells 	E_(rxrpc_peer_put_keepalive,		"PUT keepaliv")
831159d4b4SDavid Howells 
84b54a134aSDavid Howells #define rxrpc_conn_traces \
85*7fa25105SDavid Howells 	EM(rxrpc_conn_free,			"FREE        ") \
86*7fa25105SDavid Howells 	EM(rxrpc_conn_get_activate_call,	"GET act-call") \
87*7fa25105SDavid Howells 	EM(rxrpc_conn_get_call_input,		"GET inp-call") \
88*7fa25105SDavid Howells 	EM(rxrpc_conn_get_conn_input,		"GET inp-conn") \
89*7fa25105SDavid Howells 	EM(rxrpc_conn_get_idle,			"GET idle    ") \
90*7fa25105SDavid Howells 	EM(rxrpc_conn_get_poke,			"GET poke    ") \
91*7fa25105SDavid Howells 	EM(rxrpc_conn_get_service_conn,		"GET svc-conn") \
92*7fa25105SDavid Howells 	EM(rxrpc_conn_new_client,		"NEW client  ") \
93*7fa25105SDavid Howells 	EM(rxrpc_conn_new_service,		"NEW service ") \
94*7fa25105SDavid Howells 	EM(rxrpc_conn_put_already_queued,	"PUT alreadyq") \
95*7fa25105SDavid Howells 	EM(rxrpc_conn_put_call,			"PUT call    ") \
96*7fa25105SDavid Howells 	EM(rxrpc_conn_put_call_input,		"PUT inp-call") \
97*7fa25105SDavid Howells 	EM(rxrpc_conn_put_conn_input,		"PUT inp-conn") \
98*7fa25105SDavid Howells 	EM(rxrpc_conn_put_discard,		"PUT discard ") \
99*7fa25105SDavid Howells 	EM(rxrpc_conn_put_discard_idle,		"PUT disc-idl") \
100*7fa25105SDavid Howells 	EM(rxrpc_conn_put_local_dead,		"PUT loc-dead") \
101*7fa25105SDavid Howells 	EM(rxrpc_conn_put_noreuse,		"PUT noreuse ") \
102*7fa25105SDavid Howells 	EM(rxrpc_conn_put_poke,			"PUT poke    ") \
103*7fa25105SDavid Howells 	EM(rxrpc_conn_put_unbundle,		"PUT unbundle") \
104*7fa25105SDavid Howells 	EM(rxrpc_conn_put_unidle,		"PUT unidle  ") \
105*7fa25105SDavid Howells 	EM(rxrpc_conn_put_work,			"PUT work    ") \
106*7fa25105SDavid Howells 	EM(rxrpc_conn_queue_challenge,		"GQ  chall   ") \
107*7fa25105SDavid Howells 	EM(rxrpc_conn_queue_retry_work,		"GQ  retry-wk") \
108*7fa25105SDavid Howells 	EM(rxrpc_conn_queue_rx_work,		"GQ  rx-work ") \
109*7fa25105SDavid Howells 	EM(rxrpc_conn_queue_timer,		"GQ  timer   ") \
110*7fa25105SDavid Howells 	EM(rxrpc_conn_see_new_service_conn,	"SEE new-svc ") \
111*7fa25105SDavid Howells 	EM(rxrpc_conn_see_reap_service,		"SEE reap-svc") \
112*7fa25105SDavid Howells 	E_(rxrpc_conn_see_work,			"SEE work    ")
113b54a134aSDavid Howells 
114b54a134aSDavid Howells #define rxrpc_client_traces \
115b54a134aSDavid Howells 	EM(rxrpc_client_activate_chans,		"Activa") \
116b54a134aSDavid Howells 	EM(rxrpc_client_alloc,			"Alloc ") \
117b54a134aSDavid Howells 	EM(rxrpc_client_chan_activate,		"ChActv") \
118b54a134aSDavid Howells 	EM(rxrpc_client_chan_disconnect,	"ChDisc") \
119b54a134aSDavid Howells 	EM(rxrpc_client_chan_pass,		"ChPass") \
120930c9f91SDavid Howells 	EM(rxrpc_client_chan_wait_failed,	"ChWtFl") \
121b54a134aSDavid Howells 	EM(rxrpc_client_cleanup,		"Clean ") \
122b54a134aSDavid Howells 	EM(rxrpc_client_discard,		"Discar") \
123b54a134aSDavid Howells 	EM(rxrpc_client_duplicate,		"Duplic") \
124b54a134aSDavid Howells 	EM(rxrpc_client_exposed,		"Expose") \
125b54a134aSDavid Howells 	EM(rxrpc_client_replace,		"Replac") \
126b54a134aSDavid Howells 	EM(rxrpc_client_to_active,		"->Actv") \
127245500d8SDavid Howells 	E_(rxrpc_client_to_idle,		"->Idle")
128b54a134aSDavid Howells 
129b54a134aSDavid Howells #define rxrpc_call_traces \
130b54a134aSDavid Howells 	EM(rxrpc_call_connected,		"CON") \
131b54a134aSDavid Howells 	EM(rxrpc_call_error,			"*E*") \
132b54a134aSDavid Howells 	EM(rxrpc_call_got,			"GOT") \
133b54a134aSDavid Howells 	EM(rxrpc_call_got_kernel,		"Gke") \
1344a7f62f9SDavid Howells 	EM(rxrpc_call_got_timer,		"GTM") \
135a4ea4c47SDavid Howells 	EM(rxrpc_call_got_tx,			"Gtx") \
136b54a134aSDavid Howells 	EM(rxrpc_call_got_userid,		"Gus") \
137b54a134aSDavid Howells 	EM(rxrpc_call_new_client,		"NWc") \
138b54a134aSDavid Howells 	EM(rxrpc_call_new_service,		"NWs") \
139b54a134aSDavid Howells 	EM(rxrpc_call_put,			"PUT") \
140b54a134aSDavid Howells 	EM(rxrpc_call_put_kernel,		"Pke") \
1414a7f62f9SDavid Howells 	EM(rxrpc_call_put_noqueue,		"PnQ") \
1424a7f62f9SDavid Howells 	EM(rxrpc_call_put_notimer,		"PnT") \
1434a7f62f9SDavid Howells 	EM(rxrpc_call_put_timer,		"PTM") \
144a4ea4c47SDavid Howells 	EM(rxrpc_call_put_tx,			"Ptx") \
145b54a134aSDavid Howells 	EM(rxrpc_call_put_userid,		"Pus") \
146b54a134aSDavid Howells 	EM(rxrpc_call_queued,			"QUE") \
147b54a134aSDavid Howells 	EM(rxrpc_call_queued_ref,		"QUR") \
148b54a134aSDavid Howells 	EM(rxrpc_call_release,			"RLS") \
149b54a134aSDavid Howells 	E_(rxrpc_call_seen,			"SEE")
150b54a134aSDavid Howells 
151a4ea4c47SDavid Howells #define rxrpc_txqueue_traces \
152a4ea4c47SDavid Howells 	EM(rxrpc_txqueue_await_reply,		"AWR") \
153a4ea4c47SDavid Howells 	EM(rxrpc_txqueue_dequeue,		"DEQ") \
154a4ea4c47SDavid Howells 	EM(rxrpc_txqueue_end,			"END") \
155a4ea4c47SDavid Howells 	EM(rxrpc_txqueue_queue,			"QUE") \
156a4ea4c47SDavid Howells 	EM(rxrpc_txqueue_queue_last,		"QLS") \
157a4ea4c47SDavid Howells 	EM(rxrpc_txqueue_rotate,		"ROT") \
158a4ea4c47SDavid Howells 	EM(rxrpc_txqueue_rotate_last,		"RLS") \
159a4ea4c47SDavid Howells 	E_(rxrpc_txqueue_wait,			"WAI")
160b54a134aSDavid Howells 
161b54a134aSDavid Howells #define rxrpc_receive_traces \
162b54a134aSDavid Howells 	EM(rxrpc_receive_end,			"END") \
163b54a134aSDavid Howells 	EM(rxrpc_receive_front,			"FRN") \
164b54a134aSDavid Howells 	EM(rxrpc_receive_incoming,		"INC") \
165b54a134aSDavid Howells 	EM(rxrpc_receive_queue,			"QUE") \
166b54a134aSDavid Howells 	EM(rxrpc_receive_queue_last,		"QLS") \
1675d7edbc9SDavid Howells 	EM(rxrpc_receive_queue_oos,		"QUO") \
1685d7edbc9SDavid Howells 	EM(rxrpc_receive_queue_oos_last,	"QOL") \
1695d7edbc9SDavid Howells 	EM(rxrpc_receive_oos,			"OOS") \
1705d7edbc9SDavid Howells 	EM(rxrpc_receive_oos_last,		"OSL") \
1715d7edbc9SDavid Howells 	EM(rxrpc_receive_rotate,		"ROT") \
1725d7edbc9SDavid Howells 	E_(rxrpc_receive_rotate_last,		"RLS")
173b54a134aSDavid Howells 
174b54a134aSDavid Howells #define rxrpc_recvmsg_traces \
175b54a134aSDavid Howells 	EM(rxrpc_recvmsg_cont,			"CONT") \
176b54a134aSDavid Howells 	EM(rxrpc_recvmsg_data_return,		"DATA") \
177b54a134aSDavid Howells 	EM(rxrpc_recvmsg_dequeue,		"DEQU") \
178b54a134aSDavid Howells 	EM(rxrpc_recvmsg_enter,			"ENTR") \
179b54a134aSDavid Howells 	EM(rxrpc_recvmsg_full,			"FULL") \
180b54a134aSDavid Howells 	EM(rxrpc_recvmsg_hole,			"HOLE") \
181b54a134aSDavid Howells 	EM(rxrpc_recvmsg_next,			"NEXT") \
182540b1c48SDavid Howells 	EM(rxrpc_recvmsg_requeue,		"REQU") \
183b54a134aSDavid Howells 	EM(rxrpc_recvmsg_return,		"RETN") \
184b54a134aSDavid Howells 	EM(rxrpc_recvmsg_terminal,		"TERM") \
185b54a134aSDavid Howells 	EM(rxrpc_recvmsg_to_be_accepted,	"TBAC") \
186b54a134aSDavid Howells 	E_(rxrpc_recvmsg_wait,			"WAIT")
187b54a134aSDavid Howells 
188b54a134aSDavid Howells #define rxrpc_rtt_tx_traces \
1894700c4d8SDavid Howells 	EM(rxrpc_rtt_tx_cancel,			"CNCE") \
190b54a134aSDavid Howells 	EM(rxrpc_rtt_tx_data,			"DATA") \
1914700c4d8SDavid Howells 	EM(rxrpc_rtt_tx_no_slot,		"FULL") \
192b54a134aSDavid Howells 	E_(rxrpc_rtt_tx_ping,			"PING")
193b54a134aSDavid Howells 
194b54a134aSDavid Howells #define rxrpc_rtt_rx_traces \
1954700c4d8SDavid Howells 	EM(rxrpc_rtt_rx_cancel,			"CNCL") \
1964700c4d8SDavid Howells 	EM(rxrpc_rtt_rx_obsolete,		"OBSL") \
1974700c4d8SDavid Howells 	EM(rxrpc_rtt_rx_lost,			"LOST") \
198b54a134aSDavid Howells 	EM(rxrpc_rtt_rx_ping_response,		"PONG") \
199b54a134aSDavid Howells 	E_(rxrpc_rtt_rx_requested_ack,		"RACK")
200b54a134aSDavid Howells 
201b54a134aSDavid Howells #define rxrpc_timer_traces \
202b54a134aSDavid Howells 	EM(rxrpc_timer_begin,			"Begin ") \
203a158bdd3SDavid Howells 	EM(rxrpc_timer_exp_ack,			"ExpAck") \
204a158bdd3SDavid Howells 	EM(rxrpc_timer_exp_hard,		"ExpHrd") \
205a158bdd3SDavid Howells 	EM(rxrpc_timer_exp_idle,		"ExpIdl") \
206415f44e4SDavid Howells 	EM(rxrpc_timer_exp_keepalive,		"ExpKA ") \
207bd1fdf8cSDavid Howells 	EM(rxrpc_timer_exp_lost_ack,		"ExpLoA") \
208a158bdd3SDavid Howells 	EM(rxrpc_timer_exp_normal,		"ExpNml") \
209a158bdd3SDavid Howells 	EM(rxrpc_timer_exp_ping,		"ExpPng") \
210a158bdd3SDavid Howells 	EM(rxrpc_timer_exp_resend,		"ExpRsn") \
211b54a134aSDavid Howells 	EM(rxrpc_timer_init_for_reply,		"IniRpl") \
212b54a134aSDavid Howells 	EM(rxrpc_timer_init_for_send_reply,	"SndRpl") \
213a158bdd3SDavid Howells 	EM(rxrpc_timer_restart,			"Restrt") \
214b54a134aSDavid Howells 	EM(rxrpc_timer_set_for_ack,		"SetAck") \
215a158bdd3SDavid Howells 	EM(rxrpc_timer_set_for_hard,		"SetHrd") \
216a158bdd3SDavid Howells 	EM(rxrpc_timer_set_for_idle,		"SetIdl") \
217415f44e4SDavid Howells 	EM(rxrpc_timer_set_for_keepalive,	"KeepAl") \
218bd1fdf8cSDavid Howells 	EM(rxrpc_timer_set_for_lost_ack,	"SetLoA") \
219a158bdd3SDavid Howells 	EM(rxrpc_timer_set_for_normal,		"SetNml") \
220b54a134aSDavid Howells 	EM(rxrpc_timer_set_for_ping,		"SetPng") \
221b54a134aSDavid Howells 	EM(rxrpc_timer_set_for_resend,		"SetRTx") \
222a158bdd3SDavid Howells 	E_(rxrpc_timer_set_for_send,		"SetSnd")
223b54a134aSDavid Howells 
224b54a134aSDavid Howells #define rxrpc_propose_ack_traces \
225b54a134aSDavid Howells 	EM(rxrpc_propose_ack_client_tx_end,	"ClTxEnd") \
226b54a134aSDavid Howells 	EM(rxrpc_propose_ack_input_data,	"DataIn ") \
227530403d9SDavid Howells 	EM(rxrpc_propose_ack_input_data_hole,	"DataInH") \
2287150ceaaSDavid Howells 	EM(rxrpc_propose_ack_ping_for_check_life, "ChkLife") \
229415f44e4SDavid Howells 	EM(rxrpc_propose_ack_ping_for_keepalive, "KeepAlv") \
230b54a134aSDavid Howells 	EM(rxrpc_propose_ack_ping_for_lost_ack,	"LostAck") \
231b54a134aSDavid Howells 	EM(rxrpc_propose_ack_ping_for_lost_reply, "LostRpl") \
232b54a134aSDavid Howells 	EM(rxrpc_propose_ack_ping_for_params,	"Params ") \
233b54a134aSDavid Howells 	EM(rxrpc_propose_ack_processing_op,	"ProcOp ") \
234b54a134aSDavid Howells 	EM(rxrpc_propose_ack_respond_to_ack,	"Rsp2Ack") \
235b54a134aSDavid Howells 	EM(rxrpc_propose_ack_respond_to_ping,	"Rsp2Png") \
236b54a134aSDavid Howells 	EM(rxrpc_propose_ack_retry_tx,		"RetryTx") \
237b54a134aSDavid Howells 	EM(rxrpc_propose_ack_rotate_rx,		"RxAck  ") \
238b54a134aSDavid Howells 	E_(rxrpc_propose_ack_terminal_ack,	"ClTerm ")
239b54a134aSDavid Howells 
240b54a134aSDavid Howells #define rxrpc_congest_modes \
241b54a134aSDavid Howells 	EM(RXRPC_CALL_CONGEST_AVOIDANCE,	"CongAvoid") \
242b54a134aSDavid Howells 	EM(RXRPC_CALL_FAST_RETRANSMIT,		"FastReTx ") \
243b54a134aSDavid Howells 	EM(RXRPC_CALL_PACKET_LOSS,		"PktLoss  ") \
244b54a134aSDavid Howells 	E_(RXRPC_CALL_SLOW_START,		"SlowStart")
245b54a134aSDavid Howells 
246b54a134aSDavid Howells #define rxrpc_congest_changes \
247b54a134aSDavid Howells 	EM(rxrpc_cong_begin_retransmission,	" Retrans") \
248b54a134aSDavid Howells 	EM(rxrpc_cong_cleared_nacks,		" Cleared") \
249b54a134aSDavid Howells 	EM(rxrpc_cong_new_low_nack,		" NewLowN") \
250aadf9dceSDavid Howells 	EM(rxrpc_cong_no_change,		" -") \
251b54a134aSDavid Howells 	EM(rxrpc_cong_progress,			" Progres") \
2521fc4fa2aSDavid Howells 	EM(rxrpc_cong_idle_reset,		" IdleRes") \
253b54a134aSDavid Howells 	EM(rxrpc_cong_retransmit_again,		" ReTxAgn") \
254b54a134aSDavid Howells 	EM(rxrpc_cong_rtt_window_end,		" RttWinE") \
255b54a134aSDavid Howells 	E_(rxrpc_cong_saw_nack,			" SawNack")
256b54a134aSDavid Howells 
257b54a134aSDavid Howells #define rxrpc_pkts \
258b54a134aSDavid Howells 	EM(0,					"?00") \
259b54a134aSDavid Howells 	EM(RXRPC_PACKET_TYPE_DATA,		"DATA") \
260b54a134aSDavid Howells 	EM(RXRPC_PACKET_TYPE_ACK,		"ACK") \
261b54a134aSDavid Howells 	EM(RXRPC_PACKET_TYPE_BUSY,		"BUSY") \
262b54a134aSDavid Howells 	EM(RXRPC_PACKET_TYPE_ABORT,		"ABORT") \
263b54a134aSDavid Howells 	EM(RXRPC_PACKET_TYPE_ACKALL,		"ACKALL") \
264b54a134aSDavid Howells 	EM(RXRPC_PACKET_TYPE_CHALLENGE,		"CHALL") \
265b54a134aSDavid Howells 	EM(RXRPC_PACKET_TYPE_RESPONSE,		"RESP") \
266b54a134aSDavid Howells 	EM(RXRPC_PACKET_TYPE_DEBUG,		"DEBUG") \
267b54a134aSDavid Howells 	EM(9,					"?09") \
268b54a134aSDavid Howells 	EM(10,					"?10") \
269b54a134aSDavid Howells 	EM(11,					"?11") \
270b54a134aSDavid Howells 	EM(12,					"?12") \
271b54a134aSDavid Howells 	EM(RXRPC_PACKET_TYPE_VERSION,		"VERSION") \
272b54a134aSDavid Howells 	EM(14,					"?14") \
273b54a134aSDavid Howells 	E_(15,					"?15")
274b54a134aSDavid Howells 
275b54a134aSDavid Howells #define rxrpc_ack_names \
276b54a134aSDavid Howells 	EM(0,					"-0-") \
277b54a134aSDavid Howells 	EM(RXRPC_ACK_REQUESTED,			"REQ") \
278b54a134aSDavid Howells 	EM(RXRPC_ACK_DUPLICATE,			"DUP") \
279b54a134aSDavid Howells 	EM(RXRPC_ACK_OUT_OF_SEQUENCE,		"OOS") \
280b54a134aSDavid Howells 	EM(RXRPC_ACK_EXCEEDS_WINDOW,		"WIN") \
281b54a134aSDavid Howells 	EM(RXRPC_ACK_NOSPACE,			"MEM") \
282b54a134aSDavid Howells 	EM(RXRPC_ACK_PING,			"PNG") \
283b54a134aSDavid Howells 	EM(RXRPC_ACK_PING_RESPONSE,		"PNR") \
284b54a134aSDavid Howells 	EM(RXRPC_ACK_DELAY,			"DLY") \
285b54a134aSDavid Howells 	EM(RXRPC_ACK_IDLE,			"IDL") \
286b54a134aSDavid Howells 	E_(RXRPC_ACK__INVALID,			"-?-")
287b54a134aSDavid Howells 
2881bae5d22SDavid Howells #define rxrpc_completions \
2891bae5d22SDavid Howells 	EM(RXRPC_CALL_SUCCEEDED,		"Succeeded") \
2901bae5d22SDavid Howells 	EM(RXRPC_CALL_REMOTELY_ABORTED,		"RemoteAbort") \
2911bae5d22SDavid Howells 	EM(RXRPC_CALL_LOCALLY_ABORTED,		"LocalAbort") \
2921bae5d22SDavid Howells 	EM(RXRPC_CALL_LOCAL_ERROR,		"LocalError") \
2931bae5d22SDavid Howells 	E_(RXRPC_CALL_NETWORK_ERROR,		"NetError")
2941bae5d22SDavid Howells 
2954764c0daSDavid Howells #define rxrpc_tx_points \
2964764c0daSDavid Howells 	EM(rxrpc_tx_point_call_abort,		"CallAbort") \
2974764c0daSDavid Howells 	EM(rxrpc_tx_point_call_ack,		"CallAck") \
2984764c0daSDavid Howells 	EM(rxrpc_tx_point_call_data_frag,	"CallDataFrag") \
2994764c0daSDavid Howells 	EM(rxrpc_tx_point_call_data_nofrag,	"CallDataNofrag") \
3004764c0daSDavid Howells 	EM(rxrpc_tx_point_call_final_resend,	"CallFinalResend") \
3014764c0daSDavid Howells 	EM(rxrpc_tx_point_conn_abort,		"ConnAbort") \
3024764c0daSDavid Howells 	EM(rxrpc_tx_point_reject,		"Reject") \
3034764c0daSDavid Howells 	EM(rxrpc_tx_point_rxkad_challenge,	"RxkadChall") \
3044764c0daSDavid Howells 	EM(rxrpc_tx_point_rxkad_response,	"RxkadResp") \
3054764c0daSDavid Howells 	EM(rxrpc_tx_point_version_keepalive,	"VerKeepalive") \
3064764c0daSDavid Howells 	E_(rxrpc_tx_point_version_reply,	"VerReply")
3076b47fe1dSDavid Howells 
3084d843be5SDavid Howells #define rxrpc_req_ack_traces \
3094d843be5SDavid Howells 	EM(rxrpc_reqack_ack_lost,		"ACK-LOST  ")	\
3104d843be5SDavid Howells 	EM(rxrpc_reqack_already_on,		"ALREADY-ON")	\
3114d843be5SDavid Howells 	EM(rxrpc_reqack_more_rtt,		"MORE-RTT  ")	\
3124d843be5SDavid Howells 	EM(rxrpc_reqack_no_srv_last,		"NO-SRVLAST")	\
3134d843be5SDavid Howells 	EM(rxrpc_reqack_old_rtt,		"OLD-RTT   ")	\
3144d843be5SDavid Howells 	EM(rxrpc_reqack_retrans,		"RETRANS   ")	\
3154d843be5SDavid Howells 	EM(rxrpc_reqack_slow_start,		"SLOW-START")	\
3164d843be5SDavid Howells 	E_(rxrpc_reqack_small_txwin,		"SMALL-TXWN")
317f7fa5242SDavid Howells /* ---- Must update size of stat_why_req_ack[] if more are added! */
3184d843be5SDavid Howells 
31902a19356SDavid Howells #define rxrpc_txbuf_traces \
32002a19356SDavid Howells 	EM(rxrpc_txbuf_alloc_ack,		"ALLOC ACK  ")	\
32102a19356SDavid Howells 	EM(rxrpc_txbuf_alloc_data,		"ALLOC DATA ")	\
32202a19356SDavid Howells 	EM(rxrpc_txbuf_free,			"FREE       ")	\
323a4ea4c47SDavid Howells 	EM(rxrpc_txbuf_get_buffer,		"GET BUFFER ")	\
32402a19356SDavid Howells 	EM(rxrpc_txbuf_get_trans,		"GET TRANS  ")	\
32502a19356SDavid Howells 	EM(rxrpc_txbuf_get_retrans,		"GET RETRANS")	\
32672f0c6fbSDavid Howells 	EM(rxrpc_txbuf_put_ack_tx,		"PUT ACK TX ")	\
32702a19356SDavid Howells 	EM(rxrpc_txbuf_put_cleaned,		"PUT CLEANED")	\
32872f0c6fbSDavid Howells 	EM(rxrpc_txbuf_put_nomem,		"PUT NOMEM  ")	\
32902a19356SDavid Howells 	EM(rxrpc_txbuf_put_rotated,		"PUT ROTATED")	\
33002a19356SDavid Howells 	EM(rxrpc_txbuf_put_send_aborted,	"PUT SEND-X ")	\
331a4ea4c47SDavid Howells 	EM(rxrpc_txbuf_put_trans,		"PUT TRANS  ")	\
33202a19356SDavid Howells 	EM(rxrpc_txbuf_see_send_more,		"SEE SEND+  ")	\
33302a19356SDavid Howells 	E_(rxrpc_txbuf_see_unacked,		"SEE UNACKED")
33402a19356SDavid Howells 
335b54a134aSDavid Howells /*
336dc9fd093SDavid Howells  * Generate enums for tracing information.
337dc9fd093SDavid Howells  */
338dc9fd093SDavid Howells #ifndef __NETFS_DECLARE_TRACE_ENUMS_ONCE_ONLY
339dc9fd093SDavid Howells #define __NETFS_DECLARE_TRACE_ENUMS_ONCE_ONLY
340dc9fd093SDavid Howells 
341dc9fd093SDavid Howells #undef EM
342dc9fd093SDavid Howells #undef E_
343dc9fd093SDavid Howells #define EM(a, b) a,
344dc9fd093SDavid Howells #define E_(a, b) a
345dc9fd093SDavid Howells 
346dc9fd093SDavid Howells enum rxrpc_call_trace		{ rxrpc_call_traces } __mode(byte);
347dc9fd093SDavid Howells enum rxrpc_client_trace		{ rxrpc_client_traces } __mode(byte);
348dc9fd093SDavid Howells enum rxrpc_congest_change	{ rxrpc_congest_changes } __mode(byte);
349dc9fd093SDavid Howells enum rxrpc_conn_trace		{ rxrpc_conn_traces } __mode(byte);
350dc9fd093SDavid Howells enum rxrpc_local_trace		{ rxrpc_local_traces } __mode(byte);
351dc9fd093SDavid Howells enum rxrpc_peer_trace		{ rxrpc_peer_traces } __mode(byte);
352dc9fd093SDavid Howells enum rxrpc_propose_ack_outcome	{ rxrpc_propose_ack_outcomes } __mode(byte);
353dc9fd093SDavid Howells enum rxrpc_propose_ack_trace	{ rxrpc_propose_ack_traces } __mode(byte);
354dc9fd093SDavid Howells enum rxrpc_receive_trace	{ rxrpc_receive_traces } __mode(byte);
355dc9fd093SDavid Howells enum rxrpc_recvmsg_trace	{ rxrpc_recvmsg_traces } __mode(byte);
3564d843be5SDavid Howells enum rxrpc_req_ack_trace	{ rxrpc_req_ack_traces } __mode(byte);
357dc9fd093SDavid Howells enum rxrpc_rtt_rx_trace		{ rxrpc_rtt_rx_traces } __mode(byte);
358dc9fd093SDavid Howells enum rxrpc_rtt_tx_trace		{ rxrpc_rtt_tx_traces } __mode(byte);
359dc9fd093SDavid Howells enum rxrpc_skb_trace		{ rxrpc_skb_traces } __mode(byte);
360dc9fd093SDavid Howells enum rxrpc_timer_trace		{ rxrpc_timer_traces } __mode(byte);
361dc9fd093SDavid Howells enum rxrpc_tx_point		{ rxrpc_tx_points } __mode(byte);
36202a19356SDavid Howells enum rxrpc_txbuf_trace		{ rxrpc_txbuf_traces } __mode(byte);
363a4ea4c47SDavid Howells enum rxrpc_txqueue_trace	{ rxrpc_txqueue_traces } __mode(byte);
364dc9fd093SDavid Howells 
365dc9fd093SDavid Howells #endif /* end __RXRPC_DECLARE_TRACE_ENUMS_ONCE_ONLY */
366dc9fd093SDavid Howells 
367dc9fd093SDavid Howells /*
368b54a134aSDavid Howells  * Export enum symbols via userspace.
369b54a134aSDavid Howells  */
370b54a134aSDavid Howells #undef EM
371b54a134aSDavid Howells #undef E_
372b54a134aSDavid Howells #define EM(a, b) TRACE_DEFINE_ENUM(a);
373b54a134aSDavid Howells #define E_(a, b) TRACE_DEFINE_ENUM(a);
374b54a134aSDavid Howells 
375b54a134aSDavid Howells rxrpc_call_traces;
376dc9fd093SDavid Howells rxrpc_client_traces;
377dc9fd093SDavid Howells rxrpc_congest_changes;
378dc9fd093SDavid Howells rxrpc_congest_modes;
379dc9fd093SDavid Howells rxrpc_conn_traces;
380dc9fd093SDavid Howells rxrpc_local_traces;
381dc9fd093SDavid Howells rxrpc_propose_ack_traces;
382b54a134aSDavid Howells rxrpc_receive_traces;
383b54a134aSDavid Howells rxrpc_recvmsg_traces;
3844d843be5SDavid Howells rxrpc_req_ack_traces;
385b54a134aSDavid Howells rxrpc_rtt_rx_traces;
386dc9fd093SDavid Howells rxrpc_rtt_tx_traces;
387dc9fd093SDavid Howells rxrpc_skb_traces;
388b54a134aSDavid Howells rxrpc_timer_traces;
3894764c0daSDavid Howells rxrpc_tx_points;
39002a19356SDavid Howells rxrpc_txbuf_traces;
391a4ea4c47SDavid Howells rxrpc_txqueue_traces;
392b54a134aSDavid Howells 
393b54a134aSDavid Howells /*
394b54a134aSDavid Howells  * Now redefine the EM() and E_() macros to map the enums to the strings that
395b54a134aSDavid Howells  * will be printed in the output.
396b54a134aSDavid Howells  */
397b54a134aSDavid Howells #undef EM
398b54a134aSDavid Howells #undef E_
399b54a134aSDavid Howells #define EM(a, b)	{ a, b },
400b54a134aSDavid Howells #define E_(a, b)	{ a, b }
401b54a134aSDavid Howells 
40209d2bf59SDavid Howells TRACE_EVENT(rxrpc_local,
40306d9532fSDavid Howells 	    TP_PROTO(unsigned int local_debug_id, enum rxrpc_local_trace op,
4040fde882fSDavid Howells 		     int ref, int usage),
40509d2bf59SDavid Howells 
4060fde882fSDavid Howells 	    TP_ARGS(local_debug_id, op, ref, usage),
40709d2bf59SDavid Howells 
40809d2bf59SDavid Howells 	    TP_STRUCT__entry(
40909d2bf59SDavid Howells 		    __field(unsigned int,	local		)
41009d2bf59SDavid Howells 		    __field(int,		op		)
4110fde882fSDavid Howells 		    __field(int,		ref		)
41209d2bf59SDavid Howells 		    __field(int,		usage		)
41309d2bf59SDavid Howells 			     ),
41409d2bf59SDavid Howells 
41509d2bf59SDavid Howells 	    TP_fast_assign(
41606d9532fSDavid Howells 		    __entry->local = local_debug_id;
41709d2bf59SDavid Howells 		    __entry->op = op;
4180fde882fSDavid Howells 		    __entry->ref = ref;
41909d2bf59SDavid Howells 		    __entry->usage = usage;
42009d2bf59SDavid Howells 			   ),
42109d2bf59SDavid Howells 
4220fde882fSDavid Howells 	    TP_printk("L=%08x %s r=%d u=%d",
42309d2bf59SDavid Howells 		      __entry->local,
42409d2bf59SDavid Howells 		      __print_symbolic(__entry->op, rxrpc_local_traces),
4250fde882fSDavid Howells 		      __entry->ref,
4260fde882fSDavid Howells 		      __entry->usage)
42709d2bf59SDavid Howells 	    );
42809d2bf59SDavid Howells 
4291159d4b4SDavid Howells TRACE_EVENT(rxrpc_peer,
43047c810a7SDavid Howells 	    TP_PROTO(unsigned int peer_debug_id, int ref, enum rxrpc_peer_trace why),
4311159d4b4SDavid Howells 
43247c810a7SDavid Howells 	    TP_ARGS(peer_debug_id, ref, why),
4331159d4b4SDavid Howells 
4341159d4b4SDavid Howells 	    TP_STRUCT__entry(
4351159d4b4SDavid Howells 		    __field(unsigned int,	peer		)
43647c810a7SDavid Howells 		    __field(int,		ref		)
43747c810a7SDavid Howells 		    __field(int,		why		)
4381159d4b4SDavid Howells 			     ),
4391159d4b4SDavid Howells 
4401159d4b4SDavid Howells 	    TP_fast_assign(
44155f6c98eSDavid Howells 		    __entry->peer = peer_debug_id;
44247c810a7SDavid Howells 		    __entry->ref = ref;
44347c810a7SDavid Howells 		    __entry->why = why;
4441159d4b4SDavid Howells 			   ),
4451159d4b4SDavid Howells 
44647c810a7SDavid Howells 	    TP_printk("P=%08x %s r=%d",
4471159d4b4SDavid Howells 		      __entry->peer,
44847c810a7SDavid Howells 		      __print_symbolic(__entry->why, rxrpc_peer_traces),
44947c810a7SDavid Howells 		      __entry->ref)
4501159d4b4SDavid Howells 	    );
4511159d4b4SDavid Howells 
452363deeabSDavid Howells TRACE_EVENT(rxrpc_conn,
453*7fa25105SDavid Howells 	    TP_PROTO(unsigned int conn_debug_id, int ref, enum rxrpc_conn_trace why),
454363deeabSDavid Howells 
455*7fa25105SDavid Howells 	    TP_ARGS(conn_debug_id, ref, why),
456363deeabSDavid Howells 
457363deeabSDavid Howells 	    TP_STRUCT__entry(
458a25e21f0SDavid Howells 		    __field(unsigned int,	conn		)
459*7fa25105SDavid Howells 		    __field(int,		ref		)
460*7fa25105SDavid Howells 		    __field(int,		why		)
461363deeabSDavid Howells 			     ),
462363deeabSDavid Howells 
463363deeabSDavid Howells 	    TP_fast_assign(
4644c1295dcSDavid Howells 		    __entry->conn = conn_debug_id;
465*7fa25105SDavid Howells 		    __entry->ref = ref;
466*7fa25105SDavid Howells 		    __entry->why = why;
467363deeabSDavid Howells 			   ),
468363deeabSDavid Howells 
469*7fa25105SDavid Howells 	    TP_printk("C=%08x %s r=%d",
470363deeabSDavid Howells 		      __entry->conn,
471*7fa25105SDavid Howells 		      __print_symbolic(__entry->why, rxrpc_conn_traces),
472*7fa25105SDavid Howells 		      __entry->ref)
473363deeabSDavid Howells 	    );
474363deeabSDavid Howells 
475363deeabSDavid Howells TRACE_EVENT(rxrpc_client,
476363deeabSDavid Howells 	    TP_PROTO(struct rxrpc_connection *conn, int channel,
477363deeabSDavid Howells 		     enum rxrpc_client_trace op),
478363deeabSDavid Howells 
479363deeabSDavid Howells 	    TP_ARGS(conn, channel, op),
480363deeabSDavid Howells 
481363deeabSDavid Howells 	    TP_STRUCT__entry(
482a25e21f0SDavid Howells 		    __field(unsigned int,		conn		)
483363deeabSDavid Howells 		    __field(u32,			cid		)
484363deeabSDavid Howells 		    __field(int,			channel		)
485363deeabSDavid Howells 		    __field(int,			usage		)
486363deeabSDavid Howells 		    __field(enum rxrpc_client_trace,	op		)
487363deeabSDavid Howells 			     ),
488363deeabSDavid Howells 
489363deeabSDavid Howells 	    TP_fast_assign(
490245500d8SDavid Howells 		    __entry->conn = conn ? conn->debug_id : 0;
491363deeabSDavid Howells 		    __entry->channel = channel;
492a0575429SDavid Howells 		    __entry->usage = conn ? refcount_read(&conn->ref) : -2;
493363deeabSDavid Howells 		    __entry->op = op;
49496a9c425SDavid Howells 		    __entry->cid = conn ? conn->proto.cid : 0;
495363deeabSDavid Howells 			   ),
496363deeabSDavid Howells 
497245500d8SDavid Howells 	    TP_printk("C=%08x h=%2d %s i=%08x u=%d",
498363deeabSDavid Howells 		      __entry->conn,
499363deeabSDavid Howells 		      __entry->channel,
500b54a134aSDavid Howells 		      __print_symbolic(__entry->op, rxrpc_client_traces),
501363deeabSDavid Howells 		      __entry->cid,
502363deeabSDavid Howells 		      __entry->usage)
503363deeabSDavid Howells 	    );
504363deeabSDavid Howells 
505e34d4234SDavid Howells TRACE_EVENT(rxrpc_call,
50648c9e0ecSDavid Howells 	    TP_PROTO(unsigned int call_debug_id, enum rxrpc_call_trace op,
5072ab27215SDavid Howells 		     int usage, const void *where, const void *aux),
508e34d4234SDavid Howells 
50948c9e0ecSDavid Howells 	    TP_ARGS(call_debug_id, op, usage, where, aux),
510e34d4234SDavid Howells 
511e34d4234SDavid Howells 	    TP_STRUCT__entry(
512a25e21f0SDavid Howells 		    __field(unsigned int,		call		)
513e34d4234SDavid Howells 		    __field(int,			op		)
514e34d4234SDavid Howells 		    __field(int,			usage		)
515e34d4234SDavid Howells 		    __field(const void *,		where		)
516e34d4234SDavid Howells 		    __field(const void *,		aux		)
517e34d4234SDavid Howells 			     ),
518e34d4234SDavid Howells 
519e34d4234SDavid Howells 	    TP_fast_assign(
52048c9e0ecSDavid Howells 		    __entry->call = call_debug_id;
521e34d4234SDavid Howells 		    __entry->op = op;
522e34d4234SDavid Howells 		    __entry->usage = usage;
523e34d4234SDavid Howells 		    __entry->where = where;
524e34d4234SDavid Howells 		    __entry->aux = aux;
525e34d4234SDavid Howells 			   ),
526e34d4234SDavid Howells 
527a25e21f0SDavid Howells 	    TP_printk("c=%08x %s u=%d sp=%pSR a=%p",
528e34d4234SDavid Howells 		      __entry->call,
529b54a134aSDavid Howells 		      __print_symbolic(__entry->op, rxrpc_call_traces),
530e34d4234SDavid Howells 		      __entry->usage,
531e34d4234SDavid Howells 		      __entry->where,
532e34d4234SDavid Howells 		      __entry->aux)
533e34d4234SDavid Howells 	    );
534e34d4234SDavid Howells 
535df844fd4SDavid Howells TRACE_EVENT(rxrpc_skb,
53671f3ca40SDavid Howells 	    TP_PROTO(struct sk_buff *skb, enum rxrpc_skb_trace op,
53727f699ccSDavid Howells 		     int usage, int mod_count, const void *where),
538df844fd4SDavid Howells 
53927f699ccSDavid Howells 	    TP_ARGS(skb, op, usage, mod_count, where),
540df844fd4SDavid Howells 
541df844fd4SDavid Howells 	    TP_STRUCT__entry(
542df844fd4SDavid Howells 		    __field(struct sk_buff *,		skb		)
54371f3ca40SDavid Howells 		    __field(enum rxrpc_skb_trace,	op		)
544df844fd4SDavid Howells 		    __field(int,			usage		)
545df844fd4SDavid Howells 		    __field(int,			mod_count	)
546df844fd4SDavid Howells 		    __field(const void *,		where		)
547df844fd4SDavid Howells 			     ),
548df844fd4SDavid Howells 
549df844fd4SDavid Howells 	    TP_fast_assign(
550df844fd4SDavid Howells 		    __entry->skb = skb;
551df844fd4SDavid Howells 		    __entry->op = op;
552df844fd4SDavid Howells 		    __entry->usage = usage;
553df844fd4SDavid Howells 		    __entry->mod_count = mod_count;
554df844fd4SDavid Howells 		    __entry->where = where;
555df844fd4SDavid Howells 			   ),
556df844fd4SDavid Howells 
55727f699ccSDavid Howells 	    TP_printk("s=%p Rx %s u=%d m=%d p=%pSR",
558df844fd4SDavid Howells 		      __entry->skb,
559b54a134aSDavid Howells 		      __print_symbolic(__entry->op, rxrpc_skb_traces),
560df844fd4SDavid Howells 		      __entry->usage,
561df844fd4SDavid Howells 		      __entry->mod_count,
562df844fd4SDavid Howells 		      __entry->where)
563df844fd4SDavid Howells 	    );
564df844fd4SDavid Howells 
56549e19ec7SDavid Howells TRACE_EVENT(rxrpc_rx_packet,
56649e19ec7SDavid Howells 	    TP_PROTO(struct rxrpc_skb_priv *sp),
56749e19ec7SDavid Howells 
56849e19ec7SDavid Howells 	    TP_ARGS(sp),
56949e19ec7SDavid Howells 
57049e19ec7SDavid Howells 	    TP_STRUCT__entry(
57149e19ec7SDavid Howells 		    __field_struct(struct rxrpc_host_header,	hdr		)
57249e19ec7SDavid Howells 			     ),
57349e19ec7SDavid Howells 
57449e19ec7SDavid Howells 	    TP_fast_assign(
57549e19ec7SDavid Howells 		    memcpy(&__entry->hdr, &sp->hdr, sizeof(__entry->hdr));
57649e19ec7SDavid Howells 			   ),
57749e19ec7SDavid Howells 
578a3868bfcSDavid Howells 	    TP_printk("%08x:%08x:%08x:%04x %08x %08x %02x %02x %s",
57949e19ec7SDavid Howells 		      __entry->hdr.epoch, __entry->hdr.cid,
58049e19ec7SDavid Howells 		      __entry->hdr.callNumber, __entry->hdr.serviceId,
58149e19ec7SDavid Howells 		      __entry->hdr.serial, __entry->hdr.seq,
582a3868bfcSDavid Howells 		      __entry->hdr.type, __entry->hdr.flags,
583b54a134aSDavid Howells 		      __entry->hdr.type <= 15 ?
584b54a134aSDavid Howells 		      __print_symbolic(__entry->hdr.type, rxrpc_pkts) : "?UNK")
58549e19ec7SDavid Howells 	    );
58649e19ec7SDavid Howells 
58749e19ec7SDavid Howells TRACE_EVENT(rxrpc_rx_done,
58849e19ec7SDavid Howells 	    TP_PROTO(int result, int abort_code),
58949e19ec7SDavid Howells 
59049e19ec7SDavid Howells 	    TP_ARGS(result, abort_code),
59149e19ec7SDavid Howells 
59249e19ec7SDavid Howells 	    TP_STRUCT__entry(
59349e19ec7SDavid Howells 		    __field(int,			result		)
59449e19ec7SDavid Howells 		    __field(int,			abort_code	)
59549e19ec7SDavid Howells 			     ),
59649e19ec7SDavid Howells 
59749e19ec7SDavid Howells 	    TP_fast_assign(
59849e19ec7SDavid Howells 		    __entry->result = result;
59949e19ec7SDavid Howells 		    __entry->abort_code = abort_code;
60049e19ec7SDavid Howells 			   ),
60149e19ec7SDavid Howells 
60249e19ec7SDavid Howells 	    TP_printk("r=%d a=%d", __entry->result, __entry->abort_code)
60349e19ec7SDavid Howells 	    );
60449e19ec7SDavid Howells 
6055a42976dSDavid Howells TRACE_EVENT(rxrpc_abort,
606a25e21f0SDavid Howells 	    TP_PROTO(unsigned int call_nr, const char *why, u32 cid, u32 call_id,
607a25e21f0SDavid Howells 		     rxrpc_seq_t seq, int abort_code, int error),
6085a42976dSDavid Howells 
609a25e21f0SDavid Howells 	    TP_ARGS(call_nr, why, cid, call_id, seq, abort_code, error),
6105a42976dSDavid Howells 
6115a42976dSDavid Howells 	    TP_STRUCT__entry(
612a25e21f0SDavid Howells 		    __field(unsigned int,		call_nr		)
6135a42976dSDavid Howells 		    __array(char,			why, 4		)
6145a42976dSDavid Howells 		    __field(u32,			cid		)
6155a42976dSDavid Howells 		    __field(u32,			call_id		)
6165a42976dSDavid Howells 		    __field(rxrpc_seq_t,		seq		)
6175a42976dSDavid Howells 		    __field(int,			abort_code	)
6185a42976dSDavid Howells 		    __field(int,			error		)
6195a42976dSDavid Howells 			     ),
6205a42976dSDavid Howells 
6215a42976dSDavid Howells 	    TP_fast_assign(
6225a42976dSDavid Howells 		    memcpy(__entry->why, why, 4);
623a25e21f0SDavid Howells 		    __entry->call_nr = call_nr;
6245a42976dSDavid Howells 		    __entry->cid = cid;
6255a42976dSDavid Howells 		    __entry->call_id = call_id;
6265a42976dSDavid Howells 		    __entry->abort_code = abort_code;
6275a42976dSDavid Howells 		    __entry->error = error;
6285a42976dSDavid Howells 		    __entry->seq = seq;
6295a42976dSDavid Howells 			   ),
6305a42976dSDavid Howells 
631a25e21f0SDavid Howells 	    TP_printk("c=%08x %08x:%08x s=%u a=%d e=%d %s",
632a25e21f0SDavid Howells 		      __entry->call_nr,
6335a42976dSDavid Howells 		      __entry->cid, __entry->call_id, __entry->seq,
6345a42976dSDavid Howells 		      __entry->abort_code, __entry->error, __entry->why)
6355a42976dSDavid Howells 	    );
6365a42976dSDavid Howells 
6371bae5d22SDavid Howells TRACE_EVENT(rxrpc_call_complete,
6381bae5d22SDavid Howells 	    TP_PROTO(struct rxrpc_call *call),
6391bae5d22SDavid Howells 
6401bae5d22SDavid Howells 	    TP_ARGS(call),
6411bae5d22SDavid Howells 
6421bae5d22SDavid Howells 	    TP_STRUCT__entry(
6431bae5d22SDavid Howells 		    __field(unsigned int,		call		)
6441bae5d22SDavid Howells 		    __field(enum rxrpc_call_completion,	compl		)
6451bae5d22SDavid Howells 		    __field(int,			error		)
6461bae5d22SDavid Howells 		    __field(u32,			abort_code	)
6471bae5d22SDavid Howells 			     ),
6481bae5d22SDavid Howells 
6491bae5d22SDavid Howells 	    TP_fast_assign(
6501bae5d22SDavid Howells 		    __entry->call = call->debug_id;
6511bae5d22SDavid Howells 		    __entry->compl = call->completion;
6521bae5d22SDavid Howells 		    __entry->error = call->error;
6531bae5d22SDavid Howells 		    __entry->abort_code = call->abort_code;
6541bae5d22SDavid Howells 			   ),
6551bae5d22SDavid Howells 
6561bae5d22SDavid Howells 	    TP_printk("c=%08x %s r=%d ac=%d",
6571bae5d22SDavid Howells 		      __entry->call,
6581bae5d22SDavid Howells 		      __print_symbolic(__entry->compl, rxrpc_completions),
6591bae5d22SDavid Howells 		      __entry->error,
6601bae5d22SDavid Howells 		      __entry->abort_code)
6611bae5d22SDavid Howells 	    );
6621bae5d22SDavid Howells 
663a4ea4c47SDavid Howells TRACE_EVENT(rxrpc_txqueue,
664a4ea4c47SDavid Howells 	    TP_PROTO(struct rxrpc_call *call, enum rxrpc_txqueue_trace why),
665a124fe3eSDavid Howells 
666a124fe3eSDavid Howells 	    TP_ARGS(call, why),
667a124fe3eSDavid Howells 
668a124fe3eSDavid Howells 	    TP_STRUCT__entry(
669a25e21f0SDavid Howells 		    __field(unsigned int,		call		)
670a4ea4c47SDavid Howells 		    __field(enum rxrpc_txqueue_trace,	why		)
671a4ea4c47SDavid Howells 		    __field(rxrpc_seq_t,		acks_hard_ack	)
672a4ea4c47SDavid Howells 		    __field(rxrpc_seq_t,		tx_bottom	)
673a124fe3eSDavid Howells 		    __field(rxrpc_seq_t,		tx_top		)
674b1d9f7fdSDavid Howells 		    __field(int,			tx_winsize	)
675a124fe3eSDavid Howells 			     ),
676a124fe3eSDavid Howells 
677a124fe3eSDavid Howells 	    TP_fast_assign(
678a25e21f0SDavid Howells 		    __entry->call = call->debug_id;
679a124fe3eSDavid Howells 		    __entry->why = why;
680a4ea4c47SDavid Howells 		    __entry->acks_hard_ack = call->acks_hard_ack;
681a4ea4c47SDavid Howells 		    __entry->tx_bottom = call->tx_bottom;
682a124fe3eSDavid Howells 		    __entry->tx_top = call->tx_top;
683b1d9f7fdSDavid Howells 		    __entry->tx_winsize = call->tx_winsize;
684a124fe3eSDavid Howells 			   ),
685a124fe3eSDavid Howells 
686a4ea4c47SDavid Howells 	    TP_printk("c=%08x %s f=%08x h=%08x n=%u/%u/%u",
687a124fe3eSDavid Howells 		      __entry->call,
688a4ea4c47SDavid Howells 		      __print_symbolic(__entry->why, rxrpc_txqueue_traces),
689a4ea4c47SDavid Howells 		      __entry->tx_bottom,
690a4ea4c47SDavid Howells 		      __entry->acks_hard_ack,
691a4ea4c47SDavid Howells 		      __entry->tx_top - __entry->tx_bottom,
692a4ea4c47SDavid Howells 		      __entry->tx_top - __entry->acks_hard_ack,
693b1d9f7fdSDavid Howells 		      __entry->tx_winsize)
694a124fe3eSDavid Howells 	    );
695a124fe3eSDavid Howells 
696b1d9f7fdSDavid Howells TRACE_EVENT(rxrpc_rx_data,
6974764c0daSDavid Howells 	    TP_PROTO(unsigned int call, rxrpc_seq_t seq,
698d4d02d8bSDavid Howells 		     rxrpc_serial_t serial, u8 flags),
699ec71eb9aSDavid Howells 
700d4d02d8bSDavid Howells 	    TP_ARGS(call, seq, serial, flags),
701ec71eb9aSDavid Howells 
702ec71eb9aSDavid Howells 	    TP_STRUCT__entry(
703a25e21f0SDavid Howells 		    __field(unsigned int,		call		)
704b1d9f7fdSDavid Howells 		    __field(rxrpc_seq_t,		seq		)
705b1d9f7fdSDavid Howells 		    __field(rxrpc_serial_t,		serial		)
706b1d9f7fdSDavid Howells 		    __field(u8,				flags		)
707b1d9f7fdSDavid Howells 			     ),
708b1d9f7fdSDavid Howells 
709b1d9f7fdSDavid Howells 	    TP_fast_assign(
7104764c0daSDavid Howells 		    __entry->call = call;
711b1d9f7fdSDavid Howells 		    __entry->seq = seq;
712b1d9f7fdSDavid Howells 		    __entry->serial = serial;
713b1d9f7fdSDavid Howells 		    __entry->flags = flags;
714b1d9f7fdSDavid Howells 			   ),
715b1d9f7fdSDavid Howells 
716d4d02d8bSDavid Howells 	    TP_printk("c=%08x DATA %08x q=%08x fl=%02x",
717b1d9f7fdSDavid Howells 		      __entry->call,
718b1d9f7fdSDavid Howells 		      __entry->serial,
719b1d9f7fdSDavid Howells 		      __entry->seq,
720d4d02d8bSDavid Howells 		      __entry->flags)
721b1d9f7fdSDavid Howells 	    );
722b1d9f7fdSDavid Howells 
723b1d9f7fdSDavid Howells TRACE_EVENT(rxrpc_rx_ack,
724b1d9f7fdSDavid Howells 	    TP_PROTO(struct rxrpc_call *call,
725b1d9f7fdSDavid Howells 		     rxrpc_serial_t serial, rxrpc_serial_t ack_serial,
726b1d9f7fdSDavid Howells 		     rxrpc_seq_t first, rxrpc_seq_t prev, u8 reason, u8 n_acks),
727b1d9f7fdSDavid Howells 
728b1d9f7fdSDavid Howells 	    TP_ARGS(call, serial, ack_serial, first, prev, reason, n_acks),
729b1d9f7fdSDavid Howells 
730b1d9f7fdSDavid Howells 	    TP_STRUCT__entry(
731a25e21f0SDavid Howells 		    __field(unsigned int,		call		)
732b1d9f7fdSDavid Howells 		    __field(rxrpc_serial_t,		serial		)
733b1d9f7fdSDavid Howells 		    __field(rxrpc_serial_t,		ack_serial	)
734ec71eb9aSDavid Howells 		    __field(rxrpc_seq_t,		first		)
735b1d9f7fdSDavid Howells 		    __field(rxrpc_seq_t,		prev		)
736ec71eb9aSDavid Howells 		    __field(u8,				reason		)
737ec71eb9aSDavid Howells 		    __field(u8,				n_acks		)
738ec71eb9aSDavid Howells 			     ),
739ec71eb9aSDavid Howells 
740ec71eb9aSDavid Howells 	    TP_fast_assign(
741a25e21f0SDavid Howells 		    __entry->call = call->debug_id;
742b1d9f7fdSDavid Howells 		    __entry->serial = serial;
743b1d9f7fdSDavid Howells 		    __entry->ack_serial = ack_serial;
744ec71eb9aSDavid Howells 		    __entry->first = first;
745b1d9f7fdSDavid Howells 		    __entry->prev = prev;
746ec71eb9aSDavid Howells 		    __entry->reason = reason;
747ec71eb9aSDavid Howells 		    __entry->n_acks = n_acks;
748ec71eb9aSDavid Howells 			   ),
749ec71eb9aSDavid Howells 
750a25e21f0SDavid Howells 	    TP_printk("c=%08x %08x %s r=%08x f=%08x p=%08x n=%u",
751ec71eb9aSDavid Howells 		      __entry->call,
752b1d9f7fdSDavid Howells 		      __entry->serial,
753b54a134aSDavid Howells 		      __print_symbolic(__entry->reason, rxrpc_ack_names),
754b1d9f7fdSDavid Howells 		      __entry->ack_serial,
755ec71eb9aSDavid Howells 		      __entry->first,
756b1d9f7fdSDavid Howells 		      __entry->prev,
757ec71eb9aSDavid Howells 		      __entry->n_acks)
758ec71eb9aSDavid Howells 	    );
759ec71eb9aSDavid Howells 
760005ede28SDavid Howells TRACE_EVENT(rxrpc_rx_abort,
761005ede28SDavid Howells 	    TP_PROTO(struct rxrpc_call *call, rxrpc_serial_t serial,
762005ede28SDavid Howells 		     u32 abort_code),
763005ede28SDavid Howells 
764005ede28SDavid Howells 	    TP_ARGS(call, serial, abort_code),
765005ede28SDavid Howells 
766005ede28SDavid Howells 	    TP_STRUCT__entry(
767a25e21f0SDavid Howells 		    __field(unsigned int,		call		)
768005ede28SDavid Howells 		    __field(rxrpc_serial_t,		serial		)
769005ede28SDavid Howells 		    __field(u32,			abort_code	)
770005ede28SDavid Howells 			     ),
771005ede28SDavid Howells 
772005ede28SDavid Howells 	    TP_fast_assign(
773a25e21f0SDavid Howells 		    __entry->call = call->debug_id;
774005ede28SDavid Howells 		    __entry->serial = serial;
775005ede28SDavid Howells 		    __entry->abort_code = abort_code;
776005ede28SDavid Howells 			   ),
777005ede28SDavid Howells 
778a25e21f0SDavid Howells 	    TP_printk("c=%08x ABORT %08x ac=%d",
779005ede28SDavid Howells 		      __entry->call,
780005ede28SDavid Howells 		      __entry->serial,
781005ede28SDavid Howells 		      __entry->abort_code)
782005ede28SDavid Howells 	    );
783005ede28SDavid Howells 
7842ebdb26eSDavid Howells TRACE_EVENT(rxrpc_rx_challenge,
7852ebdb26eSDavid Howells 	    TP_PROTO(struct rxrpc_connection *conn, rxrpc_serial_t serial,
7862ebdb26eSDavid Howells 		     u32 version, u32 nonce, u32 min_level),
7872ebdb26eSDavid Howells 
7882ebdb26eSDavid Howells 	    TP_ARGS(conn, serial, version, nonce, min_level),
7892ebdb26eSDavid Howells 
7902ebdb26eSDavid Howells 	    TP_STRUCT__entry(
7912ebdb26eSDavid Howells 		    __field(unsigned int,		conn		)
7922ebdb26eSDavid Howells 		    __field(rxrpc_serial_t,		serial		)
7932ebdb26eSDavid Howells 		    __field(u32,			version		)
7942ebdb26eSDavid Howells 		    __field(u32,			nonce		)
7952ebdb26eSDavid Howells 		    __field(u32,			min_level	)
7962ebdb26eSDavid Howells 			     ),
7972ebdb26eSDavid Howells 
7982ebdb26eSDavid Howells 	    TP_fast_assign(
7992ebdb26eSDavid Howells 		    __entry->conn = conn->debug_id;
8002ebdb26eSDavid Howells 		    __entry->serial = serial;
8012ebdb26eSDavid Howells 		    __entry->version = version;
8022ebdb26eSDavid Howells 		    __entry->nonce = nonce;
8032ebdb26eSDavid Howells 		    __entry->min_level = min_level;
8042ebdb26eSDavid Howells 			   ),
8052ebdb26eSDavid Howells 
8062ebdb26eSDavid Howells 	    TP_printk("C=%08x CHALLENGE %08x v=%x n=%x ml=%x",
8072ebdb26eSDavid Howells 		      __entry->conn,
8082ebdb26eSDavid Howells 		      __entry->serial,
8092ebdb26eSDavid Howells 		      __entry->version,
8102ebdb26eSDavid Howells 		      __entry->nonce,
8112ebdb26eSDavid Howells 		      __entry->min_level)
8122ebdb26eSDavid Howells 	    );
8132ebdb26eSDavid Howells 
8142ebdb26eSDavid Howells TRACE_EVENT(rxrpc_rx_response,
8152ebdb26eSDavid Howells 	    TP_PROTO(struct rxrpc_connection *conn, rxrpc_serial_t serial,
8162ebdb26eSDavid Howells 		     u32 version, u32 kvno, u32 ticket_len),
8172ebdb26eSDavid Howells 
8182ebdb26eSDavid Howells 	    TP_ARGS(conn, serial, version, kvno, ticket_len),
8192ebdb26eSDavid Howells 
8202ebdb26eSDavid Howells 	    TP_STRUCT__entry(
8212ebdb26eSDavid Howells 		    __field(unsigned int,		conn		)
8222ebdb26eSDavid Howells 		    __field(rxrpc_serial_t,		serial		)
8232ebdb26eSDavid Howells 		    __field(u32,			version		)
8242ebdb26eSDavid Howells 		    __field(u32,			kvno		)
8252ebdb26eSDavid Howells 		    __field(u32,			ticket_len	)
8262ebdb26eSDavid Howells 			     ),
8272ebdb26eSDavid Howells 
8282ebdb26eSDavid Howells 	    TP_fast_assign(
8292ebdb26eSDavid Howells 		    __entry->conn = conn->debug_id;
8302ebdb26eSDavid Howells 		    __entry->serial = serial;
8312ebdb26eSDavid Howells 		    __entry->version = version;
8322ebdb26eSDavid Howells 		    __entry->kvno = kvno;
8332ebdb26eSDavid Howells 		    __entry->ticket_len = ticket_len;
8342ebdb26eSDavid Howells 			   ),
8352ebdb26eSDavid Howells 
8362ebdb26eSDavid Howells 	    TP_printk("C=%08x RESPONSE %08x v=%x kvno=%x tl=%x",
8372ebdb26eSDavid Howells 		      __entry->conn,
8382ebdb26eSDavid Howells 		      __entry->serial,
8392ebdb26eSDavid Howells 		      __entry->version,
8402ebdb26eSDavid Howells 		      __entry->kvno,
8412ebdb26eSDavid Howells 		      __entry->ticket_len)
8422ebdb26eSDavid Howells 	    );
8432ebdb26eSDavid Howells 
844740586d2SDavid Howells TRACE_EVENT(rxrpc_rx_rwind_change,
845740586d2SDavid Howells 	    TP_PROTO(struct rxrpc_call *call, rxrpc_serial_t serial,
846740586d2SDavid Howells 		     u32 rwind, bool wake),
847740586d2SDavid Howells 
848740586d2SDavid Howells 	    TP_ARGS(call, serial, rwind, wake),
849740586d2SDavid Howells 
850740586d2SDavid Howells 	    TP_STRUCT__entry(
851a25e21f0SDavid Howells 		    __field(unsigned int,		call		)
852740586d2SDavid Howells 		    __field(rxrpc_serial_t,		serial		)
853740586d2SDavid Howells 		    __field(u32,			rwind		)
854740586d2SDavid Howells 		    __field(bool,			wake		)
855740586d2SDavid Howells 			     ),
856740586d2SDavid Howells 
857740586d2SDavid Howells 	    TP_fast_assign(
858a25e21f0SDavid Howells 		    __entry->call = call->debug_id;
859740586d2SDavid Howells 		    __entry->serial = serial;
860740586d2SDavid Howells 		    __entry->rwind = rwind;
861740586d2SDavid Howells 		    __entry->wake = wake;
862740586d2SDavid Howells 			   ),
863740586d2SDavid Howells 
864a25e21f0SDavid Howells 	    TP_printk("c=%08x %08x rw=%u%s",
865740586d2SDavid Howells 		      __entry->call,
866740586d2SDavid Howells 		      __entry->serial,
867740586d2SDavid Howells 		      __entry->rwind,
868740586d2SDavid Howells 		      __entry->wake ? " wake" : "")
869740586d2SDavid Howells 	    );
870740586d2SDavid Howells 
8714764c0daSDavid Howells TRACE_EVENT(rxrpc_tx_packet,
8724764c0daSDavid Howells 	    TP_PROTO(unsigned int call_id, struct rxrpc_wire_header *whdr,
8734764c0daSDavid Howells 		     enum rxrpc_tx_point where),
8744764c0daSDavid Howells 
8754764c0daSDavid Howells 	    TP_ARGS(call_id, whdr, where),
8764764c0daSDavid Howells 
8774764c0daSDavid Howells 	    TP_STRUCT__entry(
8784764c0daSDavid Howells 		    __field(unsigned int,			call	)
8794764c0daSDavid Howells 		    __field(enum rxrpc_tx_point,		where	)
8804764c0daSDavid Howells 		    __field_struct(struct rxrpc_wire_header,	whdr	)
8814764c0daSDavid Howells 			     ),
8824764c0daSDavid Howells 
8834764c0daSDavid Howells 	    TP_fast_assign(
8844764c0daSDavid Howells 		    __entry->call = call_id;
8854764c0daSDavid Howells 		    memcpy(&__entry->whdr, whdr, sizeof(__entry->whdr));
8864e2abd3cSDavid Howells 		    __entry->where = where;
8874764c0daSDavid Howells 			   ),
8884764c0daSDavid Howells 
8894764c0daSDavid Howells 	    TP_printk("c=%08x %08x:%08x:%08x:%04x %08x %08x %02x %02x %s %s",
8904764c0daSDavid Howells 		      __entry->call,
8914764c0daSDavid Howells 		      ntohl(__entry->whdr.epoch),
8924764c0daSDavid Howells 		      ntohl(__entry->whdr.cid),
8934764c0daSDavid Howells 		      ntohl(__entry->whdr.callNumber),
8944764c0daSDavid Howells 		      ntohs(__entry->whdr.serviceId),
8954764c0daSDavid Howells 		      ntohl(__entry->whdr.serial),
8964764c0daSDavid Howells 		      ntohl(__entry->whdr.seq),
8974764c0daSDavid Howells 		      __entry->whdr.type, __entry->whdr.flags,
8984764c0daSDavid Howells 		      __entry->whdr.type <= 15 ?
8994764c0daSDavid Howells 		      __print_symbolic(__entry->whdr.type, rxrpc_pkts) : "?UNK",
9004764c0daSDavid Howells 		      __print_symbolic(__entry->where, rxrpc_tx_points))
9014764c0daSDavid Howells 	    );
9024764c0daSDavid Howells 
903be832aecSDavid Howells TRACE_EVENT(rxrpc_tx_data,
904be832aecSDavid Howells 	    TP_PROTO(struct rxrpc_call *call, rxrpc_seq_t seq,
905a1767077SDavid Howells 		     rxrpc_serial_t serial, u8 flags, bool retrans, bool lose),
906f3639df2SDavid Howells 
907a1767077SDavid Howells 	    TP_ARGS(call, seq, serial, flags, retrans, lose),
908f3639df2SDavid Howells 
909f3639df2SDavid Howells 	    TP_STRUCT__entry(
910a25e21f0SDavid Howells 		    __field(unsigned int,		call		)
911be832aecSDavid Howells 		    __field(rxrpc_seq_t,		seq		)
912f3639df2SDavid Howells 		    __field(rxrpc_serial_t,		serial		)
9134764c0daSDavid Howells 		    __field(u32,			cid		)
9144764c0daSDavid Howells 		    __field(u32,			call_id		)
915be832aecSDavid Howells 		    __field(u8,				flags		)
916a1767077SDavid Howells 		    __field(bool,			retrans		)
917be832aecSDavid Howells 		    __field(bool,			lose		)
918be832aecSDavid Howells 			     ),
919be832aecSDavid Howells 
920be832aecSDavid Howells 	    TP_fast_assign(
921a25e21f0SDavid Howells 		    __entry->call = call->debug_id;
9224764c0daSDavid Howells 		    __entry->cid = call->cid;
9234764c0daSDavid Howells 		    __entry->call_id = call->call_id;
924be832aecSDavid Howells 		    __entry->seq = seq;
925be832aecSDavid Howells 		    __entry->serial = serial;
926be832aecSDavid Howells 		    __entry->flags = flags;
927a1767077SDavid Howells 		    __entry->retrans = retrans;
928be832aecSDavid Howells 		    __entry->lose = lose;
929be832aecSDavid Howells 			   ),
930be832aecSDavid Howells 
9314764c0daSDavid Howells 	    TP_printk("c=%08x DATA %08x:%08x %08x q=%08x fl=%02x%s%s",
932be832aecSDavid Howells 		      __entry->call,
9334764c0daSDavid Howells 		      __entry->cid,
9344764c0daSDavid Howells 		      __entry->call_id,
935be832aecSDavid Howells 		      __entry->serial,
936be832aecSDavid Howells 		      __entry->seq,
937be832aecSDavid Howells 		      __entry->flags,
938265a44bbSDavid Howells 		      __entry->retrans ? " *RETRANS*" : "",
939be832aecSDavid Howells 		      __entry->lose ? " *LOSE*" : "")
940be832aecSDavid Howells 	    );
941be832aecSDavid Howells 
942be832aecSDavid Howells TRACE_EVENT(rxrpc_tx_ack,
9434764c0daSDavid Howells 	    TP_PROTO(unsigned int call, rxrpc_serial_t serial,
944be832aecSDavid Howells 		     rxrpc_seq_t ack_first, rxrpc_serial_t ack_serial,
945be832aecSDavid Howells 		     u8 reason, u8 n_acks),
946be832aecSDavid Howells 
947be832aecSDavid Howells 	    TP_ARGS(call, serial, ack_first, ack_serial, reason, n_acks),
948be832aecSDavid Howells 
949be832aecSDavid Howells 	    TP_STRUCT__entry(
950a25e21f0SDavid Howells 		    __field(unsigned int,		call		)
951be832aecSDavid Howells 		    __field(rxrpc_serial_t,		serial		)
952be832aecSDavid Howells 		    __field(rxrpc_seq_t,		ack_first	)
953be832aecSDavid Howells 		    __field(rxrpc_serial_t,		ack_serial	)
954f3639df2SDavid Howells 		    __field(u8,				reason		)
955f3639df2SDavid Howells 		    __field(u8,				n_acks		)
956f3639df2SDavid Howells 			     ),
957f3639df2SDavid Howells 
958f3639df2SDavid Howells 	    TP_fast_assign(
9594764c0daSDavid Howells 		    __entry->call = call;
960f3639df2SDavid Howells 		    __entry->serial = serial;
961be832aecSDavid Howells 		    __entry->ack_first = ack_first;
962be832aecSDavid Howells 		    __entry->ack_serial = ack_serial;
963f3639df2SDavid Howells 		    __entry->reason = reason;
964f3639df2SDavid Howells 		    __entry->n_acks = n_acks;
965f3639df2SDavid Howells 			   ),
966f3639df2SDavid Howells 
967a25e21f0SDavid Howells 	    TP_printk(" c=%08x ACK  %08x %s f=%08x r=%08x n=%u",
968f3639df2SDavid Howells 		      __entry->call,
969f3639df2SDavid Howells 		      __entry->serial,
970b54a134aSDavid Howells 		      __print_symbolic(__entry->reason, rxrpc_ack_names),
971be832aecSDavid Howells 		      __entry->ack_first,
972be832aecSDavid Howells 		      __entry->ack_serial,
973f3639df2SDavid Howells 		      __entry->n_acks)
974f3639df2SDavid Howells 	    );
975f3639df2SDavid Howells 
97658dc63c9SDavid Howells TRACE_EVENT(rxrpc_receive,
97758dc63c9SDavid Howells 	    TP_PROTO(struct rxrpc_call *call, enum rxrpc_receive_trace why,
97858dc63c9SDavid Howells 		     rxrpc_serial_t serial, rxrpc_seq_t seq),
97958dc63c9SDavid Howells 
98058dc63c9SDavid Howells 	    TP_ARGS(call, why, serial, seq),
98158dc63c9SDavid Howells 
98258dc63c9SDavid Howells 	    TP_STRUCT__entry(
983a25e21f0SDavid Howells 		    __field(unsigned int,		call		)
98458dc63c9SDavid Howells 		    __field(enum rxrpc_receive_trace,	why		)
98558dc63c9SDavid Howells 		    __field(rxrpc_serial_t,		serial		)
98658dc63c9SDavid Howells 		    __field(rxrpc_seq_t,		seq		)
9875d7edbc9SDavid Howells 		    __field(u64,			window		)
98858dc63c9SDavid Howells 			     ),
98958dc63c9SDavid Howells 
99058dc63c9SDavid Howells 	    TP_fast_assign(
991a25e21f0SDavid Howells 		    __entry->call = call->debug_id;
99258dc63c9SDavid Howells 		    __entry->why = why;
99358dc63c9SDavid Howells 		    __entry->serial = serial;
99458dc63c9SDavid Howells 		    __entry->seq = seq;
9955d7edbc9SDavid Howells 		    __entry->window = atomic64_read(&call->ackr_window);
99658dc63c9SDavid Howells 			   ),
99758dc63c9SDavid Howells 
998a25e21f0SDavid Howells 	    TP_printk("c=%08x %s r=%08x q=%08x w=%08x-%08x",
99958dc63c9SDavid Howells 		      __entry->call,
1000b54a134aSDavid Howells 		      __print_symbolic(__entry->why, rxrpc_receive_traces),
100158dc63c9SDavid Howells 		      __entry->serial,
100258dc63c9SDavid Howells 		      __entry->seq,
10035d7edbc9SDavid Howells 		      lower_32_bits(__entry->window),
10045d7edbc9SDavid Howells 		      upper_32_bits(__entry->window))
100558dc63c9SDavid Howells 	    );
100658dc63c9SDavid Howells 
100784997905SDavid Howells TRACE_EVENT(rxrpc_recvmsg,
100884997905SDavid Howells 	    TP_PROTO(struct rxrpc_call *call, enum rxrpc_recvmsg_trace why,
1009faf92e8dSDavid Howells 		     int ret),
1010faf92e8dSDavid Howells 
1011faf92e8dSDavid Howells 	    TP_ARGS(call, why, ret),
1012faf92e8dSDavid Howells 
1013faf92e8dSDavid Howells 	    TP_STRUCT__entry(
1014faf92e8dSDavid Howells 		    __field(unsigned int,		call		)
1015faf92e8dSDavid Howells 		    __field(enum rxrpc_recvmsg_trace,	why		)
1016faf92e8dSDavid Howells 		    __field(int,			ret		)
1017faf92e8dSDavid Howells 			     ),
1018faf92e8dSDavid Howells 
1019faf92e8dSDavid Howells 	    TP_fast_assign(
1020faf92e8dSDavid Howells 		    __entry->call = call ? call->debug_id : 0;
1021faf92e8dSDavid Howells 		    __entry->why = why;
1022faf92e8dSDavid Howells 		    __entry->ret = ret;
1023faf92e8dSDavid Howells 			   ),
1024faf92e8dSDavid Howells 
1025faf92e8dSDavid Howells 	    TP_printk("c=%08x %s ret=%d",
1026faf92e8dSDavid Howells 		      __entry->call,
1027faf92e8dSDavid Howells 		      __print_symbolic(__entry->why, rxrpc_recvmsg_traces),
1028faf92e8dSDavid Howells 		      __entry->ret)
1029faf92e8dSDavid Howells 	    );
1030faf92e8dSDavid Howells 
1031faf92e8dSDavid Howells TRACE_EVENT(rxrpc_recvdata,
1032faf92e8dSDavid Howells 	    TP_PROTO(struct rxrpc_call *call, enum rxrpc_recvmsg_trace why,
103384997905SDavid Howells 		     rxrpc_seq_t seq, unsigned int offset, unsigned int len,
103484997905SDavid Howells 		     int ret),
103584997905SDavid Howells 
103684997905SDavid Howells 	    TP_ARGS(call, why, seq, offset, len, ret),
103784997905SDavid Howells 
103884997905SDavid Howells 	    TP_STRUCT__entry(
1039a25e21f0SDavid Howells 		    __field(unsigned int,		call		)
104084997905SDavid Howells 		    __field(enum rxrpc_recvmsg_trace,	why		)
104184997905SDavid Howells 		    __field(rxrpc_seq_t,		seq		)
104284997905SDavid Howells 		    __field(unsigned int,		offset		)
104384997905SDavid Howells 		    __field(unsigned int,		len		)
104484997905SDavid Howells 		    __field(int,			ret		)
104584997905SDavid Howells 			     ),
104684997905SDavid Howells 
104784997905SDavid Howells 	    TP_fast_assign(
1048db9b2e0aSDavid Howells 		    __entry->call = call ? call->debug_id : 0;
104984997905SDavid Howells 		    __entry->why = why;
105084997905SDavid Howells 		    __entry->seq = seq;
105184997905SDavid Howells 		    __entry->offset = offset;
105284997905SDavid Howells 		    __entry->len = len;
105384997905SDavid Howells 		    __entry->ret = ret;
105484997905SDavid Howells 			   ),
105584997905SDavid Howells 
1056a25e21f0SDavid Howells 	    TP_printk("c=%08x %s q=%08x o=%u l=%u ret=%d",
105784997905SDavid Howells 		      __entry->call,
1058b54a134aSDavid Howells 		      __print_symbolic(__entry->why, rxrpc_recvmsg_traces),
105984997905SDavid Howells 		      __entry->seq,
106084997905SDavid Howells 		      __entry->offset,
106184997905SDavid Howells 		      __entry->len,
106284997905SDavid Howells 		      __entry->ret)
106384997905SDavid Howells 	    );
106484997905SDavid Howells 
1065cf1a6474SDavid Howells TRACE_EVENT(rxrpc_rtt_tx,
1066cf1a6474SDavid Howells 	    TP_PROTO(struct rxrpc_call *call, enum rxrpc_rtt_tx_trace why,
10674700c4d8SDavid Howells 		     int slot, rxrpc_serial_t send_serial),
1068cf1a6474SDavid Howells 
10694700c4d8SDavid Howells 	    TP_ARGS(call, why, slot, send_serial),
1070cf1a6474SDavid Howells 
1071cf1a6474SDavid Howells 	    TP_STRUCT__entry(
1072a25e21f0SDavid Howells 		    __field(unsigned int,		call		)
1073cf1a6474SDavid Howells 		    __field(enum rxrpc_rtt_tx_trace,	why		)
10744700c4d8SDavid Howells 		    __field(int,			slot		)
1075cf1a6474SDavid Howells 		    __field(rxrpc_serial_t,		send_serial	)
1076cf1a6474SDavid Howells 			     ),
1077cf1a6474SDavid Howells 
1078cf1a6474SDavid Howells 	    TP_fast_assign(
1079a25e21f0SDavid Howells 		    __entry->call = call->debug_id;
1080cf1a6474SDavid Howells 		    __entry->why = why;
10814700c4d8SDavid Howells 		    __entry->slot = slot;
1082cf1a6474SDavid Howells 		    __entry->send_serial = send_serial;
1083cf1a6474SDavid Howells 			   ),
1084cf1a6474SDavid Howells 
10854700c4d8SDavid Howells 	    TP_printk("c=%08x [%d] %s sr=%08x",
1086cf1a6474SDavid Howells 		      __entry->call,
10874700c4d8SDavid Howells 		      __entry->slot,
1088b54a134aSDavid Howells 		      __print_symbolic(__entry->why, rxrpc_rtt_tx_traces),
1089cf1a6474SDavid Howells 		      __entry->send_serial)
1090cf1a6474SDavid Howells 	    );
1091cf1a6474SDavid Howells 
1092cf1a6474SDavid Howells TRACE_EVENT(rxrpc_rtt_rx,
1093cf1a6474SDavid Howells 	    TP_PROTO(struct rxrpc_call *call, enum rxrpc_rtt_rx_trace why,
10944700c4d8SDavid Howells 		     int slot,
1095cf1a6474SDavid Howells 		     rxrpc_serial_t send_serial, rxrpc_serial_t resp_serial,
1096c410bf01SDavid Howells 		     u32 rtt, u32 rto),
1097cf1a6474SDavid Howells 
10984700c4d8SDavid Howells 	    TP_ARGS(call, why, slot, send_serial, resp_serial, rtt, rto),
1099cf1a6474SDavid Howells 
1100cf1a6474SDavid Howells 	    TP_STRUCT__entry(
1101a25e21f0SDavid Howells 		    __field(unsigned int,		call		)
1102cf1a6474SDavid Howells 		    __field(enum rxrpc_rtt_rx_trace,	why		)
11034700c4d8SDavid Howells 		    __field(int,			slot		)
1104cf1a6474SDavid Howells 		    __field(rxrpc_serial_t,		send_serial	)
1105cf1a6474SDavid Howells 		    __field(rxrpc_serial_t,		resp_serial	)
1106c410bf01SDavid Howells 		    __field(u32,			rtt		)
1107c410bf01SDavid Howells 		    __field(u32,			rto		)
1108cf1a6474SDavid Howells 			     ),
1109cf1a6474SDavid Howells 
1110cf1a6474SDavid Howells 	    TP_fast_assign(
1111a25e21f0SDavid Howells 		    __entry->call = call->debug_id;
1112cf1a6474SDavid Howells 		    __entry->why = why;
11134700c4d8SDavid Howells 		    __entry->slot = slot;
1114cf1a6474SDavid Howells 		    __entry->send_serial = send_serial;
1115cf1a6474SDavid Howells 		    __entry->resp_serial = resp_serial;
1116cf1a6474SDavid Howells 		    __entry->rtt = rtt;
1117c410bf01SDavid Howells 		    __entry->rto = rto;
1118cf1a6474SDavid Howells 			   ),
1119cf1a6474SDavid Howells 
11204700c4d8SDavid Howells 	    TP_printk("c=%08x [%d] %s sr=%08x rr=%08x rtt=%u rto=%u",
1121cf1a6474SDavid Howells 		      __entry->call,
11224700c4d8SDavid Howells 		      __entry->slot,
1123b54a134aSDavid Howells 		      __print_symbolic(__entry->why, rxrpc_rtt_rx_traces),
1124cf1a6474SDavid Howells 		      __entry->send_serial,
1125cf1a6474SDavid Howells 		      __entry->resp_serial,
1126cf1a6474SDavid Howells 		      __entry->rtt,
1127c410bf01SDavid Howells 		      __entry->rto)
1128cf1a6474SDavid Howells 	    );
1129cf1a6474SDavid Howells 
1130fc7ab6d2SDavid Howells TRACE_EVENT(rxrpc_timer,
1131fc7ab6d2SDavid Howells 	    TP_PROTO(struct rxrpc_call *call, enum rxrpc_timer_trace why,
1132a158bdd3SDavid Howells 		     unsigned long now),
1133fc7ab6d2SDavid Howells 
1134a158bdd3SDavid Howells 	    TP_ARGS(call, why, now),
1135fc7ab6d2SDavid Howells 
1136fc7ab6d2SDavid Howells 	    TP_STRUCT__entry(
1137a25e21f0SDavid Howells 		    __field(unsigned int,			call		)
1138fc7ab6d2SDavid Howells 		    __field(enum rxrpc_timer_trace,		why		)
1139a158bdd3SDavid Howells 		    __field(long,				now		)
1140a158bdd3SDavid Howells 		    __field(long,				ack_at		)
1141bd1fdf8cSDavid Howells 		    __field(long,				ack_lost_at	)
1142a158bdd3SDavid Howells 		    __field(long,				resend_at	)
1143a158bdd3SDavid Howells 		    __field(long,				ping_at		)
1144a158bdd3SDavid Howells 		    __field(long,				expect_rx_by	)
1145a158bdd3SDavid Howells 		    __field(long,				expect_req_by	)
1146a158bdd3SDavid Howells 		    __field(long,				expect_term_by	)
1147a158bdd3SDavid Howells 		    __field(long,				timer		)
1148fc7ab6d2SDavid Howells 			     ),
1149fc7ab6d2SDavid Howells 
1150fc7ab6d2SDavid Howells 	    TP_fast_assign(
1151a25e21f0SDavid Howells 		    __entry->call		= call->debug_id;
1152fc7ab6d2SDavid Howells 		    __entry->why		= why;
1153fc7ab6d2SDavid Howells 		    __entry->now		= now;
1154530403d9SDavid Howells 		    __entry->ack_at		= call->delay_ack_at;
1155bd1fdf8cSDavid Howells 		    __entry->ack_lost_at	= call->ack_lost_at;
1156fc7ab6d2SDavid Howells 		    __entry->resend_at		= call->resend_at;
1157a158bdd3SDavid Howells 		    __entry->expect_rx_by	= call->expect_rx_by;
1158a158bdd3SDavid Howells 		    __entry->expect_req_by	= call->expect_req_by;
1159a158bdd3SDavid Howells 		    __entry->expect_term_by	= call->expect_term_by;
1160fc7ab6d2SDavid Howells 		    __entry->timer		= call->timer.expires;
1161fc7ab6d2SDavid Howells 			   ),
1162fc7ab6d2SDavid Howells 
1163a25e21f0SDavid Howells 	    TP_printk("c=%08x %s a=%ld la=%ld r=%ld xr=%ld xq=%ld xt=%ld t=%ld",
1164fc7ab6d2SDavid Howells 		      __entry->call,
1165b54a134aSDavid Howells 		      __print_symbolic(__entry->why, rxrpc_timer_traces),
1166a158bdd3SDavid Howells 		      __entry->ack_at - __entry->now,
1167bd1fdf8cSDavid Howells 		      __entry->ack_lost_at - __entry->now,
1168a158bdd3SDavid Howells 		      __entry->resend_at - __entry->now,
1169a158bdd3SDavid Howells 		      __entry->expect_rx_by - __entry->now,
1170a158bdd3SDavid Howells 		      __entry->expect_req_by - __entry->now,
1171a158bdd3SDavid Howells 		      __entry->expect_term_by - __entry->now,
1172a158bdd3SDavid Howells 		      __entry->timer - __entry->now)
1173fc7ab6d2SDavid Howells 	    );
1174fc7ab6d2SDavid Howells 
1175334dfbfcSDavid Howells TRACE_EVENT(rxrpc_timer_expired,
1176334dfbfcSDavid Howells 	    TP_PROTO(struct rxrpc_call *call, unsigned long now),
1177334dfbfcSDavid Howells 
1178334dfbfcSDavid Howells 	    TP_ARGS(call, now),
1179334dfbfcSDavid Howells 
1180334dfbfcSDavid Howells 	    TP_STRUCT__entry(
1181334dfbfcSDavid Howells 		    __field(unsigned int,			call		)
1182334dfbfcSDavid Howells 		    __field(long,				now		)
1183334dfbfcSDavid Howells 		    __field(long,				ack_at		)
1184334dfbfcSDavid Howells 		    __field(long,				ack_lost_at	)
1185334dfbfcSDavid Howells 		    __field(long,				resend_at	)
1186334dfbfcSDavid Howells 		    __field(long,				ping_at		)
1187334dfbfcSDavid Howells 		    __field(long,				expect_rx_by	)
1188334dfbfcSDavid Howells 		    __field(long,				expect_req_by	)
1189334dfbfcSDavid Howells 		    __field(long,				expect_term_by	)
1190334dfbfcSDavid Howells 		    __field(long,				timer		)
1191334dfbfcSDavid Howells 			     ),
1192334dfbfcSDavid Howells 
1193334dfbfcSDavid Howells 	    TP_fast_assign(
1194334dfbfcSDavid Howells 		    __entry->call		= call->debug_id;
1195334dfbfcSDavid Howells 		    __entry->now		= now;
1196530403d9SDavid Howells 		    __entry->ack_at		= call->delay_ack_at;
1197334dfbfcSDavid Howells 		    __entry->ack_lost_at	= call->ack_lost_at;
1198334dfbfcSDavid Howells 		    __entry->resend_at		= call->resend_at;
1199334dfbfcSDavid Howells 		    __entry->expect_rx_by	= call->expect_rx_by;
1200334dfbfcSDavid Howells 		    __entry->expect_req_by	= call->expect_req_by;
1201334dfbfcSDavid Howells 		    __entry->expect_term_by	= call->expect_term_by;
1202334dfbfcSDavid Howells 		    __entry->timer		= call->timer.expires;
1203334dfbfcSDavid Howells 			   ),
1204334dfbfcSDavid Howells 
1205334dfbfcSDavid Howells 	    TP_printk("c=%08x EXPIRED a=%ld la=%ld r=%ld xr=%ld xq=%ld xt=%ld t=%ld",
1206334dfbfcSDavid Howells 		      __entry->call,
1207334dfbfcSDavid Howells 		      __entry->ack_at - __entry->now,
1208334dfbfcSDavid Howells 		      __entry->ack_lost_at - __entry->now,
1209334dfbfcSDavid Howells 		      __entry->resend_at - __entry->now,
1210334dfbfcSDavid Howells 		      __entry->expect_rx_by - __entry->now,
1211334dfbfcSDavid Howells 		      __entry->expect_req_by - __entry->now,
1212334dfbfcSDavid Howells 		      __entry->expect_term_by - __entry->now,
1213334dfbfcSDavid Howells 		      __entry->timer - __entry->now)
1214334dfbfcSDavid Howells 	    );
1215334dfbfcSDavid Howells 
121689b475abSDavid Howells TRACE_EVENT(rxrpc_rx_lose,
121789b475abSDavid Howells 	    TP_PROTO(struct rxrpc_skb_priv *sp),
121889b475abSDavid Howells 
121989b475abSDavid Howells 	    TP_ARGS(sp),
122089b475abSDavid Howells 
122189b475abSDavid Howells 	    TP_STRUCT__entry(
122289b475abSDavid Howells 		    __field_struct(struct rxrpc_host_header,	hdr		)
122389b475abSDavid Howells 			     ),
122489b475abSDavid Howells 
122589b475abSDavid Howells 	    TP_fast_assign(
122689b475abSDavid Howells 		    memcpy(&__entry->hdr, &sp->hdr, sizeof(__entry->hdr));
122789b475abSDavid Howells 			   ),
122889b475abSDavid Howells 
122989b475abSDavid Howells 	    TP_printk("%08x:%08x:%08x:%04x %08x %08x %02x %02x %s *LOSE*",
123089b475abSDavid Howells 		      __entry->hdr.epoch, __entry->hdr.cid,
123189b475abSDavid Howells 		      __entry->hdr.callNumber, __entry->hdr.serviceId,
123289b475abSDavid Howells 		      __entry->hdr.serial, __entry->hdr.seq,
123389b475abSDavid Howells 		      __entry->hdr.type, __entry->hdr.flags,
1234b54a134aSDavid Howells 		      __entry->hdr.type <= 15 ?
1235b54a134aSDavid Howells 		      __print_symbolic(__entry->hdr.type, rxrpc_pkts) : "?UNK")
123689b475abSDavid Howells 	    );
123789b475abSDavid Howells 
12389c7ad434SDavid Howells TRACE_EVENT(rxrpc_propose_ack,
12399c7ad434SDavid Howells 	    TP_PROTO(struct rxrpc_call *call, enum rxrpc_propose_ack_trace why,
1240530403d9SDavid Howells 		     u8 ack_reason, rxrpc_serial_t serial),
12419c7ad434SDavid Howells 
1242530403d9SDavid Howells 	    TP_ARGS(call, why, ack_reason, serial),
12439c7ad434SDavid Howells 
12449c7ad434SDavid Howells 	    TP_STRUCT__entry(
1245a25e21f0SDavid Howells 		    __field(unsigned int,			call		)
12469c7ad434SDavid Howells 		    __field(enum rxrpc_propose_ack_trace,	why		)
12479c7ad434SDavid Howells 		    __field(rxrpc_serial_t,			serial		)
12489c7ad434SDavid Howells 		    __field(u8,					ack_reason	)
12499c7ad434SDavid Howells 			     ),
12509c7ad434SDavid Howells 
12519c7ad434SDavid Howells 	    TP_fast_assign(
1252a25e21f0SDavid Howells 		    __entry->call	= call->debug_id;
12539c7ad434SDavid Howells 		    __entry->why	= why;
12549c7ad434SDavid Howells 		    __entry->serial	= serial;
12559c7ad434SDavid Howells 		    __entry->ack_reason	= ack_reason;
12569c7ad434SDavid Howells 			   ),
12579c7ad434SDavid Howells 
1258530403d9SDavid Howells 	    TP_printk("c=%08x %s %s r=%08x",
12599c7ad434SDavid Howells 		      __entry->call,
1260b54a134aSDavid Howells 		      __print_symbolic(__entry->why, rxrpc_propose_ack_traces),
1261b54a134aSDavid Howells 		      __print_symbolic(__entry->ack_reason, rxrpc_ack_names),
1262530403d9SDavid Howells 		      __entry->serial)
12639c7ad434SDavid Howells 	    );
12649c7ad434SDavid Howells 
126572f0c6fbSDavid Howells TRACE_EVENT(rxrpc_send_ack,
126672f0c6fbSDavid Howells 	    TP_PROTO(struct rxrpc_call *call, enum rxrpc_propose_ack_trace why,
126772f0c6fbSDavid Howells 		     u8 ack_reason, rxrpc_serial_t serial),
126872f0c6fbSDavid Howells 
126972f0c6fbSDavid Howells 	    TP_ARGS(call, why, ack_reason, serial),
127072f0c6fbSDavid Howells 
127172f0c6fbSDavid Howells 	    TP_STRUCT__entry(
127272f0c6fbSDavid Howells 		    __field(unsigned int,			call		)
127372f0c6fbSDavid Howells 		    __field(enum rxrpc_propose_ack_trace,	why		)
127472f0c6fbSDavid Howells 		    __field(rxrpc_serial_t,			serial		)
127572f0c6fbSDavid Howells 		    __field(u8,					ack_reason	)
127672f0c6fbSDavid Howells 			     ),
127772f0c6fbSDavid Howells 
127872f0c6fbSDavid Howells 	    TP_fast_assign(
127972f0c6fbSDavid Howells 		    __entry->call	= call->debug_id;
128072f0c6fbSDavid Howells 		    __entry->why	= why;
128172f0c6fbSDavid Howells 		    __entry->serial	= serial;
128272f0c6fbSDavid Howells 		    __entry->ack_reason	= ack_reason;
128372f0c6fbSDavid Howells 			   ),
128472f0c6fbSDavid Howells 
128572f0c6fbSDavid Howells 	    TP_printk("c=%08x %s %s r=%08x",
128672f0c6fbSDavid Howells 		      __entry->call,
128772f0c6fbSDavid Howells 		      __print_symbolic(__entry->why, rxrpc_propose_ack_traces),
128872f0c6fbSDavid Howells 		      __print_symbolic(__entry->ack_reason, rxrpc_ack_names),
128972f0c6fbSDavid Howells 		      __entry->serial)
129072f0c6fbSDavid Howells 	    );
129172f0c6fbSDavid Howells 
1292530403d9SDavid Howells TRACE_EVENT(rxrpc_drop_ack,
1293530403d9SDavid Howells 	    TP_PROTO(struct rxrpc_call *call, enum rxrpc_propose_ack_trace why,
1294530403d9SDavid Howells 		     u8 ack_reason, rxrpc_serial_t serial, bool nobuf),
1295530403d9SDavid Howells 
1296530403d9SDavid Howells 	    TP_ARGS(call, why, ack_reason, serial, nobuf),
1297530403d9SDavid Howells 
1298530403d9SDavid Howells 	    TP_STRUCT__entry(
1299530403d9SDavid Howells 		    __field(unsigned int,			call		)
1300530403d9SDavid Howells 		    __field(enum rxrpc_propose_ack_trace,	why		)
1301530403d9SDavid Howells 		    __field(rxrpc_serial_t,			serial		)
1302530403d9SDavid Howells 		    __field(u8,					ack_reason	)
1303530403d9SDavid Howells 		    __field(bool,				nobuf		)
1304530403d9SDavid Howells 			     ),
1305530403d9SDavid Howells 
1306530403d9SDavid Howells 	    TP_fast_assign(
1307530403d9SDavid Howells 		    __entry->call	= call->debug_id;
1308530403d9SDavid Howells 		    __entry->why	= why;
1309530403d9SDavid Howells 		    __entry->serial	= serial;
1310530403d9SDavid Howells 		    __entry->ack_reason	= ack_reason;
1311530403d9SDavid Howells 		    __entry->nobuf	= nobuf;
1312530403d9SDavid Howells 			   ),
1313530403d9SDavid Howells 
1314530403d9SDavid Howells 	    TP_printk("c=%08x %s %s r=%08x nbf=%u",
1315530403d9SDavid Howells 		      __entry->call,
1316530403d9SDavid Howells 		      __print_symbolic(__entry->why, rxrpc_propose_ack_traces),
1317530403d9SDavid Howells 		      __print_symbolic(__entry->ack_reason, rxrpc_ack_names),
1318530403d9SDavid Howells 		      __entry->serial, __entry->nobuf)
1319530403d9SDavid Howells 	    );
1320530403d9SDavid Howells 
1321c6672e3fSDavid Howells TRACE_EVENT(rxrpc_retransmit,
1322a4ea4c47SDavid Howells 	    TP_PROTO(struct rxrpc_call *call, rxrpc_seq_t seq, s64 expiry),
1323c6672e3fSDavid Howells 
1324a4ea4c47SDavid Howells 	    TP_ARGS(call, seq, expiry),
1325c6672e3fSDavid Howells 
1326c6672e3fSDavid Howells 	    TP_STRUCT__entry(
1327a25e21f0SDavid Howells 		    __field(unsigned int,		call		)
1328c6672e3fSDavid Howells 		    __field(rxrpc_seq_t,		seq		)
1329c6672e3fSDavid Howells 		    __field(s64,			expiry		)
1330c6672e3fSDavid Howells 			     ),
1331c6672e3fSDavid Howells 
1332c6672e3fSDavid Howells 	    TP_fast_assign(
1333a25e21f0SDavid Howells 		    __entry->call = call->debug_id;
1334c6672e3fSDavid Howells 		    __entry->seq = seq;
1335c6672e3fSDavid Howells 		    __entry->expiry = expiry;
1336c6672e3fSDavid Howells 			   ),
1337c6672e3fSDavid Howells 
1338a4ea4c47SDavid Howells 	    TP_printk("c=%08x q=%x xp=%lld",
1339c6672e3fSDavid Howells 		      __entry->call,
1340c6672e3fSDavid Howells 		      __entry->seq,
1341c6672e3fSDavid Howells 		      __entry->expiry)
1342c6672e3fSDavid Howells 	    );
1343c6672e3fSDavid Howells 
134457494343SDavid Howells TRACE_EVENT(rxrpc_congest,
134557494343SDavid Howells 	    TP_PROTO(struct rxrpc_call *call, struct rxrpc_ack_summary *summary,
134657494343SDavid Howells 		     rxrpc_serial_t ack_serial, enum rxrpc_congest_change change),
134757494343SDavid Howells 
134857494343SDavid Howells 	    TP_ARGS(call, summary, ack_serial, change),
134957494343SDavid Howells 
135057494343SDavid Howells 	    TP_STRUCT__entry(
1351a25e21f0SDavid Howells 		    __field(unsigned int,			call		)
135257494343SDavid Howells 		    __field(enum rxrpc_congest_change,		change		)
135357494343SDavid Howells 		    __field(rxrpc_seq_t,			hard_ack	)
135457494343SDavid Howells 		    __field(rxrpc_seq_t,			top		)
135557494343SDavid Howells 		    __field(rxrpc_seq_t,			lowest_nak	)
135657494343SDavid Howells 		    __field(rxrpc_serial_t,			ack_serial	)
135757494343SDavid Howells 		    __field_struct(struct rxrpc_ack_summary,	sum		)
135857494343SDavid Howells 			     ),
135957494343SDavid Howells 
136057494343SDavid Howells 	    TP_fast_assign(
1361a25e21f0SDavid Howells 		    __entry->call	= call->debug_id;
136257494343SDavid Howells 		    __entry->change	= change;
1363a4ea4c47SDavid Howells 		    __entry->hard_ack	= call->acks_hard_ack;
136457494343SDavid Howells 		    __entry->top	= call->tx_top;
136557494343SDavid Howells 		    __entry->lowest_nak	= call->acks_lowest_nak;
136657494343SDavid Howells 		    __entry->ack_serial	= ack_serial;
136757494343SDavid Howells 		    memcpy(&__entry->sum, summary, sizeof(__entry->sum));
136857494343SDavid Howells 			   ),
136957494343SDavid Howells 
1370d57a3a15SDavid Howells 	    TP_printk("c=%08x r=%08x %s q=%08x %s cw=%u ss=%u nA=%u,%u+%u r=%u b=%u u=%u d=%u l=%x%s%s%s",
137157494343SDavid Howells 		      __entry->call,
137257494343SDavid Howells 		      __entry->ack_serial,
1373b54a134aSDavid Howells 		      __print_symbolic(__entry->sum.ack_reason, rxrpc_ack_names),
137457494343SDavid Howells 		      __entry->hard_ack,
1375b54a134aSDavid Howells 		      __print_symbolic(__entry->sum.mode, rxrpc_congest_modes),
137657494343SDavid Howells 		      __entry->sum.cwnd,
137757494343SDavid Howells 		      __entry->sum.ssthresh,
1378d57a3a15SDavid Howells 		      __entry->sum.nr_acks, __entry->sum.saw_nacks,
1379d57a3a15SDavid Howells 		      __entry->sum.nr_new_acks,
138057494343SDavid Howells 		      __entry->sum.nr_rot_new_acks,
138157494343SDavid Howells 		      __entry->top - __entry->hard_ack,
138257494343SDavid Howells 		      __entry->sum.cumulative_acks,
138357494343SDavid Howells 		      __entry->sum.dup_acks,
138457494343SDavid Howells 		      __entry->lowest_nak, __entry->sum.new_low_nack ? "!" : "",
1385b54a134aSDavid Howells 		      __print_symbolic(__entry->change, rxrpc_congest_changes),
138657494343SDavid Howells 		      __entry->sum.retrans_timeo ? " rTxTo" : "")
138757494343SDavid Howells 	    );
138857494343SDavid Howells 
1389b1d9f7fdSDavid Howells TRACE_EVENT(rxrpc_disconnect_call,
1390b1d9f7fdSDavid Howells 	    TP_PROTO(struct rxrpc_call *call),
1391b1d9f7fdSDavid Howells 
1392b1d9f7fdSDavid Howells 	    TP_ARGS(call),
1393b1d9f7fdSDavid Howells 
1394b1d9f7fdSDavid Howells 	    TP_STRUCT__entry(
1395a25e21f0SDavid Howells 		    __field(unsigned int,		call		)
1396b1d9f7fdSDavid Howells 		    __field(u32,			abort_code	)
1397b1d9f7fdSDavid Howells 			     ),
1398b1d9f7fdSDavid Howells 
1399b1d9f7fdSDavid Howells 	    TP_fast_assign(
1400a25e21f0SDavid Howells 		    __entry->call = call->debug_id;
1401b1d9f7fdSDavid Howells 		    __entry->abort_code = call->abort_code;
1402b1d9f7fdSDavid Howells 			   ),
1403b1d9f7fdSDavid Howells 
1404a25e21f0SDavid Howells 	    TP_printk("c=%08x ab=%08x",
1405b1d9f7fdSDavid Howells 		      __entry->call,
1406b1d9f7fdSDavid Howells 		      __entry->abort_code)
1407b1d9f7fdSDavid Howells 	    );
1408b1d9f7fdSDavid Howells 
1409b1d9f7fdSDavid Howells TRACE_EVENT(rxrpc_improper_term,
1410b1d9f7fdSDavid Howells 	    TP_PROTO(struct rxrpc_call *call),
1411b1d9f7fdSDavid Howells 
1412b1d9f7fdSDavid Howells 	    TP_ARGS(call),
1413b1d9f7fdSDavid Howells 
1414b1d9f7fdSDavid Howells 	    TP_STRUCT__entry(
1415a25e21f0SDavid Howells 		    __field(unsigned int,		call		)
1416b1d9f7fdSDavid Howells 		    __field(u32,			abort_code	)
1417b1d9f7fdSDavid Howells 			     ),
1418b1d9f7fdSDavid Howells 
1419b1d9f7fdSDavid Howells 	    TP_fast_assign(
1420a25e21f0SDavid Howells 		    __entry->call = call->debug_id;
1421b1d9f7fdSDavid Howells 		    __entry->abort_code = call->abort_code;
1422b1d9f7fdSDavid Howells 			   ),
1423b1d9f7fdSDavid Howells 
1424a25e21f0SDavid Howells 	    TP_printk("c=%08x ab=%08x",
1425b1d9f7fdSDavid Howells 		      __entry->call,
1426b1d9f7fdSDavid Howells 		      __entry->abort_code)
1427b1d9f7fdSDavid Howells 	    );
1428b1d9f7fdSDavid Howells 
1429fb46f6eeSDavid Howells TRACE_EVENT(rxrpc_rx_eproto,
1430fb46f6eeSDavid Howells 	    TP_PROTO(struct rxrpc_call *call, rxrpc_serial_t serial,
1431fb46f6eeSDavid Howells 		     const char *why),
1432fb46f6eeSDavid Howells 
1433fb46f6eeSDavid Howells 	    TP_ARGS(call, serial, why),
1434fb46f6eeSDavid Howells 
1435fb46f6eeSDavid Howells 	    TP_STRUCT__entry(
1436a25e21f0SDavid Howells 		    __field(unsigned int,		call		)
1437fb46f6eeSDavid Howells 		    __field(rxrpc_serial_t,		serial		)
1438fb46f6eeSDavid Howells 		    __field(const char *,		why		)
1439fb46f6eeSDavid Howells 			     ),
1440fb46f6eeSDavid Howells 
1441fb46f6eeSDavid Howells 	    TP_fast_assign(
144299f0eae6SDavid Howells 		    __entry->call = call ? call->debug_id : 0;
1443fb46f6eeSDavid Howells 		    __entry->serial = serial;
1444fb46f6eeSDavid Howells 		    __entry->why = why;
1445fb46f6eeSDavid Howells 			   ),
1446fb46f6eeSDavid Howells 
1447a25e21f0SDavid Howells 	    TP_printk("c=%08x EPROTO %08x %s",
1448fb46f6eeSDavid Howells 		      __entry->call,
1449fb46f6eeSDavid Howells 		      __entry->serial,
1450fb46f6eeSDavid Howells 		      __entry->why)
1451fb46f6eeSDavid Howells 	    );
1452fb46f6eeSDavid Howells 
145389ca6948SDavid Howells TRACE_EVENT(rxrpc_connect_call,
145489ca6948SDavid Howells 	    TP_PROTO(struct rxrpc_call *call),
145589ca6948SDavid Howells 
145689ca6948SDavid Howells 	    TP_ARGS(call),
145789ca6948SDavid Howells 
145889ca6948SDavid Howells 	    TP_STRUCT__entry(
1459a25e21f0SDavid Howells 		    __field(unsigned int,		call		)
146089ca6948SDavid Howells 		    __field(unsigned long,		user_call_ID	)
146189ca6948SDavid Howells 		    __field(u32,			cid		)
146289ca6948SDavid Howells 		    __field(u32,			call_id		)
146389ca6948SDavid Howells 			     ),
146489ca6948SDavid Howells 
146589ca6948SDavid Howells 	    TP_fast_assign(
1466a25e21f0SDavid Howells 		    __entry->call = call->debug_id;
146789ca6948SDavid Howells 		    __entry->user_call_ID = call->user_call_ID;
146889ca6948SDavid Howells 		    __entry->cid = call->cid;
146989ca6948SDavid Howells 		    __entry->call_id = call->call_id;
147089ca6948SDavid Howells 			   ),
147189ca6948SDavid Howells 
1472a25e21f0SDavid Howells 	    TP_printk("c=%08x u=%p %08x:%08x",
147389ca6948SDavid Howells 		      __entry->call,
147489ca6948SDavid Howells 		      (void *)__entry->user_call_ID,
147589ca6948SDavid Howells 		      __entry->cid,
147689ca6948SDavid Howells 		      __entry->call_id)
147789ca6948SDavid Howells 	    );
147889ca6948SDavid Howells 
1479827efed6SDavid Howells TRACE_EVENT(rxrpc_resend,
1480a4ea4c47SDavid Howells 	    TP_PROTO(struct rxrpc_call *call),
1481827efed6SDavid Howells 
1482a4ea4c47SDavid Howells 	    TP_ARGS(call),
1483827efed6SDavid Howells 
1484827efed6SDavid Howells 	    TP_STRUCT__entry(
1485a25e21f0SDavid Howells 		    __field(unsigned int,		call		)
1486a4ea4c47SDavid Howells 		    __field(rxrpc_seq_t,		seq		)
1487827efed6SDavid Howells 			     ),
1488827efed6SDavid Howells 
1489827efed6SDavid Howells 	    TP_fast_assign(
1490a25e21f0SDavid Howells 		    __entry->call = call->debug_id;
1491a4ea4c47SDavid Howells 		    __entry->seq = call->acks_hard_ack;
1492827efed6SDavid Howells 			   ),
1493827efed6SDavid Howells 
1494a4ea4c47SDavid Howells 	    TP_printk("c=%08x q=%x",
1495827efed6SDavid Howells 		      __entry->call,
1496a4ea4c47SDavid Howells 		      __entry->seq)
1497827efed6SDavid Howells 	    );
1498827efed6SDavid Howells 
1499494337c9SDavid Howells TRACE_EVENT(rxrpc_rx_icmp,
1500494337c9SDavid Howells 	    TP_PROTO(struct rxrpc_peer *peer, struct sock_extended_err *ee,
1501494337c9SDavid Howells 		     struct sockaddr_rxrpc *srx),
1502494337c9SDavid Howells 
1503494337c9SDavid Howells 	    TP_ARGS(peer, ee, srx),
1504494337c9SDavid Howells 
1505494337c9SDavid Howells 	    TP_STRUCT__entry(
1506494337c9SDavid Howells 		    __field(unsigned int,			peer	)
1507494337c9SDavid Howells 		    __field_struct(struct sock_extended_err,	ee	)
1508494337c9SDavid Howells 		    __field_struct(struct sockaddr_rxrpc,	srx	)
1509494337c9SDavid Howells 			     ),
1510494337c9SDavid Howells 
1511494337c9SDavid Howells 	    TP_fast_assign(
1512494337c9SDavid Howells 		    __entry->peer = peer->debug_id;
1513494337c9SDavid Howells 		    memcpy(&__entry->ee, ee, sizeof(__entry->ee));
1514494337c9SDavid Howells 		    memcpy(&__entry->srx, srx, sizeof(__entry->srx));
1515494337c9SDavid Howells 			   ),
1516494337c9SDavid Howells 
1517494337c9SDavid Howells 	    TP_printk("P=%08x o=%u t=%u c=%u i=%u d=%u e=%d %pISp",
1518494337c9SDavid Howells 		      __entry->peer,
1519494337c9SDavid Howells 		      __entry->ee.ee_origin,
1520494337c9SDavid Howells 		      __entry->ee.ee_type,
1521494337c9SDavid Howells 		      __entry->ee.ee_code,
1522494337c9SDavid Howells 		      __entry->ee.ee_info,
1523494337c9SDavid Howells 		      __entry->ee.ee_data,
1524494337c9SDavid Howells 		      __entry->ee.ee_errno,
1525494337c9SDavid Howells 		      &__entry->srx.transport)
1526494337c9SDavid Howells 	    );
1527494337c9SDavid Howells 
15286b47fe1dSDavid Howells TRACE_EVENT(rxrpc_tx_fail,
15296b47fe1dSDavid Howells 	    TP_PROTO(unsigned int debug_id, rxrpc_serial_t serial, int ret,
15304764c0daSDavid Howells 		     enum rxrpc_tx_point where),
15316b47fe1dSDavid Howells 
15324764c0daSDavid Howells 	    TP_ARGS(debug_id, serial, ret, where),
15336b47fe1dSDavid Howells 
15346b47fe1dSDavid Howells 	    TP_STRUCT__entry(
15356b47fe1dSDavid Howells 		    __field(unsigned int,		debug_id	)
15366b47fe1dSDavid Howells 		    __field(rxrpc_serial_t,		serial		)
15376b47fe1dSDavid Howells 		    __field(int,			ret		)
15384764c0daSDavid Howells 		    __field(enum rxrpc_tx_point,	where		)
15396b47fe1dSDavid Howells 			     ),
15406b47fe1dSDavid Howells 
15416b47fe1dSDavid Howells 	    TP_fast_assign(
15426b47fe1dSDavid Howells 		    __entry->debug_id = debug_id;
15436b47fe1dSDavid Howells 		    __entry->serial = serial;
15446b47fe1dSDavid Howells 		    __entry->ret = ret;
15454764c0daSDavid Howells 		    __entry->where = where;
15466b47fe1dSDavid Howells 			   ),
15476b47fe1dSDavid Howells 
15486b47fe1dSDavid Howells 	    TP_printk("c=%08x r=%x ret=%d %s",
15496b47fe1dSDavid Howells 		      __entry->debug_id,
15506b47fe1dSDavid Howells 		      __entry->serial,
15516b47fe1dSDavid Howells 		      __entry->ret,
15524764c0daSDavid Howells 		      __print_symbolic(__entry->where, rxrpc_tx_points))
15536b47fe1dSDavid Howells 	    );
15546b47fe1dSDavid Howells 
15551a025028SDavid Howells TRACE_EVENT(rxrpc_call_reset,
15561a025028SDavid Howells 	    TP_PROTO(struct rxrpc_call *call),
15571a025028SDavid Howells 
15581a025028SDavid Howells 	    TP_ARGS(call),
15591a025028SDavid Howells 
15601a025028SDavid Howells 	    TP_STRUCT__entry(
15611a025028SDavid Howells 		    __field(unsigned int,		debug_id	)
15621a025028SDavid Howells 		    __field(u32,			cid		)
15631a025028SDavid Howells 		    __field(u32,			call_id		)
15641a025028SDavid Howells 		    __field(rxrpc_serial_t,		call_serial	)
15651a025028SDavid Howells 		    __field(rxrpc_serial_t,		conn_serial	)
15661a025028SDavid Howells 		    __field(rxrpc_seq_t,		tx_seq		)
15671a025028SDavid Howells 		    __field(rxrpc_seq_t,		rx_seq		)
15681a025028SDavid Howells 			     ),
15691a025028SDavid Howells 
15701a025028SDavid Howells 	    TP_fast_assign(
15711a025028SDavid Howells 		    __entry->debug_id = call->debug_id;
15721a025028SDavid Howells 		    __entry->cid = call->cid;
15731a025028SDavid Howells 		    __entry->call_id = call->call_id;
15741a025028SDavid Howells 		    __entry->call_serial = call->rx_serial;
15751a025028SDavid Howells 		    __entry->conn_serial = call->conn->hi_serial;
1576a4ea4c47SDavid Howells 		    __entry->tx_seq = call->acks_hard_ack;
15775d7edbc9SDavid Howells 		    __entry->rx_seq = call->rx_highest_seq;
15781a025028SDavid Howells 			   ),
15791a025028SDavid Howells 
15801a025028SDavid Howells 	    TP_printk("c=%08x %08x:%08x r=%08x/%08x tx=%08x rx=%08x",
15811a025028SDavid Howells 		      __entry->debug_id,
15821a025028SDavid Howells 		      __entry->cid, __entry->call_id,
15831a025028SDavid Howells 		      __entry->call_serial, __entry->conn_serial,
15841a025028SDavid Howells 		      __entry->tx_seq, __entry->rx_seq)
15851a025028SDavid Howells 	    );
15861a025028SDavid Howells 
15874272d303SDavid Howells TRACE_EVENT(rxrpc_notify_socket,
15884272d303SDavid Howells 	    TP_PROTO(unsigned int debug_id, rxrpc_serial_t serial),
15894272d303SDavid Howells 
15904272d303SDavid Howells 	    TP_ARGS(debug_id, serial),
15914272d303SDavid Howells 
15924272d303SDavid Howells 	    TP_STRUCT__entry(
15934272d303SDavid Howells 		    __field(unsigned int,		debug_id	)
15944272d303SDavid Howells 		    __field(rxrpc_serial_t,		serial		)
15954272d303SDavid Howells 			     ),
15964272d303SDavid Howells 
15974272d303SDavid Howells 	    TP_fast_assign(
15984272d303SDavid Howells 		    __entry->debug_id = debug_id;
15994272d303SDavid Howells 		    __entry->serial = serial;
16004272d303SDavid Howells 			   ),
16014272d303SDavid Howells 
16024272d303SDavid Howells 	    TP_printk("c=%08x r=%08x",
16034272d303SDavid Howells 		      __entry->debug_id,
16044272d303SDavid Howells 		      __entry->serial)
16054272d303SDavid Howells 	    );
16064272d303SDavid Howells 
1607d1f12947SDavid Howells TRACE_EVENT(rxrpc_rx_discard_ack,
1608d1f12947SDavid Howells 	    TP_PROTO(unsigned int debug_id, rxrpc_serial_t serial,
1609d1f12947SDavid Howells 		     rxrpc_seq_t first_soft_ack, rxrpc_seq_t call_ackr_first,
1610d1f12947SDavid Howells 		     rxrpc_seq_t prev_pkt, rxrpc_seq_t call_ackr_prev),
1611d1f12947SDavid Howells 
1612d1f12947SDavid Howells 	    TP_ARGS(debug_id, serial, first_soft_ack, call_ackr_first,
1613d1f12947SDavid Howells 		    prev_pkt, call_ackr_prev),
1614d1f12947SDavid Howells 
1615d1f12947SDavid Howells 	    TP_STRUCT__entry(
1616d1f12947SDavid Howells 		    __field(unsigned int,	debug_id	)
1617d1f12947SDavid Howells 		    __field(rxrpc_serial_t,	serial		)
1618d1f12947SDavid Howells 		    __field(rxrpc_seq_t,	first_soft_ack)
1619d1f12947SDavid Howells 		    __field(rxrpc_seq_t,	call_ackr_first)
1620d1f12947SDavid Howells 		    __field(rxrpc_seq_t,	prev_pkt)
1621d1f12947SDavid Howells 		    __field(rxrpc_seq_t,	call_ackr_prev)
1622d1f12947SDavid Howells 			     ),
1623d1f12947SDavid Howells 
1624d1f12947SDavid Howells 	    TP_fast_assign(
1625d1f12947SDavid Howells 		    __entry->debug_id		= debug_id;
1626d1f12947SDavid Howells 		    __entry->serial		= serial;
1627d1f12947SDavid Howells 		    __entry->first_soft_ack	= first_soft_ack;
1628d1f12947SDavid Howells 		    __entry->call_ackr_first	= call_ackr_first;
1629d1f12947SDavid Howells 		    __entry->prev_pkt		= prev_pkt;
1630d1f12947SDavid Howells 		    __entry->call_ackr_prev	= call_ackr_prev;
1631d1f12947SDavid Howells 			   ),
1632d1f12947SDavid Howells 
1633d1f12947SDavid Howells 	    TP_printk("c=%08x r=%08x %08x<%08x %08x<%08x",
1634d1f12947SDavid Howells 		      __entry->debug_id,
1635d1f12947SDavid Howells 		      __entry->serial,
1636d1f12947SDavid Howells 		      __entry->first_soft_ack,
1637d1f12947SDavid Howells 		      __entry->call_ackr_first,
1638d1f12947SDavid Howells 		      __entry->prev_pkt,
1639d1f12947SDavid Howells 		      __entry->call_ackr_prev)
1640d1f12947SDavid Howells 	    );
1641d1f12947SDavid Howells 
16424d843be5SDavid Howells TRACE_EVENT(rxrpc_req_ack,
16434d843be5SDavid Howells 	    TP_PROTO(unsigned int call_debug_id, rxrpc_seq_t seq,
16444d843be5SDavid Howells 		     enum rxrpc_req_ack_trace why),
16454d843be5SDavid Howells 
16464d843be5SDavid Howells 	    TP_ARGS(call_debug_id, seq, why),
16474d843be5SDavid Howells 
16484d843be5SDavid Howells 	    TP_STRUCT__entry(
16494d843be5SDavid Howells 		    __field(unsigned int,		call_debug_id	)
16504d843be5SDavid Howells 		    __field(rxrpc_seq_t,		seq		)
16514d843be5SDavid Howells 		    __field(enum rxrpc_req_ack_trace,	why		)
16524d843be5SDavid Howells 			     ),
16534d843be5SDavid Howells 
16544d843be5SDavid Howells 	    TP_fast_assign(
16554d843be5SDavid Howells 		    __entry->call_debug_id = call_debug_id;
16564d843be5SDavid Howells 		    __entry->seq = seq;
16574d843be5SDavid Howells 		    __entry->why = why;
16584d843be5SDavid Howells 			   ),
16594d843be5SDavid Howells 
16604d843be5SDavid Howells 	    TP_printk("c=%08x q=%08x REQ-%s",
16614d843be5SDavid Howells 		      __entry->call_debug_id,
16624d843be5SDavid Howells 		      __entry->seq,
16634d843be5SDavid Howells 		      __print_symbolic(__entry->why, rxrpc_req_ack_traces))
16644d843be5SDavid Howells 	    );
16654d843be5SDavid Howells 
166602a19356SDavid Howells TRACE_EVENT(rxrpc_txbuf,
166702a19356SDavid Howells 	    TP_PROTO(unsigned int debug_id,
166802a19356SDavid Howells 		     unsigned int call_debug_id, rxrpc_seq_t seq,
166902a19356SDavid Howells 		     int ref, enum rxrpc_txbuf_trace what),
167002a19356SDavid Howells 
167102a19356SDavid Howells 	    TP_ARGS(debug_id, call_debug_id, seq, ref, what),
167202a19356SDavid Howells 
167302a19356SDavid Howells 	    TP_STRUCT__entry(
167402a19356SDavid Howells 		    __field(unsigned int,		debug_id	)
167502a19356SDavid Howells 		    __field(unsigned int,		call_debug_id	)
167602a19356SDavid Howells 		    __field(rxrpc_seq_t,		seq		)
167702a19356SDavid Howells 		    __field(int,			ref		)
167802a19356SDavid Howells 		    __field(enum rxrpc_txbuf_trace,	what		)
167902a19356SDavid Howells 			     ),
168002a19356SDavid Howells 
168102a19356SDavid Howells 	    TP_fast_assign(
168202a19356SDavid Howells 		    __entry->debug_id = debug_id;
168302a19356SDavid Howells 		    __entry->call_debug_id = call_debug_id;
168402a19356SDavid Howells 		    __entry->seq = seq;
168502a19356SDavid Howells 		    __entry->ref = ref;
168602a19356SDavid Howells 		    __entry->what = what;
168702a19356SDavid Howells 			   ),
168802a19356SDavid Howells 
168902a19356SDavid Howells 	    TP_printk("B=%08x c=%08x q=%08x %s r=%d",
169002a19356SDavid Howells 		      __entry->debug_id,
169102a19356SDavid Howells 		      __entry->call_debug_id,
169202a19356SDavid Howells 		      __entry->seq,
169302a19356SDavid Howells 		      __print_symbolic(__entry->what, rxrpc_txbuf_traces),
169402a19356SDavid Howells 		      __entry->ref)
169502a19356SDavid Howells 	    );
169602a19356SDavid Howells 
1697dc9fd093SDavid Howells #undef EM
1698dc9fd093SDavid Howells #undef E_
1699df844fd4SDavid Howells #endif /* _TRACE_RXRPC_H */
1700df844fd4SDavid Howells 
1701df844fd4SDavid Howells /* This part must be outside protection */
1702df844fd4SDavid Howells #include <trace/define_trace.h>
1703