xref: /openbmc/linux/include/trace/events/rxrpc.h (revision 57af281e5389b6fefedb3685f86847cbb0055f75)
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  */
19*57af281eSDavid Howells #define rxrpc_abort_reasons \
20*57af281eSDavid Howells 	/* AFS errors */						\
21*57af281eSDavid Howells 	EM(afs_abort_general_error,		"afs-error")		\
22*57af281eSDavid Howells 	EM(afs_abort_interrupted,		"afs-intr")		\
23*57af281eSDavid Howells 	EM(afs_abort_oom,			"afs-oom")		\
24*57af281eSDavid Howells 	EM(afs_abort_op_not_supported,		"afs-op-notsupp")	\
25*57af281eSDavid Howells 	EM(afs_abort_probeuuid_negative,	"afs-probeuuid-neg")	\
26*57af281eSDavid Howells 	EM(afs_abort_send_data_error,		"afs-send-data")	\
27*57af281eSDavid Howells 	EM(afs_abort_unmarshal_error,		"afs-unmarshal")	\
28*57af281eSDavid Howells 	/* rxperf errors */						\
29*57af281eSDavid Howells 	EM(rxperf_abort_general_error,		"rxperf-error")		\
30*57af281eSDavid Howells 	EM(rxperf_abort_oom,			"rxperf-oom")		\
31*57af281eSDavid Howells 	EM(rxperf_abort_op_not_supported,	"rxperf-op-notsupp")	\
32*57af281eSDavid Howells 	EM(rxperf_abort_unmarshal_error,	"rxperf-unmarshal")	\
33*57af281eSDavid Howells 	/* RxKAD security errors */					\
34*57af281eSDavid Howells 	EM(rxkad_abort_1_short_check,		"rxkad1-short-check")	\
35*57af281eSDavid Howells 	EM(rxkad_abort_1_short_data,		"rxkad1-short-data")	\
36*57af281eSDavid Howells 	EM(rxkad_abort_1_short_encdata,		"rxkad1-short-encdata")	\
37*57af281eSDavid Howells 	EM(rxkad_abort_1_short_header,		"rxkad1-short-hdr")	\
38*57af281eSDavid Howells 	EM(rxkad_abort_2_short_check,		"rxkad2-short-check")	\
39*57af281eSDavid Howells 	EM(rxkad_abort_2_short_data,		"rxkad2-short-data")	\
40*57af281eSDavid Howells 	EM(rxkad_abort_2_short_header,		"rxkad2-short-hdr")	\
41*57af281eSDavid Howells 	EM(rxkad_abort_2_short_len,		"rxkad2-short-len")	\
42*57af281eSDavid Howells 	EM(rxkad_abort_bad_checksum,		"rxkad2-bad-cksum")	\
43*57af281eSDavid Howells 	EM(rxkad_abort_chall_key_expired,	"rxkad-chall-key-exp")	\
44*57af281eSDavid Howells 	EM(rxkad_abort_chall_level,		"rxkad-chall-level")	\
45*57af281eSDavid Howells 	EM(rxkad_abort_chall_no_key,		"rxkad-chall-nokey")	\
46*57af281eSDavid Howells 	EM(rxkad_abort_chall_short,		"rxkad-chall-short")	\
47*57af281eSDavid Howells 	EM(rxkad_abort_chall_version,		"rxkad-chall-version")	\
48*57af281eSDavid Howells 	EM(rxkad_abort_resp_bad_callid,		"rxkad-resp-bad-callid") \
49*57af281eSDavid Howells 	EM(rxkad_abort_resp_bad_checksum,	"rxkad-resp-bad-cksum")	\
50*57af281eSDavid Howells 	EM(rxkad_abort_resp_bad_param,		"rxkad-resp-bad-param")	\
51*57af281eSDavid Howells 	EM(rxkad_abort_resp_call_ctr,		"rxkad-resp-call-ctr") \
52*57af281eSDavid Howells 	EM(rxkad_abort_resp_call_state,		"rxkad-resp-call-state") \
53*57af281eSDavid Howells 	EM(rxkad_abort_resp_key_expired,	"rxkad-resp-key-exp")	\
54*57af281eSDavid Howells 	EM(rxkad_abort_resp_key_rejected,	"rxkad-resp-key-rej")	\
55*57af281eSDavid Howells 	EM(rxkad_abort_resp_level,		"rxkad-resp-level")	\
56*57af281eSDavid Howells 	EM(rxkad_abort_resp_nokey,		"rxkad-resp-nokey")	\
57*57af281eSDavid Howells 	EM(rxkad_abort_resp_ooseq,		"rxkad-resp-ooseq")	\
58*57af281eSDavid Howells 	EM(rxkad_abort_resp_short,		"rxkad-resp-short")	\
59*57af281eSDavid Howells 	EM(rxkad_abort_resp_short_tkt,		"rxkad-resp-short-tkt")	\
60*57af281eSDavid Howells 	EM(rxkad_abort_resp_tkt_aname,		"rxkad-resp-tk-aname")	\
61*57af281eSDavid Howells 	EM(rxkad_abort_resp_tkt_expired,	"rxkad-resp-tk-exp")	\
62*57af281eSDavid Howells 	EM(rxkad_abort_resp_tkt_future,		"rxkad-resp-tk-future")	\
63*57af281eSDavid Howells 	EM(rxkad_abort_resp_tkt_inst,		"rxkad-resp-tk-inst")	\
64*57af281eSDavid Howells 	EM(rxkad_abort_resp_tkt_len,		"rxkad-resp-tk-len")	\
65*57af281eSDavid Howells 	EM(rxkad_abort_resp_tkt_realm,		"rxkad-resp-tk-realm")	\
66*57af281eSDavid Howells 	EM(rxkad_abort_resp_tkt_short,		"rxkad-resp-tk-short")	\
67*57af281eSDavid Howells 	EM(rxkad_abort_resp_tkt_sinst,		"rxkad-resp-tk-sinst")	\
68*57af281eSDavid Howells 	EM(rxkad_abort_resp_tkt_sname,		"rxkad-resp-tk-sname")	\
69*57af281eSDavid Howells 	EM(rxkad_abort_resp_unknown_tkt,	"rxkad-resp-unknown-tkt") \
70*57af281eSDavid Howells 	EM(rxkad_abort_resp_version,		"rxkad-resp-version")	\
71*57af281eSDavid Howells 	/* rxrpc errors */						\
72*57af281eSDavid Howells 	EM(rxrpc_abort_call_improper_term,	"call-improper-term")	\
73*57af281eSDavid Howells 	EM(rxrpc_abort_call_reset,		"call-reset")		\
74*57af281eSDavid Howells 	EM(rxrpc_abort_call_sendmsg,		"call-sendmsg")		\
75*57af281eSDavid Howells 	EM(rxrpc_abort_call_sock_release,	"call-sock-rel")	\
76*57af281eSDavid Howells 	EM(rxrpc_abort_call_sock_release_tba,	"call-sock-rel-tba")	\
77*57af281eSDavid Howells 	EM(rxrpc_abort_call_timeout,		"call-timeout")		\
78*57af281eSDavid Howells 	EM(rxrpc_abort_no_service_key,		"no-serv-key")		\
79*57af281eSDavid Howells 	EM(rxrpc_abort_nomem,			"nomem")		\
80*57af281eSDavid Howells 	EM(rxrpc_abort_service_not_offered,	"serv-not-offered")	\
81*57af281eSDavid Howells 	EM(rxrpc_abort_shut_down,		"shut-down")		\
82*57af281eSDavid Howells 	EM(rxrpc_abort_unsupported_security,	"unsup-sec")		\
83*57af281eSDavid Howells 	EM(rxrpc_badmsg_bad_abort,		"bad-abort")		\
84*57af281eSDavid Howells 	EM(rxrpc_badmsg_bad_jumbo,		"bad-jumbo")		\
85*57af281eSDavid Howells 	EM(rxrpc_badmsg_short_ack,		"short-ack")		\
86*57af281eSDavid Howells 	EM(rxrpc_badmsg_short_ack_info,		"short-ack-info")	\
87*57af281eSDavid Howells 	EM(rxrpc_badmsg_short_hdr,		"short-hdr")		\
88*57af281eSDavid Howells 	EM(rxrpc_badmsg_unsupported_packet,	"unsup-pkt")		\
89*57af281eSDavid Howells 	EM(rxrpc_badmsg_zero_call,		"zero-call")		\
90*57af281eSDavid Howells 	EM(rxrpc_badmsg_zero_seq,		"zero-seq")		\
91*57af281eSDavid Howells 	EM(rxrpc_badmsg_zero_service,		"zero-service")		\
92*57af281eSDavid Howells 	EM(rxrpc_eproto_ackr_outside_window,	"ackr-out-win")		\
93*57af281eSDavid Howells 	EM(rxrpc_eproto_ackr_sack_overflow,	"ackr-sack-over")	\
94*57af281eSDavid Howells 	EM(rxrpc_eproto_ackr_short_sack,	"ackr-short-sack")	\
95*57af281eSDavid Howells 	EM(rxrpc_eproto_ackr_zero,		"ackr-zero")		\
96*57af281eSDavid Howells 	EM(rxrpc_eproto_bad_upgrade,		"bad-upgrade")		\
97*57af281eSDavid Howells 	EM(rxrpc_eproto_data_after_last,	"data-after-last")	\
98*57af281eSDavid Howells 	EM(rxrpc_eproto_different_last,		"diff-last")		\
99*57af281eSDavid Howells 	EM(rxrpc_eproto_early_reply,		"early-reply")		\
100*57af281eSDavid Howells 	EM(rxrpc_eproto_improper_term,		"improper-term")	\
101*57af281eSDavid Howells 	EM(rxrpc_eproto_no_client_call,		"no-cl-call")		\
102*57af281eSDavid Howells 	EM(rxrpc_eproto_no_client_conn,		"no-cl-conn")		\
103*57af281eSDavid Howells 	EM(rxrpc_eproto_no_service_call,	"no-sv-call")		\
104*57af281eSDavid Howells 	EM(rxrpc_eproto_reupgrade,		"re-upgrade")		\
105*57af281eSDavid Howells 	EM(rxrpc_eproto_rxnull_challenge,	"rxnull-chall")		\
106*57af281eSDavid Howells 	EM(rxrpc_eproto_rxnull_response,	"rxnull-resp")		\
107*57af281eSDavid Howells 	EM(rxrpc_eproto_tx_rot_last,		"tx-rot-last")		\
108*57af281eSDavid Howells 	EM(rxrpc_eproto_unexpected_ack,		"unex-ack")		\
109*57af281eSDavid Howells 	EM(rxrpc_eproto_unexpected_ackall,	"unex-ackall")		\
110*57af281eSDavid Howells 	EM(rxrpc_eproto_unexpected_implicit_end, "unex-impl-end")	\
111*57af281eSDavid Howells 	EM(rxrpc_eproto_unexpected_reply,	"unex-reply")		\
112*57af281eSDavid Howells 	EM(rxrpc_eproto_wrong_security,		"wrong-sec")		\
113*57af281eSDavid Howells 	EM(rxrpc_recvmsg_excess_data,		"recvmsg-excess")	\
114*57af281eSDavid Howells 	EM(rxrpc_recvmsg_short_data,		"recvmsg-short")	\
115*57af281eSDavid Howells 	E_(rxrpc_sendmsg_late_send,		"sendmsg-late")
116*57af281eSDavid Howells 
11715f661dcSDavid Howells #define rxrpc_call_poke_traces \
118a343b174SDavid Howells 	EM(rxrpc_call_poke_abort,		"Abort")	\
11903fc55adSDavid Howells 	EM(rxrpc_call_poke_complete,		"Compl")	\
12015f661dcSDavid Howells 	EM(rxrpc_call_poke_error,		"Error")	\
12115f661dcSDavid Howells 	EM(rxrpc_call_poke_idle,		"Idle")		\
12215f661dcSDavid Howells 	EM(rxrpc_call_poke_start,		"Start")	\
12315f661dcSDavid Howells 	EM(rxrpc_call_poke_timer,		"Timer")	\
12415f661dcSDavid Howells 	E_(rxrpc_call_poke_timer_now,		"Timer-now")
12515f661dcSDavid Howells 
126b54a134aSDavid Howells #define rxrpc_skb_traces \
1279a36a6bcSDavid Howells 	EM(rxrpc_skb_eaten_by_unshare,		"ETN unshare  ") \
1289a36a6bcSDavid Howells 	EM(rxrpc_skb_eaten_by_unshare_nomem,	"ETN unshar-nm") \
1299a36a6bcSDavid Howells 	EM(rxrpc_skb_get_conn_work,		"GET conn-work") \
1302d1faf7aSDavid Howells 	EM(rxrpc_skb_get_local_work,		"GET locl-work") \
1312d1faf7aSDavid Howells 	EM(rxrpc_skb_get_reject_work,		"GET rej-work ") \
1329a36a6bcSDavid Howells 	EM(rxrpc_skb_get_to_recvmsg,		"GET to-recv  ") \
1339a36a6bcSDavid Howells 	EM(rxrpc_skb_get_to_recvmsg_oos,	"GET to-recv-o") \
1349a36a6bcSDavid Howells 	EM(rxrpc_skb_new_encap_rcv,		"NEW encap-rcv") \
1359a36a6bcSDavid Howells 	EM(rxrpc_skb_new_error_report,		"NEW error-rpt") \
1369a36a6bcSDavid Howells 	EM(rxrpc_skb_new_jumbo_subpacket,	"NEW jumbo-sub") \
1379a36a6bcSDavid Howells 	EM(rxrpc_skb_new_unshared,		"NEW unshared ") \
1389a36a6bcSDavid Howells 	EM(rxrpc_skb_put_conn_work,		"PUT conn-work") \
1399a36a6bcSDavid Howells 	EM(rxrpc_skb_put_error_report,		"PUT error-rep") \
1409a36a6bcSDavid Howells 	EM(rxrpc_skb_put_input,			"PUT input    ") \
1419a36a6bcSDavid Howells 	EM(rxrpc_skb_put_jumbo_subpacket,	"PUT jumbo-sub") \
1429a36a6bcSDavid Howells 	EM(rxrpc_skb_put_purge,			"PUT purge    ") \
1439a36a6bcSDavid Howells 	EM(rxrpc_skb_put_rotate,		"PUT rotate   ") \
1449a36a6bcSDavid Howells 	EM(rxrpc_skb_put_unknown,		"PUT unknown  ") \
1459a36a6bcSDavid Howells 	EM(rxrpc_skb_see_conn_work,		"SEE conn-work") \
1469a36a6bcSDavid Howells 	EM(rxrpc_skb_see_recvmsg,		"SEE recvmsg  ") \
1479a36a6bcSDavid Howells 	EM(rxrpc_skb_see_reject,		"SEE reject   ") \
1489a36a6bcSDavid Howells 	EM(rxrpc_skb_see_rotate,		"SEE rotate   ") \
1499a36a6bcSDavid Howells 	E_(rxrpc_skb_see_version,		"SEE version  ")
150b54a134aSDavid Howells 
15109d2bf59SDavid Howells #define rxrpc_local_traces \
1520fde882fSDavid Howells 	EM(rxrpc_local_free,			"FREE        ") \
153f3441d41SDavid Howells 	EM(rxrpc_local_get_call,		"GET call    ") \
1540fde882fSDavid Howells 	EM(rxrpc_local_get_client_conn,		"GET conn-cln") \
1550fde882fSDavid Howells 	EM(rxrpc_local_get_for_use,		"GET for-use ") \
1560fde882fSDavid Howells 	EM(rxrpc_local_get_peer,		"GET peer    ") \
1570fde882fSDavid Howells 	EM(rxrpc_local_get_prealloc_conn,	"GET conn-pre") \
15809d2bf59SDavid Howells 	EM(rxrpc_local_new,			"NEW         ") \
1590fde882fSDavid Howells 	EM(rxrpc_local_put_bind,		"PUT bind    ") \
160f3441d41SDavid Howells 	EM(rxrpc_local_put_call,		"PUT call    ") \
1610fde882fSDavid Howells 	EM(rxrpc_local_put_for_use,		"PUT for-use ") \
1620fde882fSDavid Howells 	EM(rxrpc_local_put_kill_conn,		"PUT conn-kil") \
1630fde882fSDavid Howells 	EM(rxrpc_local_put_peer,		"PUT peer    ") \
1640fde882fSDavid Howells 	EM(rxrpc_local_put_prealloc_conn,	"PUT conn-pre") \
1650fde882fSDavid Howells 	EM(rxrpc_local_put_release_sock,	"PUT rel-sock") \
1660fde882fSDavid Howells 	EM(rxrpc_local_stop,			"STOP        ") \
1670fde882fSDavid Howells 	EM(rxrpc_local_stopped,			"STOPPED     ") \
1680fde882fSDavid Howells 	EM(rxrpc_local_unuse_bind,		"UNU bind    ") \
1690fde882fSDavid Howells 	EM(rxrpc_local_unuse_conn_work,		"UNU conn-wrk") \
1700fde882fSDavid Howells 	EM(rxrpc_local_unuse_peer_keepalive,	"UNU peer-kpa") \
1710fde882fSDavid Howells 	EM(rxrpc_local_unuse_release_sock,	"UNU rel-sock") \
1720fde882fSDavid Howells 	EM(rxrpc_local_use_conn_work,		"USE conn-wrk") \
1730fde882fSDavid Howells 	EM(rxrpc_local_use_lookup,		"USE lookup  ") \
1745e6ef4f1SDavid Howells 	E_(rxrpc_local_use_peer_keepalive,	"USE peer-kpa")
17509d2bf59SDavid Howells 
1761159d4b4SDavid Howells #define rxrpc_peer_traces \
17747c810a7SDavid Howells 	EM(rxrpc_peer_free,			"FREE        ") \
17847c810a7SDavid Howells 	EM(rxrpc_peer_get_accept,		"GET accept  ") \
17947c810a7SDavid Howells 	EM(rxrpc_peer_get_activate_call,	"GET act-call") \
18047c810a7SDavid Howells 	EM(rxrpc_peer_get_bundle,		"GET bundle  ") \
18147c810a7SDavid Howells 	EM(rxrpc_peer_get_client_conn,		"GET cln-conn") \
1825e6ef4f1SDavid Howells 	EM(rxrpc_peer_get_input,		"GET input   ") \
18347c810a7SDavid Howells 	EM(rxrpc_peer_get_input_error,		"GET inpt-err") \
18447c810a7SDavid Howells 	EM(rxrpc_peer_get_keepalive,		"GET keepaliv") \
18547c810a7SDavid Howells 	EM(rxrpc_peer_get_lookup_client,	"GET look-cln") \
18647c810a7SDavid Howells 	EM(rxrpc_peer_get_service_conn,		"GET srv-conn") \
18747c810a7SDavid Howells 	EM(rxrpc_peer_new_client,		"NEW client  ") \
18847c810a7SDavid Howells 	EM(rxrpc_peer_new_prealloc,		"NEW prealloc") \
18947c810a7SDavid Howells 	EM(rxrpc_peer_put_bundle,		"PUT bundle  ") \
19047c810a7SDavid Howells 	EM(rxrpc_peer_put_call,			"PUT call    ") \
19147c810a7SDavid Howells 	EM(rxrpc_peer_put_conn,			"PUT conn    ") \
19247c810a7SDavid Howells 	EM(rxrpc_peer_put_discard_tmp,		"PUT disc-tmp") \
1935e6ef4f1SDavid Howells 	EM(rxrpc_peer_put_input,		"PUT input   ") \
19447c810a7SDavid Howells 	EM(rxrpc_peer_put_input_error,		"PUT inpt-err") \
19547c810a7SDavid Howells 	E_(rxrpc_peer_put_keepalive,		"PUT keepaliv")
1961159d4b4SDavid Howells 
197fa3492abSDavid Howells #define rxrpc_bundle_traces \
198fa3492abSDavid Howells 	EM(rxrpc_bundle_free,			"FREE        ") \
199fa3492abSDavid Howells 	EM(rxrpc_bundle_get_client_call,	"GET clt-call") \
200fa3492abSDavid Howells 	EM(rxrpc_bundle_get_client_conn,	"GET clt-conn") \
201fa3492abSDavid Howells 	EM(rxrpc_bundle_get_service_conn,	"GET svc-conn") \
202fa3492abSDavid Howells 	EM(rxrpc_bundle_put_conn,		"PUT conn    ") \
203fa3492abSDavid Howells 	EM(rxrpc_bundle_put_discard,		"PUT discard ") \
204fa3492abSDavid Howells 	E_(rxrpc_bundle_new,			"NEW         ")
205fa3492abSDavid Howells 
206b54a134aSDavid Howells #define rxrpc_conn_traces \
2077fa25105SDavid Howells 	EM(rxrpc_conn_free,			"FREE        ") \
2087fa25105SDavid Howells 	EM(rxrpc_conn_get_activate_call,	"GET act-call") \
2097fa25105SDavid Howells 	EM(rxrpc_conn_get_call_input,		"GET inp-call") \
2107fa25105SDavid Howells 	EM(rxrpc_conn_get_conn_input,		"GET inp-conn") \
2117fa25105SDavid Howells 	EM(rxrpc_conn_get_idle,			"GET idle    ") \
212a00ce28bSDavid Howells 	EM(rxrpc_conn_get_poke_abort,		"GET pk-abort") \
213f2cce89aSDavid Howells 	EM(rxrpc_conn_get_poke_timer,		"GET poke    ") \
2147fa25105SDavid Howells 	EM(rxrpc_conn_get_service_conn,		"GET svc-conn") \
2157fa25105SDavid Howells 	EM(rxrpc_conn_new_client,		"NEW client  ") \
2167fa25105SDavid Howells 	EM(rxrpc_conn_new_service,		"NEW service ") \
2177fa25105SDavid Howells 	EM(rxrpc_conn_put_call,			"PUT call    ") \
2187fa25105SDavid Howells 	EM(rxrpc_conn_put_call_input,		"PUT inp-call") \
2197fa25105SDavid Howells 	EM(rxrpc_conn_put_conn_input,		"PUT inp-conn") \
2207fa25105SDavid Howells 	EM(rxrpc_conn_put_discard,		"PUT discard ") \
2217fa25105SDavid Howells 	EM(rxrpc_conn_put_discard_idle,		"PUT disc-idl") \
2227fa25105SDavid Howells 	EM(rxrpc_conn_put_local_dead,		"PUT loc-dead") \
2237fa25105SDavid Howells 	EM(rxrpc_conn_put_noreuse,		"PUT noreuse ") \
2247fa25105SDavid Howells 	EM(rxrpc_conn_put_poke,			"PUT poke    ") \
2253cec055cSDavid Howells 	EM(rxrpc_conn_put_service_reaped,	"PUT svc-reap") \
2267fa25105SDavid Howells 	EM(rxrpc_conn_put_unbundle,		"PUT unbundle") \
2277fa25105SDavid Howells 	EM(rxrpc_conn_put_unidle,		"PUT unidle  ") \
228f2cce89aSDavid Howells 	EM(rxrpc_conn_put_work,			"PUT work    ") \
2293cec055cSDavid Howells 	EM(rxrpc_conn_queue_challenge,		"QUE chall   ") \
230a00ce28bSDavid Howells 	EM(rxrpc_conn_queue_retry_work,		"QUE retry-wk") \
2313cec055cSDavid Howells 	EM(rxrpc_conn_queue_rx_work,		"QUE rx-work ") \
2327fa25105SDavid Howells 	EM(rxrpc_conn_see_new_service_conn,	"SEE new-svc ") \
2337fa25105SDavid Howells 	EM(rxrpc_conn_see_reap_service,		"SEE reap-svc") \
2347fa25105SDavid Howells 	E_(rxrpc_conn_see_work,			"SEE work    ")
235b54a134aSDavid Howells 
236b54a134aSDavid Howells #define rxrpc_client_traces \
237b54a134aSDavid Howells 	EM(rxrpc_client_activate_chans,		"Activa") \
238b54a134aSDavid Howells 	EM(rxrpc_client_alloc,			"Alloc ") \
239b54a134aSDavid Howells 	EM(rxrpc_client_chan_activate,		"ChActv") \
240b54a134aSDavid Howells 	EM(rxrpc_client_chan_disconnect,	"ChDisc") \
241b54a134aSDavid Howells 	EM(rxrpc_client_chan_pass,		"ChPass") \
242930c9f91SDavid Howells 	EM(rxrpc_client_chan_wait_failed,	"ChWtFl") \
243b54a134aSDavid Howells 	EM(rxrpc_client_cleanup,		"Clean ") \
244b54a134aSDavid Howells 	EM(rxrpc_client_discard,		"Discar") \
245b54a134aSDavid Howells 	EM(rxrpc_client_duplicate,		"Duplic") \
246b54a134aSDavid Howells 	EM(rxrpc_client_exposed,		"Expose") \
247b54a134aSDavid Howells 	EM(rxrpc_client_replace,		"Replac") \
248b54a134aSDavid Howells 	EM(rxrpc_client_to_active,		"->Actv") \
249245500d8SDavid Howells 	E_(rxrpc_client_to_idle,		"->Idle")
250b54a134aSDavid Howells 
251b54a134aSDavid Howells #define rxrpc_call_traces \
2525040011dSDavid Howells 	EM(rxrpc_call_get_io_thread,		"GET iothread") \
253cb0fc0c9SDavid Howells 	EM(rxrpc_call_get_input,		"GET input   ") \
254cb0fc0c9SDavid Howells 	EM(rxrpc_call_get_kernel_service,	"GET krnl-srv") \
255cb0fc0c9SDavid Howells 	EM(rxrpc_call_get_notify_socket,	"GET notify  ") \
25615f661dcSDavid Howells 	EM(rxrpc_call_get_poke,			"GET poke    ") \
257cb0fc0c9SDavid Howells 	EM(rxrpc_call_get_recvmsg,		"GET recvmsg ") \
258cb0fc0c9SDavid Howells 	EM(rxrpc_call_get_release_sock,		"GET rel-sock") \
259cb0fc0c9SDavid Howells 	EM(rxrpc_call_get_sendmsg,		"GET sendmsg ") \
260cb0fc0c9SDavid Howells 	EM(rxrpc_call_get_userid,		"GET user-id ") \
261cb0fc0c9SDavid Howells 	EM(rxrpc_call_new_client,		"NEW client  ") \
262cb0fc0c9SDavid Howells 	EM(rxrpc_call_new_prealloc_service,	"NEW prealloc") \
263cb0fc0c9SDavid Howells 	EM(rxrpc_call_put_discard_prealloc,	"PUT disc-pre") \
264f3441d41SDavid Howells 	EM(rxrpc_call_put_discard_error,	"PUT disc-err") \
2655040011dSDavid Howells 	EM(rxrpc_call_put_io_thread,		"PUT iothread") \
266cb0fc0c9SDavid Howells 	EM(rxrpc_call_put_input,		"PUT input   ") \
267cb0fc0c9SDavid Howells 	EM(rxrpc_call_put_kernel,		"PUT kernel  ") \
26815f661dcSDavid Howells 	EM(rxrpc_call_put_poke,			"PUT poke    ") \
269cb0fc0c9SDavid Howells 	EM(rxrpc_call_put_recvmsg,		"PUT recvmsg ") \
270cb0fc0c9SDavid Howells 	EM(rxrpc_call_put_release_sock,		"PUT rls-sock") \
271cb0fc0c9SDavid Howells 	EM(rxrpc_call_put_release_sock_tba,	"PUT rls-sk-a") \
272cb0fc0c9SDavid Howells 	EM(rxrpc_call_put_sendmsg,		"PUT sendmsg ") \
273cb0fc0c9SDavid Howells 	EM(rxrpc_call_put_unnotify,		"PUT unnotify") \
274cb0fc0c9SDavid Howells 	EM(rxrpc_call_put_userid_exists,	"PUT u-exists") \
275cb0fc0c9SDavid Howells 	EM(rxrpc_call_see_accept,		"SEE accept  ") \
276cb0fc0c9SDavid Howells 	EM(rxrpc_call_see_activate_client,	"SEE act-clnt") \
277cb0fc0c9SDavid Howells 	EM(rxrpc_call_see_connect_failed,	"SEE con-fail") \
278cb0fc0c9SDavid Howells 	EM(rxrpc_call_see_connected,		"SEE connect ") \
2795040011dSDavid Howells 	EM(rxrpc_call_see_disconnected,		"SEE disconn ") \
280cb0fc0c9SDavid Howells 	EM(rxrpc_call_see_distribute_error,	"SEE dist-err") \
281cb0fc0c9SDavid Howells 	EM(rxrpc_call_see_input,		"SEE input   ") \
282cb0fc0c9SDavid Howells 	EM(rxrpc_call_see_release,		"SEE release ") \
283cb0fc0c9SDavid Howells 	EM(rxrpc_call_see_userid_exists,	"SEE u-exists") \
284cb0fc0c9SDavid Howells 	E_(rxrpc_call_see_zap,			"SEE zap     ")
285b54a134aSDavid Howells 
286a4ea4c47SDavid Howells #define rxrpc_txqueue_traces \
287a4ea4c47SDavid Howells 	EM(rxrpc_txqueue_await_reply,		"AWR") \
288a4ea4c47SDavid Howells 	EM(rxrpc_txqueue_dequeue,		"DEQ") \
289a4ea4c47SDavid Howells 	EM(rxrpc_txqueue_end,			"END") \
290a4ea4c47SDavid Howells 	EM(rxrpc_txqueue_queue,			"QUE") \
291a4ea4c47SDavid Howells 	EM(rxrpc_txqueue_queue_last,		"QLS") \
292a4ea4c47SDavid Howells 	EM(rxrpc_txqueue_rotate,		"ROT") \
293a4ea4c47SDavid Howells 	EM(rxrpc_txqueue_rotate_last,		"RLS") \
294a4ea4c47SDavid Howells 	E_(rxrpc_txqueue_wait,			"WAI")
295b54a134aSDavid Howells 
296b54a134aSDavid Howells #define rxrpc_receive_traces \
297b54a134aSDavid Howells 	EM(rxrpc_receive_end,			"END") \
298b54a134aSDavid Howells 	EM(rxrpc_receive_front,			"FRN") \
299b54a134aSDavid Howells 	EM(rxrpc_receive_incoming,		"INC") \
300b54a134aSDavid Howells 	EM(rxrpc_receive_queue,			"QUE") \
301b54a134aSDavid Howells 	EM(rxrpc_receive_queue_last,		"QLS") \
3025d7edbc9SDavid Howells 	EM(rxrpc_receive_queue_oos,		"QUO") \
3035d7edbc9SDavid Howells 	EM(rxrpc_receive_queue_oos_last,	"QOL") \
3045d7edbc9SDavid Howells 	EM(rxrpc_receive_oos,			"OOS") \
3055d7edbc9SDavid Howells 	EM(rxrpc_receive_oos_last,		"OSL") \
3065d7edbc9SDavid Howells 	EM(rxrpc_receive_rotate,		"ROT") \
3075d7edbc9SDavid Howells 	E_(rxrpc_receive_rotate_last,		"RLS")
308b54a134aSDavid Howells 
309b54a134aSDavid Howells #define rxrpc_recvmsg_traces \
310b54a134aSDavid Howells 	EM(rxrpc_recvmsg_cont,			"CONT") \
311b54a134aSDavid Howells 	EM(rxrpc_recvmsg_data_return,		"DATA") \
312b54a134aSDavid Howells 	EM(rxrpc_recvmsg_dequeue,		"DEQU") \
313b54a134aSDavid Howells 	EM(rxrpc_recvmsg_enter,			"ENTR") \
314b54a134aSDavid Howells 	EM(rxrpc_recvmsg_full,			"FULL") \
315b54a134aSDavid Howells 	EM(rxrpc_recvmsg_hole,			"HOLE") \
316b54a134aSDavid Howells 	EM(rxrpc_recvmsg_next,			"NEXT") \
317540b1c48SDavid Howells 	EM(rxrpc_recvmsg_requeue,		"REQU") \
318b54a134aSDavid Howells 	EM(rxrpc_recvmsg_return,		"RETN") \
319b54a134aSDavid Howells 	EM(rxrpc_recvmsg_terminal,		"TERM") \
320b54a134aSDavid Howells 	EM(rxrpc_recvmsg_to_be_accepted,	"TBAC") \
321b54a134aSDavid Howells 	E_(rxrpc_recvmsg_wait,			"WAIT")
322b54a134aSDavid Howells 
323b54a134aSDavid Howells #define rxrpc_rtt_tx_traces \
3244700c4d8SDavid Howells 	EM(rxrpc_rtt_tx_cancel,			"CNCE") \
325b54a134aSDavid Howells 	EM(rxrpc_rtt_tx_data,			"DATA") \
3264700c4d8SDavid Howells 	EM(rxrpc_rtt_tx_no_slot,		"FULL") \
327b54a134aSDavid Howells 	E_(rxrpc_rtt_tx_ping,			"PING")
328b54a134aSDavid Howells 
329b54a134aSDavid Howells #define rxrpc_rtt_rx_traces \
3304700c4d8SDavid Howells 	EM(rxrpc_rtt_rx_cancel,			"CNCL") \
3314700c4d8SDavid Howells 	EM(rxrpc_rtt_rx_obsolete,		"OBSL") \
3324700c4d8SDavid Howells 	EM(rxrpc_rtt_rx_lost,			"LOST") \
333b54a134aSDavid Howells 	EM(rxrpc_rtt_rx_ping_response,		"PONG") \
334b54a134aSDavid Howells 	E_(rxrpc_rtt_rx_requested_ack,		"RACK")
335b54a134aSDavid Howells 
336b54a134aSDavid Howells #define rxrpc_timer_traces \
337b54a134aSDavid Howells 	EM(rxrpc_timer_begin,			"Begin ") \
338a158bdd3SDavid Howells 	EM(rxrpc_timer_exp_ack,			"ExpAck") \
339a158bdd3SDavid Howells 	EM(rxrpc_timer_exp_hard,		"ExpHrd") \
340a158bdd3SDavid Howells 	EM(rxrpc_timer_exp_idle,		"ExpIdl") \
341415f44e4SDavid Howells 	EM(rxrpc_timer_exp_keepalive,		"ExpKA ") \
342bd1fdf8cSDavid Howells 	EM(rxrpc_timer_exp_lost_ack,		"ExpLoA") \
343a158bdd3SDavid Howells 	EM(rxrpc_timer_exp_normal,		"ExpNml") \
344a158bdd3SDavid Howells 	EM(rxrpc_timer_exp_ping,		"ExpPng") \
345a158bdd3SDavid Howells 	EM(rxrpc_timer_exp_resend,		"ExpRsn") \
346b54a134aSDavid Howells 	EM(rxrpc_timer_init_for_reply,		"IniRpl") \
347b54a134aSDavid Howells 	EM(rxrpc_timer_init_for_send_reply,	"SndRpl") \
348a158bdd3SDavid Howells 	EM(rxrpc_timer_restart,			"Restrt") \
349b54a134aSDavid Howells 	EM(rxrpc_timer_set_for_ack,		"SetAck") \
350a158bdd3SDavid Howells 	EM(rxrpc_timer_set_for_hard,		"SetHrd") \
351a158bdd3SDavid Howells 	EM(rxrpc_timer_set_for_idle,		"SetIdl") \
352415f44e4SDavid Howells 	EM(rxrpc_timer_set_for_keepalive,	"KeepAl") \
353bd1fdf8cSDavid Howells 	EM(rxrpc_timer_set_for_lost_ack,	"SetLoA") \
354a158bdd3SDavid Howells 	EM(rxrpc_timer_set_for_normal,		"SetNml") \
355b54a134aSDavid Howells 	EM(rxrpc_timer_set_for_ping,		"SetPng") \
356b54a134aSDavid Howells 	EM(rxrpc_timer_set_for_resend,		"SetRTx") \
357a158bdd3SDavid Howells 	E_(rxrpc_timer_set_for_send,		"SetSnd")
358b54a134aSDavid Howells 
359b54a134aSDavid Howells #define rxrpc_propose_ack_traces \
360b54a134aSDavid Howells 	EM(rxrpc_propose_ack_client_tx_end,	"ClTxEnd") \
361b54a134aSDavid Howells 	EM(rxrpc_propose_ack_input_data,	"DataIn ") \
362530403d9SDavid Howells 	EM(rxrpc_propose_ack_input_data_hole,	"DataInH") \
3637150ceaaSDavid Howells 	EM(rxrpc_propose_ack_ping_for_check_life, "ChkLife") \
364415f44e4SDavid Howells 	EM(rxrpc_propose_ack_ping_for_keepalive, "KeepAlv") \
365b54a134aSDavid Howells 	EM(rxrpc_propose_ack_ping_for_lost_ack,	"LostAck") \
366b54a134aSDavid Howells 	EM(rxrpc_propose_ack_ping_for_lost_reply, "LostRpl") \
367b54a134aSDavid Howells 	EM(rxrpc_propose_ack_ping_for_params,	"Params ") \
368b54a134aSDavid Howells 	EM(rxrpc_propose_ack_processing_op,	"ProcOp ") \
369b54a134aSDavid Howells 	EM(rxrpc_propose_ack_respond_to_ack,	"Rsp2Ack") \
370b54a134aSDavid Howells 	EM(rxrpc_propose_ack_respond_to_ping,	"Rsp2Png") \
371b54a134aSDavid Howells 	EM(rxrpc_propose_ack_retry_tx,		"RetryTx") \
372b54a134aSDavid Howells 	EM(rxrpc_propose_ack_rotate_rx,		"RxAck  ") \
3735e6ef4f1SDavid Howells 	EM(rxrpc_propose_ack_rx_idle,		"RxIdle ") \
374b54a134aSDavid Howells 	E_(rxrpc_propose_ack_terminal_ack,	"ClTerm ")
375b54a134aSDavid Howells 
376b54a134aSDavid Howells #define rxrpc_congest_modes \
377b54a134aSDavid Howells 	EM(RXRPC_CALL_CONGEST_AVOIDANCE,	"CongAvoid") \
378b54a134aSDavid Howells 	EM(RXRPC_CALL_FAST_RETRANSMIT,		"FastReTx ") \
379b54a134aSDavid Howells 	EM(RXRPC_CALL_PACKET_LOSS,		"PktLoss  ") \
380b54a134aSDavid Howells 	E_(RXRPC_CALL_SLOW_START,		"SlowStart")
381b54a134aSDavid Howells 
382b54a134aSDavid Howells #define rxrpc_congest_changes \
383b54a134aSDavid Howells 	EM(rxrpc_cong_begin_retransmission,	" Retrans") \
384b54a134aSDavid Howells 	EM(rxrpc_cong_cleared_nacks,		" Cleared") \
385b54a134aSDavid Howells 	EM(rxrpc_cong_new_low_nack,		" NewLowN") \
386aadf9dceSDavid Howells 	EM(rxrpc_cong_no_change,		" -") \
387b54a134aSDavid Howells 	EM(rxrpc_cong_progress,			" Progres") \
3881fc4fa2aSDavid Howells 	EM(rxrpc_cong_idle_reset,		" IdleRes") \
389b54a134aSDavid Howells 	EM(rxrpc_cong_retransmit_again,		" ReTxAgn") \
390b54a134aSDavid Howells 	EM(rxrpc_cong_rtt_window_end,		" RttWinE") \
391b54a134aSDavid Howells 	E_(rxrpc_cong_saw_nack,			" SawNack")
392b54a134aSDavid Howells 
393b54a134aSDavid Howells #define rxrpc_pkts \
394b54a134aSDavid Howells 	EM(0,					"?00") \
395b54a134aSDavid Howells 	EM(RXRPC_PACKET_TYPE_DATA,		"DATA") \
396b54a134aSDavid Howells 	EM(RXRPC_PACKET_TYPE_ACK,		"ACK") \
397b54a134aSDavid Howells 	EM(RXRPC_PACKET_TYPE_BUSY,		"BUSY") \
398b54a134aSDavid Howells 	EM(RXRPC_PACKET_TYPE_ABORT,		"ABORT") \
399b54a134aSDavid Howells 	EM(RXRPC_PACKET_TYPE_ACKALL,		"ACKALL") \
400b54a134aSDavid Howells 	EM(RXRPC_PACKET_TYPE_CHALLENGE,		"CHALL") \
401b54a134aSDavid Howells 	EM(RXRPC_PACKET_TYPE_RESPONSE,		"RESP") \
402b54a134aSDavid Howells 	EM(RXRPC_PACKET_TYPE_DEBUG,		"DEBUG") \
403b54a134aSDavid Howells 	EM(9,					"?09") \
404b54a134aSDavid Howells 	EM(10,					"?10") \
405b54a134aSDavid Howells 	EM(11,					"?11") \
406b54a134aSDavid Howells 	EM(12,					"?12") \
407b54a134aSDavid Howells 	EM(RXRPC_PACKET_TYPE_VERSION,		"VERSION") \
408b54a134aSDavid Howells 	EM(14,					"?14") \
409b54a134aSDavid Howells 	E_(15,					"?15")
410b54a134aSDavid Howells 
411b54a134aSDavid Howells #define rxrpc_ack_names \
412b54a134aSDavid Howells 	EM(0,					"-0-") \
413b54a134aSDavid Howells 	EM(RXRPC_ACK_REQUESTED,			"REQ") \
414b54a134aSDavid Howells 	EM(RXRPC_ACK_DUPLICATE,			"DUP") \
415b54a134aSDavid Howells 	EM(RXRPC_ACK_OUT_OF_SEQUENCE,		"OOS") \
416b54a134aSDavid Howells 	EM(RXRPC_ACK_EXCEEDS_WINDOW,		"WIN") \
417b54a134aSDavid Howells 	EM(RXRPC_ACK_NOSPACE,			"MEM") \
418b54a134aSDavid Howells 	EM(RXRPC_ACK_PING,			"PNG") \
419b54a134aSDavid Howells 	EM(RXRPC_ACK_PING_RESPONSE,		"PNR") \
420b54a134aSDavid Howells 	EM(RXRPC_ACK_DELAY,			"DLY") \
421b54a134aSDavid Howells 	EM(RXRPC_ACK_IDLE,			"IDL") \
422b54a134aSDavid Howells 	E_(RXRPC_ACK__INVALID,			"-?-")
423b54a134aSDavid Howells 
4241bae5d22SDavid Howells #define rxrpc_completions \
4251bae5d22SDavid Howells 	EM(RXRPC_CALL_SUCCEEDED,		"Succeeded") \
4261bae5d22SDavid Howells 	EM(RXRPC_CALL_REMOTELY_ABORTED,		"RemoteAbort") \
4271bae5d22SDavid Howells 	EM(RXRPC_CALL_LOCALLY_ABORTED,		"LocalAbort") \
4281bae5d22SDavid Howells 	EM(RXRPC_CALL_LOCAL_ERROR,		"LocalError") \
4291bae5d22SDavid Howells 	E_(RXRPC_CALL_NETWORK_ERROR,		"NetError")
4301bae5d22SDavid Howells 
4314764c0daSDavid Howells #define rxrpc_tx_points \
4324764c0daSDavid Howells 	EM(rxrpc_tx_point_call_abort,		"CallAbort") \
4334764c0daSDavid Howells 	EM(rxrpc_tx_point_call_ack,		"CallAck") \
4344764c0daSDavid Howells 	EM(rxrpc_tx_point_call_data_frag,	"CallDataFrag") \
4354764c0daSDavid Howells 	EM(rxrpc_tx_point_call_data_nofrag,	"CallDataNofrag") \
4364764c0daSDavid Howells 	EM(rxrpc_tx_point_call_final_resend,	"CallFinalResend") \
4374764c0daSDavid Howells 	EM(rxrpc_tx_point_conn_abort,		"ConnAbort") \
4384764c0daSDavid Howells 	EM(rxrpc_tx_point_reject,		"Reject") \
4394764c0daSDavid Howells 	EM(rxrpc_tx_point_rxkad_challenge,	"RxkadChall") \
4404764c0daSDavid Howells 	EM(rxrpc_tx_point_rxkad_response,	"RxkadResp") \
4414764c0daSDavid Howells 	EM(rxrpc_tx_point_version_keepalive,	"VerKeepalive") \
4424764c0daSDavid Howells 	E_(rxrpc_tx_point_version_reply,	"VerReply")
4436b47fe1dSDavid Howells 
4444d843be5SDavid Howells #define rxrpc_req_ack_traces \
4454d843be5SDavid Howells 	EM(rxrpc_reqack_ack_lost,		"ACK-LOST  ")	\
4464d843be5SDavid Howells 	EM(rxrpc_reqack_already_on,		"ALREADY-ON")	\
4474d843be5SDavid Howells 	EM(rxrpc_reqack_more_rtt,		"MORE-RTT  ")	\
4484d843be5SDavid Howells 	EM(rxrpc_reqack_no_srv_last,		"NO-SRVLAST")	\
4494d843be5SDavid Howells 	EM(rxrpc_reqack_old_rtt,		"OLD-RTT   ")	\
4504d843be5SDavid Howells 	EM(rxrpc_reqack_retrans,		"RETRANS   ")	\
4514d843be5SDavid Howells 	EM(rxrpc_reqack_slow_start,		"SLOW-START")	\
4524d843be5SDavid Howells 	E_(rxrpc_reqack_small_txwin,		"SMALL-TXWN")
453f7fa5242SDavid Howells /* ---- Must update size of stat_why_req_ack[] if more are added! */
4544d843be5SDavid Howells 
45502a19356SDavid Howells #define rxrpc_txbuf_traces \
45602a19356SDavid Howells 	EM(rxrpc_txbuf_alloc_ack,		"ALLOC ACK  ")	\
45702a19356SDavid Howells 	EM(rxrpc_txbuf_alloc_data,		"ALLOC DATA ")	\
45802a19356SDavid Howells 	EM(rxrpc_txbuf_free,			"FREE       ")	\
459a4ea4c47SDavid Howells 	EM(rxrpc_txbuf_get_buffer,		"GET BUFFER ")	\
46002a19356SDavid Howells 	EM(rxrpc_txbuf_get_trans,		"GET TRANS  ")	\
46102a19356SDavid Howells 	EM(rxrpc_txbuf_get_retrans,		"GET RETRANS")	\
46272f0c6fbSDavid Howells 	EM(rxrpc_txbuf_put_ack_tx,		"PUT ACK TX ")	\
46302a19356SDavid Howells 	EM(rxrpc_txbuf_put_cleaned,		"PUT CLEANED")	\
46472f0c6fbSDavid Howells 	EM(rxrpc_txbuf_put_nomem,		"PUT NOMEM  ")	\
46502a19356SDavid Howells 	EM(rxrpc_txbuf_put_rotated,		"PUT ROTATED")	\
46602a19356SDavid Howells 	EM(rxrpc_txbuf_put_send_aborted,	"PUT SEND-X ")	\
467a4ea4c47SDavid Howells 	EM(rxrpc_txbuf_put_trans,		"PUT TRANS  ")	\
4683feda9d6SDavid Howells 	EM(rxrpc_txbuf_see_out_of_step,		"OUT-OF-STEP")	\
46902a19356SDavid Howells 	EM(rxrpc_txbuf_see_send_more,		"SEE SEND+  ")	\
47002a19356SDavid Howells 	E_(rxrpc_txbuf_see_unacked,		"SEE UNACKED")
47102a19356SDavid Howells 
472b54a134aSDavid Howells /*
473dc9fd093SDavid Howells  * Generate enums for tracing information.
474dc9fd093SDavid Howells  */
475dc9fd093SDavid Howells #ifndef __NETFS_DECLARE_TRACE_ENUMS_ONCE_ONLY
476dc9fd093SDavid Howells #define __NETFS_DECLARE_TRACE_ENUMS_ONCE_ONLY
477dc9fd093SDavid Howells 
478dc9fd093SDavid Howells #undef EM
479dc9fd093SDavid Howells #undef E_
480dc9fd093SDavid Howells #define EM(a, b) a,
481dc9fd093SDavid Howells #define E_(a, b) a
482dc9fd093SDavid Howells 
483*57af281eSDavid Howells enum rxrpc_abort_reason		{ rxrpc_abort_reasons } __mode(byte);
484fa3492abSDavid Howells enum rxrpc_bundle_trace		{ rxrpc_bundle_traces } __mode(byte);
48515f661dcSDavid Howells enum rxrpc_call_poke_trace	{ rxrpc_call_poke_traces } __mode(byte);
486dc9fd093SDavid Howells enum rxrpc_call_trace		{ rxrpc_call_traces } __mode(byte);
487dc9fd093SDavid Howells enum rxrpc_client_trace		{ rxrpc_client_traces } __mode(byte);
488dc9fd093SDavid Howells enum rxrpc_congest_change	{ rxrpc_congest_changes } __mode(byte);
489dc9fd093SDavid Howells enum rxrpc_conn_trace		{ rxrpc_conn_traces } __mode(byte);
490dc9fd093SDavid Howells enum rxrpc_local_trace		{ rxrpc_local_traces } __mode(byte);
491dc9fd093SDavid Howells enum rxrpc_peer_trace		{ rxrpc_peer_traces } __mode(byte);
492dc9fd093SDavid Howells enum rxrpc_propose_ack_outcome	{ rxrpc_propose_ack_outcomes } __mode(byte);
493dc9fd093SDavid Howells enum rxrpc_propose_ack_trace	{ rxrpc_propose_ack_traces } __mode(byte);
494dc9fd093SDavid Howells enum rxrpc_receive_trace	{ rxrpc_receive_traces } __mode(byte);
495dc9fd093SDavid Howells enum rxrpc_recvmsg_trace	{ rxrpc_recvmsg_traces } __mode(byte);
4964d843be5SDavid Howells enum rxrpc_req_ack_trace	{ rxrpc_req_ack_traces } __mode(byte);
497dc9fd093SDavid Howells enum rxrpc_rtt_rx_trace		{ rxrpc_rtt_rx_traces } __mode(byte);
498dc9fd093SDavid Howells enum rxrpc_rtt_tx_trace		{ rxrpc_rtt_tx_traces } __mode(byte);
499dc9fd093SDavid Howells enum rxrpc_skb_trace		{ rxrpc_skb_traces } __mode(byte);
500dc9fd093SDavid Howells enum rxrpc_timer_trace		{ rxrpc_timer_traces } __mode(byte);
501dc9fd093SDavid Howells enum rxrpc_tx_point		{ rxrpc_tx_points } __mode(byte);
50202a19356SDavid Howells enum rxrpc_txbuf_trace		{ rxrpc_txbuf_traces } __mode(byte);
503a4ea4c47SDavid Howells enum rxrpc_txqueue_trace	{ rxrpc_txqueue_traces } __mode(byte);
504dc9fd093SDavid Howells 
505dc9fd093SDavid Howells #endif /* end __RXRPC_DECLARE_TRACE_ENUMS_ONCE_ONLY */
506dc9fd093SDavid Howells 
507dc9fd093SDavid Howells /*
508b54a134aSDavid Howells  * Export enum symbols via userspace.
509b54a134aSDavid Howells  */
510b54a134aSDavid Howells #undef EM
511b54a134aSDavid Howells #undef E_
512*57af281eSDavid Howells 
513*57af281eSDavid Howells #ifndef RXRPC_TRACE_ONLY_DEFINE_ENUMS
514*57af281eSDavid Howells 
515b54a134aSDavid Howells #define EM(a, b) TRACE_DEFINE_ENUM(a);
516b54a134aSDavid Howells #define E_(a, b) TRACE_DEFINE_ENUM(a);
517b54a134aSDavid Howells 
518*57af281eSDavid Howells rxrpc_abort_reasons;
519fa3492abSDavid Howells rxrpc_bundle_traces;
52015f661dcSDavid Howells rxrpc_call_poke_traces;
521b54a134aSDavid Howells rxrpc_call_traces;
522dc9fd093SDavid Howells rxrpc_client_traces;
523dc9fd093SDavid Howells rxrpc_congest_changes;
524dc9fd093SDavid Howells rxrpc_congest_modes;
525dc9fd093SDavid Howells rxrpc_conn_traces;
526dc9fd093SDavid Howells rxrpc_local_traces;
527dc9fd093SDavid Howells rxrpc_propose_ack_traces;
528b54a134aSDavid Howells rxrpc_receive_traces;
529b54a134aSDavid Howells rxrpc_recvmsg_traces;
5304d843be5SDavid Howells rxrpc_req_ack_traces;
531b54a134aSDavid Howells rxrpc_rtt_rx_traces;
532dc9fd093SDavid Howells rxrpc_rtt_tx_traces;
533dc9fd093SDavid Howells rxrpc_skb_traces;
534b54a134aSDavid Howells rxrpc_timer_traces;
5354764c0daSDavid Howells rxrpc_tx_points;
53602a19356SDavid Howells rxrpc_txbuf_traces;
537a4ea4c47SDavid Howells rxrpc_txqueue_traces;
538b54a134aSDavid Howells 
539b54a134aSDavid Howells /*
540b54a134aSDavid Howells  * Now redefine the EM() and E_() macros to map the enums to the strings that
541b54a134aSDavid Howells  * will be printed in the output.
542b54a134aSDavid Howells  */
543b54a134aSDavid Howells #undef EM
544b54a134aSDavid Howells #undef E_
545b54a134aSDavid Howells #define EM(a, b)	{ a, b },
546b54a134aSDavid Howells #define E_(a, b)	{ a, b }
547b54a134aSDavid Howells 
54809d2bf59SDavid Howells TRACE_EVENT(rxrpc_local,
54906d9532fSDavid Howells 	    TP_PROTO(unsigned int local_debug_id, enum rxrpc_local_trace op,
5500fde882fSDavid Howells 		     int ref, int usage),
55109d2bf59SDavid Howells 
5520fde882fSDavid Howells 	    TP_ARGS(local_debug_id, op, ref, usage),
55309d2bf59SDavid Howells 
55409d2bf59SDavid Howells 	    TP_STRUCT__entry(
55509d2bf59SDavid Howells 		    __field(unsigned int,	local		)
55609d2bf59SDavid Howells 		    __field(int,		op		)
5570fde882fSDavid Howells 		    __field(int,		ref		)
55809d2bf59SDavid Howells 		    __field(int,		usage		)
55909d2bf59SDavid Howells 			     ),
56009d2bf59SDavid Howells 
56109d2bf59SDavid Howells 	    TP_fast_assign(
56206d9532fSDavid Howells 		    __entry->local = local_debug_id;
56309d2bf59SDavid Howells 		    __entry->op = op;
5640fde882fSDavid Howells 		    __entry->ref = ref;
56509d2bf59SDavid Howells 		    __entry->usage = usage;
56609d2bf59SDavid Howells 			   ),
56709d2bf59SDavid Howells 
5680fde882fSDavid Howells 	    TP_printk("L=%08x %s r=%d u=%d",
56909d2bf59SDavid Howells 		      __entry->local,
57009d2bf59SDavid Howells 		      __print_symbolic(__entry->op, rxrpc_local_traces),
5710fde882fSDavid Howells 		      __entry->ref,
5720fde882fSDavid Howells 		      __entry->usage)
57309d2bf59SDavid Howells 	    );
57409d2bf59SDavid Howells 
5751159d4b4SDavid Howells TRACE_EVENT(rxrpc_peer,
57647c810a7SDavid Howells 	    TP_PROTO(unsigned int peer_debug_id, int ref, enum rxrpc_peer_trace why),
5771159d4b4SDavid Howells 
57847c810a7SDavid Howells 	    TP_ARGS(peer_debug_id, ref, why),
5791159d4b4SDavid Howells 
5801159d4b4SDavid Howells 	    TP_STRUCT__entry(
5811159d4b4SDavid Howells 		    __field(unsigned int,	peer		)
58247c810a7SDavid Howells 		    __field(int,		ref		)
583c838f1a7SDavid Howells 		    __field(enum rxrpc_peer_trace, why		)
5841159d4b4SDavid Howells 			     ),
5851159d4b4SDavid Howells 
5861159d4b4SDavid Howells 	    TP_fast_assign(
58755f6c98eSDavid Howells 		    __entry->peer = peer_debug_id;
58847c810a7SDavid Howells 		    __entry->ref = ref;
58947c810a7SDavid Howells 		    __entry->why = why;
5901159d4b4SDavid Howells 			   ),
5911159d4b4SDavid Howells 
59247c810a7SDavid Howells 	    TP_printk("P=%08x %s r=%d",
5931159d4b4SDavid Howells 		      __entry->peer,
59447c810a7SDavid Howells 		      __print_symbolic(__entry->why, rxrpc_peer_traces),
59547c810a7SDavid Howells 		      __entry->ref)
5961159d4b4SDavid Howells 	    );
5971159d4b4SDavid Howells 
598fa3492abSDavid Howells TRACE_EVENT(rxrpc_bundle,
599fa3492abSDavid Howells 	    TP_PROTO(unsigned int bundle_debug_id, int ref, enum rxrpc_bundle_trace why),
600fa3492abSDavid Howells 
601fa3492abSDavid Howells 	    TP_ARGS(bundle_debug_id, ref, why),
602fa3492abSDavid Howells 
603fa3492abSDavid Howells 	    TP_STRUCT__entry(
604fa3492abSDavid Howells 		    __field(unsigned int,	bundle		)
605fa3492abSDavid Howells 		    __field(int,		ref		)
606fa3492abSDavid Howells 		    __field(int,		why		)
607fa3492abSDavid Howells 			     ),
608fa3492abSDavid Howells 
609fa3492abSDavid Howells 	    TP_fast_assign(
610fa3492abSDavid Howells 		    __entry->bundle = bundle_debug_id;
611fa3492abSDavid Howells 		    __entry->ref = ref;
612fa3492abSDavid Howells 		    __entry->why = why;
613fa3492abSDavid Howells 			   ),
614fa3492abSDavid Howells 
615fa3492abSDavid Howells 	    TP_printk("CB=%08x %s r=%d",
616fa3492abSDavid Howells 		      __entry->bundle,
617fa3492abSDavid Howells 		      __print_symbolic(__entry->why, rxrpc_bundle_traces),
618fa3492abSDavid Howells 		      __entry->ref)
619fa3492abSDavid Howells 	    );
620fa3492abSDavid Howells 
621363deeabSDavid Howells TRACE_EVENT(rxrpc_conn,
6227fa25105SDavid Howells 	    TP_PROTO(unsigned int conn_debug_id, int ref, enum rxrpc_conn_trace why),
623363deeabSDavid Howells 
6247fa25105SDavid Howells 	    TP_ARGS(conn_debug_id, ref, why),
625363deeabSDavid Howells 
626363deeabSDavid Howells 	    TP_STRUCT__entry(
627a25e21f0SDavid Howells 		    __field(unsigned int,	conn		)
6287fa25105SDavid Howells 		    __field(int,		ref		)
6297fa25105SDavid Howells 		    __field(int,		why		)
630363deeabSDavid Howells 			     ),
631363deeabSDavid Howells 
632363deeabSDavid Howells 	    TP_fast_assign(
6334c1295dcSDavid Howells 		    __entry->conn = conn_debug_id;
6347fa25105SDavid Howells 		    __entry->ref = ref;
6357fa25105SDavid Howells 		    __entry->why = why;
636363deeabSDavid Howells 			   ),
637363deeabSDavid Howells 
6387fa25105SDavid Howells 	    TP_printk("C=%08x %s r=%d",
639363deeabSDavid Howells 		      __entry->conn,
6407fa25105SDavid Howells 		      __print_symbolic(__entry->why, rxrpc_conn_traces),
6417fa25105SDavid Howells 		      __entry->ref)
642363deeabSDavid Howells 	    );
643363deeabSDavid Howells 
644363deeabSDavid Howells TRACE_EVENT(rxrpc_client,
645363deeabSDavid Howells 	    TP_PROTO(struct rxrpc_connection *conn, int channel,
646363deeabSDavid Howells 		     enum rxrpc_client_trace op),
647363deeabSDavid Howells 
648363deeabSDavid Howells 	    TP_ARGS(conn, channel, op),
649363deeabSDavid Howells 
650363deeabSDavid Howells 	    TP_STRUCT__entry(
651a25e21f0SDavid Howells 		    __field(unsigned int,		conn		)
652363deeabSDavid Howells 		    __field(u32,			cid		)
653363deeabSDavid Howells 		    __field(int,			channel		)
654363deeabSDavid Howells 		    __field(int,			usage		)
655363deeabSDavid Howells 		    __field(enum rxrpc_client_trace,	op		)
656363deeabSDavid Howells 			     ),
657363deeabSDavid Howells 
658363deeabSDavid Howells 	    TP_fast_assign(
659245500d8SDavid Howells 		    __entry->conn = conn ? conn->debug_id : 0;
660363deeabSDavid Howells 		    __entry->channel = channel;
661a0575429SDavid Howells 		    __entry->usage = conn ? refcount_read(&conn->ref) : -2;
662363deeabSDavid Howells 		    __entry->op = op;
66396a9c425SDavid Howells 		    __entry->cid = conn ? conn->proto.cid : 0;
664363deeabSDavid Howells 			   ),
665363deeabSDavid Howells 
666245500d8SDavid Howells 	    TP_printk("C=%08x h=%2d %s i=%08x u=%d",
667363deeabSDavid Howells 		      __entry->conn,
668363deeabSDavid Howells 		      __entry->channel,
669b54a134aSDavid Howells 		      __print_symbolic(__entry->op, rxrpc_client_traces),
670363deeabSDavid Howells 		      __entry->cid,
671363deeabSDavid Howells 		      __entry->usage)
672363deeabSDavid Howells 	    );
673363deeabSDavid Howells 
674e34d4234SDavid Howells TRACE_EVENT(rxrpc_call,
675cb0fc0c9SDavid Howells 	    TP_PROTO(unsigned int call_debug_id, int ref, unsigned long aux,
676cb0fc0c9SDavid Howells 		     enum rxrpc_call_trace why),
677e34d4234SDavid Howells 
678cb0fc0c9SDavid Howells 	    TP_ARGS(call_debug_id, ref, aux, why),
679e34d4234SDavid Howells 
680e34d4234SDavid Howells 	    TP_STRUCT__entry(
681a25e21f0SDavid Howells 		    __field(unsigned int,		call		)
682cb0fc0c9SDavid Howells 		    __field(int,			ref		)
683cb0fc0c9SDavid Howells 		    __field(int,			why		)
684cb0fc0c9SDavid Howells 		    __field(unsigned long,		aux		)
685e34d4234SDavid Howells 			     ),
686e34d4234SDavid Howells 
687e34d4234SDavid Howells 	    TP_fast_assign(
68848c9e0ecSDavid Howells 		    __entry->call = call_debug_id;
689cb0fc0c9SDavid Howells 		    __entry->ref = ref;
690cb0fc0c9SDavid Howells 		    __entry->why = why;
691e34d4234SDavid Howells 		    __entry->aux = aux;
692e34d4234SDavid Howells 			   ),
693e34d4234SDavid Howells 
694cb0fc0c9SDavid Howells 	    TP_printk("c=%08x %s r=%d a=%lx",
695e34d4234SDavid Howells 		      __entry->call,
696cb0fc0c9SDavid Howells 		      __print_symbolic(__entry->why, rxrpc_call_traces),
697cb0fc0c9SDavid Howells 		      __entry->ref,
698e34d4234SDavid Howells 		      __entry->aux)
699e34d4234SDavid Howells 	    );
700e34d4234SDavid Howells 
701df844fd4SDavid Howells TRACE_EVENT(rxrpc_skb,
7029a36a6bcSDavid Howells 	    TP_PROTO(struct sk_buff *skb, int usage, int mod_count,
7039a36a6bcSDavid Howells 		     enum rxrpc_skb_trace why),
704df844fd4SDavid Howells 
7059a36a6bcSDavid Howells 	    TP_ARGS(skb, usage, mod_count, why),
706df844fd4SDavid Howells 
707df844fd4SDavid Howells 	    TP_STRUCT__entry(
708df844fd4SDavid Howells 		    __field(struct sk_buff *,		skb		)
709df844fd4SDavid Howells 		    __field(int,			usage		)
710df844fd4SDavid Howells 		    __field(int,			mod_count	)
7119a36a6bcSDavid Howells 		    __field(enum rxrpc_skb_trace,	why		)
712df844fd4SDavid Howells 			     ),
713df844fd4SDavid Howells 
714df844fd4SDavid Howells 	    TP_fast_assign(
715df844fd4SDavid Howells 		    __entry->skb = skb;
716df844fd4SDavid Howells 		    __entry->usage = usage;
717df844fd4SDavid Howells 		    __entry->mod_count = mod_count;
7189a36a6bcSDavid Howells 		    __entry->why = why;
719df844fd4SDavid Howells 			   ),
720df844fd4SDavid Howells 
7219a36a6bcSDavid Howells 	    TP_printk("s=%p Rx %s u=%d m=%d",
722df844fd4SDavid Howells 		      __entry->skb,
7239a36a6bcSDavid Howells 		      __print_symbolic(__entry->why, rxrpc_skb_traces),
724df844fd4SDavid Howells 		      __entry->usage,
7259a36a6bcSDavid Howells 		      __entry->mod_count)
726df844fd4SDavid Howells 	    );
727df844fd4SDavid Howells 
72849e19ec7SDavid Howells TRACE_EVENT(rxrpc_rx_packet,
72949e19ec7SDavid Howells 	    TP_PROTO(struct rxrpc_skb_priv *sp),
73049e19ec7SDavid Howells 
73149e19ec7SDavid Howells 	    TP_ARGS(sp),
73249e19ec7SDavid Howells 
73349e19ec7SDavid Howells 	    TP_STRUCT__entry(
73449e19ec7SDavid Howells 		    __field_struct(struct rxrpc_host_header,	hdr		)
73549e19ec7SDavid Howells 			     ),
73649e19ec7SDavid Howells 
73749e19ec7SDavid Howells 	    TP_fast_assign(
73849e19ec7SDavid Howells 		    memcpy(&__entry->hdr, &sp->hdr, sizeof(__entry->hdr));
73949e19ec7SDavid Howells 			   ),
74049e19ec7SDavid Howells 
741a3868bfcSDavid Howells 	    TP_printk("%08x:%08x:%08x:%04x %08x %08x %02x %02x %s",
74249e19ec7SDavid Howells 		      __entry->hdr.epoch, __entry->hdr.cid,
74349e19ec7SDavid Howells 		      __entry->hdr.callNumber, __entry->hdr.serviceId,
74449e19ec7SDavid Howells 		      __entry->hdr.serial, __entry->hdr.seq,
745a3868bfcSDavid Howells 		      __entry->hdr.type, __entry->hdr.flags,
746b54a134aSDavid Howells 		      __entry->hdr.type <= 15 ?
747b54a134aSDavid Howells 		      __print_symbolic(__entry->hdr.type, rxrpc_pkts) : "?UNK")
74849e19ec7SDavid Howells 	    );
74949e19ec7SDavid Howells 
75049e19ec7SDavid Howells TRACE_EVENT(rxrpc_rx_done,
75149e19ec7SDavid Howells 	    TP_PROTO(int result, int abort_code),
75249e19ec7SDavid Howells 
75349e19ec7SDavid Howells 	    TP_ARGS(result, abort_code),
75449e19ec7SDavid Howells 
75549e19ec7SDavid Howells 	    TP_STRUCT__entry(
75649e19ec7SDavid Howells 		    __field(int,			result		)
75749e19ec7SDavid Howells 		    __field(int,			abort_code	)
75849e19ec7SDavid Howells 			     ),
75949e19ec7SDavid Howells 
76049e19ec7SDavid Howells 	    TP_fast_assign(
76149e19ec7SDavid Howells 		    __entry->result = result;
76249e19ec7SDavid Howells 		    __entry->abort_code = abort_code;
76349e19ec7SDavid Howells 			   ),
76449e19ec7SDavid Howells 
76549e19ec7SDavid Howells 	    TP_printk("r=%d a=%d", __entry->result, __entry->abort_code)
76649e19ec7SDavid Howells 	    );
76749e19ec7SDavid Howells 
7685a42976dSDavid Howells TRACE_EVENT(rxrpc_abort,
769*57af281eSDavid Howells 	    TP_PROTO(unsigned int call_nr, enum rxrpc_abort_reason why,
770*57af281eSDavid Howells 		     u32 cid, u32 call_id, rxrpc_seq_t seq, int abort_code, int error),
7715a42976dSDavid Howells 
772a25e21f0SDavid Howells 	    TP_ARGS(call_nr, why, cid, call_id, seq, abort_code, error),
7735a42976dSDavid Howells 
7745a42976dSDavid Howells 	    TP_STRUCT__entry(
775a25e21f0SDavid Howells 		    __field(unsigned int,		call_nr		)
776*57af281eSDavid Howells 		    __field(enum rxrpc_abort_reason,	why		)
7775a42976dSDavid Howells 		    __field(u32,			cid		)
7785a42976dSDavid Howells 		    __field(u32,			call_id		)
7795a42976dSDavid Howells 		    __field(rxrpc_seq_t,		seq		)
7805a42976dSDavid Howells 		    __field(int,			abort_code	)
7815a42976dSDavid Howells 		    __field(int,			error		)
7825a42976dSDavid Howells 			     ),
7835a42976dSDavid Howells 
7845a42976dSDavid Howells 	    TP_fast_assign(
785a25e21f0SDavid Howells 		    __entry->call_nr = call_nr;
786*57af281eSDavid Howells 		    __entry->why = why;
7875a42976dSDavid Howells 		    __entry->cid = cid;
7885a42976dSDavid Howells 		    __entry->call_id = call_id;
7895a42976dSDavid Howells 		    __entry->abort_code = abort_code;
7905a42976dSDavid Howells 		    __entry->error = error;
7915a42976dSDavid Howells 		    __entry->seq = seq;
7925a42976dSDavid Howells 			   ),
7935a42976dSDavid Howells 
794a25e21f0SDavid Howells 	    TP_printk("c=%08x %08x:%08x s=%u a=%d e=%d %s",
795a25e21f0SDavid Howells 		      __entry->call_nr,
7965a42976dSDavid Howells 		      __entry->cid, __entry->call_id, __entry->seq,
797*57af281eSDavid Howells 		      __entry->abort_code, __entry->error,
798*57af281eSDavid Howells 		      __print_symbolic(__entry->why, rxrpc_abort_reasons))
7995a42976dSDavid Howells 	    );
8005a42976dSDavid Howells 
8011bae5d22SDavid Howells TRACE_EVENT(rxrpc_call_complete,
8021bae5d22SDavid Howells 	    TP_PROTO(struct rxrpc_call *call),
8031bae5d22SDavid Howells 
8041bae5d22SDavid Howells 	    TP_ARGS(call),
8051bae5d22SDavid Howells 
8061bae5d22SDavid Howells 	    TP_STRUCT__entry(
8071bae5d22SDavid Howells 		    __field(unsigned int,		call		)
8081bae5d22SDavid Howells 		    __field(enum rxrpc_call_completion,	compl		)
8091bae5d22SDavid Howells 		    __field(int,			error		)
8101bae5d22SDavid Howells 		    __field(u32,			abort_code	)
8111bae5d22SDavid Howells 			     ),
8121bae5d22SDavid Howells 
8131bae5d22SDavid Howells 	    TP_fast_assign(
8141bae5d22SDavid Howells 		    __entry->call = call->debug_id;
8151bae5d22SDavid Howells 		    __entry->compl = call->completion;
8161bae5d22SDavid Howells 		    __entry->error = call->error;
8171bae5d22SDavid Howells 		    __entry->abort_code = call->abort_code;
8181bae5d22SDavid Howells 			   ),
8191bae5d22SDavid Howells 
8201bae5d22SDavid Howells 	    TP_printk("c=%08x %s r=%d ac=%d",
8211bae5d22SDavid Howells 		      __entry->call,
8221bae5d22SDavid Howells 		      __print_symbolic(__entry->compl, rxrpc_completions),
8231bae5d22SDavid Howells 		      __entry->error,
8241bae5d22SDavid Howells 		      __entry->abort_code)
8251bae5d22SDavid Howells 	    );
8261bae5d22SDavid Howells 
827a4ea4c47SDavid Howells TRACE_EVENT(rxrpc_txqueue,
828a4ea4c47SDavid Howells 	    TP_PROTO(struct rxrpc_call *call, enum rxrpc_txqueue_trace why),
829a124fe3eSDavid Howells 
830a124fe3eSDavid Howells 	    TP_ARGS(call, why),
831a124fe3eSDavid Howells 
832a124fe3eSDavid Howells 	    TP_STRUCT__entry(
833a25e21f0SDavid Howells 		    __field(unsigned int,		call		)
834a4ea4c47SDavid Howells 		    __field(enum rxrpc_txqueue_trace,	why		)
835a4ea4c47SDavid Howells 		    __field(rxrpc_seq_t,		acks_hard_ack	)
836a4ea4c47SDavid Howells 		    __field(rxrpc_seq_t,		tx_bottom	)
837a124fe3eSDavid Howells 		    __field(rxrpc_seq_t,		tx_top		)
838cf37b598SDavid Howells 		    __field(rxrpc_seq_t,		tx_prepared	)
839b1d9f7fdSDavid Howells 		    __field(int,			tx_winsize	)
840a124fe3eSDavid Howells 			     ),
841a124fe3eSDavid Howells 
842a124fe3eSDavid Howells 	    TP_fast_assign(
843a25e21f0SDavid Howells 		    __entry->call = call->debug_id;
844a124fe3eSDavid Howells 		    __entry->why = why;
845a4ea4c47SDavid Howells 		    __entry->acks_hard_ack = call->acks_hard_ack;
846a4ea4c47SDavid Howells 		    __entry->tx_bottom = call->tx_bottom;
847a124fe3eSDavid Howells 		    __entry->tx_top = call->tx_top;
848cf37b598SDavid Howells 		    __entry->tx_prepared = call->tx_prepared;
849b1d9f7fdSDavid Howells 		    __entry->tx_winsize = call->tx_winsize;
850a124fe3eSDavid Howells 			   ),
851a124fe3eSDavid Howells 
852cf37b598SDavid Howells 	    TP_printk("c=%08x %s f=%08x h=%08x n=%u/%u/%u/%u",
853a124fe3eSDavid Howells 		      __entry->call,
854a4ea4c47SDavid Howells 		      __print_symbolic(__entry->why, rxrpc_txqueue_traces),
855a4ea4c47SDavid Howells 		      __entry->tx_bottom,
856a4ea4c47SDavid Howells 		      __entry->acks_hard_ack,
857a4ea4c47SDavid Howells 		      __entry->tx_top - __entry->tx_bottom,
858a4ea4c47SDavid Howells 		      __entry->tx_top - __entry->acks_hard_ack,
859cf37b598SDavid Howells 		      __entry->tx_prepared - __entry->tx_bottom,
860b1d9f7fdSDavid Howells 		      __entry->tx_winsize)
861a124fe3eSDavid Howells 	    );
862a124fe3eSDavid Howells 
863b1d9f7fdSDavid Howells TRACE_EVENT(rxrpc_rx_data,
8644764c0daSDavid Howells 	    TP_PROTO(unsigned int call, rxrpc_seq_t seq,
865d4d02d8bSDavid Howells 		     rxrpc_serial_t serial, u8 flags),
866ec71eb9aSDavid Howells 
867d4d02d8bSDavid Howells 	    TP_ARGS(call, seq, serial, flags),
868ec71eb9aSDavid Howells 
869ec71eb9aSDavid Howells 	    TP_STRUCT__entry(
870a25e21f0SDavid Howells 		    __field(unsigned int,		call		)
871b1d9f7fdSDavid Howells 		    __field(rxrpc_seq_t,		seq		)
872b1d9f7fdSDavid Howells 		    __field(rxrpc_serial_t,		serial		)
873b1d9f7fdSDavid Howells 		    __field(u8,				flags		)
874b1d9f7fdSDavid Howells 			     ),
875b1d9f7fdSDavid Howells 
876b1d9f7fdSDavid Howells 	    TP_fast_assign(
8774764c0daSDavid Howells 		    __entry->call = call;
878b1d9f7fdSDavid Howells 		    __entry->seq = seq;
879b1d9f7fdSDavid Howells 		    __entry->serial = serial;
880b1d9f7fdSDavid Howells 		    __entry->flags = flags;
881b1d9f7fdSDavid Howells 			   ),
882b1d9f7fdSDavid Howells 
883d4d02d8bSDavid Howells 	    TP_printk("c=%08x DATA %08x q=%08x fl=%02x",
884b1d9f7fdSDavid Howells 		      __entry->call,
885b1d9f7fdSDavid Howells 		      __entry->serial,
886b1d9f7fdSDavid Howells 		      __entry->seq,
887d4d02d8bSDavid Howells 		      __entry->flags)
888b1d9f7fdSDavid Howells 	    );
889b1d9f7fdSDavid Howells 
890b1d9f7fdSDavid Howells TRACE_EVENT(rxrpc_rx_ack,
891b1d9f7fdSDavid Howells 	    TP_PROTO(struct rxrpc_call *call,
892b1d9f7fdSDavid Howells 		     rxrpc_serial_t serial, rxrpc_serial_t ack_serial,
893b1d9f7fdSDavid Howells 		     rxrpc_seq_t first, rxrpc_seq_t prev, u8 reason, u8 n_acks),
894b1d9f7fdSDavid Howells 
895b1d9f7fdSDavid Howells 	    TP_ARGS(call, serial, ack_serial, first, prev, reason, n_acks),
896b1d9f7fdSDavid Howells 
897b1d9f7fdSDavid Howells 	    TP_STRUCT__entry(
898a25e21f0SDavid Howells 		    __field(unsigned int,		call		)
899b1d9f7fdSDavid Howells 		    __field(rxrpc_serial_t,		serial		)
900b1d9f7fdSDavid Howells 		    __field(rxrpc_serial_t,		ack_serial	)
901ec71eb9aSDavid Howells 		    __field(rxrpc_seq_t,		first		)
902b1d9f7fdSDavid Howells 		    __field(rxrpc_seq_t,		prev		)
903ec71eb9aSDavid Howells 		    __field(u8,				reason		)
904ec71eb9aSDavid Howells 		    __field(u8,				n_acks		)
905ec71eb9aSDavid Howells 			     ),
906ec71eb9aSDavid Howells 
907ec71eb9aSDavid Howells 	    TP_fast_assign(
908a25e21f0SDavid Howells 		    __entry->call = call->debug_id;
909b1d9f7fdSDavid Howells 		    __entry->serial = serial;
910b1d9f7fdSDavid Howells 		    __entry->ack_serial = ack_serial;
911ec71eb9aSDavid Howells 		    __entry->first = first;
912b1d9f7fdSDavid Howells 		    __entry->prev = prev;
913ec71eb9aSDavid Howells 		    __entry->reason = reason;
914ec71eb9aSDavid Howells 		    __entry->n_acks = n_acks;
915ec71eb9aSDavid Howells 			   ),
916ec71eb9aSDavid Howells 
917a25e21f0SDavid Howells 	    TP_printk("c=%08x %08x %s r=%08x f=%08x p=%08x n=%u",
918ec71eb9aSDavid Howells 		      __entry->call,
919b1d9f7fdSDavid Howells 		      __entry->serial,
920b54a134aSDavid Howells 		      __print_symbolic(__entry->reason, rxrpc_ack_names),
921b1d9f7fdSDavid Howells 		      __entry->ack_serial,
922ec71eb9aSDavid Howells 		      __entry->first,
923b1d9f7fdSDavid Howells 		      __entry->prev,
924ec71eb9aSDavid Howells 		      __entry->n_acks)
925ec71eb9aSDavid Howells 	    );
926ec71eb9aSDavid Howells 
927005ede28SDavid Howells TRACE_EVENT(rxrpc_rx_abort,
928005ede28SDavid Howells 	    TP_PROTO(struct rxrpc_call *call, rxrpc_serial_t serial,
929005ede28SDavid Howells 		     u32 abort_code),
930005ede28SDavid Howells 
931005ede28SDavid Howells 	    TP_ARGS(call, serial, abort_code),
932005ede28SDavid Howells 
933005ede28SDavid Howells 	    TP_STRUCT__entry(
934a25e21f0SDavid Howells 		    __field(unsigned int,		call		)
935005ede28SDavid Howells 		    __field(rxrpc_serial_t,		serial		)
936005ede28SDavid Howells 		    __field(u32,			abort_code	)
937005ede28SDavid Howells 			     ),
938005ede28SDavid Howells 
939005ede28SDavid Howells 	    TP_fast_assign(
940a25e21f0SDavid Howells 		    __entry->call = call->debug_id;
941005ede28SDavid Howells 		    __entry->serial = serial;
942005ede28SDavid Howells 		    __entry->abort_code = abort_code;
943005ede28SDavid Howells 			   ),
944005ede28SDavid Howells 
945a25e21f0SDavid Howells 	    TP_printk("c=%08x ABORT %08x ac=%d",
946005ede28SDavid Howells 		      __entry->call,
947005ede28SDavid Howells 		      __entry->serial,
948005ede28SDavid Howells 		      __entry->abort_code)
949005ede28SDavid Howells 	    );
950005ede28SDavid Howells 
9512ebdb26eSDavid Howells TRACE_EVENT(rxrpc_rx_challenge,
9522ebdb26eSDavid Howells 	    TP_PROTO(struct rxrpc_connection *conn, rxrpc_serial_t serial,
9532ebdb26eSDavid Howells 		     u32 version, u32 nonce, u32 min_level),
9542ebdb26eSDavid Howells 
9552ebdb26eSDavid Howells 	    TP_ARGS(conn, serial, version, nonce, min_level),
9562ebdb26eSDavid Howells 
9572ebdb26eSDavid Howells 	    TP_STRUCT__entry(
9582ebdb26eSDavid Howells 		    __field(unsigned int,		conn		)
9592ebdb26eSDavid Howells 		    __field(rxrpc_serial_t,		serial		)
9602ebdb26eSDavid Howells 		    __field(u32,			version		)
9612ebdb26eSDavid Howells 		    __field(u32,			nonce		)
9622ebdb26eSDavid Howells 		    __field(u32,			min_level	)
9632ebdb26eSDavid Howells 			     ),
9642ebdb26eSDavid Howells 
9652ebdb26eSDavid Howells 	    TP_fast_assign(
9662ebdb26eSDavid Howells 		    __entry->conn = conn->debug_id;
9672ebdb26eSDavid Howells 		    __entry->serial = serial;
9682ebdb26eSDavid Howells 		    __entry->version = version;
9692ebdb26eSDavid Howells 		    __entry->nonce = nonce;
9702ebdb26eSDavid Howells 		    __entry->min_level = min_level;
9712ebdb26eSDavid Howells 			   ),
9722ebdb26eSDavid Howells 
9732ebdb26eSDavid Howells 	    TP_printk("C=%08x CHALLENGE %08x v=%x n=%x ml=%x",
9742ebdb26eSDavid Howells 		      __entry->conn,
9752ebdb26eSDavid Howells 		      __entry->serial,
9762ebdb26eSDavid Howells 		      __entry->version,
9772ebdb26eSDavid Howells 		      __entry->nonce,
9782ebdb26eSDavid Howells 		      __entry->min_level)
9792ebdb26eSDavid Howells 	    );
9802ebdb26eSDavid Howells 
9812ebdb26eSDavid Howells TRACE_EVENT(rxrpc_rx_response,
9822ebdb26eSDavid Howells 	    TP_PROTO(struct rxrpc_connection *conn, rxrpc_serial_t serial,
9832ebdb26eSDavid Howells 		     u32 version, u32 kvno, u32 ticket_len),
9842ebdb26eSDavid Howells 
9852ebdb26eSDavid Howells 	    TP_ARGS(conn, serial, version, kvno, ticket_len),
9862ebdb26eSDavid Howells 
9872ebdb26eSDavid Howells 	    TP_STRUCT__entry(
9882ebdb26eSDavid Howells 		    __field(unsigned int,		conn		)
9892ebdb26eSDavid Howells 		    __field(rxrpc_serial_t,		serial		)
9902ebdb26eSDavid Howells 		    __field(u32,			version		)
9912ebdb26eSDavid Howells 		    __field(u32,			kvno		)
9922ebdb26eSDavid Howells 		    __field(u32,			ticket_len	)
9932ebdb26eSDavid Howells 			     ),
9942ebdb26eSDavid Howells 
9952ebdb26eSDavid Howells 	    TP_fast_assign(
9962ebdb26eSDavid Howells 		    __entry->conn = conn->debug_id;
9972ebdb26eSDavid Howells 		    __entry->serial = serial;
9982ebdb26eSDavid Howells 		    __entry->version = version;
9992ebdb26eSDavid Howells 		    __entry->kvno = kvno;
10002ebdb26eSDavid Howells 		    __entry->ticket_len = ticket_len;
10012ebdb26eSDavid Howells 			   ),
10022ebdb26eSDavid Howells 
10032ebdb26eSDavid Howells 	    TP_printk("C=%08x RESPONSE %08x v=%x kvno=%x tl=%x",
10042ebdb26eSDavid Howells 		      __entry->conn,
10052ebdb26eSDavid Howells 		      __entry->serial,
10062ebdb26eSDavid Howells 		      __entry->version,
10072ebdb26eSDavid Howells 		      __entry->kvno,
10082ebdb26eSDavid Howells 		      __entry->ticket_len)
10092ebdb26eSDavid Howells 	    );
10102ebdb26eSDavid Howells 
1011740586d2SDavid Howells TRACE_EVENT(rxrpc_rx_rwind_change,
1012740586d2SDavid Howells 	    TP_PROTO(struct rxrpc_call *call, rxrpc_serial_t serial,
1013740586d2SDavid Howells 		     u32 rwind, bool wake),
1014740586d2SDavid Howells 
1015740586d2SDavid Howells 	    TP_ARGS(call, serial, rwind, wake),
1016740586d2SDavid Howells 
1017740586d2SDavid Howells 	    TP_STRUCT__entry(
1018a25e21f0SDavid Howells 		    __field(unsigned int,		call		)
1019740586d2SDavid Howells 		    __field(rxrpc_serial_t,		serial		)
1020740586d2SDavid Howells 		    __field(u32,			rwind		)
1021740586d2SDavid Howells 		    __field(bool,			wake		)
1022740586d2SDavid Howells 			     ),
1023740586d2SDavid Howells 
1024740586d2SDavid Howells 	    TP_fast_assign(
1025a25e21f0SDavid Howells 		    __entry->call = call->debug_id;
1026740586d2SDavid Howells 		    __entry->serial = serial;
1027740586d2SDavid Howells 		    __entry->rwind = rwind;
1028740586d2SDavid Howells 		    __entry->wake = wake;
1029740586d2SDavid Howells 			   ),
1030740586d2SDavid Howells 
1031a25e21f0SDavid Howells 	    TP_printk("c=%08x %08x rw=%u%s",
1032740586d2SDavid Howells 		      __entry->call,
1033740586d2SDavid Howells 		      __entry->serial,
1034740586d2SDavid Howells 		      __entry->rwind,
1035740586d2SDavid Howells 		      __entry->wake ? " wake" : "")
1036740586d2SDavid Howells 	    );
1037740586d2SDavid Howells 
10384764c0daSDavid Howells TRACE_EVENT(rxrpc_tx_packet,
10394764c0daSDavid Howells 	    TP_PROTO(unsigned int call_id, struct rxrpc_wire_header *whdr,
10404764c0daSDavid Howells 		     enum rxrpc_tx_point where),
10414764c0daSDavid Howells 
10424764c0daSDavid Howells 	    TP_ARGS(call_id, whdr, where),
10434764c0daSDavid Howells 
10444764c0daSDavid Howells 	    TP_STRUCT__entry(
10454764c0daSDavid Howells 		    __field(unsigned int,			call	)
10464764c0daSDavid Howells 		    __field(enum rxrpc_tx_point,		where	)
10474764c0daSDavid Howells 		    __field_struct(struct rxrpc_wire_header,	whdr	)
10484764c0daSDavid Howells 			     ),
10494764c0daSDavid Howells 
10504764c0daSDavid Howells 	    TP_fast_assign(
10514764c0daSDavid Howells 		    __entry->call = call_id;
10524764c0daSDavid Howells 		    memcpy(&__entry->whdr, whdr, sizeof(__entry->whdr));
10534e2abd3cSDavid Howells 		    __entry->where = where;
10544764c0daSDavid Howells 			   ),
10554764c0daSDavid Howells 
10564764c0daSDavid Howells 	    TP_printk("c=%08x %08x:%08x:%08x:%04x %08x %08x %02x %02x %s %s",
10574764c0daSDavid Howells 		      __entry->call,
10584764c0daSDavid Howells 		      ntohl(__entry->whdr.epoch),
10594764c0daSDavid Howells 		      ntohl(__entry->whdr.cid),
10604764c0daSDavid Howells 		      ntohl(__entry->whdr.callNumber),
10614764c0daSDavid Howells 		      ntohs(__entry->whdr.serviceId),
10624764c0daSDavid Howells 		      ntohl(__entry->whdr.serial),
10634764c0daSDavid Howells 		      ntohl(__entry->whdr.seq),
10644764c0daSDavid Howells 		      __entry->whdr.type, __entry->whdr.flags,
10654764c0daSDavid Howells 		      __entry->whdr.type <= 15 ?
10664764c0daSDavid Howells 		      __print_symbolic(__entry->whdr.type, rxrpc_pkts) : "?UNK",
10674764c0daSDavid Howells 		      __print_symbolic(__entry->where, rxrpc_tx_points))
10684764c0daSDavid Howells 	    );
10694764c0daSDavid Howells 
1070be832aecSDavid Howells TRACE_EVENT(rxrpc_tx_data,
1071be832aecSDavid Howells 	    TP_PROTO(struct rxrpc_call *call, rxrpc_seq_t seq,
1072a1767077SDavid Howells 		     rxrpc_serial_t serial, u8 flags, bool retrans, bool lose),
1073f3639df2SDavid Howells 
1074a1767077SDavid Howells 	    TP_ARGS(call, seq, serial, flags, retrans, lose),
1075f3639df2SDavid Howells 
1076f3639df2SDavid Howells 	    TP_STRUCT__entry(
1077a25e21f0SDavid Howells 		    __field(unsigned int,		call		)
1078be832aecSDavid Howells 		    __field(rxrpc_seq_t,		seq		)
1079f3639df2SDavid Howells 		    __field(rxrpc_serial_t,		serial		)
10804764c0daSDavid Howells 		    __field(u32,			cid		)
10814764c0daSDavid Howells 		    __field(u32,			call_id		)
1082be832aecSDavid Howells 		    __field(u8,				flags		)
1083a1767077SDavid Howells 		    __field(bool,			retrans		)
1084be832aecSDavid Howells 		    __field(bool,			lose		)
1085be832aecSDavid Howells 			     ),
1086be832aecSDavid Howells 
1087be832aecSDavid Howells 	    TP_fast_assign(
1088a25e21f0SDavid Howells 		    __entry->call = call->debug_id;
10894764c0daSDavid Howells 		    __entry->cid = call->cid;
10904764c0daSDavid Howells 		    __entry->call_id = call->call_id;
1091be832aecSDavid Howells 		    __entry->seq = seq;
1092be832aecSDavid Howells 		    __entry->serial = serial;
1093be832aecSDavid Howells 		    __entry->flags = flags;
1094a1767077SDavid Howells 		    __entry->retrans = retrans;
1095be832aecSDavid Howells 		    __entry->lose = lose;
1096be832aecSDavid Howells 			   ),
1097be832aecSDavid Howells 
10984764c0daSDavid Howells 	    TP_printk("c=%08x DATA %08x:%08x %08x q=%08x fl=%02x%s%s",
1099be832aecSDavid Howells 		      __entry->call,
11004764c0daSDavid Howells 		      __entry->cid,
11014764c0daSDavid Howells 		      __entry->call_id,
1102be832aecSDavid Howells 		      __entry->serial,
1103be832aecSDavid Howells 		      __entry->seq,
1104be832aecSDavid Howells 		      __entry->flags,
1105265a44bbSDavid Howells 		      __entry->retrans ? " *RETRANS*" : "",
1106be832aecSDavid Howells 		      __entry->lose ? " *LOSE*" : "")
1107be832aecSDavid Howells 	    );
1108be832aecSDavid Howells 
1109be832aecSDavid Howells TRACE_EVENT(rxrpc_tx_ack,
11104764c0daSDavid Howells 	    TP_PROTO(unsigned int call, rxrpc_serial_t serial,
1111be832aecSDavid Howells 		     rxrpc_seq_t ack_first, rxrpc_serial_t ack_serial,
1112be832aecSDavid Howells 		     u8 reason, u8 n_acks),
1113be832aecSDavid Howells 
1114be832aecSDavid Howells 	    TP_ARGS(call, serial, ack_first, ack_serial, reason, n_acks),
1115be832aecSDavid Howells 
1116be832aecSDavid Howells 	    TP_STRUCT__entry(
1117a25e21f0SDavid Howells 		    __field(unsigned int,		call		)
1118be832aecSDavid Howells 		    __field(rxrpc_serial_t,		serial		)
1119be832aecSDavid Howells 		    __field(rxrpc_seq_t,		ack_first	)
1120be832aecSDavid Howells 		    __field(rxrpc_serial_t,		ack_serial	)
1121f3639df2SDavid Howells 		    __field(u8,				reason		)
1122f3639df2SDavid Howells 		    __field(u8,				n_acks		)
1123f3639df2SDavid Howells 			     ),
1124f3639df2SDavid Howells 
1125f3639df2SDavid Howells 	    TP_fast_assign(
11264764c0daSDavid Howells 		    __entry->call = call;
1127f3639df2SDavid Howells 		    __entry->serial = serial;
1128be832aecSDavid Howells 		    __entry->ack_first = ack_first;
1129be832aecSDavid Howells 		    __entry->ack_serial = ack_serial;
1130f3639df2SDavid Howells 		    __entry->reason = reason;
1131f3639df2SDavid Howells 		    __entry->n_acks = n_acks;
1132f3639df2SDavid Howells 			   ),
1133f3639df2SDavid Howells 
1134a25e21f0SDavid Howells 	    TP_printk(" c=%08x ACK  %08x %s f=%08x r=%08x n=%u",
1135f3639df2SDavid Howells 		      __entry->call,
1136f3639df2SDavid Howells 		      __entry->serial,
1137b54a134aSDavid Howells 		      __print_symbolic(__entry->reason, rxrpc_ack_names),
1138be832aecSDavid Howells 		      __entry->ack_first,
1139be832aecSDavid Howells 		      __entry->ack_serial,
1140f3639df2SDavid Howells 		      __entry->n_acks)
1141f3639df2SDavid Howells 	    );
1142f3639df2SDavid Howells 
114358dc63c9SDavid Howells TRACE_EVENT(rxrpc_receive,
114458dc63c9SDavid Howells 	    TP_PROTO(struct rxrpc_call *call, enum rxrpc_receive_trace why,
114558dc63c9SDavid Howells 		     rxrpc_serial_t serial, rxrpc_seq_t seq),
114658dc63c9SDavid Howells 
114758dc63c9SDavid Howells 	    TP_ARGS(call, why, serial, seq),
114858dc63c9SDavid Howells 
114958dc63c9SDavid Howells 	    TP_STRUCT__entry(
1150a25e21f0SDavid Howells 		    __field(unsigned int,		call		)
115158dc63c9SDavid Howells 		    __field(enum rxrpc_receive_trace,	why		)
115258dc63c9SDavid Howells 		    __field(rxrpc_serial_t,		serial		)
115358dc63c9SDavid Howells 		    __field(rxrpc_seq_t,		seq		)
11545d7edbc9SDavid Howells 		    __field(u64,			window		)
115558dc63c9SDavid Howells 			     ),
115658dc63c9SDavid Howells 
115758dc63c9SDavid Howells 	    TP_fast_assign(
1158a25e21f0SDavid Howells 		    __entry->call = call->debug_id;
115958dc63c9SDavid Howells 		    __entry->why = why;
116058dc63c9SDavid Howells 		    __entry->serial = serial;
116158dc63c9SDavid Howells 		    __entry->seq = seq;
11625d7edbc9SDavid Howells 		    __entry->window = atomic64_read(&call->ackr_window);
116358dc63c9SDavid Howells 			   ),
116458dc63c9SDavid Howells 
1165a25e21f0SDavid Howells 	    TP_printk("c=%08x %s r=%08x q=%08x w=%08x-%08x",
116658dc63c9SDavid Howells 		      __entry->call,
1167b54a134aSDavid Howells 		      __print_symbolic(__entry->why, rxrpc_receive_traces),
116858dc63c9SDavid Howells 		      __entry->serial,
116958dc63c9SDavid Howells 		      __entry->seq,
11705d7edbc9SDavid Howells 		      lower_32_bits(__entry->window),
11715d7edbc9SDavid Howells 		      upper_32_bits(__entry->window))
117258dc63c9SDavid Howells 	    );
117358dc63c9SDavid Howells 
117484997905SDavid Howells TRACE_EVENT(rxrpc_recvmsg,
11750e50d999SDavid Howells 	    TP_PROTO(unsigned int call_debug_id, enum rxrpc_recvmsg_trace why,
1176faf92e8dSDavid Howells 		     int ret),
1177faf92e8dSDavid Howells 
11780e50d999SDavid Howells 	    TP_ARGS(call_debug_id, why, ret),
1179faf92e8dSDavid Howells 
1180faf92e8dSDavid Howells 	    TP_STRUCT__entry(
1181faf92e8dSDavid Howells 		    __field(unsigned int,		call		)
1182faf92e8dSDavid Howells 		    __field(enum rxrpc_recvmsg_trace,	why		)
1183faf92e8dSDavid Howells 		    __field(int,			ret		)
1184faf92e8dSDavid Howells 			     ),
1185faf92e8dSDavid Howells 
1186faf92e8dSDavid Howells 	    TP_fast_assign(
11870e50d999SDavid Howells 		    __entry->call = call_debug_id;
1188faf92e8dSDavid Howells 		    __entry->why = why;
1189faf92e8dSDavid Howells 		    __entry->ret = ret;
1190faf92e8dSDavid Howells 			   ),
1191faf92e8dSDavid Howells 
1192faf92e8dSDavid Howells 	    TP_printk("c=%08x %s ret=%d",
1193faf92e8dSDavid Howells 		      __entry->call,
1194faf92e8dSDavid Howells 		      __print_symbolic(__entry->why, rxrpc_recvmsg_traces),
1195faf92e8dSDavid Howells 		      __entry->ret)
1196faf92e8dSDavid Howells 	    );
1197faf92e8dSDavid Howells 
1198faf92e8dSDavid Howells TRACE_EVENT(rxrpc_recvdata,
1199faf92e8dSDavid Howells 	    TP_PROTO(struct rxrpc_call *call, enum rxrpc_recvmsg_trace why,
120084997905SDavid Howells 		     rxrpc_seq_t seq, unsigned int offset, unsigned int len,
120184997905SDavid Howells 		     int ret),
120284997905SDavid Howells 
120384997905SDavid Howells 	    TP_ARGS(call, why, seq, offset, len, ret),
120484997905SDavid Howells 
120584997905SDavid Howells 	    TP_STRUCT__entry(
1206a25e21f0SDavid Howells 		    __field(unsigned int,		call		)
120784997905SDavid Howells 		    __field(enum rxrpc_recvmsg_trace,	why		)
120884997905SDavid Howells 		    __field(rxrpc_seq_t,		seq		)
120984997905SDavid Howells 		    __field(unsigned int,		offset		)
121084997905SDavid Howells 		    __field(unsigned int,		len		)
121184997905SDavid Howells 		    __field(int,			ret		)
121284997905SDavid Howells 			     ),
121384997905SDavid Howells 
121484997905SDavid Howells 	    TP_fast_assign(
1215db9b2e0aSDavid Howells 		    __entry->call = call ? call->debug_id : 0;
121684997905SDavid Howells 		    __entry->why = why;
121784997905SDavid Howells 		    __entry->seq = seq;
121884997905SDavid Howells 		    __entry->offset = offset;
121984997905SDavid Howells 		    __entry->len = len;
122084997905SDavid Howells 		    __entry->ret = ret;
122184997905SDavid Howells 			   ),
122284997905SDavid Howells 
1223a25e21f0SDavid Howells 	    TP_printk("c=%08x %s q=%08x o=%u l=%u ret=%d",
122484997905SDavid Howells 		      __entry->call,
1225b54a134aSDavid Howells 		      __print_symbolic(__entry->why, rxrpc_recvmsg_traces),
122684997905SDavid Howells 		      __entry->seq,
122784997905SDavid Howells 		      __entry->offset,
122884997905SDavid Howells 		      __entry->len,
122984997905SDavid Howells 		      __entry->ret)
123084997905SDavid Howells 	    );
123184997905SDavid Howells 
1232cf1a6474SDavid Howells TRACE_EVENT(rxrpc_rtt_tx,
1233cf1a6474SDavid Howells 	    TP_PROTO(struct rxrpc_call *call, enum rxrpc_rtt_tx_trace why,
12344700c4d8SDavid Howells 		     int slot, rxrpc_serial_t send_serial),
1235cf1a6474SDavid Howells 
12364700c4d8SDavid Howells 	    TP_ARGS(call, why, slot, send_serial),
1237cf1a6474SDavid Howells 
1238cf1a6474SDavid Howells 	    TP_STRUCT__entry(
1239a25e21f0SDavid Howells 		    __field(unsigned int,		call		)
1240cf1a6474SDavid Howells 		    __field(enum rxrpc_rtt_tx_trace,	why		)
12414700c4d8SDavid Howells 		    __field(int,			slot		)
1242cf1a6474SDavid Howells 		    __field(rxrpc_serial_t,		send_serial	)
1243cf1a6474SDavid Howells 			     ),
1244cf1a6474SDavid Howells 
1245cf1a6474SDavid Howells 	    TP_fast_assign(
1246a25e21f0SDavid Howells 		    __entry->call = call->debug_id;
1247cf1a6474SDavid Howells 		    __entry->why = why;
12484700c4d8SDavid Howells 		    __entry->slot = slot;
1249cf1a6474SDavid Howells 		    __entry->send_serial = send_serial;
1250cf1a6474SDavid Howells 			   ),
1251cf1a6474SDavid Howells 
12524700c4d8SDavid Howells 	    TP_printk("c=%08x [%d] %s sr=%08x",
1253cf1a6474SDavid Howells 		      __entry->call,
12544700c4d8SDavid Howells 		      __entry->slot,
1255b54a134aSDavid Howells 		      __print_symbolic(__entry->why, rxrpc_rtt_tx_traces),
1256cf1a6474SDavid Howells 		      __entry->send_serial)
1257cf1a6474SDavid Howells 	    );
1258cf1a6474SDavid Howells 
1259cf1a6474SDavid Howells TRACE_EVENT(rxrpc_rtt_rx,
1260cf1a6474SDavid Howells 	    TP_PROTO(struct rxrpc_call *call, enum rxrpc_rtt_rx_trace why,
12614700c4d8SDavid Howells 		     int slot,
1262cf1a6474SDavid Howells 		     rxrpc_serial_t send_serial, rxrpc_serial_t resp_serial,
1263c410bf01SDavid Howells 		     u32 rtt, u32 rto),
1264cf1a6474SDavid Howells 
12654700c4d8SDavid Howells 	    TP_ARGS(call, why, slot, send_serial, resp_serial, rtt, rto),
1266cf1a6474SDavid Howells 
1267cf1a6474SDavid Howells 	    TP_STRUCT__entry(
1268a25e21f0SDavid Howells 		    __field(unsigned int,		call		)
1269cf1a6474SDavid Howells 		    __field(enum rxrpc_rtt_rx_trace,	why		)
12704700c4d8SDavid Howells 		    __field(int,			slot		)
1271cf1a6474SDavid Howells 		    __field(rxrpc_serial_t,		send_serial	)
1272cf1a6474SDavid Howells 		    __field(rxrpc_serial_t,		resp_serial	)
1273c410bf01SDavid Howells 		    __field(u32,			rtt		)
1274c410bf01SDavid Howells 		    __field(u32,			rto		)
1275cf1a6474SDavid Howells 			     ),
1276cf1a6474SDavid Howells 
1277cf1a6474SDavid Howells 	    TP_fast_assign(
1278a25e21f0SDavid Howells 		    __entry->call = call->debug_id;
1279cf1a6474SDavid Howells 		    __entry->why = why;
12804700c4d8SDavid Howells 		    __entry->slot = slot;
1281cf1a6474SDavid Howells 		    __entry->send_serial = send_serial;
1282cf1a6474SDavid Howells 		    __entry->resp_serial = resp_serial;
1283cf1a6474SDavid Howells 		    __entry->rtt = rtt;
1284c410bf01SDavid Howells 		    __entry->rto = rto;
1285cf1a6474SDavid Howells 			   ),
1286cf1a6474SDavid Howells 
12874700c4d8SDavid Howells 	    TP_printk("c=%08x [%d] %s sr=%08x rr=%08x rtt=%u rto=%u",
1288cf1a6474SDavid Howells 		      __entry->call,
12894700c4d8SDavid Howells 		      __entry->slot,
1290b54a134aSDavid Howells 		      __print_symbolic(__entry->why, rxrpc_rtt_rx_traces),
1291cf1a6474SDavid Howells 		      __entry->send_serial,
1292cf1a6474SDavid Howells 		      __entry->resp_serial,
1293cf1a6474SDavid Howells 		      __entry->rtt,
1294c410bf01SDavid Howells 		      __entry->rto)
1295cf1a6474SDavid Howells 	    );
1296cf1a6474SDavid Howells 
1297fc7ab6d2SDavid Howells TRACE_EVENT(rxrpc_timer,
1298fc7ab6d2SDavid Howells 	    TP_PROTO(struct rxrpc_call *call, enum rxrpc_timer_trace why,
1299a158bdd3SDavid Howells 		     unsigned long now),
1300fc7ab6d2SDavid Howells 
1301a158bdd3SDavid Howells 	    TP_ARGS(call, why, now),
1302fc7ab6d2SDavid Howells 
1303fc7ab6d2SDavid Howells 	    TP_STRUCT__entry(
1304a25e21f0SDavid Howells 		    __field(unsigned int,			call		)
1305fc7ab6d2SDavid Howells 		    __field(enum rxrpc_timer_trace,		why		)
1306a158bdd3SDavid Howells 		    __field(long,				now		)
1307a158bdd3SDavid Howells 		    __field(long,				ack_at		)
1308bd1fdf8cSDavid Howells 		    __field(long,				ack_lost_at	)
1309a158bdd3SDavid Howells 		    __field(long,				resend_at	)
1310a158bdd3SDavid Howells 		    __field(long,				ping_at		)
1311a158bdd3SDavid Howells 		    __field(long,				expect_rx_by	)
1312a158bdd3SDavid Howells 		    __field(long,				expect_req_by	)
1313a158bdd3SDavid Howells 		    __field(long,				expect_term_by	)
1314a158bdd3SDavid Howells 		    __field(long,				timer		)
1315fc7ab6d2SDavid Howells 			     ),
1316fc7ab6d2SDavid Howells 
1317fc7ab6d2SDavid Howells 	    TP_fast_assign(
1318a25e21f0SDavid Howells 		    __entry->call		= call->debug_id;
1319fc7ab6d2SDavid Howells 		    __entry->why		= why;
1320fc7ab6d2SDavid Howells 		    __entry->now		= now;
1321530403d9SDavid Howells 		    __entry->ack_at		= call->delay_ack_at;
1322bd1fdf8cSDavid Howells 		    __entry->ack_lost_at	= call->ack_lost_at;
1323fc7ab6d2SDavid Howells 		    __entry->resend_at		= call->resend_at;
1324a158bdd3SDavid Howells 		    __entry->expect_rx_by	= call->expect_rx_by;
1325a158bdd3SDavid Howells 		    __entry->expect_req_by	= call->expect_req_by;
1326a158bdd3SDavid Howells 		    __entry->expect_term_by	= call->expect_term_by;
1327fc7ab6d2SDavid Howells 		    __entry->timer		= call->timer.expires;
1328fc7ab6d2SDavid Howells 			   ),
1329fc7ab6d2SDavid Howells 
1330a25e21f0SDavid Howells 	    TP_printk("c=%08x %s a=%ld la=%ld r=%ld xr=%ld xq=%ld xt=%ld t=%ld",
1331fc7ab6d2SDavid Howells 		      __entry->call,
1332b54a134aSDavid Howells 		      __print_symbolic(__entry->why, rxrpc_timer_traces),
1333a158bdd3SDavid Howells 		      __entry->ack_at - __entry->now,
1334bd1fdf8cSDavid Howells 		      __entry->ack_lost_at - __entry->now,
1335a158bdd3SDavid Howells 		      __entry->resend_at - __entry->now,
1336a158bdd3SDavid Howells 		      __entry->expect_rx_by - __entry->now,
1337a158bdd3SDavid Howells 		      __entry->expect_req_by - __entry->now,
1338a158bdd3SDavid Howells 		      __entry->expect_term_by - __entry->now,
1339a158bdd3SDavid Howells 		      __entry->timer - __entry->now)
1340fc7ab6d2SDavid Howells 	    );
1341fc7ab6d2SDavid Howells 
1342334dfbfcSDavid Howells TRACE_EVENT(rxrpc_timer_expired,
1343334dfbfcSDavid Howells 	    TP_PROTO(struct rxrpc_call *call, unsigned long now),
1344334dfbfcSDavid Howells 
1345334dfbfcSDavid Howells 	    TP_ARGS(call, now),
1346334dfbfcSDavid Howells 
1347334dfbfcSDavid Howells 	    TP_STRUCT__entry(
1348334dfbfcSDavid Howells 		    __field(unsigned int,			call		)
1349334dfbfcSDavid Howells 		    __field(long,				now		)
1350334dfbfcSDavid Howells 		    __field(long,				ack_at		)
1351334dfbfcSDavid Howells 		    __field(long,				ack_lost_at	)
1352334dfbfcSDavid Howells 		    __field(long,				resend_at	)
1353334dfbfcSDavid Howells 		    __field(long,				ping_at		)
1354334dfbfcSDavid Howells 		    __field(long,				expect_rx_by	)
1355334dfbfcSDavid Howells 		    __field(long,				expect_req_by	)
1356334dfbfcSDavid Howells 		    __field(long,				expect_term_by	)
1357334dfbfcSDavid Howells 		    __field(long,				timer		)
1358334dfbfcSDavid Howells 			     ),
1359334dfbfcSDavid Howells 
1360334dfbfcSDavid Howells 	    TP_fast_assign(
1361334dfbfcSDavid Howells 		    __entry->call		= call->debug_id;
1362334dfbfcSDavid Howells 		    __entry->now		= now;
1363530403d9SDavid Howells 		    __entry->ack_at		= call->delay_ack_at;
1364334dfbfcSDavid Howells 		    __entry->ack_lost_at	= call->ack_lost_at;
1365334dfbfcSDavid Howells 		    __entry->resend_at		= call->resend_at;
1366334dfbfcSDavid Howells 		    __entry->expect_rx_by	= call->expect_rx_by;
1367334dfbfcSDavid Howells 		    __entry->expect_req_by	= call->expect_req_by;
1368334dfbfcSDavid Howells 		    __entry->expect_term_by	= call->expect_term_by;
1369334dfbfcSDavid Howells 		    __entry->timer		= call->timer.expires;
1370334dfbfcSDavid Howells 			   ),
1371334dfbfcSDavid Howells 
1372334dfbfcSDavid Howells 	    TP_printk("c=%08x EXPIRED a=%ld la=%ld r=%ld xr=%ld xq=%ld xt=%ld t=%ld",
1373334dfbfcSDavid Howells 		      __entry->call,
1374334dfbfcSDavid Howells 		      __entry->ack_at - __entry->now,
1375334dfbfcSDavid Howells 		      __entry->ack_lost_at - __entry->now,
1376334dfbfcSDavid Howells 		      __entry->resend_at - __entry->now,
1377334dfbfcSDavid Howells 		      __entry->expect_rx_by - __entry->now,
1378334dfbfcSDavid Howells 		      __entry->expect_req_by - __entry->now,
1379334dfbfcSDavid Howells 		      __entry->expect_term_by - __entry->now,
1380334dfbfcSDavid Howells 		      __entry->timer - __entry->now)
1381334dfbfcSDavid Howells 	    );
1382334dfbfcSDavid Howells 
138389b475abSDavid Howells TRACE_EVENT(rxrpc_rx_lose,
138489b475abSDavid Howells 	    TP_PROTO(struct rxrpc_skb_priv *sp),
138589b475abSDavid Howells 
138689b475abSDavid Howells 	    TP_ARGS(sp),
138789b475abSDavid Howells 
138889b475abSDavid Howells 	    TP_STRUCT__entry(
138989b475abSDavid Howells 		    __field_struct(struct rxrpc_host_header,	hdr		)
139089b475abSDavid Howells 			     ),
139189b475abSDavid Howells 
139289b475abSDavid Howells 	    TP_fast_assign(
139389b475abSDavid Howells 		    memcpy(&__entry->hdr, &sp->hdr, sizeof(__entry->hdr));
139489b475abSDavid Howells 			   ),
139589b475abSDavid Howells 
139689b475abSDavid Howells 	    TP_printk("%08x:%08x:%08x:%04x %08x %08x %02x %02x %s *LOSE*",
139789b475abSDavid Howells 		      __entry->hdr.epoch, __entry->hdr.cid,
139889b475abSDavid Howells 		      __entry->hdr.callNumber, __entry->hdr.serviceId,
139989b475abSDavid Howells 		      __entry->hdr.serial, __entry->hdr.seq,
140089b475abSDavid Howells 		      __entry->hdr.type, __entry->hdr.flags,
1401b54a134aSDavid Howells 		      __entry->hdr.type <= 15 ?
1402b54a134aSDavid Howells 		      __print_symbolic(__entry->hdr.type, rxrpc_pkts) : "?UNK")
140389b475abSDavid Howells 	    );
140489b475abSDavid Howells 
14059c7ad434SDavid Howells TRACE_EVENT(rxrpc_propose_ack,
14069c7ad434SDavid Howells 	    TP_PROTO(struct rxrpc_call *call, enum rxrpc_propose_ack_trace why,
1407530403d9SDavid Howells 		     u8 ack_reason, rxrpc_serial_t serial),
14089c7ad434SDavid Howells 
1409530403d9SDavid Howells 	    TP_ARGS(call, why, ack_reason, serial),
14109c7ad434SDavid Howells 
14119c7ad434SDavid Howells 	    TP_STRUCT__entry(
1412a25e21f0SDavid Howells 		    __field(unsigned int,			call		)
14139c7ad434SDavid Howells 		    __field(enum rxrpc_propose_ack_trace,	why		)
14149c7ad434SDavid Howells 		    __field(rxrpc_serial_t,			serial		)
14159c7ad434SDavid Howells 		    __field(u8,					ack_reason	)
14169c7ad434SDavid Howells 			     ),
14179c7ad434SDavid Howells 
14189c7ad434SDavid Howells 	    TP_fast_assign(
1419a25e21f0SDavid Howells 		    __entry->call	= call->debug_id;
14209c7ad434SDavid Howells 		    __entry->why	= why;
14219c7ad434SDavid Howells 		    __entry->serial	= serial;
14229c7ad434SDavid Howells 		    __entry->ack_reason	= ack_reason;
14239c7ad434SDavid Howells 			   ),
14249c7ad434SDavid Howells 
1425530403d9SDavid Howells 	    TP_printk("c=%08x %s %s r=%08x",
14269c7ad434SDavid Howells 		      __entry->call,
1427b54a134aSDavid Howells 		      __print_symbolic(__entry->why, rxrpc_propose_ack_traces),
1428b54a134aSDavid Howells 		      __print_symbolic(__entry->ack_reason, rxrpc_ack_names),
1429530403d9SDavid Howells 		      __entry->serial)
14309c7ad434SDavid Howells 	    );
14319c7ad434SDavid Howells 
143272f0c6fbSDavid Howells TRACE_EVENT(rxrpc_send_ack,
143372f0c6fbSDavid Howells 	    TP_PROTO(struct rxrpc_call *call, enum rxrpc_propose_ack_trace why,
143472f0c6fbSDavid Howells 		     u8 ack_reason, rxrpc_serial_t serial),
143572f0c6fbSDavid Howells 
143672f0c6fbSDavid Howells 	    TP_ARGS(call, why, ack_reason, serial),
143772f0c6fbSDavid Howells 
143872f0c6fbSDavid Howells 	    TP_STRUCT__entry(
143972f0c6fbSDavid Howells 		    __field(unsigned int,			call		)
144072f0c6fbSDavid Howells 		    __field(enum rxrpc_propose_ack_trace,	why		)
144172f0c6fbSDavid Howells 		    __field(rxrpc_serial_t,			serial		)
144272f0c6fbSDavid Howells 		    __field(u8,					ack_reason	)
144372f0c6fbSDavid Howells 			     ),
144472f0c6fbSDavid Howells 
144572f0c6fbSDavid Howells 	    TP_fast_assign(
144672f0c6fbSDavid Howells 		    __entry->call	= call->debug_id;
144772f0c6fbSDavid Howells 		    __entry->why	= why;
144872f0c6fbSDavid Howells 		    __entry->serial	= serial;
144972f0c6fbSDavid Howells 		    __entry->ack_reason	= ack_reason;
145072f0c6fbSDavid Howells 			   ),
145172f0c6fbSDavid Howells 
145272f0c6fbSDavid Howells 	    TP_printk("c=%08x %s %s r=%08x",
145372f0c6fbSDavid Howells 		      __entry->call,
145472f0c6fbSDavid Howells 		      __print_symbolic(__entry->why, rxrpc_propose_ack_traces),
145572f0c6fbSDavid Howells 		      __print_symbolic(__entry->ack_reason, rxrpc_ack_names),
145672f0c6fbSDavid Howells 		      __entry->serial)
145772f0c6fbSDavid Howells 	    );
145872f0c6fbSDavid Howells 
1459530403d9SDavid Howells TRACE_EVENT(rxrpc_drop_ack,
1460530403d9SDavid Howells 	    TP_PROTO(struct rxrpc_call *call, enum rxrpc_propose_ack_trace why,
1461530403d9SDavid Howells 		     u8 ack_reason, rxrpc_serial_t serial, bool nobuf),
1462530403d9SDavid Howells 
1463530403d9SDavid Howells 	    TP_ARGS(call, why, ack_reason, serial, nobuf),
1464530403d9SDavid Howells 
1465530403d9SDavid Howells 	    TP_STRUCT__entry(
1466530403d9SDavid Howells 		    __field(unsigned int,			call		)
1467530403d9SDavid Howells 		    __field(enum rxrpc_propose_ack_trace,	why		)
1468530403d9SDavid Howells 		    __field(rxrpc_serial_t,			serial		)
1469530403d9SDavid Howells 		    __field(u8,					ack_reason	)
1470530403d9SDavid Howells 		    __field(bool,				nobuf		)
1471530403d9SDavid Howells 			     ),
1472530403d9SDavid Howells 
1473530403d9SDavid Howells 	    TP_fast_assign(
1474530403d9SDavid Howells 		    __entry->call	= call->debug_id;
1475530403d9SDavid Howells 		    __entry->why	= why;
1476530403d9SDavid Howells 		    __entry->serial	= serial;
1477530403d9SDavid Howells 		    __entry->ack_reason	= ack_reason;
1478530403d9SDavid Howells 		    __entry->nobuf	= nobuf;
1479530403d9SDavid Howells 			   ),
1480530403d9SDavid Howells 
1481530403d9SDavid Howells 	    TP_printk("c=%08x %s %s r=%08x nbf=%u",
1482530403d9SDavid Howells 		      __entry->call,
1483530403d9SDavid Howells 		      __print_symbolic(__entry->why, rxrpc_propose_ack_traces),
1484530403d9SDavid Howells 		      __print_symbolic(__entry->ack_reason, rxrpc_ack_names),
1485530403d9SDavid Howells 		      __entry->serial, __entry->nobuf)
1486530403d9SDavid Howells 	    );
1487530403d9SDavid Howells 
1488c6672e3fSDavid Howells TRACE_EVENT(rxrpc_retransmit,
1489a4ea4c47SDavid Howells 	    TP_PROTO(struct rxrpc_call *call, rxrpc_seq_t seq, s64 expiry),
1490c6672e3fSDavid Howells 
1491a4ea4c47SDavid Howells 	    TP_ARGS(call, seq, expiry),
1492c6672e3fSDavid Howells 
1493c6672e3fSDavid Howells 	    TP_STRUCT__entry(
1494a25e21f0SDavid Howells 		    __field(unsigned int,		call		)
1495c6672e3fSDavid Howells 		    __field(rxrpc_seq_t,		seq		)
1496c6672e3fSDavid Howells 		    __field(s64,			expiry		)
1497c6672e3fSDavid Howells 			     ),
1498c6672e3fSDavid Howells 
1499c6672e3fSDavid Howells 	    TP_fast_assign(
1500a25e21f0SDavid Howells 		    __entry->call = call->debug_id;
1501c6672e3fSDavid Howells 		    __entry->seq = seq;
1502c6672e3fSDavid Howells 		    __entry->expiry = expiry;
1503c6672e3fSDavid Howells 			   ),
1504c6672e3fSDavid Howells 
1505a4ea4c47SDavid Howells 	    TP_printk("c=%08x q=%x xp=%lld",
1506c6672e3fSDavid Howells 		      __entry->call,
1507c6672e3fSDavid Howells 		      __entry->seq,
1508c6672e3fSDavid Howells 		      __entry->expiry)
1509c6672e3fSDavid Howells 	    );
1510c6672e3fSDavid Howells 
151157494343SDavid Howells TRACE_EVENT(rxrpc_congest,
151257494343SDavid Howells 	    TP_PROTO(struct rxrpc_call *call, struct rxrpc_ack_summary *summary,
151357494343SDavid Howells 		     rxrpc_serial_t ack_serial, enum rxrpc_congest_change change),
151457494343SDavid Howells 
151557494343SDavid Howells 	    TP_ARGS(call, summary, ack_serial, change),
151657494343SDavid Howells 
151757494343SDavid Howells 	    TP_STRUCT__entry(
1518a25e21f0SDavid Howells 		    __field(unsigned int,			call		)
151957494343SDavid Howells 		    __field(enum rxrpc_congest_change,		change		)
152057494343SDavid Howells 		    __field(rxrpc_seq_t,			hard_ack	)
152157494343SDavid Howells 		    __field(rxrpc_seq_t,			top		)
152257494343SDavid Howells 		    __field(rxrpc_seq_t,			lowest_nak	)
152357494343SDavid Howells 		    __field(rxrpc_serial_t,			ack_serial	)
152457494343SDavid Howells 		    __field_struct(struct rxrpc_ack_summary,	sum		)
152557494343SDavid Howells 			     ),
152657494343SDavid Howells 
152757494343SDavid Howells 	    TP_fast_assign(
1528a25e21f0SDavid Howells 		    __entry->call	= call->debug_id;
152957494343SDavid Howells 		    __entry->change	= change;
1530a4ea4c47SDavid Howells 		    __entry->hard_ack	= call->acks_hard_ack;
153157494343SDavid Howells 		    __entry->top	= call->tx_top;
153257494343SDavid Howells 		    __entry->lowest_nak	= call->acks_lowest_nak;
153357494343SDavid Howells 		    __entry->ack_serial	= ack_serial;
153457494343SDavid Howells 		    memcpy(&__entry->sum, summary, sizeof(__entry->sum));
153557494343SDavid Howells 			   ),
153657494343SDavid Howells 
1537d57a3a15SDavid 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",
153857494343SDavid Howells 		      __entry->call,
153957494343SDavid Howells 		      __entry->ack_serial,
1540b54a134aSDavid Howells 		      __print_symbolic(__entry->sum.ack_reason, rxrpc_ack_names),
154157494343SDavid Howells 		      __entry->hard_ack,
1542b54a134aSDavid Howells 		      __print_symbolic(__entry->sum.mode, rxrpc_congest_modes),
154357494343SDavid Howells 		      __entry->sum.cwnd,
154457494343SDavid Howells 		      __entry->sum.ssthresh,
1545d57a3a15SDavid Howells 		      __entry->sum.nr_acks, __entry->sum.saw_nacks,
1546d57a3a15SDavid Howells 		      __entry->sum.nr_new_acks,
154757494343SDavid Howells 		      __entry->sum.nr_rot_new_acks,
154857494343SDavid Howells 		      __entry->top - __entry->hard_ack,
154957494343SDavid Howells 		      __entry->sum.cumulative_acks,
155057494343SDavid Howells 		      __entry->sum.dup_acks,
155157494343SDavid Howells 		      __entry->lowest_nak, __entry->sum.new_low_nack ? "!" : "",
1552b54a134aSDavid Howells 		      __print_symbolic(__entry->change, rxrpc_congest_changes),
155357494343SDavid Howells 		      __entry->sum.retrans_timeo ? " rTxTo" : "")
155457494343SDavid Howells 	    );
155557494343SDavid Howells 
155632cf8edbSDavid Howells TRACE_EVENT(rxrpc_reset_cwnd,
155732cf8edbSDavid Howells 	    TP_PROTO(struct rxrpc_call *call, ktime_t now),
155832cf8edbSDavid Howells 
155932cf8edbSDavid Howells 	    TP_ARGS(call, now),
156032cf8edbSDavid Howells 
156132cf8edbSDavid Howells 	    TP_STRUCT__entry(
156232cf8edbSDavid Howells 		    __field(unsigned int,			call		)
156332cf8edbSDavid Howells 		    __field(enum rxrpc_congest_mode,		mode		)
156432cf8edbSDavid Howells 		    __field(unsigned short,			cwnd		)
156532cf8edbSDavid Howells 		    __field(unsigned short,			extra		)
156632cf8edbSDavid Howells 		    __field(rxrpc_seq_t,			hard_ack	)
156732cf8edbSDavid Howells 		    __field(rxrpc_seq_t,			prepared	)
156832cf8edbSDavid Howells 		    __field(ktime_t,				since_last_tx	)
156932cf8edbSDavid Howells 		    __field(bool,				has_data	)
157032cf8edbSDavid Howells 			     ),
157132cf8edbSDavid Howells 
157232cf8edbSDavid Howells 	    TP_fast_assign(
157332cf8edbSDavid Howells 		    __entry->call	= call->debug_id;
157432cf8edbSDavid Howells 		    __entry->mode	= call->cong_mode;
157532cf8edbSDavid Howells 		    __entry->cwnd	= call->cong_cwnd;
157632cf8edbSDavid Howells 		    __entry->extra	= call->cong_extra;
157732cf8edbSDavid Howells 		    __entry->hard_ack	= call->acks_hard_ack;
157832cf8edbSDavid Howells 		    __entry->prepared	= call->tx_prepared - call->tx_bottom;
157932cf8edbSDavid Howells 		    __entry->since_last_tx = ktime_sub(now, call->tx_last_sent);
158032cf8edbSDavid Howells 		    __entry->has_data	= !list_empty(&call->tx_sendmsg);
158132cf8edbSDavid Howells 			   ),
158232cf8edbSDavid Howells 
158332cf8edbSDavid Howells 	    TP_printk("c=%08x q=%08x %s cw=%u+%u pr=%u tm=%llu d=%u",
158432cf8edbSDavid Howells 		      __entry->call,
158532cf8edbSDavid Howells 		      __entry->hard_ack,
158632cf8edbSDavid Howells 		      __print_symbolic(__entry->mode, rxrpc_congest_modes),
158732cf8edbSDavid Howells 		      __entry->cwnd,
158832cf8edbSDavid Howells 		      __entry->extra,
158932cf8edbSDavid Howells 		      __entry->prepared,
159032cf8edbSDavid Howells 		      ktime_to_ns(__entry->since_last_tx),
159132cf8edbSDavid Howells 		      __entry->has_data)
159232cf8edbSDavid Howells 	    );
159332cf8edbSDavid Howells 
1594b1d9f7fdSDavid Howells TRACE_EVENT(rxrpc_disconnect_call,
1595b1d9f7fdSDavid Howells 	    TP_PROTO(struct rxrpc_call *call),
1596b1d9f7fdSDavid Howells 
1597b1d9f7fdSDavid Howells 	    TP_ARGS(call),
1598b1d9f7fdSDavid Howells 
1599b1d9f7fdSDavid Howells 	    TP_STRUCT__entry(
1600a25e21f0SDavid Howells 		    __field(unsigned int,		call		)
1601b1d9f7fdSDavid Howells 		    __field(u32,			abort_code	)
1602b1d9f7fdSDavid Howells 			     ),
1603b1d9f7fdSDavid Howells 
1604b1d9f7fdSDavid Howells 	    TP_fast_assign(
1605a25e21f0SDavid Howells 		    __entry->call = call->debug_id;
1606b1d9f7fdSDavid Howells 		    __entry->abort_code = call->abort_code;
1607b1d9f7fdSDavid Howells 			   ),
1608b1d9f7fdSDavid Howells 
1609a25e21f0SDavid Howells 	    TP_printk("c=%08x ab=%08x",
1610b1d9f7fdSDavid Howells 		      __entry->call,
1611b1d9f7fdSDavid Howells 		      __entry->abort_code)
1612b1d9f7fdSDavid Howells 	    );
1613b1d9f7fdSDavid Howells 
1614b1d9f7fdSDavid Howells TRACE_EVENT(rxrpc_improper_term,
1615b1d9f7fdSDavid Howells 	    TP_PROTO(struct rxrpc_call *call),
1616b1d9f7fdSDavid Howells 
1617b1d9f7fdSDavid Howells 	    TP_ARGS(call),
1618b1d9f7fdSDavid Howells 
1619b1d9f7fdSDavid Howells 	    TP_STRUCT__entry(
1620a25e21f0SDavid Howells 		    __field(unsigned int,		call		)
1621b1d9f7fdSDavid Howells 		    __field(u32,			abort_code	)
1622b1d9f7fdSDavid Howells 			     ),
1623b1d9f7fdSDavid Howells 
1624b1d9f7fdSDavid Howells 	    TP_fast_assign(
1625a25e21f0SDavid Howells 		    __entry->call = call->debug_id;
1626b1d9f7fdSDavid Howells 		    __entry->abort_code = call->abort_code;
1627b1d9f7fdSDavid Howells 			   ),
1628b1d9f7fdSDavid Howells 
1629a25e21f0SDavid Howells 	    TP_printk("c=%08x ab=%08x",
1630b1d9f7fdSDavid Howells 		      __entry->call,
1631b1d9f7fdSDavid Howells 		      __entry->abort_code)
1632b1d9f7fdSDavid Howells 	    );
1633b1d9f7fdSDavid Howells 
163489ca6948SDavid Howells TRACE_EVENT(rxrpc_connect_call,
163589ca6948SDavid Howells 	    TP_PROTO(struct rxrpc_call *call),
163689ca6948SDavid Howells 
163789ca6948SDavid Howells 	    TP_ARGS(call),
163889ca6948SDavid Howells 
163989ca6948SDavid Howells 	    TP_STRUCT__entry(
1640a25e21f0SDavid Howells 		    __field(unsigned int,		call		)
164189ca6948SDavid Howells 		    __field(unsigned long,		user_call_ID	)
164289ca6948SDavid Howells 		    __field(u32,			cid		)
164389ca6948SDavid Howells 		    __field(u32,			call_id		)
16445e6ef4f1SDavid Howells 		    __field_struct(struct sockaddr_rxrpc, srx		)
164589ca6948SDavid Howells 			     ),
164689ca6948SDavid Howells 
164789ca6948SDavid Howells 	    TP_fast_assign(
1648a25e21f0SDavid Howells 		    __entry->call = call->debug_id;
164989ca6948SDavid Howells 		    __entry->user_call_ID = call->user_call_ID;
165089ca6948SDavid Howells 		    __entry->cid = call->cid;
165189ca6948SDavid Howells 		    __entry->call_id = call->call_id;
16525e6ef4f1SDavid Howells 		    __entry->srx = call->dest_srx;
165389ca6948SDavid Howells 			   ),
165489ca6948SDavid Howells 
16555e6ef4f1SDavid Howells 	    TP_printk("c=%08x u=%p %08x:%08x dst=%pISp",
165689ca6948SDavid Howells 		      __entry->call,
165789ca6948SDavid Howells 		      (void *)__entry->user_call_ID,
165889ca6948SDavid Howells 		      __entry->cid,
16595e6ef4f1SDavid Howells 		      __entry->call_id,
16605e6ef4f1SDavid Howells 		      &__entry->srx.transport)
166189ca6948SDavid Howells 	    );
166289ca6948SDavid Howells 
1663827efed6SDavid Howells TRACE_EVENT(rxrpc_resend,
16645e6ef4f1SDavid Howells 	    TP_PROTO(struct rxrpc_call *call, struct sk_buff *ack),
1665827efed6SDavid Howells 
16665e6ef4f1SDavid Howells 	    TP_ARGS(call, ack),
1667827efed6SDavid Howells 
1668827efed6SDavid Howells 	    TP_STRUCT__entry(
1669a25e21f0SDavid Howells 		    __field(unsigned int,		call		)
1670a4ea4c47SDavid Howells 		    __field(rxrpc_seq_t,		seq		)
16715e6ef4f1SDavid Howells 		    __field(rxrpc_seq_t,		transmitted	)
16725e6ef4f1SDavid Howells 		    __field(rxrpc_serial_t,		ack_serial	)
1673827efed6SDavid Howells 			     ),
1674827efed6SDavid Howells 
1675827efed6SDavid Howells 	    TP_fast_assign(
16765e6ef4f1SDavid Howells 		    struct rxrpc_skb_priv *sp = ack ? rxrpc_skb(ack) : NULL;
1677a25e21f0SDavid Howells 		    __entry->call = call->debug_id;
1678a4ea4c47SDavid Howells 		    __entry->seq = call->acks_hard_ack;
16795e6ef4f1SDavid Howells 		    __entry->transmitted = call->tx_transmitted;
16805e6ef4f1SDavid Howells 		    __entry->ack_serial = sp ? sp->hdr.serial : 0;
1681827efed6SDavid Howells 			   ),
1682827efed6SDavid Howells 
16835e6ef4f1SDavid Howells 	    TP_printk("c=%08x r=%x q=%x tq=%x",
1684827efed6SDavid Howells 		      __entry->call,
16855e6ef4f1SDavid Howells 		      __entry->ack_serial,
16865e6ef4f1SDavid Howells 		      __entry->seq,
16875e6ef4f1SDavid Howells 		      __entry->transmitted)
1688827efed6SDavid Howells 	    );
1689827efed6SDavid Howells 
1690494337c9SDavid Howells TRACE_EVENT(rxrpc_rx_icmp,
1691494337c9SDavid Howells 	    TP_PROTO(struct rxrpc_peer *peer, struct sock_extended_err *ee,
1692494337c9SDavid Howells 		     struct sockaddr_rxrpc *srx),
1693494337c9SDavid Howells 
1694494337c9SDavid Howells 	    TP_ARGS(peer, ee, srx),
1695494337c9SDavid Howells 
1696494337c9SDavid Howells 	    TP_STRUCT__entry(
1697494337c9SDavid Howells 		    __field(unsigned int,			peer	)
1698494337c9SDavid Howells 		    __field_struct(struct sock_extended_err,	ee	)
1699494337c9SDavid Howells 		    __field_struct(struct sockaddr_rxrpc,	srx	)
1700494337c9SDavid Howells 			     ),
1701494337c9SDavid Howells 
1702494337c9SDavid Howells 	    TP_fast_assign(
1703494337c9SDavid Howells 		    __entry->peer = peer->debug_id;
1704494337c9SDavid Howells 		    memcpy(&__entry->ee, ee, sizeof(__entry->ee));
1705494337c9SDavid Howells 		    memcpy(&__entry->srx, srx, sizeof(__entry->srx));
1706494337c9SDavid Howells 			   ),
1707494337c9SDavid Howells 
1708494337c9SDavid Howells 	    TP_printk("P=%08x o=%u t=%u c=%u i=%u d=%u e=%d %pISp",
1709494337c9SDavid Howells 		      __entry->peer,
1710494337c9SDavid Howells 		      __entry->ee.ee_origin,
1711494337c9SDavid Howells 		      __entry->ee.ee_type,
1712494337c9SDavid Howells 		      __entry->ee.ee_code,
1713494337c9SDavid Howells 		      __entry->ee.ee_info,
1714494337c9SDavid Howells 		      __entry->ee.ee_data,
1715494337c9SDavid Howells 		      __entry->ee.ee_errno,
1716494337c9SDavid Howells 		      &__entry->srx.transport)
1717494337c9SDavid Howells 	    );
1718494337c9SDavid Howells 
17196b47fe1dSDavid Howells TRACE_EVENT(rxrpc_tx_fail,
17206b47fe1dSDavid Howells 	    TP_PROTO(unsigned int debug_id, rxrpc_serial_t serial, int ret,
17214764c0daSDavid Howells 		     enum rxrpc_tx_point where),
17226b47fe1dSDavid Howells 
17234764c0daSDavid Howells 	    TP_ARGS(debug_id, serial, ret, where),
17246b47fe1dSDavid Howells 
17256b47fe1dSDavid Howells 	    TP_STRUCT__entry(
17266b47fe1dSDavid Howells 		    __field(unsigned int,		debug_id	)
17276b47fe1dSDavid Howells 		    __field(rxrpc_serial_t,		serial		)
17286b47fe1dSDavid Howells 		    __field(int,			ret		)
17294764c0daSDavid Howells 		    __field(enum rxrpc_tx_point,	where		)
17306b47fe1dSDavid Howells 			     ),
17316b47fe1dSDavid Howells 
17326b47fe1dSDavid Howells 	    TP_fast_assign(
17336b47fe1dSDavid Howells 		    __entry->debug_id = debug_id;
17346b47fe1dSDavid Howells 		    __entry->serial = serial;
17356b47fe1dSDavid Howells 		    __entry->ret = ret;
17364764c0daSDavid Howells 		    __entry->where = where;
17376b47fe1dSDavid Howells 			   ),
17386b47fe1dSDavid Howells 
17396b47fe1dSDavid Howells 	    TP_printk("c=%08x r=%x ret=%d %s",
17406b47fe1dSDavid Howells 		      __entry->debug_id,
17416b47fe1dSDavid Howells 		      __entry->serial,
17426b47fe1dSDavid Howells 		      __entry->ret,
17434764c0daSDavid Howells 		      __print_symbolic(__entry->where, rxrpc_tx_points))
17446b47fe1dSDavid Howells 	    );
17456b47fe1dSDavid Howells 
17461a025028SDavid Howells TRACE_EVENT(rxrpc_call_reset,
17471a025028SDavid Howells 	    TP_PROTO(struct rxrpc_call *call),
17481a025028SDavid Howells 
17491a025028SDavid Howells 	    TP_ARGS(call),
17501a025028SDavid Howells 
17511a025028SDavid Howells 	    TP_STRUCT__entry(
17521a025028SDavid Howells 		    __field(unsigned int,		debug_id	)
17531a025028SDavid Howells 		    __field(u32,			cid		)
17541a025028SDavid Howells 		    __field(u32,			call_id		)
17551a025028SDavid Howells 		    __field(rxrpc_serial_t,		call_serial	)
17561a025028SDavid Howells 		    __field(rxrpc_serial_t,		conn_serial	)
17571a025028SDavid Howells 		    __field(rxrpc_seq_t,		tx_seq		)
17581a025028SDavid Howells 		    __field(rxrpc_seq_t,		rx_seq		)
17591a025028SDavid Howells 			     ),
17601a025028SDavid Howells 
17611a025028SDavid Howells 	    TP_fast_assign(
17621a025028SDavid Howells 		    __entry->debug_id = call->debug_id;
17631a025028SDavid Howells 		    __entry->cid = call->cid;
17641a025028SDavid Howells 		    __entry->call_id = call->call_id;
17651a025028SDavid Howells 		    __entry->call_serial = call->rx_serial;
17661a025028SDavid Howells 		    __entry->conn_serial = call->conn->hi_serial;
1767a4ea4c47SDavid Howells 		    __entry->tx_seq = call->acks_hard_ack;
17685d7edbc9SDavid Howells 		    __entry->rx_seq = call->rx_highest_seq;
17691a025028SDavid Howells 			   ),
17701a025028SDavid Howells 
17711a025028SDavid Howells 	    TP_printk("c=%08x %08x:%08x r=%08x/%08x tx=%08x rx=%08x",
17721a025028SDavid Howells 		      __entry->debug_id,
17731a025028SDavid Howells 		      __entry->cid, __entry->call_id,
17741a025028SDavid Howells 		      __entry->call_serial, __entry->conn_serial,
17751a025028SDavid Howells 		      __entry->tx_seq, __entry->rx_seq)
17761a025028SDavid Howells 	    );
17771a025028SDavid Howells 
17784272d303SDavid Howells TRACE_EVENT(rxrpc_notify_socket,
17794272d303SDavid Howells 	    TP_PROTO(unsigned int debug_id, rxrpc_serial_t serial),
17804272d303SDavid Howells 
17814272d303SDavid Howells 	    TP_ARGS(debug_id, serial),
17824272d303SDavid Howells 
17834272d303SDavid Howells 	    TP_STRUCT__entry(
17844272d303SDavid Howells 		    __field(unsigned int,		debug_id	)
17854272d303SDavid Howells 		    __field(rxrpc_serial_t,		serial		)
17864272d303SDavid Howells 			     ),
17874272d303SDavid Howells 
17884272d303SDavid Howells 	    TP_fast_assign(
17894272d303SDavid Howells 		    __entry->debug_id = debug_id;
17904272d303SDavid Howells 		    __entry->serial = serial;
17914272d303SDavid Howells 			   ),
17924272d303SDavid Howells 
17934272d303SDavid Howells 	    TP_printk("c=%08x r=%08x",
17944272d303SDavid Howells 		      __entry->debug_id,
17954272d303SDavid Howells 		      __entry->serial)
17964272d303SDavid Howells 	    );
17974272d303SDavid Howells 
1798d1f12947SDavid Howells TRACE_EVENT(rxrpc_rx_discard_ack,
1799d1f12947SDavid Howells 	    TP_PROTO(unsigned int debug_id, rxrpc_serial_t serial,
1800d1f12947SDavid Howells 		     rxrpc_seq_t first_soft_ack, rxrpc_seq_t call_ackr_first,
1801d1f12947SDavid Howells 		     rxrpc_seq_t prev_pkt, rxrpc_seq_t call_ackr_prev),
1802d1f12947SDavid Howells 
1803d1f12947SDavid Howells 	    TP_ARGS(debug_id, serial, first_soft_ack, call_ackr_first,
1804d1f12947SDavid Howells 		    prev_pkt, call_ackr_prev),
1805d1f12947SDavid Howells 
1806d1f12947SDavid Howells 	    TP_STRUCT__entry(
1807d1f12947SDavid Howells 		    __field(unsigned int,	debug_id	)
1808d1f12947SDavid Howells 		    __field(rxrpc_serial_t,	serial		)
1809d1f12947SDavid Howells 		    __field(rxrpc_seq_t,	first_soft_ack)
1810d1f12947SDavid Howells 		    __field(rxrpc_seq_t,	call_ackr_first)
1811d1f12947SDavid Howells 		    __field(rxrpc_seq_t,	prev_pkt)
1812d1f12947SDavid Howells 		    __field(rxrpc_seq_t,	call_ackr_prev)
1813d1f12947SDavid Howells 			     ),
1814d1f12947SDavid Howells 
1815d1f12947SDavid Howells 	    TP_fast_assign(
1816d1f12947SDavid Howells 		    __entry->debug_id		= debug_id;
1817d1f12947SDavid Howells 		    __entry->serial		= serial;
1818d1f12947SDavid Howells 		    __entry->first_soft_ack	= first_soft_ack;
1819d1f12947SDavid Howells 		    __entry->call_ackr_first	= call_ackr_first;
1820d1f12947SDavid Howells 		    __entry->prev_pkt		= prev_pkt;
1821d1f12947SDavid Howells 		    __entry->call_ackr_prev	= call_ackr_prev;
1822d1f12947SDavid Howells 			   ),
1823d1f12947SDavid Howells 
1824d1f12947SDavid Howells 	    TP_printk("c=%08x r=%08x %08x<%08x %08x<%08x",
1825d1f12947SDavid Howells 		      __entry->debug_id,
1826d1f12947SDavid Howells 		      __entry->serial,
1827d1f12947SDavid Howells 		      __entry->first_soft_ack,
1828d1f12947SDavid Howells 		      __entry->call_ackr_first,
1829d1f12947SDavid Howells 		      __entry->prev_pkt,
1830d1f12947SDavid Howells 		      __entry->call_ackr_prev)
1831d1f12947SDavid Howells 	    );
1832d1f12947SDavid Howells 
18334d843be5SDavid Howells TRACE_EVENT(rxrpc_req_ack,
18344d843be5SDavid Howells 	    TP_PROTO(unsigned int call_debug_id, rxrpc_seq_t seq,
18354d843be5SDavid Howells 		     enum rxrpc_req_ack_trace why),
18364d843be5SDavid Howells 
18374d843be5SDavid Howells 	    TP_ARGS(call_debug_id, seq, why),
18384d843be5SDavid Howells 
18394d843be5SDavid Howells 	    TP_STRUCT__entry(
18404d843be5SDavid Howells 		    __field(unsigned int,		call_debug_id	)
18414d843be5SDavid Howells 		    __field(rxrpc_seq_t,		seq		)
18424d843be5SDavid Howells 		    __field(enum rxrpc_req_ack_trace,	why		)
18434d843be5SDavid Howells 			     ),
18444d843be5SDavid Howells 
18454d843be5SDavid Howells 	    TP_fast_assign(
18464d843be5SDavid Howells 		    __entry->call_debug_id = call_debug_id;
18474d843be5SDavid Howells 		    __entry->seq = seq;
18484d843be5SDavid Howells 		    __entry->why = why;
18494d843be5SDavid Howells 			   ),
18504d843be5SDavid Howells 
18514d843be5SDavid Howells 	    TP_printk("c=%08x q=%08x REQ-%s",
18524d843be5SDavid Howells 		      __entry->call_debug_id,
18534d843be5SDavid Howells 		      __entry->seq,
18544d843be5SDavid Howells 		      __print_symbolic(__entry->why, rxrpc_req_ack_traces))
18554d843be5SDavid Howells 	    );
18564d843be5SDavid Howells 
185702a19356SDavid Howells TRACE_EVENT(rxrpc_txbuf,
185802a19356SDavid Howells 	    TP_PROTO(unsigned int debug_id,
185902a19356SDavid Howells 		     unsigned int call_debug_id, rxrpc_seq_t seq,
186002a19356SDavid Howells 		     int ref, enum rxrpc_txbuf_trace what),
186102a19356SDavid Howells 
186202a19356SDavid Howells 	    TP_ARGS(debug_id, call_debug_id, seq, ref, what),
186302a19356SDavid Howells 
186402a19356SDavid Howells 	    TP_STRUCT__entry(
186502a19356SDavid Howells 		    __field(unsigned int,		debug_id	)
186602a19356SDavid Howells 		    __field(unsigned int,		call_debug_id	)
186702a19356SDavid Howells 		    __field(rxrpc_seq_t,		seq		)
186802a19356SDavid Howells 		    __field(int,			ref		)
186902a19356SDavid Howells 		    __field(enum rxrpc_txbuf_trace,	what		)
187002a19356SDavid Howells 			     ),
187102a19356SDavid Howells 
187202a19356SDavid Howells 	    TP_fast_assign(
187302a19356SDavid Howells 		    __entry->debug_id = debug_id;
187402a19356SDavid Howells 		    __entry->call_debug_id = call_debug_id;
187502a19356SDavid Howells 		    __entry->seq = seq;
187602a19356SDavid Howells 		    __entry->ref = ref;
187702a19356SDavid Howells 		    __entry->what = what;
187802a19356SDavid Howells 			   ),
187902a19356SDavid Howells 
188002a19356SDavid Howells 	    TP_printk("B=%08x c=%08x q=%08x %s r=%d",
188102a19356SDavid Howells 		      __entry->debug_id,
188202a19356SDavid Howells 		      __entry->call_debug_id,
188302a19356SDavid Howells 		      __entry->seq,
188402a19356SDavid Howells 		      __print_symbolic(__entry->what, rxrpc_txbuf_traces),
188502a19356SDavid Howells 		      __entry->ref)
188602a19356SDavid Howells 	    );
188702a19356SDavid Howells 
188815f661dcSDavid Howells TRACE_EVENT(rxrpc_poke_call,
188915f661dcSDavid Howells 	    TP_PROTO(struct rxrpc_call *call, bool busy,
189015f661dcSDavid Howells 		     enum rxrpc_call_poke_trace what),
189115f661dcSDavid Howells 
189215f661dcSDavid Howells 	    TP_ARGS(call, busy, what),
189315f661dcSDavid Howells 
189415f661dcSDavid Howells 	    TP_STRUCT__entry(
189515f661dcSDavid Howells 		    __field(unsigned int,		call_debug_id	)
189615f661dcSDavid Howells 		    __field(bool,			busy		)
189715f661dcSDavid Howells 		    __field(enum rxrpc_call_poke_trace,	what		)
189815f661dcSDavid Howells 			     ),
189915f661dcSDavid Howells 
190015f661dcSDavid Howells 	    TP_fast_assign(
190115f661dcSDavid Howells 		    __entry->call_debug_id = call->debug_id;
190215f661dcSDavid Howells 		    __entry->busy = busy;
190315f661dcSDavid Howells 		    __entry->what = what;
190415f661dcSDavid Howells 			   ),
190515f661dcSDavid Howells 
190615f661dcSDavid Howells 	    TP_printk("c=%08x %s%s",
190715f661dcSDavid Howells 		      __entry->call_debug_id,
190815f661dcSDavid Howells 		      __print_symbolic(__entry->what, rxrpc_call_poke_traces),
190915f661dcSDavid Howells 		      __entry->busy ? "!" : "")
191015f661dcSDavid Howells 	    );
191115f661dcSDavid Howells 
191215f661dcSDavid Howells TRACE_EVENT(rxrpc_call_poked,
191315f661dcSDavid Howells 	    TP_PROTO(struct rxrpc_call *call),
191415f661dcSDavid Howells 
191515f661dcSDavid Howells 	    TP_ARGS(call),
191615f661dcSDavid Howells 
191715f661dcSDavid Howells 	    TP_STRUCT__entry(
191815f661dcSDavid Howells 		    __field(unsigned int,		call_debug_id	)
191915f661dcSDavid Howells 			     ),
192015f661dcSDavid Howells 
192115f661dcSDavid Howells 	    TP_fast_assign(
192215f661dcSDavid Howells 		    __entry->call_debug_id = call->debug_id;
192315f661dcSDavid Howells 			   ),
192415f661dcSDavid Howells 
192515f661dcSDavid Howells 	    TP_printk("c=%08x",
192615f661dcSDavid Howells 		      __entry->call_debug_id)
192715f661dcSDavid Howells 	    );
192815f661dcSDavid Howells 
1929dc9fd093SDavid Howells #undef EM
1930dc9fd093SDavid Howells #undef E_
1931*57af281eSDavid Howells 
1932*57af281eSDavid Howells #endif /* RXRPC_TRACE_ONLY_DEFINE_ENUMS */
1933df844fd4SDavid Howells #endif /* _TRACE_RXRPC_H */
1934df844fd4SDavid Howells 
1935df844fd4SDavid Howells /* This part must be outside protection */
1936df844fd4SDavid Howells #include <trace/define_trace.h>
1937