1 /* SPDX-License-Identifier: GPL-2.0-or-later * 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 /* AF_RXRPC tracepoints 2 /* AF_RXRPC tracepoints 3 * 3 * 4 * Copyright (C) 2016 Red Hat, Inc. All Rights 4 * Copyright (C) 2016 Red Hat, Inc. All Rights Reserved. 5 * Written by David Howells (dhowells@redhat.c 5 * Written by David Howells (dhowells@redhat.com) 6 */ 6 */ 7 #undef TRACE_SYSTEM 7 #undef TRACE_SYSTEM 8 #define TRACE_SYSTEM rxrpc 8 #define TRACE_SYSTEM rxrpc 9 9 10 #if !defined(_TRACE_RXRPC_H) || defined(TRACE_ 10 #if !defined(_TRACE_RXRPC_H) || defined(TRACE_HEADER_MULTI_READ) 11 #define _TRACE_RXRPC_H 11 #define _TRACE_RXRPC_H 12 12 13 #include <linux/tracepoint.h> 13 #include <linux/tracepoint.h> 14 #include <linux/errqueue.h> 14 #include <linux/errqueue.h> 15 15 16 /* 16 /* 17 * Declare tracing information enums and their 17 * Declare tracing information enums and their string mappings for display. 18 */ 18 */ 19 #define rxrpc_abort_reasons \ 19 #define rxrpc_abort_reasons \ 20 /* AFS errors */ 20 /* AFS errors */ \ 21 EM(afs_abort_general_error, 21 EM(afs_abort_general_error, "afs-error") \ 22 EM(afs_abort_interrupted, 22 EM(afs_abort_interrupted, "afs-intr") \ 23 EM(afs_abort_oom, 23 EM(afs_abort_oom, "afs-oom") \ 24 EM(afs_abort_op_not_supported, 24 EM(afs_abort_op_not_supported, "afs-op-notsupp") \ 25 EM(afs_abort_probeuuid_negative, 25 EM(afs_abort_probeuuid_negative, "afs-probeuuid-neg") \ 26 EM(afs_abort_send_data_error, 26 EM(afs_abort_send_data_error, "afs-send-data") \ 27 EM(afs_abort_unmarshal_error, 27 EM(afs_abort_unmarshal_error, "afs-unmarshal") \ 28 /* rxperf errors */ 28 /* rxperf errors */ \ 29 EM(rxperf_abort_general_error, 29 EM(rxperf_abort_general_error, "rxperf-error") \ 30 EM(rxperf_abort_oom, 30 EM(rxperf_abort_oom, "rxperf-oom") \ 31 EM(rxperf_abort_op_not_supported, 31 EM(rxperf_abort_op_not_supported, "rxperf-op-notsupp") \ 32 EM(rxperf_abort_unmarshal_error, 32 EM(rxperf_abort_unmarshal_error, "rxperf-unmarshal") \ 33 /* RxKAD security errors */ 33 /* RxKAD security errors */ \ 34 EM(rxkad_abort_1_short_check, 34 EM(rxkad_abort_1_short_check, "rxkad1-short-check") \ 35 EM(rxkad_abort_1_short_data, 35 EM(rxkad_abort_1_short_data, "rxkad1-short-data") \ 36 EM(rxkad_abort_1_short_encdata, 36 EM(rxkad_abort_1_short_encdata, "rxkad1-short-encdata") \ 37 EM(rxkad_abort_1_short_header, 37 EM(rxkad_abort_1_short_header, "rxkad1-short-hdr") \ 38 EM(rxkad_abort_2_short_check, 38 EM(rxkad_abort_2_short_check, "rxkad2-short-check") \ 39 EM(rxkad_abort_2_short_data, 39 EM(rxkad_abort_2_short_data, "rxkad2-short-data") \ 40 EM(rxkad_abort_2_short_header, 40 EM(rxkad_abort_2_short_header, "rxkad2-short-hdr") \ 41 EM(rxkad_abort_2_short_len, 41 EM(rxkad_abort_2_short_len, "rxkad2-short-len") \ 42 EM(rxkad_abort_bad_checksum, 42 EM(rxkad_abort_bad_checksum, "rxkad2-bad-cksum") \ 43 EM(rxkad_abort_chall_key_expired, 43 EM(rxkad_abort_chall_key_expired, "rxkad-chall-key-exp") \ 44 EM(rxkad_abort_chall_level, 44 EM(rxkad_abort_chall_level, "rxkad-chall-level") \ 45 EM(rxkad_abort_chall_no_key, 45 EM(rxkad_abort_chall_no_key, "rxkad-chall-nokey") \ 46 EM(rxkad_abort_chall_short, 46 EM(rxkad_abort_chall_short, "rxkad-chall-short") \ 47 EM(rxkad_abort_chall_version, 47 EM(rxkad_abort_chall_version, "rxkad-chall-version") \ 48 EM(rxkad_abort_resp_bad_callid, 48 EM(rxkad_abort_resp_bad_callid, "rxkad-resp-bad-callid") \ 49 EM(rxkad_abort_resp_bad_checksum, 49 EM(rxkad_abort_resp_bad_checksum, "rxkad-resp-bad-cksum") \ 50 EM(rxkad_abort_resp_bad_param, 50 EM(rxkad_abort_resp_bad_param, "rxkad-resp-bad-param") \ 51 EM(rxkad_abort_resp_call_ctr, 51 EM(rxkad_abort_resp_call_ctr, "rxkad-resp-call-ctr") \ 52 EM(rxkad_abort_resp_call_state, 52 EM(rxkad_abort_resp_call_state, "rxkad-resp-call-state") \ 53 EM(rxkad_abort_resp_key_expired, 53 EM(rxkad_abort_resp_key_expired, "rxkad-resp-key-exp") \ 54 EM(rxkad_abort_resp_key_rejected, 54 EM(rxkad_abort_resp_key_rejected, "rxkad-resp-key-rej") \ 55 EM(rxkad_abort_resp_level, 55 EM(rxkad_abort_resp_level, "rxkad-resp-level") \ 56 EM(rxkad_abort_resp_nokey, 56 EM(rxkad_abort_resp_nokey, "rxkad-resp-nokey") \ 57 EM(rxkad_abort_resp_ooseq, 57 EM(rxkad_abort_resp_ooseq, "rxkad-resp-ooseq") \ 58 EM(rxkad_abort_resp_short, 58 EM(rxkad_abort_resp_short, "rxkad-resp-short") \ 59 EM(rxkad_abort_resp_short_tkt, 59 EM(rxkad_abort_resp_short_tkt, "rxkad-resp-short-tkt") \ 60 EM(rxkad_abort_resp_tkt_aname, 60 EM(rxkad_abort_resp_tkt_aname, "rxkad-resp-tk-aname") \ 61 EM(rxkad_abort_resp_tkt_expired, 61 EM(rxkad_abort_resp_tkt_expired, "rxkad-resp-tk-exp") \ 62 EM(rxkad_abort_resp_tkt_future, 62 EM(rxkad_abort_resp_tkt_future, "rxkad-resp-tk-future") \ 63 EM(rxkad_abort_resp_tkt_inst, 63 EM(rxkad_abort_resp_tkt_inst, "rxkad-resp-tk-inst") \ 64 EM(rxkad_abort_resp_tkt_len, 64 EM(rxkad_abort_resp_tkt_len, "rxkad-resp-tk-len") \ 65 EM(rxkad_abort_resp_tkt_realm, 65 EM(rxkad_abort_resp_tkt_realm, "rxkad-resp-tk-realm") \ 66 EM(rxkad_abort_resp_tkt_short, 66 EM(rxkad_abort_resp_tkt_short, "rxkad-resp-tk-short") \ 67 EM(rxkad_abort_resp_tkt_sinst, 67 EM(rxkad_abort_resp_tkt_sinst, "rxkad-resp-tk-sinst") \ 68 EM(rxkad_abort_resp_tkt_sname, 68 EM(rxkad_abort_resp_tkt_sname, "rxkad-resp-tk-sname") \ 69 EM(rxkad_abort_resp_unknown_tkt, 69 EM(rxkad_abort_resp_unknown_tkt, "rxkad-resp-unknown-tkt") \ 70 EM(rxkad_abort_resp_version, 70 EM(rxkad_abort_resp_version, "rxkad-resp-version") \ 71 /* rxrpc errors */ 71 /* rxrpc errors */ \ 72 EM(rxrpc_abort_call_improper_term, 72 EM(rxrpc_abort_call_improper_term, "call-improper-term") \ 73 EM(rxrpc_abort_call_reset, 73 EM(rxrpc_abort_call_reset, "call-reset") \ 74 EM(rxrpc_abort_call_sendmsg, 74 EM(rxrpc_abort_call_sendmsg, "call-sendmsg") \ 75 EM(rxrpc_abort_call_sock_release, 75 EM(rxrpc_abort_call_sock_release, "call-sock-rel") \ 76 EM(rxrpc_abort_call_sock_release_tba, 76 EM(rxrpc_abort_call_sock_release_tba, "call-sock-rel-tba") \ 77 EM(rxrpc_abort_call_timeout, 77 EM(rxrpc_abort_call_timeout, "call-timeout") \ 78 EM(rxrpc_abort_no_service_key, 78 EM(rxrpc_abort_no_service_key, "no-serv-key") \ 79 EM(rxrpc_abort_nomem, 79 EM(rxrpc_abort_nomem, "nomem") \ 80 EM(rxrpc_abort_service_not_offered, 80 EM(rxrpc_abort_service_not_offered, "serv-not-offered") \ 81 EM(rxrpc_abort_shut_down, 81 EM(rxrpc_abort_shut_down, "shut-down") \ 82 EM(rxrpc_abort_unsupported_security, 82 EM(rxrpc_abort_unsupported_security, "unsup-sec") \ 83 EM(rxrpc_badmsg_bad_abort, 83 EM(rxrpc_badmsg_bad_abort, "bad-abort") \ 84 EM(rxrpc_badmsg_bad_jumbo, 84 EM(rxrpc_badmsg_bad_jumbo, "bad-jumbo") \ 85 EM(rxrpc_badmsg_short_ack, 85 EM(rxrpc_badmsg_short_ack, "short-ack") \ 86 EM(rxrpc_badmsg_short_ack_trailer, !! 86 EM(rxrpc_badmsg_short_ack_info, "short-ack-info") \ 87 EM(rxrpc_badmsg_short_hdr, 87 EM(rxrpc_badmsg_short_hdr, "short-hdr") \ 88 EM(rxrpc_badmsg_unsupported_packet, 88 EM(rxrpc_badmsg_unsupported_packet, "unsup-pkt") \ 89 EM(rxrpc_badmsg_zero_call, 89 EM(rxrpc_badmsg_zero_call, "zero-call") \ 90 EM(rxrpc_badmsg_zero_seq, 90 EM(rxrpc_badmsg_zero_seq, "zero-seq") \ 91 EM(rxrpc_badmsg_zero_service, 91 EM(rxrpc_badmsg_zero_service, "zero-service") \ 92 EM(rxrpc_eproto_ackr_outside_window, 92 EM(rxrpc_eproto_ackr_outside_window, "ackr-out-win") \ 93 EM(rxrpc_eproto_ackr_sack_overflow, 93 EM(rxrpc_eproto_ackr_sack_overflow, "ackr-sack-over") \ 94 EM(rxrpc_eproto_ackr_short_sack, 94 EM(rxrpc_eproto_ackr_short_sack, "ackr-short-sack") \ 95 EM(rxrpc_eproto_ackr_zero, 95 EM(rxrpc_eproto_ackr_zero, "ackr-zero") \ 96 EM(rxrpc_eproto_bad_upgrade, 96 EM(rxrpc_eproto_bad_upgrade, "bad-upgrade") \ 97 EM(rxrpc_eproto_data_after_last, 97 EM(rxrpc_eproto_data_after_last, "data-after-last") \ 98 EM(rxrpc_eproto_different_last, 98 EM(rxrpc_eproto_different_last, "diff-last") \ 99 EM(rxrpc_eproto_early_reply, 99 EM(rxrpc_eproto_early_reply, "early-reply") \ 100 EM(rxrpc_eproto_improper_term, 100 EM(rxrpc_eproto_improper_term, "improper-term") \ 101 EM(rxrpc_eproto_no_client_call, 101 EM(rxrpc_eproto_no_client_call, "no-cl-call") \ 102 EM(rxrpc_eproto_no_client_conn, 102 EM(rxrpc_eproto_no_client_conn, "no-cl-conn") \ 103 EM(rxrpc_eproto_no_service_call, 103 EM(rxrpc_eproto_no_service_call, "no-sv-call") \ 104 EM(rxrpc_eproto_reupgrade, 104 EM(rxrpc_eproto_reupgrade, "re-upgrade") \ 105 EM(rxrpc_eproto_rxnull_challenge, 105 EM(rxrpc_eproto_rxnull_challenge, "rxnull-chall") \ 106 EM(rxrpc_eproto_rxnull_response, 106 EM(rxrpc_eproto_rxnull_response, "rxnull-resp") \ 107 EM(rxrpc_eproto_tx_rot_last, 107 EM(rxrpc_eproto_tx_rot_last, "tx-rot-last") \ 108 EM(rxrpc_eproto_unexpected_ack, 108 EM(rxrpc_eproto_unexpected_ack, "unex-ack") \ 109 EM(rxrpc_eproto_unexpected_ackall, 109 EM(rxrpc_eproto_unexpected_ackall, "unex-ackall") \ 110 EM(rxrpc_eproto_unexpected_implicit_en 110 EM(rxrpc_eproto_unexpected_implicit_end, "unex-impl-end") \ 111 EM(rxrpc_eproto_unexpected_reply, 111 EM(rxrpc_eproto_unexpected_reply, "unex-reply") \ 112 EM(rxrpc_eproto_wrong_security, 112 EM(rxrpc_eproto_wrong_security, "wrong-sec") \ 113 EM(rxrpc_recvmsg_excess_data, 113 EM(rxrpc_recvmsg_excess_data, "recvmsg-excess") \ 114 EM(rxrpc_recvmsg_short_data, 114 EM(rxrpc_recvmsg_short_data, "recvmsg-short") \ 115 E_(rxrpc_sendmsg_late_send, 115 E_(rxrpc_sendmsg_late_send, "sendmsg-late") 116 116 117 #define rxrpc_call_poke_traces \ 117 #define rxrpc_call_poke_traces \ 118 EM(rxrpc_call_poke_abort, 118 EM(rxrpc_call_poke_abort, "Abort") \ 119 EM(rxrpc_call_poke_complete, 119 EM(rxrpc_call_poke_complete, "Compl") \ 120 EM(rxrpc_call_poke_error, 120 EM(rxrpc_call_poke_error, "Error") \ 121 EM(rxrpc_call_poke_idle, 121 EM(rxrpc_call_poke_idle, "Idle") \ 122 EM(rxrpc_call_poke_set_timeout, << 123 EM(rxrpc_call_poke_start, 122 EM(rxrpc_call_poke_start, "Start") \ 124 EM(rxrpc_call_poke_timer, 123 EM(rxrpc_call_poke_timer, "Timer") \ 125 E_(rxrpc_call_poke_timer_now, 124 E_(rxrpc_call_poke_timer_now, "Timer-now") 126 125 127 #define rxrpc_skb_traces \ 126 #define rxrpc_skb_traces \ 128 EM(rxrpc_skb_eaten_by_unshare, 127 EM(rxrpc_skb_eaten_by_unshare, "ETN unshare ") \ 129 EM(rxrpc_skb_eaten_by_unshare_nomem, 128 EM(rxrpc_skb_eaten_by_unshare_nomem, "ETN unshar-nm") \ 130 EM(rxrpc_skb_get_conn_secured, 129 EM(rxrpc_skb_get_conn_secured, "GET conn-secd") \ 131 EM(rxrpc_skb_get_conn_work, 130 EM(rxrpc_skb_get_conn_work, "GET conn-work") \ 132 EM(rxrpc_skb_get_last_nack, << 133 EM(rxrpc_skb_get_local_work, 131 EM(rxrpc_skb_get_local_work, "GET locl-work") \ 134 EM(rxrpc_skb_get_reject_work, 132 EM(rxrpc_skb_get_reject_work, "GET rej-work ") \ 135 EM(rxrpc_skb_get_to_recvmsg, 133 EM(rxrpc_skb_get_to_recvmsg, "GET to-recv ") \ 136 EM(rxrpc_skb_get_to_recvmsg_oos, 134 EM(rxrpc_skb_get_to_recvmsg_oos, "GET to-recv-o") \ 137 EM(rxrpc_skb_new_encap_rcv, 135 EM(rxrpc_skb_new_encap_rcv, "NEW encap-rcv") \ 138 EM(rxrpc_skb_new_error_report, 136 EM(rxrpc_skb_new_error_report, "NEW error-rpt") \ 139 EM(rxrpc_skb_new_jumbo_subpacket, 137 EM(rxrpc_skb_new_jumbo_subpacket, "NEW jumbo-sub") \ 140 EM(rxrpc_skb_new_unshared, 138 EM(rxrpc_skb_new_unshared, "NEW unshared ") \ 141 EM(rxrpc_skb_put_conn_secured, 139 EM(rxrpc_skb_put_conn_secured, "PUT conn-secd") \ 142 EM(rxrpc_skb_put_conn_work, 140 EM(rxrpc_skb_put_conn_work, "PUT conn-work") \ 143 EM(rxrpc_skb_put_error_report, 141 EM(rxrpc_skb_put_error_report, "PUT error-rep") \ 144 EM(rxrpc_skb_put_input, 142 EM(rxrpc_skb_put_input, "PUT input ") \ 145 EM(rxrpc_skb_put_jumbo_subpacket, 143 EM(rxrpc_skb_put_jumbo_subpacket, "PUT jumbo-sub") \ 146 EM(rxrpc_skb_put_last_nack, << 147 EM(rxrpc_skb_put_purge, 144 EM(rxrpc_skb_put_purge, "PUT purge ") \ 148 EM(rxrpc_skb_put_rotate, 145 EM(rxrpc_skb_put_rotate, "PUT rotate ") \ 149 EM(rxrpc_skb_put_unknown, 146 EM(rxrpc_skb_put_unknown, "PUT unknown ") \ 150 EM(rxrpc_skb_see_conn_work, 147 EM(rxrpc_skb_see_conn_work, "SEE conn-work") \ 151 EM(rxrpc_skb_see_recvmsg, 148 EM(rxrpc_skb_see_recvmsg, "SEE recvmsg ") \ 152 EM(rxrpc_skb_see_reject, 149 EM(rxrpc_skb_see_reject, "SEE reject ") \ 153 EM(rxrpc_skb_see_rotate, 150 EM(rxrpc_skb_see_rotate, "SEE rotate ") \ 154 E_(rxrpc_skb_see_version, 151 E_(rxrpc_skb_see_version, "SEE version ") 155 152 156 #define rxrpc_local_traces \ 153 #define rxrpc_local_traces \ 157 EM(rxrpc_local_free, 154 EM(rxrpc_local_free, "FREE ") \ 158 EM(rxrpc_local_get_call, 155 EM(rxrpc_local_get_call, "GET call ") \ 159 EM(rxrpc_local_get_client_conn, 156 EM(rxrpc_local_get_client_conn, "GET conn-cln") \ 160 EM(rxrpc_local_get_for_use, 157 EM(rxrpc_local_get_for_use, "GET for-use ") \ 161 EM(rxrpc_local_get_peer, 158 EM(rxrpc_local_get_peer, "GET peer ") \ 162 EM(rxrpc_local_get_prealloc_conn, 159 EM(rxrpc_local_get_prealloc_conn, "GET conn-pre") \ 163 EM(rxrpc_local_new, 160 EM(rxrpc_local_new, "NEW ") \ 164 EM(rxrpc_local_put_bind, 161 EM(rxrpc_local_put_bind, "PUT bind ") \ 165 EM(rxrpc_local_put_call, 162 EM(rxrpc_local_put_call, "PUT call ") \ 166 EM(rxrpc_local_put_for_use, 163 EM(rxrpc_local_put_for_use, "PUT for-use ") \ 167 EM(rxrpc_local_put_kill_conn, 164 EM(rxrpc_local_put_kill_conn, "PUT conn-kil") \ 168 EM(rxrpc_local_put_peer, 165 EM(rxrpc_local_put_peer, "PUT peer ") \ 169 EM(rxrpc_local_put_prealloc_peer, !! 166 EM(rxrpc_local_put_prealloc_conn, "PUT conn-pre") \ 170 EM(rxrpc_local_put_release_sock, 167 EM(rxrpc_local_put_release_sock, "PUT rel-sock") \ 171 EM(rxrpc_local_stop, 168 EM(rxrpc_local_stop, "STOP ") \ 172 EM(rxrpc_local_stopped, 169 EM(rxrpc_local_stopped, "STOPPED ") \ 173 EM(rxrpc_local_unuse_bind, 170 EM(rxrpc_local_unuse_bind, "UNU bind ") \ 174 EM(rxrpc_local_unuse_conn_work, 171 EM(rxrpc_local_unuse_conn_work, "UNU conn-wrk") \ 175 EM(rxrpc_local_unuse_peer_keepalive, 172 EM(rxrpc_local_unuse_peer_keepalive, "UNU peer-kpa") \ 176 EM(rxrpc_local_unuse_release_sock, 173 EM(rxrpc_local_unuse_release_sock, "UNU rel-sock") \ 177 EM(rxrpc_local_use_conn_work, 174 EM(rxrpc_local_use_conn_work, "USE conn-wrk") \ 178 EM(rxrpc_local_use_lookup, 175 EM(rxrpc_local_use_lookup, "USE lookup ") \ 179 E_(rxrpc_local_use_peer_keepalive, 176 E_(rxrpc_local_use_peer_keepalive, "USE peer-kpa") 180 177 181 #define rxrpc_peer_traces \ 178 #define rxrpc_peer_traces \ 182 EM(rxrpc_peer_free, 179 EM(rxrpc_peer_free, "FREE ") \ 183 EM(rxrpc_peer_get_accept, 180 EM(rxrpc_peer_get_accept, "GET accept ") \ 184 EM(rxrpc_peer_get_application, << 185 EM(rxrpc_peer_get_bundle, 181 EM(rxrpc_peer_get_bundle, "GET bundle ") \ 186 EM(rxrpc_peer_get_call, << 187 EM(rxrpc_peer_get_client_conn, 182 EM(rxrpc_peer_get_client_conn, "GET cln-conn") \ 188 EM(rxrpc_peer_get_input, 183 EM(rxrpc_peer_get_input, "GET input ") \ 189 EM(rxrpc_peer_get_input_error, 184 EM(rxrpc_peer_get_input_error, "GET inpt-err") \ 190 EM(rxrpc_peer_get_keepalive, 185 EM(rxrpc_peer_get_keepalive, "GET keepaliv") \ 191 EM(rxrpc_peer_get_lookup_client, 186 EM(rxrpc_peer_get_lookup_client, "GET look-cln") \ 192 EM(rxrpc_peer_get_service_conn, 187 EM(rxrpc_peer_get_service_conn, "GET srv-conn") \ 193 EM(rxrpc_peer_new_client, 188 EM(rxrpc_peer_new_client, "NEW client ") \ 194 EM(rxrpc_peer_new_prealloc, 189 EM(rxrpc_peer_new_prealloc, "NEW prealloc") \ 195 EM(rxrpc_peer_put_application, << 196 EM(rxrpc_peer_put_bundle, 190 EM(rxrpc_peer_put_bundle, "PUT bundle ") \ 197 EM(rxrpc_peer_put_call, 191 EM(rxrpc_peer_put_call, "PUT call ") \ 198 EM(rxrpc_peer_put_conn, 192 EM(rxrpc_peer_put_conn, "PUT conn ") \ 199 EM(rxrpc_peer_put_input, 193 EM(rxrpc_peer_put_input, "PUT input ") \ 200 EM(rxrpc_peer_put_input_error, 194 EM(rxrpc_peer_put_input_error, "PUT inpt-err") \ 201 E_(rxrpc_peer_put_keepalive, 195 E_(rxrpc_peer_put_keepalive, "PUT keepaliv") 202 196 203 #define rxrpc_bundle_traces \ 197 #define rxrpc_bundle_traces \ 204 EM(rxrpc_bundle_free, 198 EM(rxrpc_bundle_free, "FREE ") \ 205 EM(rxrpc_bundle_get_client_call, 199 EM(rxrpc_bundle_get_client_call, "GET clt-call") \ 206 EM(rxrpc_bundle_get_client_conn, 200 EM(rxrpc_bundle_get_client_conn, "GET clt-conn") \ 207 EM(rxrpc_bundle_get_service_conn, 201 EM(rxrpc_bundle_get_service_conn, "GET svc-conn") \ 208 EM(rxrpc_bundle_put_call, 202 EM(rxrpc_bundle_put_call, "PUT call ") \ 209 EM(rxrpc_bundle_put_conn, 203 EM(rxrpc_bundle_put_conn, "PUT conn ") \ 210 EM(rxrpc_bundle_put_discard, 204 EM(rxrpc_bundle_put_discard, "PUT discard ") \ 211 E_(rxrpc_bundle_new, 205 E_(rxrpc_bundle_new, "NEW ") 212 206 213 #define rxrpc_conn_traces \ 207 #define rxrpc_conn_traces \ 214 EM(rxrpc_conn_free, 208 EM(rxrpc_conn_free, "FREE ") \ 215 EM(rxrpc_conn_get_activate_call, 209 EM(rxrpc_conn_get_activate_call, "GET act-call") \ 216 EM(rxrpc_conn_get_call_input, 210 EM(rxrpc_conn_get_call_input, "GET inp-call") \ 217 EM(rxrpc_conn_get_conn_input, 211 EM(rxrpc_conn_get_conn_input, "GET inp-conn") \ 218 EM(rxrpc_conn_get_idle, 212 EM(rxrpc_conn_get_idle, "GET idle ") \ 219 EM(rxrpc_conn_get_poke_abort, 213 EM(rxrpc_conn_get_poke_abort, "GET pk-abort") \ 220 EM(rxrpc_conn_get_poke_timer, 214 EM(rxrpc_conn_get_poke_timer, "GET poke ") \ 221 EM(rxrpc_conn_get_service_conn, 215 EM(rxrpc_conn_get_service_conn, "GET svc-conn") \ 222 EM(rxrpc_conn_new_client, 216 EM(rxrpc_conn_new_client, "NEW client ") \ 223 EM(rxrpc_conn_new_service, 217 EM(rxrpc_conn_new_service, "NEW service ") \ 224 EM(rxrpc_conn_put_call, 218 EM(rxrpc_conn_put_call, "PUT call ") \ 225 EM(rxrpc_conn_put_call_input, 219 EM(rxrpc_conn_put_call_input, "PUT inp-call") \ 226 EM(rxrpc_conn_put_conn_input, 220 EM(rxrpc_conn_put_conn_input, "PUT inp-conn") \ 227 EM(rxrpc_conn_put_discard_idle, 221 EM(rxrpc_conn_put_discard_idle, "PUT disc-idl") \ 228 EM(rxrpc_conn_put_local_dead, 222 EM(rxrpc_conn_put_local_dead, "PUT loc-dead") \ 229 EM(rxrpc_conn_put_noreuse, 223 EM(rxrpc_conn_put_noreuse, "PUT noreuse ") \ 230 EM(rxrpc_conn_put_poke, 224 EM(rxrpc_conn_put_poke, "PUT poke ") \ 231 EM(rxrpc_conn_put_service_reaped, 225 EM(rxrpc_conn_put_service_reaped, "PUT svc-reap") \ 232 EM(rxrpc_conn_put_unbundle, 226 EM(rxrpc_conn_put_unbundle, "PUT unbundle") \ 233 EM(rxrpc_conn_put_unidle, 227 EM(rxrpc_conn_put_unidle, "PUT unidle ") \ 234 EM(rxrpc_conn_put_work, 228 EM(rxrpc_conn_put_work, "PUT work ") \ 235 EM(rxrpc_conn_queue_challenge, 229 EM(rxrpc_conn_queue_challenge, "QUE chall ") \ 236 EM(rxrpc_conn_queue_retry_work, 230 EM(rxrpc_conn_queue_retry_work, "QUE retry-wk") \ 237 EM(rxrpc_conn_queue_rx_work, 231 EM(rxrpc_conn_queue_rx_work, "QUE rx-work ") \ 238 EM(rxrpc_conn_see_new_service_conn, 232 EM(rxrpc_conn_see_new_service_conn, "SEE new-svc ") \ 239 EM(rxrpc_conn_see_reap_service, 233 EM(rxrpc_conn_see_reap_service, "SEE reap-svc") \ 240 E_(rxrpc_conn_see_work, 234 E_(rxrpc_conn_see_work, "SEE work ") 241 235 242 #define rxrpc_client_traces \ 236 #define rxrpc_client_traces \ 243 EM(rxrpc_client_activate_chans, 237 EM(rxrpc_client_activate_chans, "Activa") \ 244 EM(rxrpc_client_alloc, 238 EM(rxrpc_client_alloc, "Alloc ") \ 245 EM(rxrpc_client_chan_activate, 239 EM(rxrpc_client_chan_activate, "ChActv") \ 246 EM(rxrpc_client_chan_disconnect, 240 EM(rxrpc_client_chan_disconnect, "ChDisc") \ 247 EM(rxrpc_client_chan_pass, 241 EM(rxrpc_client_chan_pass, "ChPass") \ 248 EM(rxrpc_client_cleanup, 242 EM(rxrpc_client_cleanup, "Clean ") \ 249 EM(rxrpc_client_discard, 243 EM(rxrpc_client_discard, "Discar") \ 250 EM(rxrpc_client_exposed, 244 EM(rxrpc_client_exposed, "Expose") \ 251 EM(rxrpc_client_replace, 245 EM(rxrpc_client_replace, "Replac") \ 252 EM(rxrpc_client_queue_new_call, 246 EM(rxrpc_client_queue_new_call, "Q-Call") \ 253 EM(rxrpc_client_to_active, 247 EM(rxrpc_client_to_active, "->Actv") \ 254 E_(rxrpc_client_to_idle, 248 E_(rxrpc_client_to_idle, "->Idle") 255 249 256 #define rxrpc_call_traces \ 250 #define rxrpc_call_traces \ 257 EM(rxrpc_call_get_io_thread, 251 EM(rxrpc_call_get_io_thread, "GET iothread") \ 258 EM(rxrpc_call_get_input, 252 EM(rxrpc_call_get_input, "GET input ") \ 259 EM(rxrpc_call_get_kernel_service, 253 EM(rxrpc_call_get_kernel_service, "GET krnl-srv") \ 260 EM(rxrpc_call_get_notify_socket, 254 EM(rxrpc_call_get_notify_socket, "GET notify ") \ 261 EM(rxrpc_call_get_poke, 255 EM(rxrpc_call_get_poke, "GET poke ") \ 262 EM(rxrpc_call_get_recvmsg, 256 EM(rxrpc_call_get_recvmsg, "GET recvmsg ") \ 263 EM(rxrpc_call_get_release_sock, 257 EM(rxrpc_call_get_release_sock, "GET rel-sock") \ 264 EM(rxrpc_call_get_sendmsg, 258 EM(rxrpc_call_get_sendmsg, "GET sendmsg ") \ 265 EM(rxrpc_call_get_userid, 259 EM(rxrpc_call_get_userid, "GET user-id ") \ 266 EM(rxrpc_call_new_client, 260 EM(rxrpc_call_new_client, "NEW client ") \ 267 EM(rxrpc_call_new_prealloc_service, 261 EM(rxrpc_call_new_prealloc_service, "NEW prealloc") \ 268 EM(rxrpc_call_put_discard_prealloc, 262 EM(rxrpc_call_put_discard_prealloc, "PUT disc-pre") \ 269 EM(rxrpc_call_put_discard_error, 263 EM(rxrpc_call_put_discard_error, "PUT disc-err") \ 270 EM(rxrpc_call_put_io_thread, 264 EM(rxrpc_call_put_io_thread, "PUT iothread") \ 271 EM(rxrpc_call_put_input, 265 EM(rxrpc_call_put_input, "PUT input ") \ 272 EM(rxrpc_call_put_kernel, 266 EM(rxrpc_call_put_kernel, "PUT kernel ") \ 273 EM(rxrpc_call_put_poke, 267 EM(rxrpc_call_put_poke, "PUT poke ") \ 274 EM(rxrpc_call_put_recvmsg, 268 EM(rxrpc_call_put_recvmsg, "PUT recvmsg ") \ 275 EM(rxrpc_call_put_release_sock, 269 EM(rxrpc_call_put_release_sock, "PUT rls-sock") \ 276 EM(rxrpc_call_put_release_sock_tba, 270 EM(rxrpc_call_put_release_sock_tba, "PUT rls-sk-a") \ 277 EM(rxrpc_call_put_sendmsg, 271 EM(rxrpc_call_put_sendmsg, "PUT sendmsg ") \ 278 EM(rxrpc_call_put_unnotify, 272 EM(rxrpc_call_put_unnotify, "PUT unnotify") \ 279 EM(rxrpc_call_put_userid_exists, 273 EM(rxrpc_call_put_userid_exists, "PUT u-exists") \ 280 EM(rxrpc_call_put_userid, 274 EM(rxrpc_call_put_userid, "PUT user-id ") \ 281 EM(rxrpc_call_see_accept, 275 EM(rxrpc_call_see_accept, "SEE accept ") \ 282 EM(rxrpc_call_see_activate_client, 276 EM(rxrpc_call_see_activate_client, "SEE act-clnt") \ 283 EM(rxrpc_call_see_connect_failed, 277 EM(rxrpc_call_see_connect_failed, "SEE con-fail") \ 284 EM(rxrpc_call_see_connected, 278 EM(rxrpc_call_see_connected, "SEE connect ") \ 285 EM(rxrpc_call_see_disconnected, 279 EM(rxrpc_call_see_disconnected, "SEE disconn ") \ 286 EM(rxrpc_call_see_distribute_error, 280 EM(rxrpc_call_see_distribute_error, "SEE dist-err") \ 287 EM(rxrpc_call_see_input, 281 EM(rxrpc_call_see_input, "SEE input ") \ 288 EM(rxrpc_call_see_release, 282 EM(rxrpc_call_see_release, "SEE release ") \ 289 EM(rxrpc_call_see_userid_exists, 283 EM(rxrpc_call_see_userid_exists, "SEE u-exists") \ 290 EM(rxrpc_call_see_waiting_call, << 291 E_(rxrpc_call_see_zap, 284 E_(rxrpc_call_see_zap, "SEE zap ") 292 285 293 #define rxrpc_txqueue_traces \ 286 #define rxrpc_txqueue_traces \ 294 EM(rxrpc_txqueue_await_reply, 287 EM(rxrpc_txqueue_await_reply, "AWR") \ 295 EM(rxrpc_txqueue_dequeue, 288 EM(rxrpc_txqueue_dequeue, "DEQ") \ 296 EM(rxrpc_txqueue_end, 289 EM(rxrpc_txqueue_end, "END") \ 297 EM(rxrpc_txqueue_queue, 290 EM(rxrpc_txqueue_queue, "QUE") \ 298 EM(rxrpc_txqueue_queue_last, 291 EM(rxrpc_txqueue_queue_last, "QLS") \ 299 EM(rxrpc_txqueue_rotate, 292 EM(rxrpc_txqueue_rotate, "ROT") \ 300 EM(rxrpc_txqueue_rotate_last, 293 EM(rxrpc_txqueue_rotate_last, "RLS") \ 301 E_(rxrpc_txqueue_wait, 294 E_(rxrpc_txqueue_wait, "WAI") 302 295 303 #define rxrpc_receive_traces \ 296 #define rxrpc_receive_traces \ 304 EM(rxrpc_receive_end, 297 EM(rxrpc_receive_end, "END") \ 305 EM(rxrpc_receive_front, 298 EM(rxrpc_receive_front, "FRN") \ 306 EM(rxrpc_receive_incoming, 299 EM(rxrpc_receive_incoming, "INC") \ 307 EM(rxrpc_receive_queue, 300 EM(rxrpc_receive_queue, "QUE") \ 308 EM(rxrpc_receive_queue_last, 301 EM(rxrpc_receive_queue_last, "QLS") \ 309 EM(rxrpc_receive_queue_oos, 302 EM(rxrpc_receive_queue_oos, "QUO") \ 310 EM(rxrpc_receive_queue_oos_last, 303 EM(rxrpc_receive_queue_oos_last, "QOL") \ 311 EM(rxrpc_receive_oos, 304 EM(rxrpc_receive_oos, "OOS") \ 312 EM(rxrpc_receive_oos_last, 305 EM(rxrpc_receive_oos_last, "OSL") \ 313 EM(rxrpc_receive_rotate, 306 EM(rxrpc_receive_rotate, "ROT") \ 314 E_(rxrpc_receive_rotate_last, 307 E_(rxrpc_receive_rotate_last, "RLS") 315 308 316 #define rxrpc_recvmsg_traces \ 309 #define rxrpc_recvmsg_traces \ 317 EM(rxrpc_recvmsg_cont, 310 EM(rxrpc_recvmsg_cont, "CONT") \ 318 EM(rxrpc_recvmsg_data_return, 311 EM(rxrpc_recvmsg_data_return, "DATA") \ 319 EM(rxrpc_recvmsg_dequeue, 312 EM(rxrpc_recvmsg_dequeue, "DEQU") \ 320 EM(rxrpc_recvmsg_enter, 313 EM(rxrpc_recvmsg_enter, "ENTR") \ 321 EM(rxrpc_recvmsg_full, 314 EM(rxrpc_recvmsg_full, "FULL") \ 322 EM(rxrpc_recvmsg_hole, 315 EM(rxrpc_recvmsg_hole, "HOLE") \ 323 EM(rxrpc_recvmsg_next, 316 EM(rxrpc_recvmsg_next, "NEXT") \ 324 EM(rxrpc_recvmsg_requeue, 317 EM(rxrpc_recvmsg_requeue, "REQU") \ 325 EM(rxrpc_recvmsg_return, 318 EM(rxrpc_recvmsg_return, "RETN") \ 326 EM(rxrpc_recvmsg_terminal, 319 EM(rxrpc_recvmsg_terminal, "TERM") \ 327 EM(rxrpc_recvmsg_to_be_accepted, 320 EM(rxrpc_recvmsg_to_be_accepted, "TBAC") \ 328 EM(rxrpc_recvmsg_unqueue, << 329 E_(rxrpc_recvmsg_wait, 321 E_(rxrpc_recvmsg_wait, "WAIT") 330 322 331 #define rxrpc_rtt_tx_traces \ 323 #define rxrpc_rtt_tx_traces \ 332 EM(rxrpc_rtt_tx_cancel, 324 EM(rxrpc_rtt_tx_cancel, "CNCE") \ 333 EM(rxrpc_rtt_tx_data, 325 EM(rxrpc_rtt_tx_data, "DATA") \ 334 EM(rxrpc_rtt_tx_no_slot, 326 EM(rxrpc_rtt_tx_no_slot, "FULL") \ 335 E_(rxrpc_rtt_tx_ping, 327 E_(rxrpc_rtt_tx_ping, "PING") 336 328 337 #define rxrpc_rtt_rx_traces \ 329 #define rxrpc_rtt_rx_traces \ 338 EM(rxrpc_rtt_rx_other_ack, !! 330 EM(rxrpc_rtt_rx_cancel, "CNCL") \ 339 EM(rxrpc_rtt_rx_obsolete, 331 EM(rxrpc_rtt_rx_obsolete, "OBSL") \ 340 EM(rxrpc_rtt_rx_lost, 332 EM(rxrpc_rtt_rx_lost, "LOST") \ 341 EM(rxrpc_rtt_rx_ping_response, 333 EM(rxrpc_rtt_rx_ping_response, "PONG") \ 342 E_(rxrpc_rtt_rx_requested_ack, 334 E_(rxrpc_rtt_rx_requested_ack, "RACK") 343 335 344 #define rxrpc_timer_traces \ 336 #define rxrpc_timer_traces \ 345 EM(rxrpc_timer_trace_delayed_ack, !! 337 EM(rxrpc_timer_begin, "Begin ") \ 346 EM(rxrpc_timer_trace_expect_rx, !! 338 EM(rxrpc_timer_exp_ack, "ExpAck") \ 347 EM(rxrpc_timer_trace_hard, !! 339 EM(rxrpc_timer_exp_hard, "ExpHrd") \ 348 EM(rxrpc_timer_trace_idle, !! 340 EM(rxrpc_timer_exp_idle, "ExpIdl") \ 349 EM(rxrpc_timer_trace_keepalive, !! 341 EM(rxrpc_timer_exp_keepalive, "ExpKA ") \ 350 EM(rxrpc_timer_trace_lost_ack, !! 342 EM(rxrpc_timer_exp_lost_ack, "ExpLoA") \ 351 EM(rxrpc_timer_trace_ping, !! 343 EM(rxrpc_timer_exp_normal, "ExpNml") \ 352 EM(rxrpc_timer_trace_resend, !! 344 EM(rxrpc_timer_exp_ping, "ExpPng") \ 353 EM(rxrpc_timer_trace_resend_reset, !! 345 EM(rxrpc_timer_exp_resend, "ExpRsn") \ 354 E_(rxrpc_timer_trace_resend_tx, !! 346 EM(rxrpc_timer_init_for_reply, "IniRpl") \ >> 347 EM(rxrpc_timer_init_for_send_reply, "SndRpl") \ >> 348 EM(rxrpc_timer_restart, "Restrt") \ >> 349 EM(rxrpc_timer_set_for_ack, "SetAck") \ >> 350 EM(rxrpc_timer_set_for_hard, "SetHrd") \ >> 351 EM(rxrpc_timer_set_for_idle, "SetIdl") \ >> 352 EM(rxrpc_timer_set_for_keepalive, "KeepAl") \ >> 353 EM(rxrpc_timer_set_for_lost_ack, "SetLoA") \ >> 354 EM(rxrpc_timer_set_for_normal, "SetNml") \ >> 355 EM(rxrpc_timer_set_for_ping, "SetPng") \ >> 356 EM(rxrpc_timer_set_for_resend, "SetRTx") \ >> 357 E_(rxrpc_timer_set_for_send, "SetSnd") 355 358 356 #define rxrpc_propose_ack_traces \ 359 #define rxrpc_propose_ack_traces \ 357 EM(rxrpc_propose_ack_client_tx_end, 360 EM(rxrpc_propose_ack_client_tx_end, "ClTxEnd") \ 358 EM(rxrpc_propose_ack_delayed_ack, << 359 EM(rxrpc_propose_ack_input_data, 361 EM(rxrpc_propose_ack_input_data, "DataIn ") \ 360 EM(rxrpc_propose_ack_input_data_hole, 362 EM(rxrpc_propose_ack_input_data_hole, "DataInH") \ >> 363 EM(rxrpc_propose_ack_ping_for_check_life, "ChkLife") \ 361 EM(rxrpc_propose_ack_ping_for_keepaliv 364 EM(rxrpc_propose_ack_ping_for_keepalive, "KeepAlv") \ 362 EM(rxrpc_propose_ack_ping_for_lost_ack 365 EM(rxrpc_propose_ack_ping_for_lost_ack, "LostAck") \ 363 EM(rxrpc_propose_ack_ping_for_lost_rep 366 EM(rxrpc_propose_ack_ping_for_lost_reply, "LostRpl") \ 364 EM(rxrpc_propose_ack_ping_for_0_retran << 365 EM(rxrpc_propose_ack_ping_for_old_rtt, << 366 EM(rxrpc_propose_ack_ping_for_params, 367 EM(rxrpc_propose_ack_ping_for_params, "Params ") \ 367 EM(rxrpc_propose_ack_ping_for_rtt, << 368 EM(rxrpc_propose_ack_processing_op, 368 EM(rxrpc_propose_ack_processing_op, "ProcOp ") \ 369 EM(rxrpc_propose_ack_respond_to_ack, 369 EM(rxrpc_propose_ack_respond_to_ack, "Rsp2Ack") \ 370 EM(rxrpc_propose_ack_respond_to_ping, 370 EM(rxrpc_propose_ack_respond_to_ping, "Rsp2Png") \ 371 EM(rxrpc_propose_ack_retry_tx, 371 EM(rxrpc_propose_ack_retry_tx, "RetryTx") \ 372 EM(rxrpc_propose_ack_rotate_rx, 372 EM(rxrpc_propose_ack_rotate_rx, "RxAck ") \ 373 EM(rxrpc_propose_ack_rx_idle, 373 EM(rxrpc_propose_ack_rx_idle, "RxIdle ") \ 374 E_(rxrpc_propose_ack_terminal_ack, 374 E_(rxrpc_propose_ack_terminal_ack, "ClTerm ") 375 375 376 #define rxrpc_congest_modes \ 376 #define rxrpc_congest_modes \ 377 EM(RXRPC_CALL_CONGEST_AVOIDANCE, 377 EM(RXRPC_CALL_CONGEST_AVOIDANCE, "CongAvoid") \ 378 EM(RXRPC_CALL_FAST_RETRANSMIT, 378 EM(RXRPC_CALL_FAST_RETRANSMIT, "FastReTx ") \ 379 EM(RXRPC_CALL_PACKET_LOSS, 379 EM(RXRPC_CALL_PACKET_LOSS, "PktLoss ") \ 380 E_(RXRPC_CALL_SLOW_START, 380 E_(RXRPC_CALL_SLOW_START, "SlowStart") 381 381 382 #define rxrpc_congest_changes \ 382 #define rxrpc_congest_changes \ 383 EM(rxrpc_cong_begin_retransmission, 383 EM(rxrpc_cong_begin_retransmission, " Retrans") \ 384 EM(rxrpc_cong_cleared_nacks, 384 EM(rxrpc_cong_cleared_nacks, " Cleared") \ 385 EM(rxrpc_cong_new_low_nack, 385 EM(rxrpc_cong_new_low_nack, " NewLowN") \ 386 EM(rxrpc_cong_no_change, 386 EM(rxrpc_cong_no_change, " -") \ 387 EM(rxrpc_cong_progress, 387 EM(rxrpc_cong_progress, " Progres") \ 388 EM(rxrpc_cong_idle_reset, 388 EM(rxrpc_cong_idle_reset, " IdleRes") \ 389 EM(rxrpc_cong_retransmit_again, 389 EM(rxrpc_cong_retransmit_again, " ReTxAgn") \ 390 EM(rxrpc_cong_rtt_window_end, 390 EM(rxrpc_cong_rtt_window_end, " RttWinE") \ 391 E_(rxrpc_cong_saw_nack, 391 E_(rxrpc_cong_saw_nack, " SawNack") 392 392 393 #define rxrpc_pkts \ 393 #define rxrpc_pkts \ 394 EM(0, 394 EM(0, "?00") \ 395 EM(RXRPC_PACKET_TYPE_DATA, 395 EM(RXRPC_PACKET_TYPE_DATA, "DATA") \ 396 EM(RXRPC_PACKET_TYPE_ACK, 396 EM(RXRPC_PACKET_TYPE_ACK, "ACK") \ 397 EM(RXRPC_PACKET_TYPE_BUSY, 397 EM(RXRPC_PACKET_TYPE_BUSY, "BUSY") \ 398 EM(RXRPC_PACKET_TYPE_ABORT, 398 EM(RXRPC_PACKET_TYPE_ABORT, "ABORT") \ 399 EM(RXRPC_PACKET_TYPE_ACKALL, 399 EM(RXRPC_PACKET_TYPE_ACKALL, "ACKALL") \ 400 EM(RXRPC_PACKET_TYPE_CHALLENGE, 400 EM(RXRPC_PACKET_TYPE_CHALLENGE, "CHALL") \ 401 EM(RXRPC_PACKET_TYPE_RESPONSE, 401 EM(RXRPC_PACKET_TYPE_RESPONSE, "RESP") \ 402 EM(RXRPC_PACKET_TYPE_DEBUG, 402 EM(RXRPC_PACKET_TYPE_DEBUG, "DEBUG") \ 403 EM(9, 403 EM(9, "?09") \ 404 EM(10, 404 EM(10, "?10") \ 405 EM(11, 405 EM(11, "?11") \ 406 EM(12, 406 EM(12, "?12") \ 407 EM(RXRPC_PACKET_TYPE_VERSION, 407 EM(RXRPC_PACKET_TYPE_VERSION, "VERSION") \ 408 EM(14, 408 EM(14, "?14") \ 409 E_(15, 409 E_(15, "?15") 410 410 411 #define rxrpc_ack_names \ 411 #define rxrpc_ack_names \ 412 EM(0, 412 EM(0, "-0-") \ 413 EM(RXRPC_ACK_REQUESTED, 413 EM(RXRPC_ACK_REQUESTED, "REQ") \ 414 EM(RXRPC_ACK_DUPLICATE, 414 EM(RXRPC_ACK_DUPLICATE, "DUP") \ 415 EM(RXRPC_ACK_OUT_OF_SEQUENCE, 415 EM(RXRPC_ACK_OUT_OF_SEQUENCE, "OOS") \ 416 EM(RXRPC_ACK_EXCEEDS_WINDOW, 416 EM(RXRPC_ACK_EXCEEDS_WINDOW, "WIN") \ 417 EM(RXRPC_ACK_NOSPACE, 417 EM(RXRPC_ACK_NOSPACE, "MEM") \ 418 EM(RXRPC_ACK_PING, 418 EM(RXRPC_ACK_PING, "PNG") \ 419 EM(RXRPC_ACK_PING_RESPONSE, 419 EM(RXRPC_ACK_PING_RESPONSE, "PNR") \ 420 EM(RXRPC_ACK_DELAY, 420 EM(RXRPC_ACK_DELAY, "DLY") \ 421 EM(RXRPC_ACK_IDLE, 421 EM(RXRPC_ACK_IDLE, "IDL") \ 422 E_(RXRPC_ACK__INVALID, 422 E_(RXRPC_ACK__INVALID, "-?-") 423 423 424 #define rxrpc_sack_traces \ << 425 EM(rxrpc_sack_advance, << 426 EM(rxrpc_sack_fill, << 427 EM(rxrpc_sack_nack, << 428 EM(rxrpc_sack_none, << 429 E_(rxrpc_sack_oos, << 430 << 431 #define rxrpc_completions \ 424 #define rxrpc_completions \ 432 EM(RXRPC_CALL_SUCCEEDED, 425 EM(RXRPC_CALL_SUCCEEDED, "Succeeded") \ 433 EM(RXRPC_CALL_REMOTELY_ABORTED, 426 EM(RXRPC_CALL_REMOTELY_ABORTED, "RemoteAbort") \ 434 EM(RXRPC_CALL_LOCALLY_ABORTED, 427 EM(RXRPC_CALL_LOCALLY_ABORTED, "LocalAbort") \ 435 EM(RXRPC_CALL_LOCAL_ERROR, 428 EM(RXRPC_CALL_LOCAL_ERROR, "LocalError") \ 436 E_(RXRPC_CALL_NETWORK_ERROR, 429 E_(RXRPC_CALL_NETWORK_ERROR, "NetError") 437 430 438 #define rxrpc_tx_points \ 431 #define rxrpc_tx_points \ 439 EM(rxrpc_tx_point_call_abort, 432 EM(rxrpc_tx_point_call_abort, "CallAbort") \ 440 EM(rxrpc_tx_point_call_ack, 433 EM(rxrpc_tx_point_call_ack, "CallAck") \ 441 EM(rxrpc_tx_point_call_data_frag, 434 EM(rxrpc_tx_point_call_data_frag, "CallDataFrag") \ 442 EM(rxrpc_tx_point_call_data_nofrag, 435 EM(rxrpc_tx_point_call_data_nofrag, "CallDataNofrag") \ 443 EM(rxrpc_tx_point_call_final_resend, 436 EM(rxrpc_tx_point_call_final_resend, "CallFinalResend") \ 444 EM(rxrpc_tx_point_conn_abort, 437 EM(rxrpc_tx_point_conn_abort, "ConnAbort") \ 445 EM(rxrpc_tx_point_reject, 438 EM(rxrpc_tx_point_reject, "Reject") \ 446 EM(rxrpc_tx_point_rxkad_challenge, 439 EM(rxrpc_tx_point_rxkad_challenge, "RxkadChall") \ 447 EM(rxrpc_tx_point_rxkad_response, 440 EM(rxrpc_tx_point_rxkad_response, "RxkadResp") \ 448 EM(rxrpc_tx_point_version_keepalive, 441 EM(rxrpc_tx_point_version_keepalive, "VerKeepalive") \ 449 E_(rxrpc_tx_point_version_reply, 442 E_(rxrpc_tx_point_version_reply, "VerReply") 450 443 451 #define rxrpc_req_ack_traces \ 444 #define rxrpc_req_ack_traces \ 452 EM(rxrpc_reqack_ack_lost, 445 EM(rxrpc_reqack_ack_lost, "ACK-LOST ") \ 453 EM(rxrpc_reqack_already_on, 446 EM(rxrpc_reqack_already_on, "ALREADY-ON") \ 454 EM(rxrpc_reqack_more_rtt, 447 EM(rxrpc_reqack_more_rtt, "MORE-RTT ") \ 455 EM(rxrpc_reqack_no_srv_last, 448 EM(rxrpc_reqack_no_srv_last, "NO-SRVLAST") \ 456 EM(rxrpc_reqack_old_rtt, 449 EM(rxrpc_reqack_old_rtt, "OLD-RTT ") \ 457 EM(rxrpc_reqack_retrans, 450 EM(rxrpc_reqack_retrans, "RETRANS ") \ 458 EM(rxrpc_reqack_slow_start, 451 EM(rxrpc_reqack_slow_start, "SLOW-START") \ 459 E_(rxrpc_reqack_small_txwin, 452 E_(rxrpc_reqack_small_txwin, "SMALL-TXWN") 460 /* ---- Must update size of stat_why_req_ack[] 453 /* ---- Must update size of stat_why_req_ack[] if more are added! */ 461 454 462 #define rxrpc_txbuf_traces \ 455 #define rxrpc_txbuf_traces \ 463 EM(rxrpc_txbuf_alloc_ack, 456 EM(rxrpc_txbuf_alloc_ack, "ALLOC ACK ") \ 464 EM(rxrpc_txbuf_alloc_data, 457 EM(rxrpc_txbuf_alloc_data, "ALLOC DATA ") \ 465 EM(rxrpc_txbuf_free, 458 EM(rxrpc_txbuf_free, "FREE ") \ 466 EM(rxrpc_txbuf_get_buffer, 459 EM(rxrpc_txbuf_get_buffer, "GET BUFFER ") \ 467 EM(rxrpc_txbuf_get_trans, 460 EM(rxrpc_txbuf_get_trans, "GET TRANS ") \ 468 EM(rxrpc_txbuf_get_retrans, 461 EM(rxrpc_txbuf_get_retrans, "GET RETRANS") \ 469 EM(rxrpc_txbuf_put_ack_tx, 462 EM(rxrpc_txbuf_put_ack_tx, "PUT ACK TX ") \ 470 EM(rxrpc_txbuf_put_cleaned, 463 EM(rxrpc_txbuf_put_cleaned, "PUT CLEANED") \ 471 EM(rxrpc_txbuf_put_nomem, 464 EM(rxrpc_txbuf_put_nomem, "PUT NOMEM ") \ 472 EM(rxrpc_txbuf_put_rotated, 465 EM(rxrpc_txbuf_put_rotated, "PUT ROTATED") \ 473 EM(rxrpc_txbuf_put_send_aborted, 466 EM(rxrpc_txbuf_put_send_aborted, "PUT SEND-X ") \ 474 EM(rxrpc_txbuf_put_trans, 467 EM(rxrpc_txbuf_put_trans, "PUT TRANS ") \ 475 EM(rxrpc_txbuf_see_out_of_step, 468 EM(rxrpc_txbuf_see_out_of_step, "OUT-OF-STEP") \ 476 EM(rxrpc_txbuf_see_send_more, 469 EM(rxrpc_txbuf_see_send_more, "SEE SEND+ ") \ 477 E_(rxrpc_txbuf_see_unacked, 470 E_(rxrpc_txbuf_see_unacked, "SEE UNACKED") 478 471 479 /* 472 /* 480 * Generate enums for tracing information. 473 * Generate enums for tracing information. 481 */ 474 */ 482 #ifndef __NETFS_DECLARE_TRACE_ENUMS_ONCE_ONLY 475 #ifndef __NETFS_DECLARE_TRACE_ENUMS_ONCE_ONLY 483 #define __NETFS_DECLARE_TRACE_ENUMS_ONCE_ONLY 476 #define __NETFS_DECLARE_TRACE_ENUMS_ONCE_ONLY 484 477 485 #undef EM 478 #undef EM 486 #undef E_ 479 #undef E_ 487 #define EM(a, b) a, 480 #define EM(a, b) a, 488 #define E_(a, b) a 481 #define E_(a, b) a 489 482 490 enum rxrpc_abort_reason { rxrpc_abort_ 483 enum rxrpc_abort_reason { rxrpc_abort_reasons } __mode(byte); 491 enum rxrpc_bundle_trace { rxrpc_bundle 484 enum rxrpc_bundle_trace { rxrpc_bundle_traces } __mode(byte); 492 enum rxrpc_call_poke_trace { rxrpc_call_p 485 enum rxrpc_call_poke_trace { rxrpc_call_poke_traces } __mode(byte); 493 enum rxrpc_call_trace { rxrpc_call_t 486 enum rxrpc_call_trace { rxrpc_call_traces } __mode(byte); 494 enum rxrpc_client_trace { rxrpc_client 487 enum rxrpc_client_trace { rxrpc_client_traces } __mode(byte); 495 enum rxrpc_congest_change { rxrpc_conges 488 enum rxrpc_congest_change { rxrpc_congest_changes } __mode(byte); 496 enum rxrpc_conn_trace { rxrpc_conn_t 489 enum rxrpc_conn_trace { rxrpc_conn_traces } __mode(byte); 497 enum rxrpc_local_trace { rxrpc_local_ 490 enum rxrpc_local_trace { rxrpc_local_traces } __mode(byte); 498 enum rxrpc_peer_trace { rxrpc_peer_t 491 enum rxrpc_peer_trace { rxrpc_peer_traces } __mode(byte); 499 enum rxrpc_propose_ack_outcome { rxrpc_propos 492 enum rxrpc_propose_ack_outcome { rxrpc_propose_ack_outcomes } __mode(byte); 500 enum rxrpc_propose_ack_trace { rxrpc_propos 493 enum rxrpc_propose_ack_trace { rxrpc_propose_ack_traces } __mode(byte); 501 enum rxrpc_receive_trace { rxrpc_receiv 494 enum rxrpc_receive_trace { rxrpc_receive_traces } __mode(byte); 502 enum rxrpc_recvmsg_trace { rxrpc_recvms 495 enum rxrpc_recvmsg_trace { rxrpc_recvmsg_traces } __mode(byte); 503 enum rxrpc_req_ack_trace { rxrpc_req_ac 496 enum rxrpc_req_ack_trace { rxrpc_req_ack_traces } __mode(byte); 504 enum rxrpc_rtt_rx_trace { rxrpc_rtt_rx 497 enum rxrpc_rtt_rx_trace { rxrpc_rtt_rx_traces } __mode(byte); 505 enum rxrpc_rtt_tx_trace { rxrpc_rtt_tx 498 enum rxrpc_rtt_tx_trace { rxrpc_rtt_tx_traces } __mode(byte); 506 enum rxrpc_sack_trace { rxrpc_sack_t << 507 enum rxrpc_skb_trace { rxrpc_skb_tr 499 enum rxrpc_skb_trace { rxrpc_skb_traces } __mode(byte); 508 enum rxrpc_timer_trace { rxrpc_timer_ 500 enum rxrpc_timer_trace { rxrpc_timer_traces } __mode(byte); 509 enum rxrpc_tx_point { rxrpc_tx_poi 501 enum rxrpc_tx_point { rxrpc_tx_points } __mode(byte); 510 enum rxrpc_txbuf_trace { rxrpc_txbuf_ 502 enum rxrpc_txbuf_trace { rxrpc_txbuf_traces } __mode(byte); 511 enum rxrpc_txqueue_trace { rxrpc_txqueu 503 enum rxrpc_txqueue_trace { rxrpc_txqueue_traces } __mode(byte); 512 504 513 #endif /* end __RXRPC_DECLARE_TRACE_ENUMS_ONCE 505 #endif /* end __RXRPC_DECLARE_TRACE_ENUMS_ONCE_ONLY */ 514 506 515 /* 507 /* 516 * Export enum symbols via userspace. 508 * Export enum symbols via userspace. 517 */ 509 */ 518 #undef EM 510 #undef EM 519 #undef E_ 511 #undef E_ 520 512 521 #ifndef RXRPC_TRACE_ONLY_DEFINE_ENUMS 513 #ifndef RXRPC_TRACE_ONLY_DEFINE_ENUMS 522 514 523 #define EM(a, b) TRACE_DEFINE_ENUM(a); 515 #define EM(a, b) TRACE_DEFINE_ENUM(a); 524 #define E_(a, b) TRACE_DEFINE_ENUM(a); 516 #define E_(a, b) TRACE_DEFINE_ENUM(a); 525 517 526 rxrpc_abort_reasons; 518 rxrpc_abort_reasons; 527 rxrpc_bundle_traces; 519 rxrpc_bundle_traces; 528 rxrpc_call_poke_traces; 520 rxrpc_call_poke_traces; 529 rxrpc_call_traces; 521 rxrpc_call_traces; 530 rxrpc_client_traces; 522 rxrpc_client_traces; 531 rxrpc_congest_changes; 523 rxrpc_congest_changes; 532 rxrpc_congest_modes; 524 rxrpc_congest_modes; 533 rxrpc_conn_traces; 525 rxrpc_conn_traces; 534 rxrpc_local_traces; 526 rxrpc_local_traces; 535 rxrpc_propose_ack_traces; 527 rxrpc_propose_ack_traces; 536 rxrpc_receive_traces; 528 rxrpc_receive_traces; 537 rxrpc_recvmsg_traces; 529 rxrpc_recvmsg_traces; 538 rxrpc_req_ack_traces; 530 rxrpc_req_ack_traces; 539 rxrpc_rtt_rx_traces; 531 rxrpc_rtt_rx_traces; 540 rxrpc_rtt_tx_traces; 532 rxrpc_rtt_tx_traces; 541 rxrpc_sack_traces; << 542 rxrpc_skb_traces; 533 rxrpc_skb_traces; 543 rxrpc_timer_traces; 534 rxrpc_timer_traces; 544 rxrpc_tx_points; 535 rxrpc_tx_points; 545 rxrpc_txbuf_traces; 536 rxrpc_txbuf_traces; 546 rxrpc_txqueue_traces; 537 rxrpc_txqueue_traces; 547 538 548 /* 539 /* 549 * Now redefine the EM() and E_() macros to ma 540 * Now redefine the EM() and E_() macros to map the enums to the strings that 550 * will be printed in the output. 541 * will be printed in the output. 551 */ 542 */ 552 #undef EM 543 #undef EM 553 #undef E_ 544 #undef E_ 554 #define EM(a, b) { a, b }, 545 #define EM(a, b) { a, b }, 555 #define E_(a, b) { a, b } 546 #define E_(a, b) { a, b } 556 547 557 TRACE_EVENT(rxrpc_local, 548 TRACE_EVENT(rxrpc_local, 558 TP_PROTO(unsigned int local_debug_ 549 TP_PROTO(unsigned int local_debug_id, enum rxrpc_local_trace op, 559 int ref, int usage), 550 int ref, int usage), 560 551 561 TP_ARGS(local_debug_id, op, ref, u 552 TP_ARGS(local_debug_id, op, ref, usage), 562 553 563 TP_STRUCT__entry( 554 TP_STRUCT__entry( 564 __field(unsigned int, !! 555 __field(unsigned int, local ) 565 __field(int, !! 556 __field(int, op ) 566 __field(int, !! 557 __field(int, ref ) 567 __field(int, !! 558 __field(int, usage ) 568 ), 559 ), 569 560 570 TP_fast_assign( 561 TP_fast_assign( 571 __entry->local = local_deb 562 __entry->local = local_debug_id; 572 __entry->op = op; 563 __entry->op = op; 573 __entry->ref = ref; 564 __entry->ref = ref; 574 __entry->usage = usage; 565 __entry->usage = usage; 575 ), 566 ), 576 567 577 TP_printk("L=%08x %s r=%d u=%d", 568 TP_printk("L=%08x %s r=%d u=%d", 578 __entry->local, 569 __entry->local, 579 __print_symbolic(__entry 570 __print_symbolic(__entry->op, rxrpc_local_traces), 580 __entry->ref, 571 __entry->ref, 581 __entry->usage) 572 __entry->usage) 582 ); 573 ); 583 574 584 TRACE_EVENT(rxrpc_peer, 575 TRACE_EVENT(rxrpc_peer, 585 TP_PROTO(unsigned int peer_debug_i 576 TP_PROTO(unsigned int peer_debug_id, int ref, enum rxrpc_peer_trace why), 586 577 587 TP_ARGS(peer_debug_id, ref, why), 578 TP_ARGS(peer_debug_id, ref, why), 588 579 589 TP_STRUCT__entry( 580 TP_STRUCT__entry( 590 __field(unsigned int, !! 581 __field(unsigned int, peer ) 591 __field(int, !! 582 __field(int, ref ) 592 __field(enum rxrpc_peer_tr !! 583 __field(enum rxrpc_peer_trace, why ) 593 ), 584 ), 594 585 595 TP_fast_assign( 586 TP_fast_assign( 596 __entry->peer = peer_debug 587 __entry->peer = peer_debug_id; 597 __entry->ref = ref; 588 __entry->ref = ref; 598 __entry->why = why; 589 __entry->why = why; 599 ), 590 ), 600 591 601 TP_printk("P=%08x %s r=%d", 592 TP_printk("P=%08x %s r=%d", 602 __entry->peer, 593 __entry->peer, 603 __print_symbolic(__entry 594 __print_symbolic(__entry->why, rxrpc_peer_traces), 604 __entry->ref) 595 __entry->ref) 605 ); 596 ); 606 597 607 TRACE_EVENT(rxrpc_bundle, 598 TRACE_EVENT(rxrpc_bundle, 608 TP_PROTO(unsigned int bundle_debug 599 TP_PROTO(unsigned int bundle_debug_id, int ref, enum rxrpc_bundle_trace why), 609 600 610 TP_ARGS(bundle_debug_id, ref, why) 601 TP_ARGS(bundle_debug_id, ref, why), 611 602 612 TP_STRUCT__entry( 603 TP_STRUCT__entry( 613 __field(unsigned int, !! 604 __field(unsigned int, bundle ) 614 __field(int, !! 605 __field(int, ref ) 615 __field(int, !! 606 __field(int, why ) 616 ), 607 ), 617 608 618 TP_fast_assign( 609 TP_fast_assign( 619 __entry->bundle = bundle_d 610 __entry->bundle = bundle_debug_id; 620 __entry->ref = ref; 611 __entry->ref = ref; 621 __entry->why = why; 612 __entry->why = why; 622 ), 613 ), 623 614 624 TP_printk("CB=%08x %s r=%d", 615 TP_printk("CB=%08x %s r=%d", 625 __entry->bundle, 616 __entry->bundle, 626 __print_symbolic(__entry 617 __print_symbolic(__entry->why, rxrpc_bundle_traces), 627 __entry->ref) 618 __entry->ref) 628 ); 619 ); 629 620 630 TRACE_EVENT(rxrpc_conn, 621 TRACE_EVENT(rxrpc_conn, 631 TP_PROTO(unsigned int conn_debug_i 622 TP_PROTO(unsigned int conn_debug_id, int ref, enum rxrpc_conn_trace why), 632 623 633 TP_ARGS(conn_debug_id, ref, why), 624 TP_ARGS(conn_debug_id, ref, why), 634 625 635 TP_STRUCT__entry( 626 TP_STRUCT__entry( 636 __field(unsigned int, !! 627 __field(unsigned int, conn ) 637 __field(int, !! 628 __field(int, ref ) 638 __field(int, !! 629 __field(int, why ) 639 ), 630 ), 640 631 641 TP_fast_assign( 632 TP_fast_assign( 642 __entry->conn = conn_debug 633 __entry->conn = conn_debug_id; 643 __entry->ref = ref; 634 __entry->ref = ref; 644 __entry->why = why; 635 __entry->why = why; 645 ), 636 ), 646 637 647 TP_printk("C=%08x %s r=%d", 638 TP_printk("C=%08x %s r=%d", 648 __entry->conn, 639 __entry->conn, 649 __print_symbolic(__entry 640 __print_symbolic(__entry->why, rxrpc_conn_traces), 650 __entry->ref) 641 __entry->ref) 651 ); 642 ); 652 643 653 TRACE_EVENT(rxrpc_client, 644 TRACE_EVENT(rxrpc_client, 654 TP_PROTO(struct rxrpc_connection * 645 TP_PROTO(struct rxrpc_connection *conn, int channel, 655 enum rxrpc_client_trace o 646 enum rxrpc_client_trace op), 656 647 657 TP_ARGS(conn, channel, op), 648 TP_ARGS(conn, channel, op), 658 649 659 TP_STRUCT__entry( 650 TP_STRUCT__entry( 660 __field(unsigned int, !! 651 __field(unsigned int, conn ) 661 __field(u32, !! 652 __field(u32, cid ) 662 __field(int, !! 653 __field(int, channel ) 663 __field(int, !! 654 __field(int, usage ) 664 __field(enum rxrpc_client_ !! 655 __field(enum rxrpc_client_trace, op ) 665 ), 656 ), 666 657 667 TP_fast_assign( 658 TP_fast_assign( 668 __entry->conn = conn ? con 659 __entry->conn = conn ? conn->debug_id : 0; 669 __entry->channel = channel 660 __entry->channel = channel; 670 __entry->usage = conn ? re 661 __entry->usage = conn ? refcount_read(&conn->ref) : -2; 671 __entry->op = op; 662 __entry->op = op; 672 __entry->cid = conn ? conn 663 __entry->cid = conn ? conn->proto.cid : 0; 673 ), 664 ), 674 665 675 TP_printk("C=%08x h=%2d %s i=%08x 666 TP_printk("C=%08x h=%2d %s i=%08x u=%d", 676 __entry->conn, 667 __entry->conn, 677 __entry->channel, 668 __entry->channel, 678 __print_symbolic(__entry 669 __print_symbolic(__entry->op, rxrpc_client_traces), 679 __entry->cid, 670 __entry->cid, 680 __entry->usage) 671 __entry->usage) 681 ); 672 ); 682 673 683 TRACE_EVENT(rxrpc_call, 674 TRACE_EVENT(rxrpc_call, 684 TP_PROTO(unsigned int call_debug_i 675 TP_PROTO(unsigned int call_debug_id, int ref, unsigned long aux, 685 enum rxrpc_call_trace why 676 enum rxrpc_call_trace why), 686 677 687 TP_ARGS(call_debug_id, ref, aux, w 678 TP_ARGS(call_debug_id, ref, aux, why), 688 679 689 TP_STRUCT__entry( 680 TP_STRUCT__entry( 690 __field(unsigned int, !! 681 __field(unsigned int, call ) 691 __field(int, !! 682 __field(int, ref ) 692 __field(int, !! 683 __field(int, why ) 693 __field(unsigned long, !! 684 __field(unsigned long, aux ) 694 ), 685 ), 695 686 696 TP_fast_assign( 687 TP_fast_assign( 697 __entry->call = call_debug 688 __entry->call = call_debug_id; 698 __entry->ref = ref; 689 __entry->ref = ref; 699 __entry->why = why; 690 __entry->why = why; 700 __entry->aux = aux; 691 __entry->aux = aux; 701 ), 692 ), 702 693 703 TP_printk("c=%08x %s r=%d a=%lx", 694 TP_printk("c=%08x %s r=%d a=%lx", 704 __entry->call, 695 __entry->call, 705 __print_symbolic(__entry 696 __print_symbolic(__entry->why, rxrpc_call_traces), 706 __entry->ref, 697 __entry->ref, 707 __entry->aux) 698 __entry->aux) 708 ); 699 ); 709 700 710 TRACE_EVENT(rxrpc_skb, 701 TRACE_EVENT(rxrpc_skb, 711 TP_PROTO(struct sk_buff *skb, int 702 TP_PROTO(struct sk_buff *skb, int usage, int mod_count, 712 enum rxrpc_skb_trace why) 703 enum rxrpc_skb_trace why), 713 704 714 TP_ARGS(skb, usage, mod_count, why 705 TP_ARGS(skb, usage, mod_count, why), 715 706 716 TP_STRUCT__entry( 707 TP_STRUCT__entry( 717 __field(struct sk_buff *, !! 708 __field(struct sk_buff *, skb ) 718 __field(int, !! 709 __field(int, usage ) 719 __field(int, !! 710 __field(int, mod_count ) 720 __field(enum rxrpc_skb_tra !! 711 __field(enum rxrpc_skb_trace, why ) 721 ), 712 ), 722 713 723 TP_fast_assign( 714 TP_fast_assign( 724 __entry->skb = skb; 715 __entry->skb = skb; 725 __entry->usage = usage; 716 __entry->usage = usage; 726 __entry->mod_count = mod_c 717 __entry->mod_count = mod_count; 727 __entry->why = why; 718 __entry->why = why; 728 ), 719 ), 729 720 730 TP_printk("s=%p Rx %s u=%d m=%d", 721 TP_printk("s=%p Rx %s u=%d m=%d", 731 __entry->skb, 722 __entry->skb, 732 __print_symbolic(__entry 723 __print_symbolic(__entry->why, rxrpc_skb_traces), 733 __entry->usage, 724 __entry->usage, 734 __entry->mod_count) 725 __entry->mod_count) 735 ); 726 ); 736 727 737 TRACE_EVENT(rxrpc_rx_packet, 728 TRACE_EVENT(rxrpc_rx_packet, 738 TP_PROTO(struct rxrpc_skb_priv *sp 729 TP_PROTO(struct rxrpc_skb_priv *sp), 739 730 740 TP_ARGS(sp), 731 TP_ARGS(sp), 741 732 742 TP_STRUCT__entry( 733 TP_STRUCT__entry( 743 __field_struct(struct rxrp !! 734 __field_struct(struct rxrpc_host_header, hdr ) 744 ), 735 ), 745 736 746 TP_fast_assign( 737 TP_fast_assign( 747 memcpy(&__entry->hdr, &sp- 738 memcpy(&__entry->hdr, &sp->hdr, sizeof(__entry->hdr)); 748 ), 739 ), 749 740 750 TP_printk("%08x:%08x:%08x:%04x %08 741 TP_printk("%08x:%08x:%08x:%04x %08x %08x %02x %02x %s", 751 __entry->hdr.epoch, __en 742 __entry->hdr.epoch, __entry->hdr.cid, 752 __entry->hdr.callNumber, 743 __entry->hdr.callNumber, __entry->hdr.serviceId, 753 __entry->hdr.serial, __e 744 __entry->hdr.serial, __entry->hdr.seq, 754 __entry->hdr.securityInd !! 745 __entry->hdr.type, __entry->hdr.flags, 755 __print_symbolic(__entry !! 746 __entry->hdr.type <= 15 ? >> 747 __print_symbolic(__entry->hdr.type, rxrpc_pkts) : "?UNK") 756 ); 748 ); 757 749 758 TRACE_EVENT(rxrpc_rx_done, 750 TRACE_EVENT(rxrpc_rx_done, 759 TP_PROTO(int result, int abort_cod 751 TP_PROTO(int result, int abort_code), 760 752 761 TP_ARGS(result, abort_code), 753 TP_ARGS(result, abort_code), 762 754 763 TP_STRUCT__entry( 755 TP_STRUCT__entry( 764 __field(int, result !! 756 __field(int, result ) 765 __field(int, abort_ !! 757 __field(int, abort_code ) 766 ), 758 ), 767 759 768 TP_fast_assign( 760 TP_fast_assign( 769 __entry->result = result; 761 __entry->result = result; 770 __entry->abort_code = abor 762 __entry->abort_code = abort_code; 771 ), 763 ), 772 764 773 TP_printk("r=%d a=%d", __entry->re 765 TP_printk("r=%d a=%d", __entry->result, __entry->abort_code) 774 ); 766 ); 775 767 776 TRACE_EVENT(rxrpc_abort, 768 TRACE_EVENT(rxrpc_abort, 777 TP_PROTO(unsigned int call_nr, enu 769 TP_PROTO(unsigned int call_nr, enum rxrpc_abort_reason why, 778 u32 cid, u32 call_id, rxr 770 u32 cid, u32 call_id, rxrpc_seq_t seq, int abort_code, int error), 779 771 780 TP_ARGS(call_nr, why, cid, call_id 772 TP_ARGS(call_nr, why, cid, call_id, seq, abort_code, error), 781 773 782 TP_STRUCT__entry( 774 TP_STRUCT__entry( 783 __field(unsigned int, !! 775 __field(unsigned int, call_nr ) 784 __field(enum rxrpc_abort_r !! 776 __field(enum rxrpc_abort_reason, why ) 785 __field(u32, !! 777 __field(u32, cid ) 786 __field(u32, !! 778 __field(u32, call_id ) 787 __field(rxrpc_seq_t, !! 779 __field(rxrpc_seq_t, seq ) 788 __field(int, !! 780 __field(int, abort_code ) 789 __field(int, !! 781 __field(int, error ) 790 ), 782 ), 791 783 792 TP_fast_assign( 784 TP_fast_assign( 793 __entry->call_nr = call_nr 785 __entry->call_nr = call_nr; 794 __entry->why = why; 786 __entry->why = why; 795 __entry->cid = cid; 787 __entry->cid = cid; 796 __entry->call_id = call_id 788 __entry->call_id = call_id; 797 __entry->abort_code = abor 789 __entry->abort_code = abort_code; 798 __entry->error = error; 790 __entry->error = error; 799 __entry->seq = seq; 791 __entry->seq = seq; 800 ), 792 ), 801 793 802 TP_printk("c=%08x %08x:%08x s=%u a 794 TP_printk("c=%08x %08x:%08x s=%u a=%d e=%d %s", 803 __entry->call_nr, 795 __entry->call_nr, 804 __entry->cid, __entry->c 796 __entry->cid, __entry->call_id, __entry->seq, 805 __entry->abort_code, __e 797 __entry->abort_code, __entry->error, 806 __print_symbolic(__entry 798 __print_symbolic(__entry->why, rxrpc_abort_reasons)) 807 ); 799 ); 808 800 809 TRACE_EVENT(rxrpc_call_complete, 801 TRACE_EVENT(rxrpc_call_complete, 810 TP_PROTO(struct rxrpc_call *call), 802 TP_PROTO(struct rxrpc_call *call), 811 803 812 TP_ARGS(call), 804 TP_ARGS(call), 813 805 814 TP_STRUCT__entry( 806 TP_STRUCT__entry( 815 __field(unsigned int, !! 807 __field(unsigned int, call ) 816 __field(enum rxrpc_call_co !! 808 __field(enum rxrpc_call_completion, compl ) 817 __field(int, !! 809 __field(int, error ) 818 __field(u32, !! 810 __field(u32, abort_code ) 819 ), 811 ), 820 812 821 TP_fast_assign( 813 TP_fast_assign( 822 __entry->call = call->debu 814 __entry->call = call->debug_id; 823 __entry->compl = call->com 815 __entry->compl = call->completion; 824 __entry->error = call->err 816 __entry->error = call->error; 825 __entry->abort_code = call 817 __entry->abort_code = call->abort_code; 826 ), 818 ), 827 819 828 TP_printk("c=%08x %s r=%d ac=%d", 820 TP_printk("c=%08x %s r=%d ac=%d", 829 __entry->call, 821 __entry->call, 830 __print_symbolic(__entry 822 __print_symbolic(__entry->compl, rxrpc_completions), 831 __entry->error, 823 __entry->error, 832 __entry->abort_code) 824 __entry->abort_code) 833 ); 825 ); 834 826 835 TRACE_EVENT(rxrpc_txqueue, 827 TRACE_EVENT(rxrpc_txqueue, 836 TP_PROTO(struct rxrpc_call *call, 828 TP_PROTO(struct rxrpc_call *call, enum rxrpc_txqueue_trace why), 837 829 838 TP_ARGS(call, why), 830 TP_ARGS(call, why), 839 831 840 TP_STRUCT__entry( 832 TP_STRUCT__entry( 841 __field(unsigned int, !! 833 __field(unsigned int, call ) 842 __field(enum rxrpc_txqueue !! 834 __field(enum rxrpc_txqueue_trace, why ) 843 __field(rxrpc_seq_t, !! 835 __field(rxrpc_seq_t, acks_hard_ack ) 844 __field(rxrpc_seq_t, !! 836 __field(rxrpc_seq_t, tx_bottom ) 845 __field(rxrpc_seq_t, !! 837 __field(rxrpc_seq_t, tx_top ) 846 __field(rxrpc_seq_t, !! 838 __field(rxrpc_seq_t, tx_prepared ) 847 __field(int, !! 839 __field(int, tx_winsize ) 848 ), 840 ), 849 841 850 TP_fast_assign( 842 TP_fast_assign( 851 __entry->call = call->debu 843 __entry->call = call->debug_id; 852 __entry->why = why; 844 __entry->why = why; 853 __entry->acks_hard_ack = c 845 __entry->acks_hard_ack = call->acks_hard_ack; 854 __entry->tx_bottom = call- 846 __entry->tx_bottom = call->tx_bottom; 855 __entry->tx_top = call->tx 847 __entry->tx_top = call->tx_top; 856 __entry->tx_prepared = cal 848 __entry->tx_prepared = call->tx_prepared; 857 __entry->tx_winsize = call 849 __entry->tx_winsize = call->tx_winsize; 858 ), 850 ), 859 851 860 TP_printk("c=%08x %s f=%08x h=%08x 852 TP_printk("c=%08x %s f=%08x h=%08x n=%u/%u/%u/%u", 861 __entry->call, 853 __entry->call, 862 __print_symbolic(__entry 854 __print_symbolic(__entry->why, rxrpc_txqueue_traces), 863 __entry->tx_bottom, 855 __entry->tx_bottom, 864 __entry->acks_hard_ack, 856 __entry->acks_hard_ack, 865 __entry->tx_top - __entr 857 __entry->tx_top - __entry->tx_bottom, 866 __entry->tx_top - __entr 858 __entry->tx_top - __entry->acks_hard_ack, 867 __entry->tx_prepared - _ 859 __entry->tx_prepared - __entry->tx_bottom, 868 __entry->tx_winsize) 860 __entry->tx_winsize) 869 ); 861 ); 870 862 871 TRACE_EVENT(rxrpc_rx_data, 863 TRACE_EVENT(rxrpc_rx_data, 872 TP_PROTO(unsigned int call, rxrpc_ 864 TP_PROTO(unsigned int call, rxrpc_seq_t seq, 873 rxrpc_serial_t serial, u8 865 rxrpc_serial_t serial, u8 flags), 874 866 875 TP_ARGS(call, seq, serial, flags), 867 TP_ARGS(call, seq, serial, flags), 876 868 877 TP_STRUCT__entry( 869 TP_STRUCT__entry( 878 __field(unsigned int, !! 870 __field(unsigned int, call ) 879 __field(rxrpc_seq_t, !! 871 __field(rxrpc_seq_t, seq ) 880 __field(rxrpc_serial_t, !! 872 __field(rxrpc_serial_t, serial ) 881 __field(u8, !! 873 __field(u8, flags ) 882 ), 874 ), 883 875 884 TP_fast_assign( 876 TP_fast_assign( 885 __entry->call = call; 877 __entry->call = call; 886 __entry->seq = seq; 878 __entry->seq = seq; 887 __entry->serial = serial; 879 __entry->serial = serial; 888 __entry->flags = flags; 880 __entry->flags = flags; 889 ), 881 ), 890 882 891 TP_printk("c=%08x DATA %08x q=%08x 883 TP_printk("c=%08x DATA %08x q=%08x fl=%02x", 892 __entry->call, 884 __entry->call, 893 __entry->serial, 885 __entry->serial, 894 __entry->seq, 886 __entry->seq, 895 __entry->flags) 887 __entry->flags) 896 ); 888 ); 897 889 898 TRACE_EVENT(rxrpc_rx_ack, 890 TRACE_EVENT(rxrpc_rx_ack, 899 TP_PROTO(struct rxrpc_call *call, 891 TP_PROTO(struct rxrpc_call *call, 900 rxrpc_serial_t serial, rx 892 rxrpc_serial_t serial, rxrpc_serial_t ack_serial, 901 rxrpc_seq_t first, rxrpc_ 893 rxrpc_seq_t first, rxrpc_seq_t prev, u8 reason, u8 n_acks), 902 894 903 TP_ARGS(call, serial, ack_serial, 895 TP_ARGS(call, serial, ack_serial, first, prev, reason, n_acks), 904 896 905 TP_STRUCT__entry( 897 TP_STRUCT__entry( 906 __field(unsigned int, !! 898 __field(unsigned int, call ) 907 __field(rxrpc_serial_t, !! 899 __field(rxrpc_serial_t, serial ) 908 __field(rxrpc_serial_t, !! 900 __field(rxrpc_serial_t, ack_serial ) 909 __field(rxrpc_seq_t, !! 901 __field(rxrpc_seq_t, first ) 910 __field(rxrpc_seq_t, !! 902 __field(rxrpc_seq_t, prev ) 911 __field(u8, !! 903 __field(u8, reason ) 912 __field(u8, !! 904 __field(u8, n_acks ) 913 ), 905 ), 914 906 915 TP_fast_assign( 907 TP_fast_assign( 916 __entry->call = call->debu 908 __entry->call = call->debug_id; 917 __entry->serial = serial; 909 __entry->serial = serial; 918 __entry->ack_serial = ack_ 910 __entry->ack_serial = ack_serial; 919 __entry->first = first; 911 __entry->first = first; 920 __entry->prev = prev; 912 __entry->prev = prev; 921 __entry->reason = reason; 913 __entry->reason = reason; 922 __entry->n_acks = n_acks; 914 __entry->n_acks = n_acks; 923 ), 915 ), 924 916 925 TP_printk("c=%08x %08x %s r=%08x f 917 TP_printk("c=%08x %08x %s r=%08x f=%08x p=%08x n=%u", 926 __entry->call, 918 __entry->call, 927 __entry->serial, 919 __entry->serial, 928 __print_symbolic(__entry 920 __print_symbolic(__entry->reason, rxrpc_ack_names), 929 __entry->ack_serial, 921 __entry->ack_serial, 930 __entry->first, 922 __entry->first, 931 __entry->prev, 923 __entry->prev, 932 __entry->n_acks) 924 __entry->n_acks) 933 ); 925 ); 934 926 935 TRACE_EVENT(rxrpc_rx_abort, 927 TRACE_EVENT(rxrpc_rx_abort, 936 TP_PROTO(struct rxrpc_call *call, 928 TP_PROTO(struct rxrpc_call *call, rxrpc_serial_t serial, 937 u32 abort_code), 929 u32 abort_code), 938 930 939 TP_ARGS(call, serial, abort_code), 931 TP_ARGS(call, serial, abort_code), 940 932 941 TP_STRUCT__entry( 933 TP_STRUCT__entry( 942 __field(unsigned int, !! 934 __field(unsigned int, call ) 943 __field(rxrpc_serial_t, !! 935 __field(rxrpc_serial_t, serial ) 944 __field(u32, !! 936 __field(u32, abort_code ) 945 ), 937 ), 946 938 947 TP_fast_assign( 939 TP_fast_assign( 948 __entry->call = call->debu 940 __entry->call = call->debug_id; 949 __entry->serial = serial; 941 __entry->serial = serial; 950 __entry->abort_code = abor 942 __entry->abort_code = abort_code; 951 ), 943 ), 952 944 953 TP_printk("c=%08x ABORT %08x ac=%d 945 TP_printk("c=%08x ABORT %08x ac=%d", 954 __entry->call, 946 __entry->call, 955 __entry->serial, 947 __entry->serial, 956 __entry->abort_code) 948 __entry->abort_code) 957 ); 949 ); 958 950 959 TRACE_EVENT(rxrpc_rx_challenge, 951 TRACE_EVENT(rxrpc_rx_challenge, 960 TP_PROTO(struct rxrpc_connection * 952 TP_PROTO(struct rxrpc_connection *conn, rxrpc_serial_t serial, 961 u32 version, u32 nonce, u 953 u32 version, u32 nonce, u32 min_level), 962 954 963 TP_ARGS(conn, serial, version, non 955 TP_ARGS(conn, serial, version, nonce, min_level), 964 956 965 TP_STRUCT__entry( 957 TP_STRUCT__entry( 966 __field(unsigned int, !! 958 __field(unsigned int, conn ) 967 __field(rxrpc_serial_t, !! 959 __field(rxrpc_serial_t, serial ) 968 __field(u32, !! 960 __field(u32, version ) 969 __field(u32, !! 961 __field(u32, nonce ) 970 __field(u32, !! 962 __field(u32, min_level ) 971 ), 963 ), 972 964 973 TP_fast_assign( 965 TP_fast_assign( 974 __entry->conn = conn->debu 966 __entry->conn = conn->debug_id; 975 __entry->serial = serial; 967 __entry->serial = serial; 976 __entry->version = version 968 __entry->version = version; 977 __entry->nonce = nonce; 969 __entry->nonce = nonce; 978 __entry->min_level = min_l 970 __entry->min_level = min_level; 979 ), 971 ), 980 972 981 TP_printk("C=%08x CHALLENGE %08x v 973 TP_printk("C=%08x CHALLENGE %08x v=%x n=%x ml=%x", 982 __entry->conn, 974 __entry->conn, 983 __entry->serial, 975 __entry->serial, 984 __entry->version, 976 __entry->version, 985 __entry->nonce, 977 __entry->nonce, 986 __entry->min_level) 978 __entry->min_level) 987 ); 979 ); 988 980 989 TRACE_EVENT(rxrpc_rx_response, 981 TRACE_EVENT(rxrpc_rx_response, 990 TP_PROTO(struct rxrpc_connection * 982 TP_PROTO(struct rxrpc_connection *conn, rxrpc_serial_t serial, 991 u32 version, u32 kvno, u3 983 u32 version, u32 kvno, u32 ticket_len), 992 984 993 TP_ARGS(conn, serial, version, kvn 985 TP_ARGS(conn, serial, version, kvno, ticket_len), 994 986 995 TP_STRUCT__entry( 987 TP_STRUCT__entry( 996 __field(unsigned int, !! 988 __field(unsigned int, conn ) 997 __field(rxrpc_serial_t, !! 989 __field(rxrpc_serial_t, serial ) 998 __field(u32, !! 990 __field(u32, version ) 999 __field(u32, !! 991 __field(u32, kvno ) 1000 __field(u32, !! 992 __field(u32, ticket_len ) 1001 ), 993 ), 1002 994 1003 TP_fast_assign( 995 TP_fast_assign( 1004 __entry->conn = conn->deb 996 __entry->conn = conn->debug_id; 1005 __entry->serial = serial; 997 __entry->serial = serial; 1006 __entry->version = versio 998 __entry->version = version; 1007 __entry->kvno = kvno; 999 __entry->kvno = kvno; 1008 __entry->ticket_len = tic 1000 __entry->ticket_len = ticket_len; 1009 ), 1001 ), 1010 1002 1011 TP_printk("C=%08x RESPONSE %08x v 1003 TP_printk("C=%08x RESPONSE %08x v=%x kvno=%x tl=%x", 1012 __entry->conn, 1004 __entry->conn, 1013 __entry->serial, 1005 __entry->serial, 1014 __entry->version, 1006 __entry->version, 1015 __entry->kvno, 1007 __entry->kvno, 1016 __entry->ticket_len) 1008 __entry->ticket_len) 1017 ); 1009 ); 1018 1010 1019 TRACE_EVENT(rxrpc_rx_rwind_change, 1011 TRACE_EVENT(rxrpc_rx_rwind_change, 1020 TP_PROTO(struct rxrpc_call *call, 1012 TP_PROTO(struct rxrpc_call *call, rxrpc_serial_t serial, 1021 u32 rwind, bool wake), 1013 u32 rwind, bool wake), 1022 1014 1023 TP_ARGS(call, serial, rwind, wake 1015 TP_ARGS(call, serial, rwind, wake), 1024 1016 1025 TP_STRUCT__entry( 1017 TP_STRUCT__entry( 1026 __field(unsigned int, !! 1018 __field(unsigned int, call ) 1027 __field(rxrpc_serial_t, !! 1019 __field(rxrpc_serial_t, serial ) 1028 __field(u32, !! 1020 __field(u32, rwind ) 1029 __field(bool, !! 1021 __field(bool, wake ) 1030 ), 1022 ), 1031 1023 1032 TP_fast_assign( 1024 TP_fast_assign( 1033 __entry->call = call->deb 1025 __entry->call = call->debug_id; 1034 __entry->serial = serial; 1026 __entry->serial = serial; 1035 __entry->rwind = rwind; 1027 __entry->rwind = rwind; 1036 __entry->wake = wake; 1028 __entry->wake = wake; 1037 ), 1029 ), 1038 1030 1039 TP_printk("c=%08x %08x rw=%u%s", 1031 TP_printk("c=%08x %08x rw=%u%s", 1040 __entry->call, 1032 __entry->call, 1041 __entry->serial, 1033 __entry->serial, 1042 __entry->rwind, 1034 __entry->rwind, 1043 __entry->wake ? " wake" 1035 __entry->wake ? " wake" : "") 1044 ); 1036 ); 1045 1037 1046 TRACE_EVENT(rxrpc_tx_packet, 1038 TRACE_EVENT(rxrpc_tx_packet, 1047 TP_PROTO(unsigned int call_id, st 1039 TP_PROTO(unsigned int call_id, struct rxrpc_wire_header *whdr, 1048 enum rxrpc_tx_point wher 1040 enum rxrpc_tx_point where), 1049 1041 1050 TP_ARGS(call_id, whdr, where), 1042 TP_ARGS(call_id, whdr, where), 1051 1043 1052 TP_STRUCT__entry( 1044 TP_STRUCT__entry( 1053 __field(unsigned int, !! 1045 __field(unsigned int, call ) 1054 __field(enum rxrpc_tx_poi !! 1046 __field(enum rxrpc_tx_point, where ) 1055 __field_struct(struct rxr !! 1047 __field_struct(struct rxrpc_wire_header, whdr ) 1056 ), 1048 ), 1057 1049 1058 TP_fast_assign( 1050 TP_fast_assign( 1059 __entry->call = call_id; 1051 __entry->call = call_id; 1060 memcpy(&__entry->whdr, wh 1052 memcpy(&__entry->whdr, whdr, sizeof(__entry->whdr)); 1061 __entry->where = where; 1053 __entry->where = where; 1062 ), 1054 ), 1063 1055 1064 TP_printk("c=%08x %08x:%08x:%08x: 1056 TP_printk("c=%08x %08x:%08x:%08x:%04x %08x %08x %02x %02x %s %s", 1065 __entry->call, 1057 __entry->call, 1066 ntohl(__entry->whdr.epo 1058 ntohl(__entry->whdr.epoch), 1067 ntohl(__entry->whdr.cid 1059 ntohl(__entry->whdr.cid), 1068 ntohl(__entry->whdr.cal 1060 ntohl(__entry->whdr.callNumber), 1069 ntohs(__entry->whdr.ser 1061 ntohs(__entry->whdr.serviceId), 1070 ntohl(__entry->whdr.ser 1062 ntohl(__entry->whdr.serial), 1071 ntohl(__entry->whdr.seq 1063 ntohl(__entry->whdr.seq), 1072 __entry->whdr.type, __e 1064 __entry->whdr.type, __entry->whdr.flags, 1073 __entry->whdr.type <= 1 1065 __entry->whdr.type <= 15 ? 1074 __print_symbolic(__entr 1066 __print_symbolic(__entry->whdr.type, rxrpc_pkts) : "?UNK", 1075 __print_symbolic(__entr 1067 __print_symbolic(__entry->where, rxrpc_tx_points)) 1076 ); 1068 ); 1077 1069 1078 TRACE_EVENT(rxrpc_tx_data, 1070 TRACE_EVENT(rxrpc_tx_data, 1079 TP_PROTO(struct rxrpc_call *call, 1071 TP_PROTO(struct rxrpc_call *call, rxrpc_seq_t seq, 1080 rxrpc_serial_t serial, u !! 1072 rxrpc_serial_t serial, u8 flags, bool retrans, bool lose), 1081 1073 1082 TP_ARGS(call, seq, serial, flags, !! 1074 TP_ARGS(call, seq, serial, flags, retrans, lose), 1083 1075 1084 TP_STRUCT__entry( 1076 TP_STRUCT__entry( 1085 __field(unsigned int, !! 1077 __field(unsigned int, call ) 1086 __field(rxrpc_seq_t, !! 1078 __field(rxrpc_seq_t, seq ) 1087 __field(rxrpc_serial_t, !! 1079 __field(rxrpc_serial_t, serial ) 1088 __field(u32, !! 1080 __field(u32, cid ) 1089 __field(u32, !! 1081 __field(u32, call_id ) 1090 __field(u16, !! 1082 __field(u8, flags ) 1091 __field(bool, !! 1083 __field(bool, retrans ) >> 1084 __field(bool, lose ) 1092 ), 1085 ), 1093 1086 1094 TP_fast_assign( 1087 TP_fast_assign( 1095 __entry->call = call->deb 1088 __entry->call = call->debug_id; 1096 __entry->cid = call->cid; 1089 __entry->cid = call->cid; 1097 __entry->call_id = call-> 1090 __entry->call_id = call->call_id; 1098 __entry->seq = seq; 1091 __entry->seq = seq; 1099 __entry->serial = serial; 1092 __entry->serial = serial; 1100 __entry->flags = flags; 1093 __entry->flags = flags; >> 1094 __entry->retrans = retrans; 1101 __entry->lose = lose; 1095 __entry->lose = lose; 1102 ), 1096 ), 1103 1097 1104 TP_printk("c=%08x DATA %08x:%08x 1098 TP_printk("c=%08x DATA %08x:%08x %08x q=%08x fl=%02x%s%s", 1105 __entry->call, 1099 __entry->call, 1106 __entry->cid, 1100 __entry->cid, 1107 __entry->call_id, 1101 __entry->call_id, 1108 __entry->serial, 1102 __entry->serial, 1109 __entry->seq, 1103 __entry->seq, 1110 __entry->flags & RXRPC_ !! 1104 __entry->flags, 1111 __entry->flags & RXRPC_ !! 1105 __entry->retrans ? " *RETRANS*" : "", 1112 __entry->lose ? " *LOSE 1106 __entry->lose ? " *LOSE*" : "") 1113 ); 1107 ); 1114 1108 1115 TRACE_EVENT(rxrpc_tx_ack, 1109 TRACE_EVENT(rxrpc_tx_ack, 1116 TP_PROTO(unsigned int call, rxrpc 1110 TP_PROTO(unsigned int call, rxrpc_serial_t serial, 1117 rxrpc_seq_t ack_first, r 1111 rxrpc_seq_t ack_first, rxrpc_serial_t ack_serial, 1118 u8 reason, u8 n_acks, u1 !! 1112 u8 reason, u8 n_acks), 1119 1113 1120 TP_ARGS(call, serial, ack_first, !! 1114 TP_ARGS(call, serial, ack_first, ack_serial, reason, n_acks), 1121 1115 1122 TP_STRUCT__entry( 1116 TP_STRUCT__entry( 1123 __field(unsigned int, !! 1117 __field(unsigned int, call ) 1124 __field(rxrpc_serial_t, !! 1118 __field(rxrpc_serial_t, serial ) 1125 __field(rxrpc_seq_t, !! 1119 __field(rxrpc_seq_t, ack_first ) 1126 __field(rxrpc_serial_t, !! 1120 __field(rxrpc_serial_t, ack_serial ) 1127 __field(u8, !! 1121 __field(u8, reason ) 1128 __field(u8, !! 1122 __field(u8, n_acks ) 1129 __field(u16, << 1130 ), 1123 ), 1131 1124 1132 TP_fast_assign( 1125 TP_fast_assign( 1133 __entry->call = call; 1126 __entry->call = call; 1134 __entry->serial = serial; 1127 __entry->serial = serial; 1135 __entry->ack_first = ack_ 1128 __entry->ack_first = ack_first; 1136 __entry->ack_serial = ack 1129 __entry->ack_serial = ack_serial; 1137 __entry->reason = reason; 1130 __entry->reason = reason; 1138 __entry->n_acks = n_acks; 1131 __entry->n_acks = n_acks; 1139 __entry->rwind = rwind; << 1140 ), 1132 ), 1141 1133 1142 TP_printk(" c=%08x ACK %08x %s f !! 1134 TP_printk(" c=%08x ACK %08x %s f=%08x r=%08x n=%u", 1143 __entry->call, 1135 __entry->call, 1144 __entry->serial, 1136 __entry->serial, 1145 __print_symbolic(__entr 1137 __print_symbolic(__entry->reason, rxrpc_ack_names), 1146 __entry->ack_first, 1138 __entry->ack_first, 1147 __entry->ack_serial, 1139 __entry->ack_serial, 1148 __entry->n_acks, !! 1140 __entry->n_acks) 1149 __entry->rwind) << 1150 ); 1141 ); 1151 1142 1152 TRACE_EVENT(rxrpc_receive, 1143 TRACE_EVENT(rxrpc_receive, 1153 TP_PROTO(struct rxrpc_call *call, 1144 TP_PROTO(struct rxrpc_call *call, enum rxrpc_receive_trace why, 1154 rxrpc_serial_t serial, r 1145 rxrpc_serial_t serial, rxrpc_seq_t seq), 1155 1146 1156 TP_ARGS(call, why, serial, seq), 1147 TP_ARGS(call, why, serial, seq), 1157 1148 1158 TP_STRUCT__entry( 1149 TP_STRUCT__entry( 1159 __field(unsigned int, !! 1150 __field(unsigned int, call ) 1160 __field(enum rxrpc_receiv !! 1151 __field(enum rxrpc_receive_trace, why ) 1161 __field(rxrpc_serial_t, !! 1152 __field(rxrpc_serial_t, serial ) 1162 __field(rxrpc_seq_t, !! 1153 __field(rxrpc_seq_t, seq ) 1163 __field(rxrpc_seq_t, !! 1154 __field(u64, window ) 1164 __field(rxrpc_seq_t, << 1165 ), 1155 ), 1166 1156 1167 TP_fast_assign( 1157 TP_fast_assign( 1168 __entry->call = call->deb 1158 __entry->call = call->debug_id; 1169 __entry->why = why; 1159 __entry->why = why; 1170 __entry->serial = serial; 1160 __entry->serial = serial; 1171 __entry->seq = seq; 1161 __entry->seq = seq; 1172 __entry->window = call->a !! 1162 __entry->window = atomic64_read(&call->ackr_window); 1173 __entry->wtop = call->ack << 1174 ), 1163 ), 1175 1164 1176 TP_printk("c=%08x %s r=%08x q=%08 1165 TP_printk("c=%08x %s r=%08x q=%08x w=%08x-%08x", 1177 __entry->call, 1166 __entry->call, 1178 __print_symbolic(__entr 1167 __print_symbolic(__entry->why, rxrpc_receive_traces), 1179 __entry->serial, 1168 __entry->serial, 1180 __entry->seq, 1169 __entry->seq, 1181 __entry->window, !! 1170 lower_32_bits(__entry->window), 1182 __entry->wtop) !! 1171 upper_32_bits(__entry->window)) 1183 ); 1172 ); 1184 1173 1185 TRACE_EVENT(rxrpc_recvmsg, 1174 TRACE_EVENT(rxrpc_recvmsg, 1186 TP_PROTO(unsigned int call_debug_ 1175 TP_PROTO(unsigned int call_debug_id, enum rxrpc_recvmsg_trace why, 1187 int ret), 1176 int ret), 1188 1177 1189 TP_ARGS(call_debug_id, why, ret), 1178 TP_ARGS(call_debug_id, why, ret), 1190 1179 1191 TP_STRUCT__entry( 1180 TP_STRUCT__entry( 1192 __field(unsigned int, !! 1181 __field(unsigned int, call ) 1193 __field(enum rxrpc_recvms !! 1182 __field(enum rxrpc_recvmsg_trace, why ) 1194 __field(int, !! 1183 __field(int, ret ) 1195 ), 1184 ), 1196 1185 1197 TP_fast_assign( 1186 TP_fast_assign( 1198 __entry->call = call_debu 1187 __entry->call = call_debug_id; 1199 __entry->why = why; 1188 __entry->why = why; 1200 __entry->ret = ret; 1189 __entry->ret = ret; 1201 ), 1190 ), 1202 1191 1203 TP_printk("c=%08x %s ret=%d", 1192 TP_printk("c=%08x %s ret=%d", 1204 __entry->call, 1193 __entry->call, 1205 __print_symbolic(__entr 1194 __print_symbolic(__entry->why, rxrpc_recvmsg_traces), 1206 __entry->ret) 1195 __entry->ret) 1207 ); 1196 ); 1208 1197 1209 TRACE_EVENT(rxrpc_recvdata, 1198 TRACE_EVENT(rxrpc_recvdata, 1210 TP_PROTO(struct rxrpc_call *call, 1199 TP_PROTO(struct rxrpc_call *call, enum rxrpc_recvmsg_trace why, 1211 rxrpc_seq_t seq, unsigne 1200 rxrpc_seq_t seq, unsigned int offset, unsigned int len, 1212 int ret), 1201 int ret), 1213 1202 1214 TP_ARGS(call, why, seq, offset, l 1203 TP_ARGS(call, why, seq, offset, len, ret), 1215 1204 1216 TP_STRUCT__entry( 1205 TP_STRUCT__entry( 1217 __field(unsigned int, !! 1206 __field(unsigned int, call ) 1218 __field(enum rxrpc_recvms !! 1207 __field(enum rxrpc_recvmsg_trace, why ) 1219 __field(rxrpc_seq_t, !! 1208 __field(rxrpc_seq_t, seq ) 1220 __field(unsigned int, !! 1209 __field(unsigned int, offset ) 1221 __field(unsigned int, !! 1210 __field(unsigned int, len ) 1222 __field(int, !! 1211 __field(int, ret ) 1223 ), 1212 ), 1224 1213 1225 TP_fast_assign( 1214 TP_fast_assign( 1226 __entry->call = call ? ca 1215 __entry->call = call ? call->debug_id : 0; 1227 __entry->why = why; 1216 __entry->why = why; 1228 __entry->seq = seq; 1217 __entry->seq = seq; 1229 __entry->offset = offset; 1218 __entry->offset = offset; 1230 __entry->len = len; 1219 __entry->len = len; 1231 __entry->ret = ret; 1220 __entry->ret = ret; 1232 ), 1221 ), 1233 1222 1234 TP_printk("c=%08x %s q=%08x o=%u 1223 TP_printk("c=%08x %s q=%08x o=%u l=%u ret=%d", 1235 __entry->call, 1224 __entry->call, 1236 __print_symbolic(__entr 1225 __print_symbolic(__entry->why, rxrpc_recvmsg_traces), 1237 __entry->seq, 1226 __entry->seq, 1238 __entry->offset, 1227 __entry->offset, 1239 __entry->len, 1228 __entry->len, 1240 __entry->ret) 1229 __entry->ret) 1241 ); 1230 ); 1242 1231 1243 TRACE_EVENT(rxrpc_rtt_tx, 1232 TRACE_EVENT(rxrpc_rtt_tx, 1244 TP_PROTO(struct rxrpc_call *call, 1233 TP_PROTO(struct rxrpc_call *call, enum rxrpc_rtt_tx_trace why, 1245 int slot, rxrpc_serial_t 1234 int slot, rxrpc_serial_t send_serial), 1246 1235 1247 TP_ARGS(call, why, slot, send_ser 1236 TP_ARGS(call, why, slot, send_serial), 1248 1237 1249 TP_STRUCT__entry( 1238 TP_STRUCT__entry( 1250 __field(unsigned int, !! 1239 __field(unsigned int, call ) 1251 __field(enum rxrpc_rtt_tx !! 1240 __field(enum rxrpc_rtt_tx_trace, why ) 1252 __field(int, !! 1241 __field(int, slot ) 1253 __field(rxrpc_serial_t, !! 1242 __field(rxrpc_serial_t, send_serial ) 1254 ), 1243 ), 1255 1244 1256 TP_fast_assign( 1245 TP_fast_assign( 1257 __entry->call = call->deb 1246 __entry->call = call->debug_id; 1258 __entry->why = why; 1247 __entry->why = why; 1259 __entry->slot = slot; 1248 __entry->slot = slot; 1260 __entry->send_serial = se 1249 __entry->send_serial = send_serial; 1261 ), 1250 ), 1262 1251 1263 TP_printk("c=%08x [%d] %s sr=%08x 1252 TP_printk("c=%08x [%d] %s sr=%08x", 1264 __entry->call, 1253 __entry->call, 1265 __entry->slot, 1254 __entry->slot, 1266 __print_symbolic(__entr 1255 __print_symbolic(__entry->why, rxrpc_rtt_tx_traces), 1267 __entry->send_serial) 1256 __entry->send_serial) 1268 ); 1257 ); 1269 1258 1270 TRACE_EVENT(rxrpc_rtt_rx, 1259 TRACE_EVENT(rxrpc_rtt_rx, 1271 TP_PROTO(struct rxrpc_call *call, 1260 TP_PROTO(struct rxrpc_call *call, enum rxrpc_rtt_rx_trace why, 1272 int slot, 1261 int slot, 1273 rxrpc_serial_t send_seri 1262 rxrpc_serial_t send_serial, rxrpc_serial_t resp_serial, 1274 u32 rtt, u32 rto), 1263 u32 rtt, u32 rto), 1275 1264 1276 TP_ARGS(call, why, slot, send_ser 1265 TP_ARGS(call, why, slot, send_serial, resp_serial, rtt, rto), 1277 1266 1278 TP_STRUCT__entry( 1267 TP_STRUCT__entry( 1279 __field(unsigned int, !! 1268 __field(unsigned int, call ) 1280 __field(enum rxrpc_rtt_rx !! 1269 __field(enum rxrpc_rtt_rx_trace, why ) 1281 __field(int, !! 1270 __field(int, slot ) 1282 __field(rxrpc_serial_t, !! 1271 __field(rxrpc_serial_t, send_serial ) 1283 __field(rxrpc_serial_t, !! 1272 __field(rxrpc_serial_t, resp_serial ) 1284 __field(u32, !! 1273 __field(u32, rtt ) 1285 __field(u32, !! 1274 __field(u32, rto ) 1286 ), 1275 ), 1287 1276 1288 TP_fast_assign( 1277 TP_fast_assign( 1289 __entry->call = call->deb 1278 __entry->call = call->debug_id; 1290 __entry->why = why; 1279 __entry->why = why; 1291 __entry->slot = slot; 1280 __entry->slot = slot; 1292 __entry->send_serial = se 1281 __entry->send_serial = send_serial; 1293 __entry->resp_serial = re 1282 __entry->resp_serial = resp_serial; 1294 __entry->rtt = rtt; 1283 __entry->rtt = rtt; 1295 __entry->rto = rto; 1284 __entry->rto = rto; 1296 ), 1285 ), 1297 1286 1298 TP_printk("c=%08x [%d] %s sr=%08x 1287 TP_printk("c=%08x [%d] %s sr=%08x rr=%08x rtt=%u rto=%u", 1299 __entry->call, 1288 __entry->call, 1300 __entry->slot, 1289 __entry->slot, 1301 __print_symbolic(__entr 1290 __print_symbolic(__entry->why, rxrpc_rtt_rx_traces), 1302 __entry->send_serial, 1291 __entry->send_serial, 1303 __entry->resp_serial, 1292 __entry->resp_serial, 1304 __entry->rtt, 1293 __entry->rtt, 1305 __entry->rto) 1294 __entry->rto) 1306 ); 1295 ); 1307 1296 1308 TRACE_EVENT(rxrpc_timer_set, !! 1297 TRACE_EVENT(rxrpc_timer, 1309 TP_PROTO(struct rxrpc_call *call, !! 1298 TP_PROTO(struct rxrpc_call *call, enum rxrpc_timer_trace why, 1310 enum rxrpc_timer_trace w !! 1299 unsigned long now), 1311 !! 1300 1312 TP_ARGS(call, delay, why), !! 1301 TP_ARGS(call, why, now), 1313 !! 1302 1314 TP_STRUCT__entry( !! 1303 TP_STRUCT__entry( 1315 __field(unsigned int, !! 1304 __field(unsigned int, call ) 1316 __field(enum rxrpc_timer_ !! 1305 __field(enum rxrpc_timer_trace, why ) 1317 __field(ktime_t, !! 1306 __field(long, now ) >> 1307 __field(long, ack_at ) >> 1308 __field(long, ack_lost_at ) >> 1309 __field(long, resend_at ) >> 1310 __field(long, ping_at ) >> 1311 __field(long, expect_rx_by ) >> 1312 __field(long, expect_req_by ) >> 1313 __field(long, expect_term_by ) >> 1314 __field(long, timer ) 1318 ), 1315 ), 1319 1316 1320 TP_fast_assign( 1317 TP_fast_assign( 1321 __entry->call 1318 __entry->call = call->debug_id; 1322 __entry->why 1319 __entry->why = why; 1323 __entry->delay !! 1320 __entry->now = now; >> 1321 __entry->ack_at = call->delay_ack_at; >> 1322 __entry->ack_lost_at = call->ack_lost_at; >> 1323 __entry->resend_at = call->resend_at; >> 1324 __entry->expect_rx_by = call->expect_rx_by; >> 1325 __entry->expect_req_by = call->expect_req_by; >> 1326 __entry->expect_term_by = call->expect_term_by; >> 1327 __entry->timer = call->timer.expires; 1324 ), 1328 ), 1325 1329 1326 TP_printk("c=%08x %s to=%lld", !! 1330 TP_printk("c=%08x %s a=%ld la=%ld r=%ld xr=%ld xq=%ld xt=%ld t=%ld", 1327 __entry->call, 1331 __entry->call, 1328 __print_symbolic(__entr 1332 __print_symbolic(__entry->why, rxrpc_timer_traces), 1329 ktime_to_us(__entry->de !! 1333 __entry->ack_at - __entry->now, 1330 ); !! 1334 __entry->ack_lost_at - __entry->now, 1331 !! 1335 __entry->resend_at - __entry->now, 1332 TRACE_EVENT(rxrpc_timer_exp, !! 1336 __entry->expect_rx_by - __entry->now, 1333 TP_PROTO(struct rxrpc_call *call, !! 1337 __entry->expect_req_by - __entry->now, 1334 enum rxrpc_timer_trace w !! 1338 __entry->expect_term_by - __entry->now, 1335 !! 1339 __entry->timer - __entry->now) 1336 TP_ARGS(call, delay, why), << 1337 << 1338 TP_STRUCT__entry( << 1339 __field(unsigned int, << 1340 __field(enum rxrpc_timer_ << 1341 __field(ktime_t, << 1342 ), << 1343 << 1344 TP_fast_assign( << 1345 __entry->call << 1346 __entry->why << 1347 __entry->delay << 1348 ), << 1349 << 1350 TP_printk("c=%08x %s to=%lld", << 1351 __entry->call, << 1352 __print_symbolic(__entr << 1353 ktime_to_us(__entry->de << 1354 ); << 1355 << 1356 TRACE_EVENT(rxrpc_timer_can, << 1357 TP_PROTO(struct rxrpc_call *call, << 1358 << 1359 TP_ARGS(call, why), << 1360 << 1361 TP_STRUCT__entry( << 1362 __field(unsigned int, << 1363 __field(enum rxrpc_timer_ << 1364 ), << 1365 << 1366 TP_fast_assign( << 1367 __entry->call << 1368 __entry->why << 1369 ), << 1370 << 1371 TP_printk("c=%08x %s", << 1372 __entry->call, << 1373 __print_symbolic(__entr << 1374 ); << 1375 << 1376 TRACE_EVENT(rxrpc_timer_restart, << 1377 TP_PROTO(struct rxrpc_call *call, << 1378 << 1379 TP_ARGS(call, delay, delayj), << 1380 << 1381 TP_STRUCT__entry( << 1382 __field(unsigned int, << 1383 __field(unsigned long, << 1384 __field(ktime_t, << 1385 ), << 1386 << 1387 TP_fast_assign( << 1388 __entry->call << 1389 __entry->delayj << 1390 __entry->delay << 1391 ), << 1392 << 1393 TP_printk("c=%08x to=%lld j=%ld", << 1394 __entry->call, << 1395 ktime_to_us(__entry->de << 1396 __entry->delayj) << 1397 ); 1340 ); 1398 1341 1399 TRACE_EVENT(rxrpc_timer_expired, 1342 TRACE_EVENT(rxrpc_timer_expired, 1400 TP_PROTO(struct rxrpc_call *call) !! 1343 TP_PROTO(struct rxrpc_call *call, unsigned long now), 1401 1344 1402 TP_ARGS(call), !! 1345 TP_ARGS(call, now), 1403 1346 1404 TP_STRUCT__entry( 1347 TP_STRUCT__entry( 1405 __field(unsigned int, !! 1348 __field(unsigned int, call ) >> 1349 __field(long, now ) >> 1350 __field(long, ack_at ) >> 1351 __field(long, ack_lost_at ) >> 1352 __field(long, resend_at ) >> 1353 __field(long, ping_at ) >> 1354 __field(long, expect_rx_by ) >> 1355 __field(long, expect_req_by ) >> 1356 __field(long, expect_term_by ) >> 1357 __field(long, timer ) 1406 ), 1358 ), 1407 1359 1408 TP_fast_assign( 1360 TP_fast_assign( 1409 __entry->call 1361 __entry->call = call->debug_id; 1410 ), !! 1362 __entry->now = now; 1411 !! 1363 __entry->ack_at = call->delay_ack_at; 1412 TP_printk("c=%08x EXPIRED", !! 1364 __entry->ack_lost_at = call->ack_lost_at; 1413 __entry->call) !! 1365 __entry->resend_at = call->resend_at; >> 1366 __entry->expect_rx_by = call->expect_rx_by; >> 1367 __entry->expect_req_by = call->expect_req_by; >> 1368 __entry->expect_term_by = call->expect_term_by; >> 1369 __entry->timer = call->timer.expires; >> 1370 ), >> 1371 >> 1372 TP_printk("c=%08x EXPIRED a=%ld la=%ld r=%ld xr=%ld xq=%ld xt=%ld t=%ld", >> 1373 __entry->call, >> 1374 __entry->ack_at - __entry->now, >> 1375 __entry->ack_lost_at - __entry->now, >> 1376 __entry->resend_at - __entry->now, >> 1377 __entry->expect_rx_by - __entry->now, >> 1378 __entry->expect_req_by - __entry->now, >> 1379 __entry->expect_term_by - __entry->now, >> 1380 __entry->timer - __entry->now) 1414 ); 1381 ); 1415 1382 1416 TRACE_EVENT(rxrpc_rx_lose, 1383 TRACE_EVENT(rxrpc_rx_lose, 1417 TP_PROTO(struct rxrpc_skb_priv *s 1384 TP_PROTO(struct rxrpc_skb_priv *sp), 1418 1385 1419 TP_ARGS(sp), 1386 TP_ARGS(sp), 1420 1387 1421 TP_STRUCT__entry( 1388 TP_STRUCT__entry( 1422 __field_struct(struct rxr !! 1389 __field_struct(struct rxrpc_host_header, hdr ) 1423 ), 1390 ), 1424 1391 1425 TP_fast_assign( 1392 TP_fast_assign( 1426 memcpy(&__entry->hdr, &sp 1393 memcpy(&__entry->hdr, &sp->hdr, sizeof(__entry->hdr)); 1427 ), 1394 ), 1428 1395 1429 TP_printk("%08x:%08x:%08x:%04x %0 1396 TP_printk("%08x:%08x:%08x:%04x %08x %08x %02x %02x %s *LOSE*", 1430 __entry->hdr.epoch, __e 1397 __entry->hdr.epoch, __entry->hdr.cid, 1431 __entry->hdr.callNumber 1398 __entry->hdr.callNumber, __entry->hdr.serviceId, 1432 __entry->hdr.serial, __ 1399 __entry->hdr.serial, __entry->hdr.seq, 1433 __entry->hdr.type, __en 1400 __entry->hdr.type, __entry->hdr.flags, 1434 __entry->hdr.type <= 15 1401 __entry->hdr.type <= 15 ? 1435 __print_symbolic(__entr 1402 __print_symbolic(__entry->hdr.type, rxrpc_pkts) : "?UNK") 1436 ); 1403 ); 1437 1404 1438 TRACE_EVENT(rxrpc_propose_ack, 1405 TRACE_EVENT(rxrpc_propose_ack, 1439 TP_PROTO(struct rxrpc_call *call, 1406 TP_PROTO(struct rxrpc_call *call, enum rxrpc_propose_ack_trace why, 1440 u8 ack_reason, rxrpc_ser 1407 u8 ack_reason, rxrpc_serial_t serial), 1441 1408 1442 TP_ARGS(call, why, ack_reason, se 1409 TP_ARGS(call, why, ack_reason, serial), 1443 1410 1444 TP_STRUCT__entry( 1411 TP_STRUCT__entry( 1445 __field(unsigned int, !! 1412 __field(unsigned int, call ) 1446 __field(enum rxrpc_propos !! 1413 __field(enum rxrpc_propose_ack_trace, why ) 1447 __field(rxrpc_serial_t, !! 1414 __field(rxrpc_serial_t, serial ) 1448 __field(u8, !! 1415 __field(u8, ack_reason ) 1449 ), 1416 ), 1450 1417 1451 TP_fast_assign( 1418 TP_fast_assign( 1452 __entry->call = cal 1419 __entry->call = call->debug_id; 1453 __entry->why = why 1420 __entry->why = why; 1454 __entry->serial = ser 1421 __entry->serial = serial; 1455 __entry->ack_reason = ack 1422 __entry->ack_reason = ack_reason; 1456 ), 1423 ), 1457 1424 1458 TP_printk("c=%08x %s %s r=%08x", 1425 TP_printk("c=%08x %s %s r=%08x", 1459 __entry->call, 1426 __entry->call, 1460 __print_symbolic(__entr 1427 __print_symbolic(__entry->why, rxrpc_propose_ack_traces), 1461 __print_symbolic(__entr 1428 __print_symbolic(__entry->ack_reason, rxrpc_ack_names), 1462 __entry->serial) 1429 __entry->serial) 1463 ); 1430 ); 1464 1431 1465 TRACE_EVENT(rxrpc_send_ack, 1432 TRACE_EVENT(rxrpc_send_ack, 1466 TP_PROTO(struct rxrpc_call *call, 1433 TP_PROTO(struct rxrpc_call *call, enum rxrpc_propose_ack_trace why, 1467 u8 ack_reason, rxrpc_ser 1434 u8 ack_reason, rxrpc_serial_t serial), 1468 1435 1469 TP_ARGS(call, why, ack_reason, se 1436 TP_ARGS(call, why, ack_reason, serial), 1470 1437 1471 TP_STRUCT__entry( 1438 TP_STRUCT__entry( 1472 __field(unsigned int, !! 1439 __field(unsigned int, call ) 1473 __field(enum rxrpc_propos !! 1440 __field(enum rxrpc_propose_ack_trace, why ) 1474 __field(rxrpc_serial_t, !! 1441 __field(rxrpc_serial_t, serial ) 1475 __field(u8, !! 1442 __field(u8, ack_reason ) 1476 ), 1443 ), 1477 1444 1478 TP_fast_assign( 1445 TP_fast_assign( 1479 __entry->call = cal 1446 __entry->call = call->debug_id; 1480 __entry->why = why 1447 __entry->why = why; 1481 __entry->serial = ser 1448 __entry->serial = serial; 1482 __entry->ack_reason = ack 1449 __entry->ack_reason = ack_reason; 1483 ), 1450 ), 1484 1451 1485 TP_printk("c=%08x %s %s r=%08x", 1452 TP_printk("c=%08x %s %s r=%08x", 1486 __entry->call, 1453 __entry->call, 1487 __print_symbolic(__entr 1454 __print_symbolic(__entry->why, rxrpc_propose_ack_traces), 1488 __print_symbolic(__entr 1455 __print_symbolic(__entry->ack_reason, rxrpc_ack_names), 1489 __entry->serial) 1456 __entry->serial) 1490 ); 1457 ); 1491 1458 1492 TRACE_EVENT(rxrpc_drop_ack, 1459 TRACE_EVENT(rxrpc_drop_ack, 1493 TP_PROTO(struct rxrpc_call *call, 1460 TP_PROTO(struct rxrpc_call *call, enum rxrpc_propose_ack_trace why, 1494 u8 ack_reason, rxrpc_ser 1461 u8 ack_reason, rxrpc_serial_t serial, bool nobuf), 1495 1462 1496 TP_ARGS(call, why, ack_reason, se 1463 TP_ARGS(call, why, ack_reason, serial, nobuf), 1497 1464 1498 TP_STRUCT__entry( 1465 TP_STRUCT__entry( 1499 __field(unsigned int, !! 1466 __field(unsigned int, call ) 1500 __field(enum rxrpc_propos !! 1467 __field(enum rxrpc_propose_ack_trace, why ) 1501 __field(rxrpc_serial_t, !! 1468 __field(rxrpc_serial_t, serial ) 1502 __field(u8, !! 1469 __field(u8, ack_reason ) 1503 __field(bool, !! 1470 __field(bool, nobuf ) 1504 ), 1471 ), 1505 1472 1506 TP_fast_assign( 1473 TP_fast_assign( 1507 __entry->call = cal 1474 __entry->call = call->debug_id; 1508 __entry->why = why 1475 __entry->why = why; 1509 __entry->serial = ser 1476 __entry->serial = serial; 1510 __entry->ack_reason = ack 1477 __entry->ack_reason = ack_reason; 1511 __entry->nobuf = nob 1478 __entry->nobuf = nobuf; 1512 ), 1479 ), 1513 1480 1514 TP_printk("c=%08x %s %s r=%08x nb 1481 TP_printk("c=%08x %s %s r=%08x nbf=%u", 1515 __entry->call, 1482 __entry->call, 1516 __print_symbolic(__entr 1483 __print_symbolic(__entry->why, rxrpc_propose_ack_traces), 1517 __print_symbolic(__entr 1484 __print_symbolic(__entry->ack_reason, rxrpc_ack_names), 1518 __entry->serial, __entr 1485 __entry->serial, __entry->nobuf) 1519 ); 1486 ); 1520 1487 1521 TRACE_EVENT(rxrpc_retransmit, 1488 TRACE_EVENT(rxrpc_retransmit, 1522 TP_PROTO(struct rxrpc_call *call, !! 1489 TP_PROTO(struct rxrpc_call *call, rxrpc_seq_t seq, s64 expiry), 1523 rxrpc_serial_t serial, k << 1524 1490 1525 TP_ARGS(call, seq, serial, expiry !! 1491 TP_ARGS(call, seq, expiry), 1526 1492 1527 TP_STRUCT__entry( 1493 TP_STRUCT__entry( 1528 __field(unsigned int, !! 1494 __field(unsigned int, call ) 1529 __field(rxrpc_seq_t, !! 1495 __field(rxrpc_seq_t, seq ) 1530 __field(rxrpc_serial_t, !! 1496 __field(s64, expiry ) 1531 __field(ktime_t, << 1532 ), 1497 ), 1533 1498 1534 TP_fast_assign( 1499 TP_fast_assign( 1535 __entry->call = call->deb 1500 __entry->call = call->debug_id; 1536 __entry->seq = seq; 1501 __entry->seq = seq; 1537 __entry->serial = serial; << 1538 __entry->expiry = expiry; 1502 __entry->expiry = expiry; 1539 ), 1503 ), 1540 1504 1541 TP_printk("c=%08x q=%x r=%x xp=%l !! 1505 TP_printk("c=%08x q=%x xp=%lld", 1542 __entry->call, 1506 __entry->call, 1543 __entry->seq, 1507 __entry->seq, 1544 __entry->serial, !! 1508 __entry->expiry) 1545 ktime_to_us(__entry->ex << 1546 ); 1509 ); 1547 1510 1548 TRACE_EVENT(rxrpc_congest, 1511 TRACE_EVENT(rxrpc_congest, 1549 TP_PROTO(struct rxrpc_call *call, 1512 TP_PROTO(struct rxrpc_call *call, struct rxrpc_ack_summary *summary, 1550 rxrpc_serial_t ack_seria 1513 rxrpc_serial_t ack_serial, enum rxrpc_congest_change change), 1551 1514 1552 TP_ARGS(call, summary, ack_serial 1515 TP_ARGS(call, summary, ack_serial, change), 1553 1516 1554 TP_STRUCT__entry( 1517 TP_STRUCT__entry( 1555 __field(unsigned int, !! 1518 __field(unsigned int, call ) 1556 __field(enum rxrpc_conges !! 1519 __field(enum rxrpc_congest_change, change ) 1557 __field(rxrpc_seq_t, !! 1520 __field(rxrpc_seq_t, hard_ack ) 1558 __field(rxrpc_seq_t, !! 1521 __field(rxrpc_seq_t, top ) 1559 __field(rxrpc_seq_t, !! 1522 __field(rxrpc_seq_t, lowest_nak ) 1560 __field(rxrpc_serial_t, !! 1523 __field(rxrpc_serial_t, ack_serial ) 1561 __field_struct(struct rxr !! 1524 __field_struct(struct rxrpc_ack_summary, sum ) 1562 ), 1525 ), 1563 1526 1564 TP_fast_assign( 1527 TP_fast_assign( 1565 __entry->call = cal 1528 __entry->call = call->debug_id; 1566 __entry->change = cha 1529 __entry->change = change; 1567 __entry->hard_ack = cal 1530 __entry->hard_ack = call->acks_hard_ack; 1568 __entry->top = cal 1531 __entry->top = call->tx_top; 1569 __entry->lowest_nak = cal 1532 __entry->lowest_nak = call->acks_lowest_nak; 1570 __entry->ack_serial = ack 1533 __entry->ack_serial = ack_serial; 1571 memcpy(&__entry->sum, sum 1534 memcpy(&__entry->sum, summary, sizeof(__entry->sum)); 1572 ), 1535 ), 1573 1536 1574 TP_printk("c=%08x r=%08x %s q=%08 !! 1537 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", 1575 __entry->call, 1538 __entry->call, 1576 __entry->ack_serial, 1539 __entry->ack_serial, 1577 __print_symbolic(__entr 1540 __print_symbolic(__entry->sum.ack_reason, rxrpc_ack_names), 1578 __entry->hard_ack, 1541 __entry->hard_ack, 1579 __print_symbolic(__entr 1542 __print_symbolic(__entry->sum.mode, rxrpc_congest_modes), 1580 __entry->sum.cwnd, 1543 __entry->sum.cwnd, 1581 __entry->sum.ssthresh, 1544 __entry->sum.ssthresh, 1582 __entry->sum.nr_acks, _ !! 1545 __entry->sum.nr_acks, __entry->sum.saw_nacks, 1583 __entry->sum.nr_new_ack 1546 __entry->sum.nr_new_acks, 1584 __entry->sum.nr_new_nac !! 1547 __entry->sum.nr_rot_new_acks, 1585 __entry->top - __entry- 1548 __entry->top - __entry->hard_ack, 1586 __entry->sum.cumulative 1549 __entry->sum.cumulative_acks, 1587 __entry->sum.dup_acks, 1550 __entry->sum.dup_acks, 1588 __entry->lowest_nak, __ 1551 __entry->lowest_nak, __entry->sum.new_low_nack ? "!" : "", 1589 __print_symbolic(__entr 1552 __print_symbolic(__entry->change, rxrpc_congest_changes), 1590 __entry->sum.retrans_ti 1553 __entry->sum.retrans_timeo ? " rTxTo" : "") 1591 ); 1554 ); 1592 1555 1593 TRACE_EVENT(rxrpc_reset_cwnd, 1556 TRACE_EVENT(rxrpc_reset_cwnd, 1594 TP_PROTO(struct rxrpc_call *call, 1557 TP_PROTO(struct rxrpc_call *call, ktime_t now), 1595 1558 1596 TP_ARGS(call, now), 1559 TP_ARGS(call, now), 1597 1560 1598 TP_STRUCT__entry( 1561 TP_STRUCT__entry( 1599 __field(unsigned int, !! 1562 __field(unsigned int, call ) 1600 __field(enum rxrpc_conges !! 1563 __field(enum rxrpc_congest_mode, mode ) 1601 __field(unsigned short, !! 1564 __field(unsigned short, cwnd ) 1602 __field(unsigned short, !! 1565 __field(unsigned short, extra ) 1603 __field(rxrpc_seq_t, !! 1566 __field(rxrpc_seq_t, hard_ack ) 1604 __field(rxrpc_seq_t, !! 1567 __field(rxrpc_seq_t, prepared ) 1605 __field(ktime_t, !! 1568 __field(ktime_t, since_last_tx ) 1606 __field(bool, !! 1569 __field(bool, has_data ) 1607 ), 1570 ), 1608 1571 1609 TP_fast_assign( 1572 TP_fast_assign( 1610 __entry->call = cal 1573 __entry->call = call->debug_id; 1611 __entry->mode = cal 1574 __entry->mode = call->cong_mode; 1612 __entry->cwnd = cal 1575 __entry->cwnd = call->cong_cwnd; 1613 __entry->extra = cal 1576 __entry->extra = call->cong_extra; 1614 __entry->hard_ack = cal 1577 __entry->hard_ack = call->acks_hard_ack; 1615 __entry->prepared = cal 1578 __entry->prepared = call->tx_prepared - call->tx_bottom; 1616 __entry->since_last_tx = 1579 __entry->since_last_tx = ktime_sub(now, call->tx_last_sent); 1617 __entry->has_data = !li 1580 __entry->has_data = !list_empty(&call->tx_sendmsg); 1618 ), 1581 ), 1619 1582 1620 TP_printk("c=%08x q=%08x %s cw=%u 1583 TP_printk("c=%08x q=%08x %s cw=%u+%u pr=%u tm=%llu d=%u", 1621 __entry->call, 1584 __entry->call, 1622 __entry->hard_ack, 1585 __entry->hard_ack, 1623 __print_symbolic(__entr 1586 __print_symbolic(__entry->mode, rxrpc_congest_modes), 1624 __entry->cwnd, 1587 __entry->cwnd, 1625 __entry->extra, 1588 __entry->extra, 1626 __entry->prepared, 1589 __entry->prepared, 1627 ktime_to_ns(__entry->si 1590 ktime_to_ns(__entry->since_last_tx), 1628 __entry->has_data) 1591 __entry->has_data) 1629 ); 1592 ); 1630 1593 1631 TRACE_EVENT(rxrpc_disconnect_call, 1594 TRACE_EVENT(rxrpc_disconnect_call, 1632 TP_PROTO(struct rxrpc_call *call) 1595 TP_PROTO(struct rxrpc_call *call), 1633 1596 1634 TP_ARGS(call), 1597 TP_ARGS(call), 1635 1598 1636 TP_STRUCT__entry( 1599 TP_STRUCT__entry( 1637 __field(unsigned int, !! 1600 __field(unsigned int, call ) 1638 __field(u32, !! 1601 __field(u32, abort_code ) 1639 ), 1602 ), 1640 1603 1641 TP_fast_assign( 1604 TP_fast_assign( 1642 __entry->call = call->deb 1605 __entry->call = call->debug_id; 1643 __entry->abort_code = cal 1606 __entry->abort_code = call->abort_code; 1644 ), 1607 ), 1645 1608 1646 TP_printk("c=%08x ab=%08x", 1609 TP_printk("c=%08x ab=%08x", 1647 __entry->call, 1610 __entry->call, 1648 __entry->abort_code) 1611 __entry->abort_code) 1649 ); 1612 ); 1650 1613 1651 TRACE_EVENT(rxrpc_improper_term, 1614 TRACE_EVENT(rxrpc_improper_term, 1652 TP_PROTO(struct rxrpc_call *call) 1615 TP_PROTO(struct rxrpc_call *call), 1653 1616 1654 TP_ARGS(call), 1617 TP_ARGS(call), 1655 1618 1656 TP_STRUCT__entry( 1619 TP_STRUCT__entry( 1657 __field(unsigned int, !! 1620 __field(unsigned int, call ) 1658 __field(u32, !! 1621 __field(u32, abort_code ) 1659 ), 1622 ), 1660 1623 1661 TP_fast_assign( 1624 TP_fast_assign( 1662 __entry->call = call->deb 1625 __entry->call = call->debug_id; 1663 __entry->abort_code = cal 1626 __entry->abort_code = call->abort_code; 1664 ), 1627 ), 1665 1628 1666 TP_printk("c=%08x ab=%08x", 1629 TP_printk("c=%08x ab=%08x", 1667 __entry->call, 1630 __entry->call, 1668 __entry->abort_code) 1631 __entry->abort_code) 1669 ); 1632 ); 1670 1633 1671 TRACE_EVENT(rxrpc_connect_call, 1634 TRACE_EVENT(rxrpc_connect_call, 1672 TP_PROTO(struct rxrpc_call *call) 1635 TP_PROTO(struct rxrpc_call *call), 1673 1636 1674 TP_ARGS(call), 1637 TP_ARGS(call), 1675 1638 1676 TP_STRUCT__entry( 1639 TP_STRUCT__entry( 1677 __field(unsigned int, !! 1640 __field(unsigned int, call ) 1678 __field(unsigned long, !! 1641 __field(unsigned long, user_call_ID ) 1679 __field(u32, !! 1642 __field(u32, cid ) 1680 __field(u32, !! 1643 __field(u32, call_id ) 1681 __field_struct(struct soc !! 1644 __field_struct(struct sockaddr_rxrpc, srx ) 1682 ), 1645 ), 1683 1646 1684 TP_fast_assign( 1647 TP_fast_assign( 1685 __entry->call = call->deb 1648 __entry->call = call->debug_id; 1686 __entry->user_call_ID = c 1649 __entry->user_call_ID = call->user_call_ID; 1687 __entry->cid = call->cid; 1650 __entry->cid = call->cid; 1688 __entry->call_id = call-> 1651 __entry->call_id = call->call_id; 1689 __entry->srx = call->dest 1652 __entry->srx = call->dest_srx; 1690 ), 1653 ), 1691 1654 1692 TP_printk("c=%08x u=%p %08x:%08x 1655 TP_printk("c=%08x u=%p %08x:%08x dst=%pISp", 1693 __entry->call, 1656 __entry->call, 1694 (void *)__entry->user_c 1657 (void *)__entry->user_call_ID, 1695 __entry->cid, 1658 __entry->cid, 1696 __entry->call_id, 1659 __entry->call_id, 1697 &__entry->srx.transport 1660 &__entry->srx.transport) 1698 ); 1661 ); 1699 1662 1700 TRACE_EVENT(rxrpc_resend, 1663 TRACE_EVENT(rxrpc_resend, 1701 TP_PROTO(struct rxrpc_call *call, 1664 TP_PROTO(struct rxrpc_call *call, struct sk_buff *ack), 1702 1665 1703 TP_ARGS(call, ack), 1666 TP_ARGS(call, ack), 1704 1667 1705 TP_STRUCT__entry( 1668 TP_STRUCT__entry( 1706 __field(unsigned int, !! 1669 __field(unsigned int, call ) 1707 __field(rxrpc_seq_t, !! 1670 __field(rxrpc_seq_t, seq ) 1708 __field(rxrpc_seq_t, !! 1671 __field(rxrpc_seq_t, transmitted ) 1709 __field(rxrpc_serial_t, !! 1672 __field(rxrpc_serial_t, ack_serial ) 1710 ), 1673 ), 1711 1674 1712 TP_fast_assign( 1675 TP_fast_assign( 1713 struct rxrpc_skb_priv *sp 1676 struct rxrpc_skb_priv *sp = ack ? rxrpc_skb(ack) : NULL; 1714 __entry->call = call->deb 1677 __entry->call = call->debug_id; 1715 __entry->seq = call->acks 1678 __entry->seq = call->acks_hard_ack; 1716 __entry->transmitted = ca 1679 __entry->transmitted = call->tx_transmitted; 1717 __entry->ack_serial = sp 1680 __entry->ack_serial = sp ? sp->hdr.serial : 0; 1718 ), 1681 ), 1719 1682 1720 TP_printk("c=%08x r=%x q=%x tq=%x 1683 TP_printk("c=%08x r=%x q=%x tq=%x", 1721 __entry->call, 1684 __entry->call, 1722 __entry->ack_serial, 1685 __entry->ack_serial, 1723 __entry->seq, 1686 __entry->seq, 1724 __entry->transmitted) 1687 __entry->transmitted) 1725 ); 1688 ); 1726 1689 1727 TRACE_EVENT(rxrpc_rx_icmp, 1690 TRACE_EVENT(rxrpc_rx_icmp, 1728 TP_PROTO(struct rxrpc_peer *peer, 1691 TP_PROTO(struct rxrpc_peer *peer, struct sock_extended_err *ee, 1729 struct sockaddr_rxrpc *s 1692 struct sockaddr_rxrpc *srx), 1730 1693 1731 TP_ARGS(peer, ee, srx), 1694 TP_ARGS(peer, ee, srx), 1732 1695 1733 TP_STRUCT__entry( 1696 TP_STRUCT__entry( 1734 __field(unsigned int, !! 1697 __field(unsigned int, peer ) 1735 __field_struct(struct soc !! 1698 __field_struct(struct sock_extended_err, ee ) 1736 __field_struct(struct soc !! 1699 __field_struct(struct sockaddr_rxrpc, srx ) 1737 ), 1700 ), 1738 1701 1739 TP_fast_assign( 1702 TP_fast_assign( 1740 __entry->peer = peer->deb 1703 __entry->peer = peer->debug_id; 1741 memcpy(&__entry->ee, ee, 1704 memcpy(&__entry->ee, ee, sizeof(__entry->ee)); 1742 memcpy(&__entry->srx, srx 1705 memcpy(&__entry->srx, srx, sizeof(__entry->srx)); 1743 ), 1706 ), 1744 1707 1745 TP_printk("P=%08x o=%u t=%u c=%u 1708 TP_printk("P=%08x o=%u t=%u c=%u i=%u d=%u e=%d %pISp", 1746 __entry->peer, 1709 __entry->peer, 1747 __entry->ee.ee_origin, 1710 __entry->ee.ee_origin, 1748 __entry->ee.ee_type, 1711 __entry->ee.ee_type, 1749 __entry->ee.ee_code, 1712 __entry->ee.ee_code, 1750 __entry->ee.ee_info, 1713 __entry->ee.ee_info, 1751 __entry->ee.ee_data, 1714 __entry->ee.ee_data, 1752 __entry->ee.ee_errno, 1715 __entry->ee.ee_errno, 1753 &__entry->srx.transport 1716 &__entry->srx.transport) 1754 ); 1717 ); 1755 1718 1756 TRACE_EVENT(rxrpc_tx_fail, 1719 TRACE_EVENT(rxrpc_tx_fail, 1757 TP_PROTO(unsigned int debug_id, r 1720 TP_PROTO(unsigned int debug_id, rxrpc_serial_t serial, int ret, 1758 enum rxrpc_tx_point wher 1721 enum rxrpc_tx_point where), 1759 1722 1760 TP_ARGS(debug_id, serial, ret, wh 1723 TP_ARGS(debug_id, serial, ret, where), 1761 1724 1762 TP_STRUCT__entry( 1725 TP_STRUCT__entry( 1763 __field(unsigned int, !! 1726 __field(unsigned int, debug_id ) 1764 __field(rxrpc_serial_t, !! 1727 __field(rxrpc_serial_t, serial ) 1765 __field(int, !! 1728 __field(int, ret ) 1766 __field(enum rxrpc_tx_poi !! 1729 __field(enum rxrpc_tx_point, where ) 1767 ), 1730 ), 1768 1731 1769 TP_fast_assign( 1732 TP_fast_assign( 1770 __entry->debug_id = debug 1733 __entry->debug_id = debug_id; 1771 __entry->serial = serial; 1734 __entry->serial = serial; 1772 __entry->ret = ret; 1735 __entry->ret = ret; 1773 __entry->where = where; 1736 __entry->where = where; 1774 ), 1737 ), 1775 1738 1776 TP_printk("c=%08x r=%x ret=%d %s" 1739 TP_printk("c=%08x r=%x ret=%d %s", 1777 __entry->debug_id, 1740 __entry->debug_id, 1778 __entry->serial, 1741 __entry->serial, 1779 __entry->ret, 1742 __entry->ret, 1780 __print_symbolic(__entr 1743 __print_symbolic(__entry->where, rxrpc_tx_points)) 1781 ); 1744 ); 1782 1745 1783 TRACE_EVENT(rxrpc_call_reset, 1746 TRACE_EVENT(rxrpc_call_reset, 1784 TP_PROTO(struct rxrpc_call *call) 1747 TP_PROTO(struct rxrpc_call *call), 1785 1748 1786 TP_ARGS(call), 1749 TP_ARGS(call), 1787 1750 1788 TP_STRUCT__entry( 1751 TP_STRUCT__entry( 1789 __field(unsigned int, !! 1752 __field(unsigned int, debug_id ) 1790 __field(u32, !! 1753 __field(u32, cid ) 1791 __field(u32, !! 1754 __field(u32, call_id ) 1792 __field(rxrpc_serial_t, !! 1755 __field(rxrpc_serial_t, call_serial ) 1793 __field(rxrpc_serial_t, !! 1756 __field(rxrpc_serial_t, conn_serial ) 1794 __field(rxrpc_seq_t, !! 1757 __field(rxrpc_seq_t, tx_seq ) 1795 __field(rxrpc_seq_t, !! 1758 __field(rxrpc_seq_t, rx_seq ) 1796 ), 1759 ), 1797 1760 1798 TP_fast_assign( 1761 TP_fast_assign( 1799 __entry->debug_id = call- 1762 __entry->debug_id = call->debug_id; 1800 __entry->cid = call->cid; 1763 __entry->cid = call->cid; 1801 __entry->call_id = call-> 1764 __entry->call_id = call->call_id; 1802 __entry->call_serial = ca 1765 __entry->call_serial = call->rx_serial; 1803 __entry->conn_serial = ca 1766 __entry->conn_serial = call->conn->hi_serial; 1804 __entry->tx_seq = call->a 1767 __entry->tx_seq = call->acks_hard_ack; 1805 __entry->rx_seq = call->r 1768 __entry->rx_seq = call->rx_highest_seq; 1806 ), 1769 ), 1807 1770 1808 TP_printk("c=%08x %08x:%08x r=%08 1771 TP_printk("c=%08x %08x:%08x r=%08x/%08x tx=%08x rx=%08x", 1809 __entry->debug_id, 1772 __entry->debug_id, 1810 __entry->cid, __entry-> 1773 __entry->cid, __entry->call_id, 1811 __entry->call_serial, _ 1774 __entry->call_serial, __entry->conn_serial, 1812 __entry->tx_seq, __entr 1775 __entry->tx_seq, __entry->rx_seq) 1813 ); 1776 ); 1814 1777 1815 TRACE_EVENT(rxrpc_notify_socket, 1778 TRACE_EVENT(rxrpc_notify_socket, 1816 TP_PROTO(unsigned int debug_id, r 1779 TP_PROTO(unsigned int debug_id, rxrpc_serial_t serial), 1817 1780 1818 TP_ARGS(debug_id, serial), 1781 TP_ARGS(debug_id, serial), 1819 1782 1820 TP_STRUCT__entry( 1783 TP_STRUCT__entry( 1821 __field(unsigned int, !! 1784 __field(unsigned int, debug_id ) 1822 __field(rxrpc_serial_t, !! 1785 __field(rxrpc_serial_t, serial ) 1823 ), 1786 ), 1824 1787 1825 TP_fast_assign( 1788 TP_fast_assign( 1826 __entry->debug_id = debug 1789 __entry->debug_id = debug_id; 1827 __entry->serial = serial; 1790 __entry->serial = serial; 1828 ), 1791 ), 1829 1792 1830 TP_printk("c=%08x r=%08x", 1793 TP_printk("c=%08x r=%08x", 1831 __entry->debug_id, 1794 __entry->debug_id, 1832 __entry->serial) 1795 __entry->serial) 1833 ); 1796 ); 1834 1797 1835 TRACE_EVENT(rxrpc_rx_discard_ack, 1798 TRACE_EVENT(rxrpc_rx_discard_ack, 1836 TP_PROTO(unsigned int debug_id, r 1799 TP_PROTO(unsigned int debug_id, rxrpc_serial_t serial, 1837 rxrpc_seq_t first_soft_a 1800 rxrpc_seq_t first_soft_ack, rxrpc_seq_t call_ackr_first, 1838 rxrpc_seq_t prev_pkt, rx 1801 rxrpc_seq_t prev_pkt, rxrpc_seq_t call_ackr_prev), 1839 1802 1840 TP_ARGS(debug_id, serial, first_s 1803 TP_ARGS(debug_id, serial, first_soft_ack, call_ackr_first, 1841 prev_pkt, call_ackr_prev) 1804 prev_pkt, call_ackr_prev), 1842 1805 1843 TP_STRUCT__entry( 1806 TP_STRUCT__entry( 1844 __field(unsigned int, !! 1807 __field(unsigned int, debug_id ) 1845 __field(rxrpc_serial_t, !! 1808 __field(rxrpc_serial_t, serial ) 1846 __field(rxrpc_seq_t, 1809 __field(rxrpc_seq_t, first_soft_ack) 1847 __field(rxrpc_seq_t, 1810 __field(rxrpc_seq_t, call_ackr_first) 1848 __field(rxrpc_seq_t, 1811 __field(rxrpc_seq_t, prev_pkt) 1849 __field(rxrpc_seq_t, 1812 __field(rxrpc_seq_t, call_ackr_prev) 1850 ), 1813 ), 1851 1814 1852 TP_fast_assign( 1815 TP_fast_assign( 1853 __entry->debug_id 1816 __entry->debug_id = debug_id; 1854 __entry->serial 1817 __entry->serial = serial; 1855 __entry->first_soft_ack 1818 __entry->first_soft_ack = first_soft_ack; 1856 __entry->call_ackr_first 1819 __entry->call_ackr_first = call_ackr_first; 1857 __entry->prev_pkt 1820 __entry->prev_pkt = prev_pkt; 1858 __entry->call_ackr_prev 1821 __entry->call_ackr_prev = call_ackr_prev; 1859 ), 1822 ), 1860 1823 1861 TP_printk("c=%08x r=%08x %08x<%08 1824 TP_printk("c=%08x r=%08x %08x<%08x %08x<%08x", 1862 __entry->debug_id, 1825 __entry->debug_id, 1863 __entry->serial, 1826 __entry->serial, 1864 __entry->first_soft_ack 1827 __entry->first_soft_ack, 1865 __entry->call_ackr_firs 1828 __entry->call_ackr_first, 1866 __entry->prev_pkt, 1829 __entry->prev_pkt, 1867 __entry->call_ackr_prev 1830 __entry->call_ackr_prev) 1868 ); 1831 ); 1869 1832 1870 TRACE_EVENT(rxrpc_req_ack, 1833 TRACE_EVENT(rxrpc_req_ack, 1871 TP_PROTO(unsigned int call_debug_ 1834 TP_PROTO(unsigned int call_debug_id, rxrpc_seq_t seq, 1872 enum rxrpc_req_ack_trace 1835 enum rxrpc_req_ack_trace why), 1873 1836 1874 TP_ARGS(call_debug_id, seq, why), 1837 TP_ARGS(call_debug_id, seq, why), 1875 1838 1876 TP_STRUCT__entry( 1839 TP_STRUCT__entry( 1877 __field(unsigned int, !! 1840 __field(unsigned int, call_debug_id ) 1878 __field(rxrpc_seq_t, !! 1841 __field(rxrpc_seq_t, seq ) 1879 __field(enum rxrpc_req_ac !! 1842 __field(enum rxrpc_req_ack_trace, why ) 1880 ), 1843 ), 1881 1844 1882 TP_fast_assign( 1845 TP_fast_assign( 1883 __entry->call_debug_id = 1846 __entry->call_debug_id = call_debug_id; 1884 __entry->seq = seq; 1847 __entry->seq = seq; 1885 __entry->why = why; 1848 __entry->why = why; 1886 ), 1849 ), 1887 1850 1888 TP_printk("c=%08x q=%08x REQ-%s", 1851 TP_printk("c=%08x q=%08x REQ-%s", 1889 __entry->call_debug_id, 1852 __entry->call_debug_id, 1890 __entry->seq, 1853 __entry->seq, 1891 __print_symbolic(__entr 1854 __print_symbolic(__entry->why, rxrpc_req_ack_traces)) 1892 ); 1855 ); 1893 1856 1894 TRACE_EVENT(rxrpc_txbuf, 1857 TRACE_EVENT(rxrpc_txbuf, 1895 TP_PROTO(unsigned int debug_id, 1858 TP_PROTO(unsigned int debug_id, 1896 unsigned int call_debug_ 1859 unsigned int call_debug_id, rxrpc_seq_t seq, 1897 int ref, enum rxrpc_txbu 1860 int ref, enum rxrpc_txbuf_trace what), 1898 1861 1899 TP_ARGS(debug_id, call_debug_id, 1862 TP_ARGS(debug_id, call_debug_id, seq, ref, what), 1900 1863 1901 TP_STRUCT__entry( 1864 TP_STRUCT__entry( 1902 __field(unsigned int, !! 1865 __field(unsigned int, debug_id ) 1903 __field(unsigned int, !! 1866 __field(unsigned int, call_debug_id ) 1904 __field(rxrpc_seq_t, !! 1867 __field(rxrpc_seq_t, seq ) 1905 __field(int, !! 1868 __field(int, ref ) 1906 __field(enum rxrpc_txbuf_ !! 1869 __field(enum rxrpc_txbuf_trace, what ) 1907 ), 1870 ), 1908 1871 1909 TP_fast_assign( 1872 TP_fast_assign( 1910 __entry->debug_id = debug 1873 __entry->debug_id = debug_id; 1911 __entry->call_debug_id = 1874 __entry->call_debug_id = call_debug_id; 1912 __entry->seq = seq; 1875 __entry->seq = seq; 1913 __entry->ref = ref; 1876 __entry->ref = ref; 1914 __entry->what = what; 1877 __entry->what = what; 1915 ), 1878 ), 1916 1879 1917 TP_printk("B=%08x c=%08x q=%08x % 1880 TP_printk("B=%08x c=%08x q=%08x %s r=%d", 1918 __entry->debug_id, 1881 __entry->debug_id, 1919 __entry->call_debug_id, 1882 __entry->call_debug_id, 1920 __entry->seq, 1883 __entry->seq, 1921 __print_symbolic(__entr 1884 __print_symbolic(__entry->what, rxrpc_txbuf_traces), 1922 __entry->ref) 1885 __entry->ref) 1923 ); 1886 ); 1924 1887 1925 TRACE_EVENT(rxrpc_poke_call, 1888 TRACE_EVENT(rxrpc_poke_call, 1926 TP_PROTO(struct rxrpc_call *call, 1889 TP_PROTO(struct rxrpc_call *call, bool busy, 1927 enum rxrpc_call_poke_tra 1890 enum rxrpc_call_poke_trace what), 1928 1891 1929 TP_ARGS(call, busy, what), 1892 TP_ARGS(call, busy, what), 1930 1893 1931 TP_STRUCT__entry( 1894 TP_STRUCT__entry( 1932 __field(unsigned int, !! 1895 __field(unsigned int, call_debug_id ) 1933 __field(bool, !! 1896 __field(bool, busy ) 1934 __field(enum rxrpc_call_p !! 1897 __field(enum rxrpc_call_poke_trace, what ) 1935 ), 1898 ), 1936 1899 1937 TP_fast_assign( 1900 TP_fast_assign( 1938 __entry->call_debug_id = 1901 __entry->call_debug_id = call->debug_id; 1939 __entry->busy = busy; 1902 __entry->busy = busy; 1940 __entry->what = what; 1903 __entry->what = what; 1941 ), 1904 ), 1942 1905 1943 TP_printk("c=%08x %s%s", 1906 TP_printk("c=%08x %s%s", 1944 __entry->call_debug_id, 1907 __entry->call_debug_id, 1945 __print_symbolic(__entr 1908 __print_symbolic(__entry->what, rxrpc_call_poke_traces), 1946 __entry->busy ? "!" : " 1909 __entry->busy ? "!" : "") 1947 ); 1910 ); 1948 1911 1949 TRACE_EVENT(rxrpc_call_poked, 1912 TRACE_EVENT(rxrpc_call_poked, 1950 TP_PROTO(struct rxrpc_call *call) 1913 TP_PROTO(struct rxrpc_call *call), 1951 1914 1952 TP_ARGS(call), 1915 TP_ARGS(call), 1953 1916 1954 TP_STRUCT__entry( 1917 TP_STRUCT__entry( 1955 __field(unsigned int, !! 1918 __field(unsigned int, call_debug_id ) 1956 ), 1919 ), 1957 1920 1958 TP_fast_assign( 1921 TP_fast_assign( 1959 __entry->call_debug_id = 1922 __entry->call_debug_id = call->debug_id; 1960 ), 1923 ), 1961 1924 1962 TP_printk("c=%08x", 1925 TP_printk("c=%08x", 1963 __entry->call_debug_id) 1926 __entry->call_debug_id) 1964 ); << 1965 << 1966 TRACE_EVENT(rxrpc_sack, << 1967 TP_PROTO(struct rxrpc_call *call, << 1968 unsigned int sack, enum << 1969 << 1970 TP_ARGS(call, seq, sack, what), << 1971 << 1972 TP_STRUCT__entry( << 1973 __field(unsigned int, << 1974 __field(rxrpc_seq_t, << 1975 __field(unsigned int, << 1976 __field(enum rxrpc_sack_t << 1977 ), << 1978 << 1979 TP_fast_assign( << 1980 __entry->call_debug_id = << 1981 __entry->seq = seq; << 1982 __entry->sack = sack; << 1983 __entry->what = what; << 1984 ), << 1985 << 1986 TP_printk("c=%08x q=%08x %s k=%x" << 1987 __entry->call_debug_id, << 1988 __entry->seq, << 1989 __print_symbolic(__entr << 1990 __entry->sack) << 1991 ); 1927 ); 1992 1928 1993 #undef EM 1929 #undef EM 1994 #undef E_ 1930 #undef E_ 1995 1931 1996 #endif /* RXRPC_TRACE_ONLY_DEFINE_ENUMS */ 1932 #endif /* RXRPC_TRACE_ONLY_DEFINE_ENUMS */ 1997 #endif /* _TRACE_RXRPC_H */ 1933 #endif /* _TRACE_RXRPC_H */ 1998 1934 1999 /* This part must be outside protection */ 1935 /* This part must be outside protection */ 2000 #include <trace/define_trace.h> 1936 #include <trace/define_trace.h> 2001 1937
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.