1b4d0d230SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-or-later */ 2df844fd4SDavid Howells /* AF_RXRPC tracepoints 3df844fd4SDavid Howells * 4df844fd4SDavid Howells * Copyright (C) 2016 Red Hat, Inc. All Rights Reserved. 5df844fd4SDavid Howells * Written by David Howells (dhowells@redhat.com) 6df844fd4SDavid Howells */ 7df844fd4SDavid Howells #undef TRACE_SYSTEM 8df844fd4SDavid Howells #define TRACE_SYSTEM rxrpc 9df844fd4SDavid Howells 10df844fd4SDavid Howells #if !defined(_TRACE_RXRPC_H) || defined(TRACE_HEADER_MULTI_READ) 11df844fd4SDavid Howells #define _TRACE_RXRPC_H 12df844fd4SDavid Howells 13df844fd4SDavid Howells #include <linux/tracepoint.h> 14494337c9SDavid Howells #include <linux/errqueue.h> 15df844fd4SDavid Howells 16b54a134aSDavid Howells /* 17b54a134aSDavid Howells * Define enums for tracing information. 18b54a134aSDavid Howells * 19b54a134aSDavid Howells * These should all be kept sorted, making it easier to match the string 20b54a134aSDavid Howells * mapping tables further on. 21b54a134aSDavid Howells */ 22b54a134aSDavid Howells #ifndef __RXRPC_DECLARE_TRACE_ENUMS_ONCE_ONLY 23b54a134aSDavid Howells #define __RXRPC_DECLARE_TRACE_ENUMS_ONCE_ONLY 24b54a134aSDavid Howells 25b54a134aSDavid Howells enum rxrpc_skb_trace { 26987db9f7SDavid Howells rxrpc_skb_cleaned, 27987db9f7SDavid Howells rxrpc_skb_freed, 28987db9f7SDavid Howells rxrpc_skb_got, 29987db9f7SDavid Howells rxrpc_skb_lost, 30987db9f7SDavid Howells rxrpc_skb_new, 31987db9f7SDavid Howells rxrpc_skb_purged, 32987db9f7SDavid Howells rxrpc_skb_received, 33987db9f7SDavid Howells rxrpc_skb_rotated, 34987db9f7SDavid Howells rxrpc_skb_seen, 35d0d5c0cdSDavid Howells rxrpc_skb_unshared, 36d0d5c0cdSDavid Howells rxrpc_skb_unshared_nomem, 37b54a134aSDavid Howells }; 38b54a134aSDavid Howells 3909d2bf59SDavid Howells enum rxrpc_local_trace { 4009d2bf59SDavid Howells rxrpc_local_got, 4109d2bf59SDavid Howells rxrpc_local_new, 4209d2bf59SDavid Howells rxrpc_local_processing, 4309d2bf59SDavid Howells rxrpc_local_put, 4409d2bf59SDavid Howells rxrpc_local_queued, 4509d2bf59SDavid Howells }; 4609d2bf59SDavid Howells 471159d4b4SDavid Howells enum rxrpc_peer_trace { 481159d4b4SDavid Howells rxrpc_peer_got, 491159d4b4SDavid Howells rxrpc_peer_new, 501159d4b4SDavid Howells rxrpc_peer_processing, 511159d4b4SDavid Howells rxrpc_peer_put, 521159d4b4SDavid Howells }; 531159d4b4SDavid Howells 54b54a134aSDavid Howells enum rxrpc_conn_trace { 55b54a134aSDavid Howells rxrpc_conn_got, 56b54a134aSDavid Howells rxrpc_conn_new_client, 57b54a134aSDavid Howells rxrpc_conn_new_service, 58b54a134aSDavid Howells rxrpc_conn_put_client, 59b54a134aSDavid Howells rxrpc_conn_put_service, 60b54a134aSDavid Howells rxrpc_conn_queued, 61f859ab61SDavid Howells rxrpc_conn_reap_service, 62b54a134aSDavid Howells rxrpc_conn_seen, 63b54a134aSDavid Howells }; 64b54a134aSDavid Howells 65b54a134aSDavid Howells enum rxrpc_client_trace { 66b54a134aSDavid Howells rxrpc_client_activate_chans, 67b54a134aSDavid Howells rxrpc_client_alloc, 68b54a134aSDavid Howells rxrpc_client_chan_activate, 69b54a134aSDavid Howells rxrpc_client_chan_disconnect, 70b54a134aSDavid Howells rxrpc_client_chan_pass, 71b54a134aSDavid Howells rxrpc_client_chan_unstarted, 72930c9f91SDavid Howells rxrpc_client_chan_wait_failed, 73b54a134aSDavid Howells rxrpc_client_cleanup, 74b54a134aSDavid Howells rxrpc_client_count, 75b54a134aSDavid Howells rxrpc_client_discard, 76b54a134aSDavid Howells rxrpc_client_duplicate, 77b54a134aSDavid Howells rxrpc_client_exposed, 78b54a134aSDavid Howells rxrpc_client_replace, 79b54a134aSDavid Howells rxrpc_client_to_active, 80b54a134aSDavid Howells rxrpc_client_to_culled, 81b54a134aSDavid Howells rxrpc_client_to_idle, 82b54a134aSDavid Howells rxrpc_client_to_inactive, 83b54a134aSDavid Howells rxrpc_client_to_upgrade, 84b54a134aSDavid Howells rxrpc_client_to_waiting, 85b54a134aSDavid Howells rxrpc_client_uncount, 86b54a134aSDavid Howells }; 87b54a134aSDavid Howells 88b54a134aSDavid Howells enum rxrpc_call_trace { 89b54a134aSDavid Howells rxrpc_call_connected, 90b54a134aSDavid Howells rxrpc_call_error, 91b54a134aSDavid Howells rxrpc_call_got, 92b54a134aSDavid Howells rxrpc_call_got_kernel, 93b54a134aSDavid Howells rxrpc_call_got_userid, 94b54a134aSDavid Howells rxrpc_call_new_client, 95b54a134aSDavid Howells rxrpc_call_new_service, 96b54a134aSDavid Howells rxrpc_call_put, 97b54a134aSDavid Howells rxrpc_call_put_kernel, 98b54a134aSDavid Howells rxrpc_call_put_noqueue, 99b54a134aSDavid Howells rxrpc_call_put_userid, 100b54a134aSDavid Howells rxrpc_call_queued, 101b54a134aSDavid Howells rxrpc_call_queued_ref, 102b54a134aSDavid Howells rxrpc_call_release, 103b54a134aSDavid Howells rxrpc_call_seen, 104b54a134aSDavid Howells }; 105b54a134aSDavid Howells 106b54a134aSDavid Howells enum rxrpc_transmit_trace { 107b54a134aSDavid Howells rxrpc_transmit_await_reply, 108b54a134aSDavid Howells rxrpc_transmit_end, 109b54a134aSDavid Howells rxrpc_transmit_queue, 110b54a134aSDavid Howells rxrpc_transmit_queue_last, 111b54a134aSDavid Howells rxrpc_transmit_rotate, 112b54a134aSDavid Howells rxrpc_transmit_rotate_last, 113b54a134aSDavid Howells rxrpc_transmit_wait, 114b54a134aSDavid Howells }; 115b54a134aSDavid Howells 116b54a134aSDavid Howells enum rxrpc_receive_trace { 117b54a134aSDavid Howells rxrpc_receive_end, 118b54a134aSDavid Howells rxrpc_receive_front, 119b54a134aSDavid Howells rxrpc_receive_incoming, 120b54a134aSDavid Howells rxrpc_receive_queue, 121b54a134aSDavid Howells rxrpc_receive_queue_last, 122b54a134aSDavid Howells rxrpc_receive_rotate, 123b54a134aSDavid Howells }; 124b54a134aSDavid Howells 125b54a134aSDavid Howells enum rxrpc_recvmsg_trace { 126b54a134aSDavid Howells rxrpc_recvmsg_cont, 127b54a134aSDavid Howells rxrpc_recvmsg_data_return, 128b54a134aSDavid Howells rxrpc_recvmsg_dequeue, 129b54a134aSDavid Howells rxrpc_recvmsg_enter, 130b54a134aSDavid Howells rxrpc_recvmsg_full, 131b54a134aSDavid Howells rxrpc_recvmsg_hole, 132b54a134aSDavid Howells rxrpc_recvmsg_next, 133540b1c48SDavid Howells rxrpc_recvmsg_requeue, 134b54a134aSDavid Howells rxrpc_recvmsg_return, 135b54a134aSDavid Howells rxrpc_recvmsg_terminal, 136b54a134aSDavid Howells rxrpc_recvmsg_to_be_accepted, 137b54a134aSDavid Howells rxrpc_recvmsg_wait, 138b54a134aSDavid Howells }; 139b54a134aSDavid Howells 140b54a134aSDavid Howells enum rxrpc_rtt_tx_trace { 141b54a134aSDavid Howells rxrpc_rtt_tx_data, 142b54a134aSDavid Howells rxrpc_rtt_tx_ping, 143b54a134aSDavid Howells }; 144b54a134aSDavid Howells 145b54a134aSDavid Howells enum rxrpc_rtt_rx_trace { 146b54a134aSDavid Howells rxrpc_rtt_rx_ping_response, 147b54a134aSDavid Howells rxrpc_rtt_rx_requested_ack, 148b54a134aSDavid Howells }; 149b54a134aSDavid Howells 150b54a134aSDavid Howells enum rxrpc_timer_trace { 151b54a134aSDavid Howells rxrpc_timer_begin, 152a158bdd3SDavid Howells rxrpc_timer_exp_ack, 153a158bdd3SDavid Howells rxrpc_timer_exp_hard, 154a158bdd3SDavid Howells rxrpc_timer_exp_idle, 155415f44e4SDavid Howells rxrpc_timer_exp_keepalive, 156bd1fdf8cSDavid Howells rxrpc_timer_exp_lost_ack, 157a158bdd3SDavid Howells rxrpc_timer_exp_normal, 158a158bdd3SDavid Howells rxrpc_timer_exp_ping, 159a158bdd3SDavid Howells rxrpc_timer_exp_resend, 160b54a134aSDavid Howells rxrpc_timer_expired, 161b54a134aSDavid Howells rxrpc_timer_init_for_reply, 162b54a134aSDavid Howells rxrpc_timer_init_for_send_reply, 163a158bdd3SDavid Howells rxrpc_timer_restart, 164b54a134aSDavid Howells rxrpc_timer_set_for_ack, 165a158bdd3SDavid Howells rxrpc_timer_set_for_hard, 166a158bdd3SDavid Howells rxrpc_timer_set_for_idle, 167415f44e4SDavid Howells rxrpc_timer_set_for_keepalive, 168bd1fdf8cSDavid Howells rxrpc_timer_set_for_lost_ack, 169a158bdd3SDavid Howells rxrpc_timer_set_for_normal, 170b54a134aSDavid Howells rxrpc_timer_set_for_ping, 171b54a134aSDavid Howells rxrpc_timer_set_for_resend, 172b54a134aSDavid Howells rxrpc_timer_set_for_send, 173b54a134aSDavid Howells }; 174b54a134aSDavid Howells 175b54a134aSDavid Howells enum rxrpc_propose_ack_trace { 176b54a134aSDavid Howells rxrpc_propose_ack_client_tx_end, 177b54a134aSDavid Howells rxrpc_propose_ack_input_data, 1787150ceaaSDavid Howells rxrpc_propose_ack_ping_for_check_life, 179415f44e4SDavid Howells rxrpc_propose_ack_ping_for_keepalive, 180b54a134aSDavid Howells rxrpc_propose_ack_ping_for_lost_ack, 181b54a134aSDavid Howells rxrpc_propose_ack_ping_for_lost_reply, 182b54a134aSDavid Howells rxrpc_propose_ack_ping_for_params, 183b54a134aSDavid Howells rxrpc_propose_ack_processing_op, 184b54a134aSDavid Howells rxrpc_propose_ack_respond_to_ack, 185b54a134aSDavid Howells rxrpc_propose_ack_respond_to_ping, 186b54a134aSDavid Howells rxrpc_propose_ack_retry_tx, 187b54a134aSDavid Howells rxrpc_propose_ack_rotate_rx, 188b54a134aSDavid Howells rxrpc_propose_ack_terminal_ack, 189b54a134aSDavid Howells }; 190b54a134aSDavid Howells 191b54a134aSDavid Howells enum rxrpc_propose_ack_outcome { 192b54a134aSDavid Howells rxrpc_propose_ack_subsume, 193b54a134aSDavid Howells rxrpc_propose_ack_update, 194b54a134aSDavid Howells rxrpc_propose_ack_use, 195b54a134aSDavid Howells }; 196b54a134aSDavid Howells 197b54a134aSDavid Howells enum rxrpc_congest_change { 198b54a134aSDavid Howells rxrpc_cong_begin_retransmission, 199b54a134aSDavid Howells rxrpc_cong_cleared_nacks, 200b54a134aSDavid Howells rxrpc_cong_new_low_nack, 201b54a134aSDavid Howells rxrpc_cong_no_change, 202b54a134aSDavid Howells rxrpc_cong_progress, 203b54a134aSDavid Howells rxrpc_cong_retransmit_again, 204b54a134aSDavid Howells rxrpc_cong_rtt_window_end, 205b54a134aSDavid Howells rxrpc_cong_saw_nack, 206b54a134aSDavid Howells }; 207b54a134aSDavid Howells 2084764c0daSDavid Howells enum rxrpc_tx_point { 2094764c0daSDavid Howells rxrpc_tx_point_call_abort, 2104764c0daSDavid Howells rxrpc_tx_point_call_ack, 2114764c0daSDavid Howells rxrpc_tx_point_call_data_frag, 2124764c0daSDavid Howells rxrpc_tx_point_call_data_nofrag, 2134764c0daSDavid Howells rxrpc_tx_point_call_final_resend, 2144764c0daSDavid Howells rxrpc_tx_point_conn_abort, 2154764c0daSDavid Howells rxrpc_tx_point_rxkad_challenge, 2164764c0daSDavid Howells rxrpc_tx_point_rxkad_response, 2174764c0daSDavid Howells rxrpc_tx_point_reject, 2184764c0daSDavid Howells rxrpc_tx_point_version_keepalive, 2194764c0daSDavid Howells rxrpc_tx_point_version_reply, 2206b47fe1dSDavid Howells }; 2216b47fe1dSDavid Howells 222b54a134aSDavid Howells #endif /* end __RXRPC_DECLARE_TRACE_ENUMS_ONCE_ONLY */ 223b54a134aSDavid Howells 224b54a134aSDavid Howells /* 225b54a134aSDavid Howells * Declare tracing information enums and their string mappings for display. 226b54a134aSDavid Howells */ 227b54a134aSDavid Howells #define rxrpc_skb_traces \ 228987db9f7SDavid Howells EM(rxrpc_skb_cleaned, "CLN") \ 229987db9f7SDavid Howells EM(rxrpc_skb_freed, "FRE") \ 230987db9f7SDavid Howells EM(rxrpc_skb_got, "GOT") \ 231987db9f7SDavid Howells EM(rxrpc_skb_lost, "*L*") \ 232987db9f7SDavid Howells EM(rxrpc_skb_new, "NEW") \ 233987db9f7SDavid Howells EM(rxrpc_skb_purged, "PUR") \ 234987db9f7SDavid Howells EM(rxrpc_skb_received, "RCV") \ 235987db9f7SDavid Howells EM(rxrpc_skb_rotated, "ROT") \ 236d0d5c0cdSDavid Howells EM(rxrpc_skb_seen, "SEE") \ 237d0d5c0cdSDavid Howells EM(rxrpc_skb_unshared, "UNS") \ 238d0d5c0cdSDavid Howells E_(rxrpc_skb_unshared_nomem, "US0") 239b54a134aSDavid Howells 24009d2bf59SDavid Howells #define rxrpc_local_traces \ 24109d2bf59SDavid Howells EM(rxrpc_local_got, "GOT") \ 24209d2bf59SDavid Howells EM(rxrpc_local_new, "NEW") \ 24309d2bf59SDavid Howells EM(rxrpc_local_processing, "PRO") \ 24409d2bf59SDavid Howells EM(rxrpc_local_put, "PUT") \ 24509d2bf59SDavid Howells E_(rxrpc_local_queued, "QUE") 24609d2bf59SDavid Howells 2471159d4b4SDavid Howells #define rxrpc_peer_traces \ 2481159d4b4SDavid Howells EM(rxrpc_peer_got, "GOT") \ 2491159d4b4SDavid Howells EM(rxrpc_peer_new, "NEW") \ 2501159d4b4SDavid Howells EM(rxrpc_peer_processing, "PRO") \ 251f3344303SDavid Howells E_(rxrpc_peer_put, "PUT") 2521159d4b4SDavid Howells 253b54a134aSDavid Howells #define rxrpc_conn_traces \ 254b54a134aSDavid Howells EM(rxrpc_conn_got, "GOT") \ 255b54a134aSDavid Howells EM(rxrpc_conn_new_client, "NWc") \ 256b54a134aSDavid Howells EM(rxrpc_conn_new_service, "NWs") \ 257b54a134aSDavid Howells EM(rxrpc_conn_put_client, "PTc") \ 258b54a134aSDavid Howells EM(rxrpc_conn_put_service, "PTs") \ 259b54a134aSDavid Howells EM(rxrpc_conn_queued, "QUE") \ 260f859ab61SDavid Howells EM(rxrpc_conn_reap_service, "RPs") \ 261b54a134aSDavid Howells E_(rxrpc_conn_seen, "SEE") 262b54a134aSDavid Howells 263b54a134aSDavid Howells #define rxrpc_client_traces \ 264b54a134aSDavid Howells EM(rxrpc_client_activate_chans, "Activa") \ 265b54a134aSDavid Howells EM(rxrpc_client_alloc, "Alloc ") \ 266b54a134aSDavid Howells EM(rxrpc_client_chan_activate, "ChActv") \ 267b54a134aSDavid Howells EM(rxrpc_client_chan_disconnect, "ChDisc") \ 268b54a134aSDavid Howells EM(rxrpc_client_chan_pass, "ChPass") \ 269b54a134aSDavid Howells EM(rxrpc_client_chan_unstarted, "ChUnst") \ 270930c9f91SDavid Howells EM(rxrpc_client_chan_wait_failed, "ChWtFl") \ 271b54a134aSDavid Howells EM(rxrpc_client_cleanup, "Clean ") \ 272b54a134aSDavid Howells EM(rxrpc_client_count, "Count ") \ 273b54a134aSDavid Howells EM(rxrpc_client_discard, "Discar") \ 274b54a134aSDavid Howells EM(rxrpc_client_duplicate, "Duplic") \ 275b54a134aSDavid Howells EM(rxrpc_client_exposed, "Expose") \ 276b54a134aSDavid Howells EM(rxrpc_client_replace, "Replac") \ 277b54a134aSDavid Howells EM(rxrpc_client_to_active, "->Actv") \ 278b54a134aSDavid Howells EM(rxrpc_client_to_culled, "->Cull") \ 279b54a134aSDavid Howells EM(rxrpc_client_to_idle, "->Idle") \ 280b54a134aSDavid Howells EM(rxrpc_client_to_inactive, "->Inac") \ 281b54a134aSDavid Howells EM(rxrpc_client_to_upgrade, "->Upgd") \ 282b54a134aSDavid Howells EM(rxrpc_client_to_waiting, "->Wait") \ 283b54a134aSDavid Howells E_(rxrpc_client_uncount, "Uncoun") 284b54a134aSDavid Howells 285b54a134aSDavid Howells #define rxrpc_conn_cache_states \ 286b54a134aSDavid Howells EM(RXRPC_CONN_CLIENT_INACTIVE, "Inac") \ 287b54a134aSDavid Howells EM(RXRPC_CONN_CLIENT_WAITING, "Wait") \ 288b54a134aSDavid Howells EM(RXRPC_CONN_CLIENT_ACTIVE, "Actv") \ 2894e255721SDavid Howells EM(RXRPC_CONN_CLIENT_UPGRADE, "Upgd") \ 290b54a134aSDavid Howells EM(RXRPC_CONN_CLIENT_CULLED, "Cull") \ 291b54a134aSDavid Howells E_(RXRPC_CONN_CLIENT_IDLE, "Idle") \ 292b54a134aSDavid Howells 293b54a134aSDavid Howells #define rxrpc_call_traces \ 294b54a134aSDavid Howells EM(rxrpc_call_connected, "CON") \ 295b54a134aSDavid Howells EM(rxrpc_call_error, "*E*") \ 296b54a134aSDavid Howells EM(rxrpc_call_got, "GOT") \ 297b54a134aSDavid Howells EM(rxrpc_call_got_kernel, "Gke") \ 298b54a134aSDavid Howells EM(rxrpc_call_got_userid, "Gus") \ 299b54a134aSDavid Howells EM(rxrpc_call_new_client, "NWc") \ 300b54a134aSDavid Howells EM(rxrpc_call_new_service, "NWs") \ 301b54a134aSDavid Howells EM(rxrpc_call_put, "PUT") \ 302b54a134aSDavid Howells EM(rxrpc_call_put_kernel, "Pke") \ 303b54a134aSDavid Howells EM(rxrpc_call_put_noqueue, "PNQ") \ 304b54a134aSDavid Howells EM(rxrpc_call_put_userid, "Pus") \ 305b54a134aSDavid Howells EM(rxrpc_call_queued, "QUE") \ 306b54a134aSDavid Howells EM(rxrpc_call_queued_ref, "QUR") \ 307b54a134aSDavid Howells EM(rxrpc_call_release, "RLS") \ 308b54a134aSDavid Howells E_(rxrpc_call_seen, "SEE") 309b54a134aSDavid Howells 310b54a134aSDavid Howells #define rxrpc_transmit_traces \ 311b54a134aSDavid Howells EM(rxrpc_transmit_await_reply, "AWR") \ 312b54a134aSDavid Howells EM(rxrpc_transmit_end, "END") \ 313b54a134aSDavid Howells EM(rxrpc_transmit_queue, "QUE") \ 314b54a134aSDavid Howells EM(rxrpc_transmit_queue_last, "QLS") \ 315b54a134aSDavid Howells EM(rxrpc_transmit_rotate, "ROT") \ 316b54a134aSDavid Howells EM(rxrpc_transmit_rotate_last, "RLS") \ 317b54a134aSDavid Howells E_(rxrpc_transmit_wait, "WAI") 318b54a134aSDavid Howells 319b54a134aSDavid Howells #define rxrpc_receive_traces \ 320b54a134aSDavid Howells EM(rxrpc_receive_end, "END") \ 321b54a134aSDavid Howells EM(rxrpc_receive_front, "FRN") \ 322b54a134aSDavid Howells EM(rxrpc_receive_incoming, "INC") \ 323b54a134aSDavid Howells EM(rxrpc_receive_queue, "QUE") \ 324b54a134aSDavid Howells EM(rxrpc_receive_queue_last, "QLS") \ 325b54a134aSDavid Howells E_(rxrpc_receive_rotate, "ROT") 326b54a134aSDavid Howells 327b54a134aSDavid Howells #define rxrpc_recvmsg_traces \ 328b54a134aSDavid Howells EM(rxrpc_recvmsg_cont, "CONT") \ 329b54a134aSDavid Howells EM(rxrpc_recvmsg_data_return, "DATA") \ 330b54a134aSDavid Howells EM(rxrpc_recvmsg_dequeue, "DEQU") \ 331b54a134aSDavid Howells EM(rxrpc_recvmsg_enter, "ENTR") \ 332b54a134aSDavid Howells EM(rxrpc_recvmsg_full, "FULL") \ 333b54a134aSDavid Howells EM(rxrpc_recvmsg_hole, "HOLE") \ 334b54a134aSDavid Howells EM(rxrpc_recvmsg_next, "NEXT") \ 335540b1c48SDavid Howells EM(rxrpc_recvmsg_requeue, "REQU") \ 336b54a134aSDavid Howells EM(rxrpc_recvmsg_return, "RETN") \ 337b54a134aSDavid Howells EM(rxrpc_recvmsg_terminal, "TERM") \ 338b54a134aSDavid Howells EM(rxrpc_recvmsg_to_be_accepted, "TBAC") \ 339b54a134aSDavid Howells E_(rxrpc_recvmsg_wait, "WAIT") 340b54a134aSDavid Howells 341b54a134aSDavid Howells #define rxrpc_rtt_tx_traces \ 342b54a134aSDavid Howells EM(rxrpc_rtt_tx_data, "DATA") \ 343b54a134aSDavid Howells E_(rxrpc_rtt_tx_ping, "PING") 344b54a134aSDavid Howells 345b54a134aSDavid Howells #define rxrpc_rtt_rx_traces \ 346b54a134aSDavid Howells EM(rxrpc_rtt_rx_ping_response, "PONG") \ 347b54a134aSDavid Howells E_(rxrpc_rtt_rx_requested_ack, "RACK") 348b54a134aSDavid Howells 349b54a134aSDavid Howells #define rxrpc_timer_traces \ 350b54a134aSDavid Howells EM(rxrpc_timer_begin, "Begin ") \ 351b54a134aSDavid Howells EM(rxrpc_timer_expired, "*EXPR*") \ 352a158bdd3SDavid Howells EM(rxrpc_timer_exp_ack, "ExpAck") \ 353a158bdd3SDavid Howells EM(rxrpc_timer_exp_hard, "ExpHrd") \ 354a158bdd3SDavid Howells EM(rxrpc_timer_exp_idle, "ExpIdl") \ 355415f44e4SDavid Howells EM(rxrpc_timer_exp_keepalive, "ExpKA ") \ 356bd1fdf8cSDavid Howells EM(rxrpc_timer_exp_lost_ack, "ExpLoA") \ 357a158bdd3SDavid Howells EM(rxrpc_timer_exp_normal, "ExpNml") \ 358a158bdd3SDavid Howells EM(rxrpc_timer_exp_ping, "ExpPng") \ 359a158bdd3SDavid Howells EM(rxrpc_timer_exp_resend, "ExpRsn") \ 360b54a134aSDavid Howells EM(rxrpc_timer_init_for_reply, "IniRpl") \ 361b54a134aSDavid Howells EM(rxrpc_timer_init_for_send_reply, "SndRpl") \ 362a158bdd3SDavid Howells EM(rxrpc_timer_restart, "Restrt") \ 363b54a134aSDavid Howells EM(rxrpc_timer_set_for_ack, "SetAck") \ 364a158bdd3SDavid Howells EM(rxrpc_timer_set_for_hard, "SetHrd") \ 365a158bdd3SDavid Howells EM(rxrpc_timer_set_for_idle, "SetIdl") \ 366415f44e4SDavid Howells EM(rxrpc_timer_set_for_keepalive, "KeepAl") \ 367bd1fdf8cSDavid Howells EM(rxrpc_timer_set_for_lost_ack, "SetLoA") \ 368a158bdd3SDavid Howells EM(rxrpc_timer_set_for_normal, "SetNml") \ 369b54a134aSDavid Howells EM(rxrpc_timer_set_for_ping, "SetPng") \ 370b54a134aSDavid Howells EM(rxrpc_timer_set_for_resend, "SetRTx") \ 371a158bdd3SDavid Howells E_(rxrpc_timer_set_for_send, "SetSnd") 372b54a134aSDavid Howells 373b54a134aSDavid Howells #define rxrpc_propose_ack_traces \ 374b54a134aSDavid Howells EM(rxrpc_propose_ack_client_tx_end, "ClTxEnd") \ 375b54a134aSDavid Howells EM(rxrpc_propose_ack_input_data, "DataIn ") \ 3767150ceaaSDavid Howells EM(rxrpc_propose_ack_ping_for_check_life, "ChkLife") \ 377415f44e4SDavid Howells EM(rxrpc_propose_ack_ping_for_keepalive, "KeepAlv") \ 378b54a134aSDavid Howells EM(rxrpc_propose_ack_ping_for_lost_ack, "LostAck") \ 379b54a134aSDavid Howells EM(rxrpc_propose_ack_ping_for_lost_reply, "LostRpl") \ 380b54a134aSDavid Howells EM(rxrpc_propose_ack_ping_for_params, "Params ") \ 381b54a134aSDavid Howells EM(rxrpc_propose_ack_processing_op, "ProcOp ") \ 382b54a134aSDavid Howells EM(rxrpc_propose_ack_respond_to_ack, "Rsp2Ack") \ 383b54a134aSDavid Howells EM(rxrpc_propose_ack_respond_to_ping, "Rsp2Png") \ 384b54a134aSDavid Howells EM(rxrpc_propose_ack_retry_tx, "RetryTx") \ 385b54a134aSDavid Howells EM(rxrpc_propose_ack_rotate_rx, "RxAck ") \ 386b54a134aSDavid Howells E_(rxrpc_propose_ack_terminal_ack, "ClTerm ") 387b54a134aSDavid Howells 388b54a134aSDavid Howells #define rxrpc_propose_ack_outcomes \ 389b54a134aSDavid Howells EM(rxrpc_propose_ack_subsume, " Subsume") \ 390b54a134aSDavid Howells EM(rxrpc_propose_ack_update, " Update") \ 391197445afSDavid Howells E_(rxrpc_propose_ack_use, " New") 392b54a134aSDavid Howells 393b54a134aSDavid Howells #define rxrpc_congest_modes \ 394b54a134aSDavid Howells EM(RXRPC_CALL_CONGEST_AVOIDANCE, "CongAvoid") \ 395b54a134aSDavid Howells EM(RXRPC_CALL_FAST_RETRANSMIT, "FastReTx ") \ 396b54a134aSDavid Howells EM(RXRPC_CALL_PACKET_LOSS, "PktLoss ") \ 397b54a134aSDavid Howells E_(RXRPC_CALL_SLOW_START, "SlowStart") 398b54a134aSDavid Howells 399b54a134aSDavid Howells #define rxrpc_congest_changes \ 400b54a134aSDavid Howells EM(rxrpc_cong_begin_retransmission, " Retrans") \ 401b54a134aSDavid Howells EM(rxrpc_cong_cleared_nacks, " Cleared") \ 402b54a134aSDavid Howells EM(rxrpc_cong_new_low_nack, " NewLowN") \ 403b54a134aSDavid Howells EM(rxrpc_cong_no_change, "") \ 404b54a134aSDavid Howells EM(rxrpc_cong_progress, " Progres") \ 405b54a134aSDavid Howells EM(rxrpc_cong_retransmit_again, " ReTxAgn") \ 406b54a134aSDavid Howells EM(rxrpc_cong_rtt_window_end, " RttWinE") \ 407b54a134aSDavid Howells E_(rxrpc_cong_saw_nack, " SawNack") 408b54a134aSDavid Howells 409b54a134aSDavid Howells #define rxrpc_pkts \ 410b54a134aSDavid Howells EM(0, "?00") \ 411b54a134aSDavid Howells EM(RXRPC_PACKET_TYPE_DATA, "DATA") \ 412b54a134aSDavid Howells EM(RXRPC_PACKET_TYPE_ACK, "ACK") \ 413b54a134aSDavid Howells EM(RXRPC_PACKET_TYPE_BUSY, "BUSY") \ 414b54a134aSDavid Howells EM(RXRPC_PACKET_TYPE_ABORT, "ABORT") \ 415b54a134aSDavid Howells EM(RXRPC_PACKET_TYPE_ACKALL, "ACKALL") \ 416b54a134aSDavid Howells EM(RXRPC_PACKET_TYPE_CHALLENGE, "CHALL") \ 417b54a134aSDavid Howells EM(RXRPC_PACKET_TYPE_RESPONSE, "RESP") \ 418b54a134aSDavid Howells EM(RXRPC_PACKET_TYPE_DEBUG, "DEBUG") \ 419b54a134aSDavid Howells EM(9, "?09") \ 420b54a134aSDavid Howells EM(10, "?10") \ 421b54a134aSDavid Howells EM(11, "?11") \ 422b54a134aSDavid Howells EM(12, "?12") \ 423b54a134aSDavid Howells EM(RXRPC_PACKET_TYPE_VERSION, "VERSION") \ 424b54a134aSDavid Howells EM(14, "?14") \ 425b54a134aSDavid Howells E_(15, "?15") 426b54a134aSDavid Howells 427b54a134aSDavid Howells #define rxrpc_ack_names \ 428b54a134aSDavid Howells EM(0, "-0-") \ 429b54a134aSDavid Howells EM(RXRPC_ACK_REQUESTED, "REQ") \ 430b54a134aSDavid Howells EM(RXRPC_ACK_DUPLICATE, "DUP") \ 431b54a134aSDavid Howells EM(RXRPC_ACK_OUT_OF_SEQUENCE, "OOS") \ 432b54a134aSDavid Howells EM(RXRPC_ACK_EXCEEDS_WINDOW, "WIN") \ 433b54a134aSDavid Howells EM(RXRPC_ACK_NOSPACE, "MEM") \ 434b54a134aSDavid Howells EM(RXRPC_ACK_PING, "PNG") \ 435b54a134aSDavid Howells EM(RXRPC_ACK_PING_RESPONSE, "PNR") \ 436b54a134aSDavid Howells EM(RXRPC_ACK_DELAY, "DLY") \ 437b54a134aSDavid Howells EM(RXRPC_ACK_IDLE, "IDL") \ 438b54a134aSDavid Howells E_(RXRPC_ACK__INVALID, "-?-") 439b54a134aSDavid Howells 4401bae5d22SDavid Howells #define rxrpc_completions \ 4411bae5d22SDavid Howells EM(RXRPC_CALL_SUCCEEDED, "Succeeded") \ 4421bae5d22SDavid Howells EM(RXRPC_CALL_REMOTELY_ABORTED, "RemoteAbort") \ 4431bae5d22SDavid Howells EM(RXRPC_CALL_LOCALLY_ABORTED, "LocalAbort") \ 4441bae5d22SDavid Howells EM(RXRPC_CALL_LOCAL_ERROR, "LocalError") \ 4451bae5d22SDavid Howells E_(RXRPC_CALL_NETWORK_ERROR, "NetError") 4461bae5d22SDavid Howells 4474764c0daSDavid Howells #define rxrpc_tx_points \ 4484764c0daSDavid Howells EM(rxrpc_tx_point_call_abort, "CallAbort") \ 4494764c0daSDavid Howells EM(rxrpc_tx_point_call_ack, "CallAck") \ 4504764c0daSDavid Howells EM(rxrpc_tx_point_call_data_frag, "CallDataFrag") \ 4514764c0daSDavid Howells EM(rxrpc_tx_point_call_data_nofrag, "CallDataNofrag") \ 4524764c0daSDavid Howells EM(rxrpc_tx_point_call_final_resend, "CallFinalResend") \ 4534764c0daSDavid Howells EM(rxrpc_tx_point_conn_abort, "ConnAbort") \ 4544764c0daSDavid Howells EM(rxrpc_tx_point_reject, "Reject") \ 4554764c0daSDavid Howells EM(rxrpc_tx_point_rxkad_challenge, "RxkadChall") \ 4564764c0daSDavid Howells EM(rxrpc_tx_point_rxkad_response, "RxkadResp") \ 4574764c0daSDavid Howells EM(rxrpc_tx_point_version_keepalive, "VerKeepalive") \ 4584764c0daSDavid Howells E_(rxrpc_tx_point_version_reply, "VerReply") 4596b47fe1dSDavid Howells 460b54a134aSDavid Howells /* 461b54a134aSDavid Howells * Export enum symbols via userspace. 462b54a134aSDavid Howells */ 463b54a134aSDavid Howells #undef EM 464b54a134aSDavid Howells #undef E_ 465b54a134aSDavid Howells #define EM(a, b) TRACE_DEFINE_ENUM(a); 466b54a134aSDavid Howells #define E_(a, b) TRACE_DEFINE_ENUM(a); 467b54a134aSDavid Howells 468b54a134aSDavid Howells rxrpc_skb_traces; 46909d2bf59SDavid Howells rxrpc_local_traces; 470b54a134aSDavid Howells rxrpc_conn_traces; 471b54a134aSDavid Howells rxrpc_client_traces; 472b54a134aSDavid Howells rxrpc_call_traces; 473b54a134aSDavid Howells rxrpc_transmit_traces; 474b54a134aSDavid Howells rxrpc_receive_traces; 475b54a134aSDavid Howells rxrpc_recvmsg_traces; 476b54a134aSDavid Howells rxrpc_rtt_tx_traces; 477b54a134aSDavid Howells rxrpc_rtt_rx_traces; 478b54a134aSDavid Howells rxrpc_timer_traces; 479b54a134aSDavid Howells rxrpc_propose_ack_traces; 480b54a134aSDavid Howells rxrpc_propose_ack_outcomes; 481827efed6SDavid Howells rxrpc_congest_modes; 482b54a134aSDavid Howells rxrpc_congest_changes; 4834764c0daSDavid Howells rxrpc_tx_points; 484b54a134aSDavid Howells 485b54a134aSDavid Howells /* 486b54a134aSDavid Howells * Now redefine the EM() and E_() macros to map the enums to the strings that 487b54a134aSDavid Howells * will be printed in the output. 488b54a134aSDavid Howells */ 489b54a134aSDavid Howells #undef EM 490b54a134aSDavid Howells #undef E_ 491b54a134aSDavid Howells #define EM(a, b) { a, b }, 492b54a134aSDavid Howells #define E_(a, b) { a, b } 493b54a134aSDavid Howells 49409d2bf59SDavid Howells TRACE_EVENT(rxrpc_local, 49506d9532fSDavid Howells TP_PROTO(unsigned int local_debug_id, enum rxrpc_local_trace op, 49609d2bf59SDavid Howells int usage, const void *where), 49709d2bf59SDavid Howells 49806d9532fSDavid Howells TP_ARGS(local_debug_id, op, usage, where), 49909d2bf59SDavid Howells 50009d2bf59SDavid Howells TP_STRUCT__entry( 50109d2bf59SDavid Howells __field(unsigned int, local ) 50209d2bf59SDavid Howells __field(int, op ) 50309d2bf59SDavid Howells __field(int, usage ) 50409d2bf59SDavid Howells __field(const void *, where ) 50509d2bf59SDavid Howells ), 50609d2bf59SDavid Howells 50709d2bf59SDavid Howells TP_fast_assign( 50806d9532fSDavid Howells __entry->local = local_debug_id; 50909d2bf59SDavid Howells __entry->op = op; 51009d2bf59SDavid Howells __entry->usage = usage; 51109d2bf59SDavid Howells __entry->where = where; 51209d2bf59SDavid Howells ), 51309d2bf59SDavid Howells 51409d2bf59SDavid Howells TP_printk("L=%08x %s u=%d sp=%pSR", 51509d2bf59SDavid Howells __entry->local, 51609d2bf59SDavid Howells __print_symbolic(__entry->op, rxrpc_local_traces), 51709d2bf59SDavid Howells __entry->usage, 51809d2bf59SDavid Howells __entry->where) 51909d2bf59SDavid Howells ); 52009d2bf59SDavid Howells 5211159d4b4SDavid Howells TRACE_EVENT(rxrpc_peer, 522*55f6c98eSDavid Howells TP_PROTO(unsigned int peer_debug_id, enum rxrpc_peer_trace op, 5231159d4b4SDavid Howells int usage, const void *where), 5241159d4b4SDavid Howells 525*55f6c98eSDavid Howells TP_ARGS(peer_debug_id, op, usage, where), 5261159d4b4SDavid Howells 5271159d4b4SDavid Howells TP_STRUCT__entry( 5281159d4b4SDavid Howells __field(unsigned int, peer ) 5291159d4b4SDavid Howells __field(int, op ) 5301159d4b4SDavid Howells __field(int, usage ) 5311159d4b4SDavid Howells __field(const void *, where ) 5321159d4b4SDavid Howells ), 5331159d4b4SDavid Howells 5341159d4b4SDavid Howells TP_fast_assign( 535*55f6c98eSDavid Howells __entry->peer = peer_debug_id; 5361159d4b4SDavid Howells __entry->op = op; 5371159d4b4SDavid Howells __entry->usage = usage; 5381159d4b4SDavid Howells __entry->where = where; 5391159d4b4SDavid Howells ), 5401159d4b4SDavid Howells 5411159d4b4SDavid Howells TP_printk("P=%08x %s u=%d sp=%pSR", 5421159d4b4SDavid Howells __entry->peer, 5431159d4b4SDavid Howells __print_symbolic(__entry->op, rxrpc_peer_traces), 5441159d4b4SDavid Howells __entry->usage, 5451159d4b4SDavid Howells __entry->where) 5461159d4b4SDavid Howells ); 5471159d4b4SDavid Howells 548363deeabSDavid Howells TRACE_EVENT(rxrpc_conn, 549363deeabSDavid Howells TP_PROTO(struct rxrpc_connection *conn, enum rxrpc_conn_trace op, 550363deeabSDavid Howells int usage, const void *where), 551363deeabSDavid Howells 552363deeabSDavid Howells TP_ARGS(conn, op, usage, where), 553363deeabSDavid Howells 554363deeabSDavid Howells TP_STRUCT__entry( 555a25e21f0SDavid Howells __field(unsigned int, conn ) 556363deeabSDavid Howells __field(int, op ) 557363deeabSDavid Howells __field(int, usage ) 558363deeabSDavid Howells __field(const void *, where ) 559363deeabSDavid Howells ), 560363deeabSDavid Howells 561363deeabSDavid Howells TP_fast_assign( 562a25e21f0SDavid Howells __entry->conn = conn->debug_id; 563363deeabSDavid Howells __entry->op = op; 564363deeabSDavid Howells __entry->usage = usage; 565363deeabSDavid Howells __entry->where = where; 566363deeabSDavid Howells ), 567363deeabSDavid Howells 568a25e21f0SDavid Howells TP_printk("C=%08x %s u=%d sp=%pSR", 569363deeabSDavid Howells __entry->conn, 570b54a134aSDavid Howells __print_symbolic(__entry->op, rxrpc_conn_traces), 571363deeabSDavid Howells __entry->usage, 572363deeabSDavid Howells __entry->where) 573363deeabSDavid Howells ); 574363deeabSDavid Howells 575363deeabSDavid Howells TRACE_EVENT(rxrpc_client, 576363deeabSDavid Howells TP_PROTO(struct rxrpc_connection *conn, int channel, 577363deeabSDavid Howells enum rxrpc_client_trace op), 578363deeabSDavid Howells 579363deeabSDavid Howells TP_ARGS(conn, channel, op), 580363deeabSDavid Howells 581363deeabSDavid Howells TP_STRUCT__entry( 582a25e21f0SDavid Howells __field(unsigned int, conn ) 583363deeabSDavid Howells __field(u32, cid ) 584363deeabSDavid Howells __field(int, channel ) 585363deeabSDavid Howells __field(int, usage ) 586363deeabSDavid Howells __field(enum rxrpc_client_trace, op ) 587363deeabSDavid Howells __field(enum rxrpc_conn_cache_state, cs ) 588363deeabSDavid Howells ), 589363deeabSDavid Howells 590363deeabSDavid Howells TP_fast_assign( 591a25e21f0SDavid Howells __entry->conn = conn->debug_id; 592363deeabSDavid Howells __entry->channel = channel; 593363deeabSDavid Howells __entry->usage = atomic_read(&conn->usage); 594363deeabSDavid Howells __entry->op = op; 595363deeabSDavid Howells __entry->cid = conn->proto.cid; 596363deeabSDavid Howells __entry->cs = conn->cache_state; 597363deeabSDavid Howells ), 598363deeabSDavid Howells 599a25e21f0SDavid Howells TP_printk("C=%08x h=%2d %s %s i=%08x u=%d", 600363deeabSDavid Howells __entry->conn, 601363deeabSDavid Howells __entry->channel, 602b54a134aSDavid Howells __print_symbolic(__entry->op, rxrpc_client_traces), 603b54a134aSDavid Howells __print_symbolic(__entry->cs, rxrpc_conn_cache_states), 604363deeabSDavid Howells __entry->cid, 605363deeabSDavid Howells __entry->usage) 606363deeabSDavid Howells ); 607363deeabSDavid Howells 608e34d4234SDavid Howells TRACE_EVENT(rxrpc_call, 609fff72429SDavid Howells TP_PROTO(struct rxrpc_call *call, enum rxrpc_call_trace op, 6102ab27215SDavid Howells int usage, const void *where, const void *aux), 611e34d4234SDavid Howells 6122ab27215SDavid Howells TP_ARGS(call, op, usage, where, aux), 613e34d4234SDavid Howells 614e34d4234SDavid Howells TP_STRUCT__entry( 615a25e21f0SDavid Howells __field(unsigned int, call ) 616e34d4234SDavid Howells __field(int, op ) 617e34d4234SDavid Howells __field(int, usage ) 618e34d4234SDavid Howells __field(const void *, where ) 619e34d4234SDavid Howells __field(const void *, aux ) 620e34d4234SDavid Howells ), 621e34d4234SDavid Howells 622e34d4234SDavid Howells TP_fast_assign( 623a25e21f0SDavid Howells __entry->call = call->debug_id; 624e34d4234SDavid Howells __entry->op = op; 625e34d4234SDavid Howells __entry->usage = usage; 626e34d4234SDavid Howells __entry->where = where; 627e34d4234SDavid Howells __entry->aux = aux; 628e34d4234SDavid Howells ), 629e34d4234SDavid Howells 630a25e21f0SDavid Howells TP_printk("c=%08x %s u=%d sp=%pSR a=%p", 631e34d4234SDavid Howells __entry->call, 632b54a134aSDavid Howells __print_symbolic(__entry->op, rxrpc_call_traces), 633e34d4234SDavid Howells __entry->usage, 634e34d4234SDavid Howells __entry->where, 635e34d4234SDavid Howells __entry->aux) 636e34d4234SDavid Howells ); 637e34d4234SDavid Howells 638df844fd4SDavid Howells TRACE_EVENT(rxrpc_skb, 63971f3ca40SDavid Howells TP_PROTO(struct sk_buff *skb, enum rxrpc_skb_trace op, 640d0d5c0cdSDavid Howells int usage, int mod_count, u8 flags, const void *where), 641df844fd4SDavid Howells 642d0d5c0cdSDavid Howells TP_ARGS(skb, op, usage, mod_count, flags, where), 643df844fd4SDavid Howells 644df844fd4SDavid Howells TP_STRUCT__entry( 645df844fd4SDavid Howells __field(struct sk_buff *, skb ) 64671f3ca40SDavid Howells __field(enum rxrpc_skb_trace, op ) 647987db9f7SDavid Howells __field(u8, flags ) 648df844fd4SDavid Howells __field(int, usage ) 649df844fd4SDavid Howells __field(int, mod_count ) 650df844fd4SDavid Howells __field(const void *, where ) 651df844fd4SDavid Howells ), 652df844fd4SDavid Howells 653df844fd4SDavid Howells TP_fast_assign( 654df844fd4SDavid Howells __entry->skb = skb; 655d0d5c0cdSDavid Howells __entry->flags = flags; 656df844fd4SDavid Howells __entry->op = op; 657df844fd4SDavid Howells __entry->usage = usage; 658df844fd4SDavid Howells __entry->mod_count = mod_count; 659df844fd4SDavid Howells __entry->where = where; 660df844fd4SDavid Howells ), 661df844fd4SDavid Howells 662987db9f7SDavid Howells TP_printk("s=%p %cx %s u=%d m=%d p=%pSR", 663df844fd4SDavid Howells __entry->skb, 664987db9f7SDavid Howells __entry->flags & RXRPC_SKB_TX_BUFFER ? 'T' : 'R', 665b54a134aSDavid Howells __print_symbolic(__entry->op, rxrpc_skb_traces), 666df844fd4SDavid Howells __entry->usage, 667df844fd4SDavid Howells __entry->mod_count, 668df844fd4SDavid Howells __entry->where) 669df844fd4SDavid Howells ); 670df844fd4SDavid Howells 67149e19ec7SDavid Howells TRACE_EVENT(rxrpc_rx_packet, 67249e19ec7SDavid Howells TP_PROTO(struct rxrpc_skb_priv *sp), 67349e19ec7SDavid Howells 67449e19ec7SDavid Howells TP_ARGS(sp), 67549e19ec7SDavid Howells 67649e19ec7SDavid Howells TP_STRUCT__entry( 67749e19ec7SDavid Howells __field_struct(struct rxrpc_host_header, hdr ) 67849e19ec7SDavid Howells ), 67949e19ec7SDavid Howells 68049e19ec7SDavid Howells TP_fast_assign( 68149e19ec7SDavid Howells memcpy(&__entry->hdr, &sp->hdr, sizeof(__entry->hdr)); 68249e19ec7SDavid Howells ), 68349e19ec7SDavid Howells 684a3868bfcSDavid Howells TP_printk("%08x:%08x:%08x:%04x %08x %08x %02x %02x %s", 68549e19ec7SDavid Howells __entry->hdr.epoch, __entry->hdr.cid, 68649e19ec7SDavid Howells __entry->hdr.callNumber, __entry->hdr.serviceId, 68749e19ec7SDavid Howells __entry->hdr.serial, __entry->hdr.seq, 688a3868bfcSDavid Howells __entry->hdr.type, __entry->hdr.flags, 689b54a134aSDavid Howells __entry->hdr.type <= 15 ? 690b54a134aSDavid Howells __print_symbolic(__entry->hdr.type, rxrpc_pkts) : "?UNK") 69149e19ec7SDavid Howells ); 69249e19ec7SDavid Howells 69349e19ec7SDavid Howells TRACE_EVENT(rxrpc_rx_done, 69449e19ec7SDavid Howells TP_PROTO(int result, int abort_code), 69549e19ec7SDavid Howells 69649e19ec7SDavid Howells TP_ARGS(result, abort_code), 69749e19ec7SDavid Howells 69849e19ec7SDavid Howells TP_STRUCT__entry( 69949e19ec7SDavid Howells __field(int, result ) 70049e19ec7SDavid Howells __field(int, abort_code ) 70149e19ec7SDavid Howells ), 70249e19ec7SDavid Howells 70349e19ec7SDavid Howells TP_fast_assign( 70449e19ec7SDavid Howells __entry->result = result; 70549e19ec7SDavid Howells __entry->abort_code = abort_code; 70649e19ec7SDavid Howells ), 70749e19ec7SDavid Howells 70849e19ec7SDavid Howells TP_printk("r=%d a=%d", __entry->result, __entry->abort_code) 70949e19ec7SDavid Howells ); 71049e19ec7SDavid Howells 7115a42976dSDavid Howells TRACE_EVENT(rxrpc_abort, 712a25e21f0SDavid Howells TP_PROTO(unsigned int call_nr, const char *why, u32 cid, u32 call_id, 713a25e21f0SDavid Howells rxrpc_seq_t seq, int abort_code, int error), 7145a42976dSDavid Howells 715a25e21f0SDavid Howells TP_ARGS(call_nr, why, cid, call_id, seq, abort_code, error), 7165a42976dSDavid Howells 7175a42976dSDavid Howells TP_STRUCT__entry( 718a25e21f0SDavid Howells __field(unsigned int, call_nr ) 7195a42976dSDavid Howells __array(char, why, 4 ) 7205a42976dSDavid Howells __field(u32, cid ) 7215a42976dSDavid Howells __field(u32, call_id ) 7225a42976dSDavid Howells __field(rxrpc_seq_t, seq ) 7235a42976dSDavid Howells __field(int, abort_code ) 7245a42976dSDavid Howells __field(int, error ) 7255a42976dSDavid Howells ), 7265a42976dSDavid Howells 7275a42976dSDavid Howells TP_fast_assign( 7285a42976dSDavid Howells memcpy(__entry->why, why, 4); 729a25e21f0SDavid Howells __entry->call_nr = call_nr; 7305a42976dSDavid Howells __entry->cid = cid; 7315a42976dSDavid Howells __entry->call_id = call_id; 7325a42976dSDavid Howells __entry->abort_code = abort_code; 7335a42976dSDavid Howells __entry->error = error; 7345a42976dSDavid Howells __entry->seq = seq; 7355a42976dSDavid Howells ), 7365a42976dSDavid Howells 737a25e21f0SDavid Howells TP_printk("c=%08x %08x:%08x s=%u a=%d e=%d %s", 738a25e21f0SDavid Howells __entry->call_nr, 7395a42976dSDavid Howells __entry->cid, __entry->call_id, __entry->seq, 7405a42976dSDavid Howells __entry->abort_code, __entry->error, __entry->why) 7415a42976dSDavid Howells ); 7425a42976dSDavid Howells 7431bae5d22SDavid Howells TRACE_EVENT(rxrpc_call_complete, 7441bae5d22SDavid Howells TP_PROTO(struct rxrpc_call *call), 7451bae5d22SDavid Howells 7461bae5d22SDavid Howells TP_ARGS(call), 7471bae5d22SDavid Howells 7481bae5d22SDavid Howells TP_STRUCT__entry( 7491bae5d22SDavid Howells __field(unsigned int, call ) 7501bae5d22SDavid Howells __field(enum rxrpc_call_completion, compl ) 7511bae5d22SDavid Howells __field(int, error ) 7521bae5d22SDavid Howells __field(u32, abort_code ) 7531bae5d22SDavid Howells ), 7541bae5d22SDavid Howells 7551bae5d22SDavid Howells TP_fast_assign( 7561bae5d22SDavid Howells __entry->call = call->debug_id; 7571bae5d22SDavid Howells __entry->compl = call->completion; 7581bae5d22SDavid Howells __entry->error = call->error; 7591bae5d22SDavid Howells __entry->abort_code = call->abort_code; 7601bae5d22SDavid Howells ), 7611bae5d22SDavid Howells 7621bae5d22SDavid Howells TP_printk("c=%08x %s r=%d ac=%d", 7631bae5d22SDavid Howells __entry->call, 7641bae5d22SDavid Howells __print_symbolic(__entry->compl, rxrpc_completions), 7651bae5d22SDavid Howells __entry->error, 7661bae5d22SDavid Howells __entry->abort_code) 7671bae5d22SDavid Howells ); 7681bae5d22SDavid Howells 769a124fe3eSDavid Howells TRACE_EVENT(rxrpc_transmit, 770a124fe3eSDavid Howells TP_PROTO(struct rxrpc_call *call, enum rxrpc_transmit_trace why), 771a124fe3eSDavid Howells 772a124fe3eSDavid Howells TP_ARGS(call, why), 773a124fe3eSDavid Howells 774a124fe3eSDavid Howells TP_STRUCT__entry( 775a25e21f0SDavid Howells __field(unsigned int, call ) 776a124fe3eSDavid Howells __field(enum rxrpc_transmit_trace, why ) 777a124fe3eSDavid Howells __field(rxrpc_seq_t, tx_hard_ack ) 778a124fe3eSDavid Howells __field(rxrpc_seq_t, tx_top ) 779b1d9f7fdSDavid Howells __field(int, tx_winsize ) 780a124fe3eSDavid Howells ), 781a124fe3eSDavid Howells 782a124fe3eSDavid Howells TP_fast_assign( 783a25e21f0SDavid Howells __entry->call = call->debug_id; 784a124fe3eSDavid Howells __entry->why = why; 785a124fe3eSDavid Howells __entry->tx_hard_ack = call->tx_hard_ack; 786a124fe3eSDavid Howells __entry->tx_top = call->tx_top; 787b1d9f7fdSDavid Howells __entry->tx_winsize = call->tx_winsize; 788a124fe3eSDavid Howells ), 789a124fe3eSDavid Howells 790a25e21f0SDavid Howells TP_printk("c=%08x %s f=%08x n=%u/%u", 791a124fe3eSDavid Howells __entry->call, 792b54a134aSDavid Howells __print_symbolic(__entry->why, rxrpc_transmit_traces), 793a124fe3eSDavid Howells __entry->tx_hard_ack + 1, 794b1d9f7fdSDavid Howells __entry->tx_top - __entry->tx_hard_ack, 795b1d9f7fdSDavid Howells __entry->tx_winsize) 796a124fe3eSDavid Howells ); 797a124fe3eSDavid Howells 798b1d9f7fdSDavid Howells TRACE_EVENT(rxrpc_rx_data, 7994764c0daSDavid Howells TP_PROTO(unsigned int call, rxrpc_seq_t seq, 800b1d9f7fdSDavid Howells rxrpc_serial_t serial, u8 flags, u8 anno), 801ec71eb9aSDavid Howells 802b1d9f7fdSDavid Howells TP_ARGS(call, seq, serial, flags, anno), 803ec71eb9aSDavid Howells 804ec71eb9aSDavid Howells TP_STRUCT__entry( 805a25e21f0SDavid Howells __field(unsigned int, call ) 806b1d9f7fdSDavid Howells __field(rxrpc_seq_t, seq ) 807b1d9f7fdSDavid Howells __field(rxrpc_serial_t, serial ) 808b1d9f7fdSDavid Howells __field(u8, flags ) 809b1d9f7fdSDavid Howells __field(u8, anno ) 810b1d9f7fdSDavid Howells ), 811b1d9f7fdSDavid Howells 812b1d9f7fdSDavid Howells TP_fast_assign( 8134764c0daSDavid Howells __entry->call = call; 814b1d9f7fdSDavid Howells __entry->seq = seq; 815b1d9f7fdSDavid Howells __entry->serial = serial; 816b1d9f7fdSDavid Howells __entry->flags = flags; 817b1d9f7fdSDavid Howells __entry->anno = anno; 818b1d9f7fdSDavid Howells ), 819b1d9f7fdSDavid Howells 820a25e21f0SDavid Howells TP_printk("c=%08x DATA %08x q=%08x fl=%02x a=%02x", 821b1d9f7fdSDavid Howells __entry->call, 822b1d9f7fdSDavid Howells __entry->serial, 823b1d9f7fdSDavid Howells __entry->seq, 824b1d9f7fdSDavid Howells __entry->flags, 825b1d9f7fdSDavid Howells __entry->anno) 826b1d9f7fdSDavid Howells ); 827b1d9f7fdSDavid Howells 828b1d9f7fdSDavid Howells TRACE_EVENT(rxrpc_rx_ack, 829b1d9f7fdSDavid Howells TP_PROTO(struct rxrpc_call *call, 830b1d9f7fdSDavid Howells rxrpc_serial_t serial, rxrpc_serial_t ack_serial, 831b1d9f7fdSDavid Howells rxrpc_seq_t first, rxrpc_seq_t prev, u8 reason, u8 n_acks), 832b1d9f7fdSDavid Howells 833b1d9f7fdSDavid Howells TP_ARGS(call, serial, ack_serial, first, prev, reason, n_acks), 834b1d9f7fdSDavid Howells 835b1d9f7fdSDavid Howells TP_STRUCT__entry( 836a25e21f0SDavid Howells __field(unsigned int, call ) 837b1d9f7fdSDavid Howells __field(rxrpc_serial_t, serial ) 838b1d9f7fdSDavid Howells __field(rxrpc_serial_t, ack_serial ) 839ec71eb9aSDavid Howells __field(rxrpc_seq_t, first ) 840b1d9f7fdSDavid Howells __field(rxrpc_seq_t, prev ) 841ec71eb9aSDavid Howells __field(u8, reason ) 842ec71eb9aSDavid Howells __field(u8, n_acks ) 843ec71eb9aSDavid Howells ), 844ec71eb9aSDavid Howells 845ec71eb9aSDavid Howells TP_fast_assign( 846a25e21f0SDavid Howells __entry->call = call->debug_id; 847b1d9f7fdSDavid Howells __entry->serial = serial; 848b1d9f7fdSDavid Howells __entry->ack_serial = ack_serial; 849ec71eb9aSDavid Howells __entry->first = first; 850b1d9f7fdSDavid Howells __entry->prev = prev; 851ec71eb9aSDavid Howells __entry->reason = reason; 852ec71eb9aSDavid Howells __entry->n_acks = n_acks; 853ec71eb9aSDavid Howells ), 854ec71eb9aSDavid Howells 855a25e21f0SDavid Howells TP_printk("c=%08x %08x %s r=%08x f=%08x p=%08x n=%u", 856ec71eb9aSDavid Howells __entry->call, 857b1d9f7fdSDavid Howells __entry->serial, 858b54a134aSDavid Howells __print_symbolic(__entry->reason, rxrpc_ack_names), 859b1d9f7fdSDavid Howells __entry->ack_serial, 860ec71eb9aSDavid Howells __entry->first, 861b1d9f7fdSDavid Howells __entry->prev, 862ec71eb9aSDavid Howells __entry->n_acks) 863ec71eb9aSDavid Howells ); 864ec71eb9aSDavid Howells 865005ede28SDavid Howells TRACE_EVENT(rxrpc_rx_abort, 866005ede28SDavid Howells TP_PROTO(struct rxrpc_call *call, rxrpc_serial_t serial, 867005ede28SDavid Howells u32 abort_code), 868005ede28SDavid Howells 869005ede28SDavid Howells TP_ARGS(call, serial, abort_code), 870005ede28SDavid Howells 871005ede28SDavid Howells TP_STRUCT__entry( 872a25e21f0SDavid Howells __field(unsigned int, call ) 873005ede28SDavid Howells __field(rxrpc_serial_t, serial ) 874005ede28SDavid Howells __field(u32, abort_code ) 875005ede28SDavid Howells ), 876005ede28SDavid Howells 877005ede28SDavid Howells TP_fast_assign( 878a25e21f0SDavid Howells __entry->call = call->debug_id; 879005ede28SDavid Howells __entry->serial = serial; 880005ede28SDavid Howells __entry->abort_code = abort_code; 881005ede28SDavid Howells ), 882005ede28SDavid Howells 883a25e21f0SDavid Howells TP_printk("c=%08x ABORT %08x ac=%d", 884005ede28SDavid Howells __entry->call, 885005ede28SDavid Howells __entry->serial, 886005ede28SDavid Howells __entry->abort_code) 887005ede28SDavid Howells ); 888005ede28SDavid Howells 889740586d2SDavid Howells TRACE_EVENT(rxrpc_rx_rwind_change, 890740586d2SDavid Howells TP_PROTO(struct rxrpc_call *call, rxrpc_serial_t serial, 891740586d2SDavid Howells u32 rwind, bool wake), 892740586d2SDavid Howells 893740586d2SDavid Howells TP_ARGS(call, serial, rwind, wake), 894740586d2SDavid Howells 895740586d2SDavid Howells TP_STRUCT__entry( 896a25e21f0SDavid Howells __field(unsigned int, call ) 897740586d2SDavid Howells __field(rxrpc_serial_t, serial ) 898740586d2SDavid Howells __field(u32, rwind ) 899740586d2SDavid Howells __field(bool, wake ) 900740586d2SDavid Howells ), 901740586d2SDavid Howells 902740586d2SDavid Howells TP_fast_assign( 903a25e21f0SDavid Howells __entry->call = call->debug_id; 904740586d2SDavid Howells __entry->serial = serial; 905740586d2SDavid Howells __entry->rwind = rwind; 906740586d2SDavid Howells __entry->wake = wake; 907740586d2SDavid Howells ), 908740586d2SDavid Howells 909a25e21f0SDavid Howells TP_printk("c=%08x %08x rw=%u%s", 910740586d2SDavid Howells __entry->call, 911740586d2SDavid Howells __entry->serial, 912740586d2SDavid Howells __entry->rwind, 913740586d2SDavid Howells __entry->wake ? " wake" : "") 914740586d2SDavid Howells ); 915740586d2SDavid Howells 9164764c0daSDavid Howells TRACE_EVENT(rxrpc_tx_packet, 9174764c0daSDavid Howells TP_PROTO(unsigned int call_id, struct rxrpc_wire_header *whdr, 9184764c0daSDavid Howells enum rxrpc_tx_point where), 9194764c0daSDavid Howells 9204764c0daSDavid Howells TP_ARGS(call_id, whdr, where), 9214764c0daSDavid Howells 9224764c0daSDavid Howells TP_STRUCT__entry( 9234764c0daSDavid Howells __field(unsigned int, call ) 9244764c0daSDavid Howells __field(enum rxrpc_tx_point, where ) 9254764c0daSDavid Howells __field_struct(struct rxrpc_wire_header, whdr ) 9264764c0daSDavid Howells ), 9274764c0daSDavid Howells 9284764c0daSDavid Howells TP_fast_assign( 9294764c0daSDavid Howells __entry->call = call_id; 9304764c0daSDavid Howells memcpy(&__entry->whdr, whdr, sizeof(__entry->whdr)); 9314e2abd3cSDavid Howells __entry->where = where; 9324764c0daSDavid Howells ), 9334764c0daSDavid Howells 9344764c0daSDavid Howells TP_printk("c=%08x %08x:%08x:%08x:%04x %08x %08x %02x %02x %s %s", 9354764c0daSDavid Howells __entry->call, 9364764c0daSDavid Howells ntohl(__entry->whdr.epoch), 9374764c0daSDavid Howells ntohl(__entry->whdr.cid), 9384764c0daSDavid Howells ntohl(__entry->whdr.callNumber), 9394764c0daSDavid Howells ntohs(__entry->whdr.serviceId), 9404764c0daSDavid Howells ntohl(__entry->whdr.serial), 9414764c0daSDavid Howells ntohl(__entry->whdr.seq), 9424764c0daSDavid Howells __entry->whdr.type, __entry->whdr.flags, 9434764c0daSDavid Howells __entry->whdr.type <= 15 ? 9444764c0daSDavid Howells __print_symbolic(__entry->whdr.type, rxrpc_pkts) : "?UNK", 9454764c0daSDavid Howells __print_symbolic(__entry->where, rxrpc_tx_points)) 9464764c0daSDavid Howells ); 9474764c0daSDavid Howells 948be832aecSDavid Howells TRACE_EVENT(rxrpc_tx_data, 949be832aecSDavid Howells TP_PROTO(struct rxrpc_call *call, rxrpc_seq_t seq, 950a1767077SDavid Howells rxrpc_serial_t serial, u8 flags, bool retrans, bool lose), 951f3639df2SDavid Howells 952a1767077SDavid Howells TP_ARGS(call, seq, serial, flags, retrans, lose), 953f3639df2SDavid Howells 954f3639df2SDavid Howells TP_STRUCT__entry( 955a25e21f0SDavid Howells __field(unsigned int, call ) 956be832aecSDavid Howells __field(rxrpc_seq_t, seq ) 957f3639df2SDavid Howells __field(rxrpc_serial_t, serial ) 9584764c0daSDavid Howells __field(u32, cid ) 9594764c0daSDavid Howells __field(u32, call_id ) 960be832aecSDavid Howells __field(u8, flags ) 961a1767077SDavid Howells __field(bool, retrans ) 962be832aecSDavid Howells __field(bool, lose ) 963be832aecSDavid Howells ), 964be832aecSDavid Howells 965be832aecSDavid Howells TP_fast_assign( 966a25e21f0SDavid Howells __entry->call = call->debug_id; 9674764c0daSDavid Howells __entry->cid = call->cid; 9684764c0daSDavid Howells __entry->call_id = call->call_id; 969be832aecSDavid Howells __entry->seq = seq; 970be832aecSDavid Howells __entry->serial = serial; 971be832aecSDavid Howells __entry->flags = flags; 972a1767077SDavid Howells __entry->retrans = retrans; 973be832aecSDavid Howells __entry->lose = lose; 974be832aecSDavid Howells ), 975be832aecSDavid Howells 9764764c0daSDavid Howells TP_printk("c=%08x DATA %08x:%08x %08x q=%08x fl=%02x%s%s", 977be832aecSDavid Howells __entry->call, 9784764c0daSDavid Howells __entry->cid, 9794764c0daSDavid Howells __entry->call_id, 980be832aecSDavid Howells __entry->serial, 981be832aecSDavid Howells __entry->seq, 982be832aecSDavid Howells __entry->flags, 983265a44bbSDavid Howells __entry->retrans ? " *RETRANS*" : "", 984be832aecSDavid Howells __entry->lose ? " *LOSE*" : "") 985be832aecSDavid Howells ); 986be832aecSDavid Howells 987be832aecSDavid Howells TRACE_EVENT(rxrpc_tx_ack, 9884764c0daSDavid Howells TP_PROTO(unsigned int call, rxrpc_serial_t serial, 989be832aecSDavid Howells rxrpc_seq_t ack_first, rxrpc_serial_t ack_serial, 990be832aecSDavid Howells u8 reason, u8 n_acks), 991be832aecSDavid Howells 992be832aecSDavid Howells TP_ARGS(call, serial, ack_first, ack_serial, reason, n_acks), 993be832aecSDavid Howells 994be832aecSDavid Howells TP_STRUCT__entry( 995a25e21f0SDavid Howells __field(unsigned int, call ) 996be832aecSDavid Howells __field(rxrpc_serial_t, serial ) 997be832aecSDavid Howells __field(rxrpc_seq_t, ack_first ) 998be832aecSDavid Howells __field(rxrpc_serial_t, ack_serial ) 999f3639df2SDavid Howells __field(u8, reason ) 1000f3639df2SDavid Howells __field(u8, n_acks ) 1001f3639df2SDavid Howells ), 1002f3639df2SDavid Howells 1003f3639df2SDavid Howells TP_fast_assign( 10044764c0daSDavid Howells __entry->call = call; 1005f3639df2SDavid Howells __entry->serial = serial; 1006be832aecSDavid Howells __entry->ack_first = ack_first; 1007be832aecSDavid Howells __entry->ack_serial = ack_serial; 1008f3639df2SDavid Howells __entry->reason = reason; 1009f3639df2SDavid Howells __entry->n_acks = n_acks; 1010f3639df2SDavid Howells ), 1011f3639df2SDavid Howells 1012a25e21f0SDavid Howells TP_printk(" c=%08x ACK %08x %s f=%08x r=%08x n=%u", 1013f3639df2SDavid Howells __entry->call, 1014f3639df2SDavid Howells __entry->serial, 1015b54a134aSDavid Howells __print_symbolic(__entry->reason, rxrpc_ack_names), 1016be832aecSDavid Howells __entry->ack_first, 1017be832aecSDavid Howells __entry->ack_serial, 1018f3639df2SDavid Howells __entry->n_acks) 1019f3639df2SDavid Howells ); 1020f3639df2SDavid Howells 102158dc63c9SDavid Howells TRACE_EVENT(rxrpc_receive, 102258dc63c9SDavid Howells TP_PROTO(struct rxrpc_call *call, enum rxrpc_receive_trace why, 102358dc63c9SDavid Howells rxrpc_serial_t serial, rxrpc_seq_t seq), 102458dc63c9SDavid Howells 102558dc63c9SDavid Howells TP_ARGS(call, why, serial, seq), 102658dc63c9SDavid Howells 102758dc63c9SDavid Howells TP_STRUCT__entry( 1028a25e21f0SDavid Howells __field(unsigned int, call ) 102958dc63c9SDavid Howells __field(enum rxrpc_receive_trace, why ) 103058dc63c9SDavid Howells __field(rxrpc_serial_t, serial ) 103158dc63c9SDavid Howells __field(rxrpc_seq_t, seq ) 103258dc63c9SDavid Howells __field(rxrpc_seq_t, hard_ack ) 103358dc63c9SDavid Howells __field(rxrpc_seq_t, top ) 103458dc63c9SDavid Howells ), 103558dc63c9SDavid Howells 103658dc63c9SDavid Howells TP_fast_assign( 1037a25e21f0SDavid Howells __entry->call = call->debug_id; 103858dc63c9SDavid Howells __entry->why = why; 103958dc63c9SDavid Howells __entry->serial = serial; 104058dc63c9SDavid Howells __entry->seq = seq; 104158dc63c9SDavid Howells __entry->hard_ack = call->rx_hard_ack; 104258dc63c9SDavid Howells __entry->top = call->rx_top; 104358dc63c9SDavid Howells ), 104458dc63c9SDavid Howells 1045a25e21f0SDavid Howells TP_printk("c=%08x %s r=%08x q=%08x w=%08x-%08x", 104658dc63c9SDavid Howells __entry->call, 1047b54a134aSDavid Howells __print_symbolic(__entry->why, rxrpc_receive_traces), 104858dc63c9SDavid Howells __entry->serial, 104958dc63c9SDavid Howells __entry->seq, 105058dc63c9SDavid Howells __entry->hard_ack, 105158dc63c9SDavid Howells __entry->top) 105258dc63c9SDavid Howells ); 105358dc63c9SDavid Howells 105484997905SDavid Howells TRACE_EVENT(rxrpc_recvmsg, 105584997905SDavid Howells TP_PROTO(struct rxrpc_call *call, enum rxrpc_recvmsg_trace why, 105684997905SDavid Howells rxrpc_seq_t seq, unsigned int offset, unsigned int len, 105784997905SDavid Howells int ret), 105884997905SDavid Howells 105984997905SDavid Howells TP_ARGS(call, why, seq, offset, len, ret), 106084997905SDavid Howells 106184997905SDavid Howells TP_STRUCT__entry( 1062a25e21f0SDavid Howells __field(unsigned int, call ) 106384997905SDavid Howells __field(enum rxrpc_recvmsg_trace, why ) 106484997905SDavid Howells __field(rxrpc_seq_t, seq ) 106584997905SDavid Howells __field(unsigned int, offset ) 106684997905SDavid Howells __field(unsigned int, len ) 106784997905SDavid Howells __field(int, ret ) 106884997905SDavid Howells ), 106984997905SDavid Howells 107084997905SDavid Howells TP_fast_assign( 1071db9b2e0aSDavid Howells __entry->call = call ? call->debug_id : 0; 107284997905SDavid Howells __entry->why = why; 107384997905SDavid Howells __entry->seq = seq; 107484997905SDavid Howells __entry->offset = offset; 107584997905SDavid Howells __entry->len = len; 107684997905SDavid Howells __entry->ret = ret; 107784997905SDavid Howells ), 107884997905SDavid Howells 1079a25e21f0SDavid Howells TP_printk("c=%08x %s q=%08x o=%u l=%u ret=%d", 108084997905SDavid Howells __entry->call, 1081b54a134aSDavid Howells __print_symbolic(__entry->why, rxrpc_recvmsg_traces), 108284997905SDavid Howells __entry->seq, 108384997905SDavid Howells __entry->offset, 108484997905SDavid Howells __entry->len, 108584997905SDavid Howells __entry->ret) 108684997905SDavid Howells ); 108784997905SDavid Howells 1088cf1a6474SDavid Howells TRACE_EVENT(rxrpc_rtt_tx, 1089cf1a6474SDavid Howells TP_PROTO(struct rxrpc_call *call, enum rxrpc_rtt_tx_trace why, 1090cf1a6474SDavid Howells rxrpc_serial_t send_serial), 1091cf1a6474SDavid Howells 1092cf1a6474SDavid Howells TP_ARGS(call, why, send_serial), 1093cf1a6474SDavid Howells 1094cf1a6474SDavid Howells TP_STRUCT__entry( 1095a25e21f0SDavid Howells __field(unsigned int, call ) 1096cf1a6474SDavid Howells __field(enum rxrpc_rtt_tx_trace, why ) 1097cf1a6474SDavid Howells __field(rxrpc_serial_t, send_serial ) 1098cf1a6474SDavid Howells ), 1099cf1a6474SDavid Howells 1100cf1a6474SDavid Howells TP_fast_assign( 1101a25e21f0SDavid Howells __entry->call = call->debug_id; 1102cf1a6474SDavid Howells __entry->why = why; 1103cf1a6474SDavid Howells __entry->send_serial = send_serial; 1104cf1a6474SDavid Howells ), 1105cf1a6474SDavid Howells 1106a25e21f0SDavid Howells TP_printk("c=%08x %s sr=%08x", 1107cf1a6474SDavid Howells __entry->call, 1108b54a134aSDavid Howells __print_symbolic(__entry->why, rxrpc_rtt_tx_traces), 1109cf1a6474SDavid Howells __entry->send_serial) 1110cf1a6474SDavid Howells ); 1111cf1a6474SDavid Howells 1112cf1a6474SDavid Howells TRACE_EVENT(rxrpc_rtt_rx, 1113cf1a6474SDavid Howells TP_PROTO(struct rxrpc_call *call, enum rxrpc_rtt_rx_trace why, 1114cf1a6474SDavid Howells rxrpc_serial_t send_serial, rxrpc_serial_t resp_serial, 1115cf1a6474SDavid Howells s64 rtt, u8 nr, s64 avg), 1116cf1a6474SDavid Howells 1117cf1a6474SDavid Howells TP_ARGS(call, why, send_serial, resp_serial, rtt, nr, avg), 1118cf1a6474SDavid Howells 1119cf1a6474SDavid Howells TP_STRUCT__entry( 1120a25e21f0SDavid Howells __field(unsigned int, call ) 1121cf1a6474SDavid Howells __field(enum rxrpc_rtt_rx_trace, why ) 1122cf1a6474SDavid Howells __field(u8, nr ) 1123cf1a6474SDavid Howells __field(rxrpc_serial_t, send_serial ) 1124cf1a6474SDavid Howells __field(rxrpc_serial_t, resp_serial ) 1125cf1a6474SDavid Howells __field(s64, rtt ) 1126cf1a6474SDavid Howells __field(u64, avg ) 1127cf1a6474SDavid Howells ), 1128cf1a6474SDavid Howells 1129cf1a6474SDavid Howells TP_fast_assign( 1130a25e21f0SDavid Howells __entry->call = call->debug_id; 1131cf1a6474SDavid Howells __entry->why = why; 1132cf1a6474SDavid Howells __entry->send_serial = send_serial; 1133cf1a6474SDavid Howells __entry->resp_serial = resp_serial; 1134cf1a6474SDavid Howells __entry->rtt = rtt; 1135cf1a6474SDavid Howells __entry->nr = nr; 1136cf1a6474SDavid Howells __entry->avg = avg; 1137cf1a6474SDavid Howells ), 1138cf1a6474SDavid Howells 1139a25e21f0SDavid Howells TP_printk("c=%08x %s sr=%08x rr=%08x rtt=%lld nr=%u avg=%lld", 1140cf1a6474SDavid Howells __entry->call, 1141b54a134aSDavid Howells __print_symbolic(__entry->why, rxrpc_rtt_rx_traces), 1142cf1a6474SDavid Howells __entry->send_serial, 1143cf1a6474SDavid Howells __entry->resp_serial, 1144cf1a6474SDavid Howells __entry->rtt, 1145cf1a6474SDavid Howells __entry->nr, 1146cf1a6474SDavid Howells __entry->avg) 1147cf1a6474SDavid Howells ); 1148cf1a6474SDavid Howells 1149fc7ab6d2SDavid Howells TRACE_EVENT(rxrpc_timer, 1150fc7ab6d2SDavid Howells TP_PROTO(struct rxrpc_call *call, enum rxrpc_timer_trace why, 1151a158bdd3SDavid Howells unsigned long now), 1152fc7ab6d2SDavid Howells 1153a158bdd3SDavid Howells TP_ARGS(call, why, now), 1154fc7ab6d2SDavid Howells 1155fc7ab6d2SDavid Howells TP_STRUCT__entry( 1156a25e21f0SDavid Howells __field(unsigned int, call ) 1157fc7ab6d2SDavid Howells __field(enum rxrpc_timer_trace, why ) 1158a158bdd3SDavid Howells __field(long, now ) 1159a158bdd3SDavid Howells __field(long, ack_at ) 1160bd1fdf8cSDavid Howells __field(long, ack_lost_at ) 1161a158bdd3SDavid Howells __field(long, resend_at ) 1162a158bdd3SDavid Howells __field(long, ping_at ) 1163a158bdd3SDavid Howells __field(long, expect_rx_by ) 1164a158bdd3SDavid Howells __field(long, expect_req_by ) 1165a158bdd3SDavid Howells __field(long, expect_term_by ) 1166a158bdd3SDavid Howells __field(long, timer ) 1167fc7ab6d2SDavid Howells ), 1168fc7ab6d2SDavid Howells 1169fc7ab6d2SDavid Howells TP_fast_assign( 1170a25e21f0SDavid Howells __entry->call = call->debug_id; 1171fc7ab6d2SDavid Howells __entry->why = why; 1172fc7ab6d2SDavid Howells __entry->now = now; 1173fc7ab6d2SDavid Howells __entry->ack_at = call->ack_at; 1174bd1fdf8cSDavid Howells __entry->ack_lost_at = call->ack_lost_at; 1175fc7ab6d2SDavid Howells __entry->resend_at = call->resend_at; 1176a158bdd3SDavid Howells __entry->expect_rx_by = call->expect_rx_by; 1177a158bdd3SDavid Howells __entry->expect_req_by = call->expect_req_by; 1178a158bdd3SDavid Howells __entry->expect_term_by = call->expect_term_by; 1179fc7ab6d2SDavid Howells __entry->timer = call->timer.expires; 1180fc7ab6d2SDavid Howells ), 1181fc7ab6d2SDavid Howells 1182a25e21f0SDavid Howells TP_printk("c=%08x %s a=%ld la=%ld r=%ld xr=%ld xq=%ld xt=%ld t=%ld", 1183fc7ab6d2SDavid Howells __entry->call, 1184b54a134aSDavid Howells __print_symbolic(__entry->why, rxrpc_timer_traces), 1185a158bdd3SDavid Howells __entry->ack_at - __entry->now, 1186bd1fdf8cSDavid Howells __entry->ack_lost_at - __entry->now, 1187a158bdd3SDavid Howells __entry->resend_at - __entry->now, 1188a158bdd3SDavid Howells __entry->expect_rx_by - __entry->now, 1189a158bdd3SDavid Howells __entry->expect_req_by - __entry->now, 1190a158bdd3SDavid Howells __entry->expect_term_by - __entry->now, 1191a158bdd3SDavid Howells __entry->timer - __entry->now) 1192fc7ab6d2SDavid Howells ); 1193fc7ab6d2SDavid Howells 119489b475abSDavid Howells TRACE_EVENT(rxrpc_rx_lose, 119589b475abSDavid Howells TP_PROTO(struct rxrpc_skb_priv *sp), 119689b475abSDavid Howells 119789b475abSDavid Howells TP_ARGS(sp), 119889b475abSDavid Howells 119989b475abSDavid Howells TP_STRUCT__entry( 120089b475abSDavid Howells __field_struct(struct rxrpc_host_header, hdr ) 120189b475abSDavid Howells ), 120289b475abSDavid Howells 120389b475abSDavid Howells TP_fast_assign( 120489b475abSDavid Howells memcpy(&__entry->hdr, &sp->hdr, sizeof(__entry->hdr)); 120589b475abSDavid Howells ), 120689b475abSDavid Howells 120789b475abSDavid Howells TP_printk("%08x:%08x:%08x:%04x %08x %08x %02x %02x %s *LOSE*", 120889b475abSDavid Howells __entry->hdr.epoch, __entry->hdr.cid, 120989b475abSDavid Howells __entry->hdr.callNumber, __entry->hdr.serviceId, 121089b475abSDavid Howells __entry->hdr.serial, __entry->hdr.seq, 121189b475abSDavid Howells __entry->hdr.type, __entry->hdr.flags, 1212b54a134aSDavid Howells __entry->hdr.type <= 15 ? 1213b54a134aSDavid Howells __print_symbolic(__entry->hdr.type, rxrpc_pkts) : "?UNK") 121489b475abSDavid Howells ); 121589b475abSDavid Howells 12169c7ad434SDavid Howells TRACE_EVENT(rxrpc_propose_ack, 12179c7ad434SDavid Howells TP_PROTO(struct rxrpc_call *call, enum rxrpc_propose_ack_trace why, 12189c7ad434SDavid Howells u8 ack_reason, rxrpc_serial_t serial, bool immediate, 12199c7ad434SDavid Howells bool background, enum rxrpc_propose_ack_outcome outcome), 12209c7ad434SDavid Howells 12219c7ad434SDavid Howells TP_ARGS(call, why, ack_reason, serial, immediate, background, 12229c7ad434SDavid Howells outcome), 12239c7ad434SDavid Howells 12249c7ad434SDavid Howells TP_STRUCT__entry( 1225a25e21f0SDavid Howells __field(unsigned int, call ) 12269c7ad434SDavid Howells __field(enum rxrpc_propose_ack_trace, why ) 12279c7ad434SDavid Howells __field(rxrpc_serial_t, serial ) 12289c7ad434SDavid Howells __field(u8, ack_reason ) 12299c7ad434SDavid Howells __field(bool, immediate ) 12309c7ad434SDavid Howells __field(bool, background ) 12319c7ad434SDavid Howells __field(enum rxrpc_propose_ack_outcome, outcome ) 12329c7ad434SDavid Howells ), 12339c7ad434SDavid Howells 12349c7ad434SDavid Howells TP_fast_assign( 1235a25e21f0SDavid Howells __entry->call = call->debug_id; 12369c7ad434SDavid Howells __entry->why = why; 12379c7ad434SDavid Howells __entry->serial = serial; 12389c7ad434SDavid Howells __entry->ack_reason = ack_reason; 12399c7ad434SDavid Howells __entry->immediate = immediate; 12409c7ad434SDavid Howells __entry->background = background; 12419c7ad434SDavid Howells __entry->outcome = outcome; 12429c7ad434SDavid Howells ), 12439c7ad434SDavid Howells 1244a25e21f0SDavid Howells TP_printk("c=%08x %s %s r=%08x i=%u b=%u%s", 12459c7ad434SDavid Howells __entry->call, 1246b54a134aSDavid Howells __print_symbolic(__entry->why, rxrpc_propose_ack_traces), 1247b54a134aSDavid Howells __print_symbolic(__entry->ack_reason, rxrpc_ack_names), 12489c7ad434SDavid Howells __entry->serial, 12499c7ad434SDavid Howells __entry->immediate, 12509c7ad434SDavid Howells __entry->background, 1251b54a134aSDavid Howells __print_symbolic(__entry->outcome, rxrpc_propose_ack_outcomes)) 12529c7ad434SDavid Howells ); 12539c7ad434SDavid Howells 1254c6672e3fSDavid Howells TRACE_EVENT(rxrpc_retransmit, 1255c6672e3fSDavid Howells TP_PROTO(struct rxrpc_call *call, rxrpc_seq_t seq, u8 annotation, 1256c6672e3fSDavid Howells s64 expiry), 1257c6672e3fSDavid Howells 1258c6672e3fSDavid Howells TP_ARGS(call, seq, annotation, expiry), 1259c6672e3fSDavid Howells 1260c6672e3fSDavid Howells TP_STRUCT__entry( 1261a25e21f0SDavid Howells __field(unsigned int, call ) 1262c6672e3fSDavid Howells __field(rxrpc_seq_t, seq ) 1263c6672e3fSDavid Howells __field(u8, annotation ) 1264c6672e3fSDavid Howells __field(s64, expiry ) 1265c6672e3fSDavid Howells ), 1266c6672e3fSDavid Howells 1267c6672e3fSDavid Howells TP_fast_assign( 1268a25e21f0SDavid Howells __entry->call = call->debug_id; 1269c6672e3fSDavid Howells __entry->seq = seq; 1270c6672e3fSDavid Howells __entry->annotation = annotation; 1271c6672e3fSDavid Howells __entry->expiry = expiry; 1272c6672e3fSDavid Howells ), 1273c6672e3fSDavid Howells 1274a25e21f0SDavid Howells TP_printk("c=%08x q=%x a=%02x xp=%lld", 1275c6672e3fSDavid Howells __entry->call, 1276c6672e3fSDavid Howells __entry->seq, 1277c6672e3fSDavid Howells __entry->annotation, 1278c6672e3fSDavid Howells __entry->expiry) 1279c6672e3fSDavid Howells ); 1280c6672e3fSDavid Howells 128157494343SDavid Howells TRACE_EVENT(rxrpc_congest, 128257494343SDavid Howells TP_PROTO(struct rxrpc_call *call, struct rxrpc_ack_summary *summary, 128357494343SDavid Howells rxrpc_serial_t ack_serial, enum rxrpc_congest_change change), 128457494343SDavid Howells 128557494343SDavid Howells TP_ARGS(call, summary, ack_serial, change), 128657494343SDavid Howells 128757494343SDavid Howells TP_STRUCT__entry( 1288a25e21f0SDavid Howells __field(unsigned int, call ) 128957494343SDavid Howells __field(enum rxrpc_congest_change, change ) 129057494343SDavid Howells __field(rxrpc_seq_t, hard_ack ) 129157494343SDavid Howells __field(rxrpc_seq_t, top ) 129257494343SDavid Howells __field(rxrpc_seq_t, lowest_nak ) 129357494343SDavid Howells __field(rxrpc_serial_t, ack_serial ) 129457494343SDavid Howells __field_struct(struct rxrpc_ack_summary, sum ) 129557494343SDavid Howells ), 129657494343SDavid Howells 129757494343SDavid Howells TP_fast_assign( 1298a25e21f0SDavid Howells __entry->call = call->debug_id; 129957494343SDavid Howells __entry->change = change; 130057494343SDavid Howells __entry->hard_ack = call->tx_hard_ack; 130157494343SDavid Howells __entry->top = call->tx_top; 130257494343SDavid Howells __entry->lowest_nak = call->acks_lowest_nak; 130357494343SDavid Howells __entry->ack_serial = ack_serial; 130457494343SDavid Howells memcpy(&__entry->sum, summary, sizeof(__entry->sum)); 130557494343SDavid Howells ), 130657494343SDavid Howells 1307a25e21f0SDavid Howells TP_printk("c=%08x r=%08x %s q=%08x %s cw=%u ss=%u nr=%u,%u nw=%u,%u r=%u b=%u u=%u d=%u l=%x%s%s%s", 130857494343SDavid Howells __entry->call, 130957494343SDavid Howells __entry->ack_serial, 1310b54a134aSDavid Howells __print_symbolic(__entry->sum.ack_reason, rxrpc_ack_names), 131157494343SDavid Howells __entry->hard_ack, 1312b54a134aSDavid Howells __print_symbolic(__entry->sum.mode, rxrpc_congest_modes), 131357494343SDavid Howells __entry->sum.cwnd, 131457494343SDavid Howells __entry->sum.ssthresh, 131557494343SDavid Howells __entry->sum.nr_acks, __entry->sum.nr_nacks, 131657494343SDavid Howells __entry->sum.nr_new_acks, __entry->sum.nr_new_nacks, 131757494343SDavid Howells __entry->sum.nr_rot_new_acks, 131857494343SDavid Howells __entry->top - __entry->hard_ack, 131957494343SDavid Howells __entry->sum.cumulative_acks, 132057494343SDavid Howells __entry->sum.dup_acks, 132157494343SDavid Howells __entry->lowest_nak, __entry->sum.new_low_nack ? "!" : "", 1322b54a134aSDavid Howells __print_symbolic(__entry->change, rxrpc_congest_changes), 132357494343SDavid Howells __entry->sum.retrans_timeo ? " rTxTo" : "") 132457494343SDavid Howells ); 132557494343SDavid Howells 1326b1d9f7fdSDavid Howells TRACE_EVENT(rxrpc_disconnect_call, 1327b1d9f7fdSDavid Howells TP_PROTO(struct rxrpc_call *call), 1328b1d9f7fdSDavid Howells 1329b1d9f7fdSDavid Howells TP_ARGS(call), 1330b1d9f7fdSDavid Howells 1331b1d9f7fdSDavid Howells TP_STRUCT__entry( 1332a25e21f0SDavid Howells __field(unsigned int, call ) 1333b1d9f7fdSDavid Howells __field(u32, abort_code ) 1334b1d9f7fdSDavid Howells ), 1335b1d9f7fdSDavid Howells 1336b1d9f7fdSDavid Howells TP_fast_assign( 1337a25e21f0SDavid Howells __entry->call = call->debug_id; 1338b1d9f7fdSDavid Howells __entry->abort_code = call->abort_code; 1339b1d9f7fdSDavid Howells ), 1340b1d9f7fdSDavid Howells 1341a25e21f0SDavid Howells TP_printk("c=%08x ab=%08x", 1342b1d9f7fdSDavid Howells __entry->call, 1343b1d9f7fdSDavid Howells __entry->abort_code) 1344b1d9f7fdSDavid Howells ); 1345b1d9f7fdSDavid Howells 1346b1d9f7fdSDavid Howells TRACE_EVENT(rxrpc_improper_term, 1347b1d9f7fdSDavid Howells TP_PROTO(struct rxrpc_call *call), 1348b1d9f7fdSDavid Howells 1349b1d9f7fdSDavid Howells TP_ARGS(call), 1350b1d9f7fdSDavid Howells 1351b1d9f7fdSDavid Howells TP_STRUCT__entry( 1352a25e21f0SDavid Howells __field(unsigned int, call ) 1353b1d9f7fdSDavid Howells __field(u32, abort_code ) 1354b1d9f7fdSDavid Howells ), 1355b1d9f7fdSDavid Howells 1356b1d9f7fdSDavid Howells TP_fast_assign( 1357a25e21f0SDavid Howells __entry->call = call->debug_id; 1358b1d9f7fdSDavid Howells __entry->abort_code = call->abort_code; 1359b1d9f7fdSDavid Howells ), 1360b1d9f7fdSDavid Howells 1361a25e21f0SDavid Howells TP_printk("c=%08x ab=%08x", 1362b1d9f7fdSDavid Howells __entry->call, 1363b1d9f7fdSDavid Howells __entry->abort_code) 1364b1d9f7fdSDavid Howells ); 1365b1d9f7fdSDavid Howells 1366fb46f6eeSDavid Howells TRACE_EVENT(rxrpc_rx_eproto, 1367fb46f6eeSDavid Howells TP_PROTO(struct rxrpc_call *call, rxrpc_serial_t serial, 1368fb46f6eeSDavid Howells const char *why), 1369fb46f6eeSDavid Howells 1370fb46f6eeSDavid Howells TP_ARGS(call, serial, why), 1371fb46f6eeSDavid Howells 1372fb46f6eeSDavid Howells TP_STRUCT__entry( 1373a25e21f0SDavid Howells __field(unsigned int, call ) 1374fb46f6eeSDavid Howells __field(rxrpc_serial_t, serial ) 1375fb46f6eeSDavid Howells __field(const char *, why ) 1376fb46f6eeSDavid Howells ), 1377fb46f6eeSDavid Howells 1378fb46f6eeSDavid Howells TP_fast_assign( 137999f0eae6SDavid Howells __entry->call = call ? call->debug_id : 0; 1380fb46f6eeSDavid Howells __entry->serial = serial; 1381fb46f6eeSDavid Howells __entry->why = why; 1382fb46f6eeSDavid Howells ), 1383fb46f6eeSDavid Howells 1384a25e21f0SDavid Howells TP_printk("c=%08x EPROTO %08x %s", 1385fb46f6eeSDavid Howells __entry->call, 1386fb46f6eeSDavid Howells __entry->serial, 1387fb46f6eeSDavid Howells __entry->why) 1388fb46f6eeSDavid Howells ); 1389fb46f6eeSDavid Howells 139089ca6948SDavid Howells TRACE_EVENT(rxrpc_connect_call, 139189ca6948SDavid Howells TP_PROTO(struct rxrpc_call *call), 139289ca6948SDavid Howells 139389ca6948SDavid Howells TP_ARGS(call), 139489ca6948SDavid Howells 139589ca6948SDavid Howells TP_STRUCT__entry( 1396a25e21f0SDavid Howells __field(unsigned int, call ) 139789ca6948SDavid Howells __field(unsigned long, user_call_ID ) 139889ca6948SDavid Howells __field(u32, cid ) 139989ca6948SDavid Howells __field(u32, call_id ) 140089ca6948SDavid Howells ), 140189ca6948SDavid Howells 140289ca6948SDavid Howells TP_fast_assign( 1403a25e21f0SDavid Howells __entry->call = call->debug_id; 140489ca6948SDavid Howells __entry->user_call_ID = call->user_call_ID; 140589ca6948SDavid Howells __entry->cid = call->cid; 140689ca6948SDavid Howells __entry->call_id = call->call_id; 140789ca6948SDavid Howells ), 140889ca6948SDavid Howells 1409a25e21f0SDavid Howells TP_printk("c=%08x u=%p %08x:%08x", 141089ca6948SDavid Howells __entry->call, 141189ca6948SDavid Howells (void *)__entry->user_call_ID, 141289ca6948SDavid Howells __entry->cid, 141389ca6948SDavid Howells __entry->call_id) 141489ca6948SDavid Howells ); 141589ca6948SDavid Howells 1416827efed6SDavid Howells TRACE_EVENT(rxrpc_resend, 1417827efed6SDavid Howells TP_PROTO(struct rxrpc_call *call, int ix), 1418827efed6SDavid Howells 1419827efed6SDavid Howells TP_ARGS(call, ix), 1420827efed6SDavid Howells 1421827efed6SDavid Howells TP_STRUCT__entry( 1422a25e21f0SDavid Howells __field(unsigned int, call ) 1423827efed6SDavid Howells __field(int, ix ) 1424827efed6SDavid Howells __array(u8, anno, 64 ) 1425827efed6SDavid Howells ), 1426827efed6SDavid Howells 1427827efed6SDavid Howells TP_fast_assign( 1428a25e21f0SDavid Howells __entry->call = call->debug_id; 1429827efed6SDavid Howells __entry->ix = ix; 1430827efed6SDavid Howells memcpy(__entry->anno, call->rxtx_annotations, 64); 1431827efed6SDavid Howells ), 1432827efed6SDavid Howells 1433a25e21f0SDavid Howells TP_printk("c=%08x ix=%u a=%64phN", 1434827efed6SDavid Howells __entry->call, 1435827efed6SDavid Howells __entry->ix, 1436827efed6SDavid Howells __entry->anno) 1437827efed6SDavid Howells ); 1438827efed6SDavid Howells 1439494337c9SDavid Howells TRACE_EVENT(rxrpc_rx_icmp, 1440494337c9SDavid Howells TP_PROTO(struct rxrpc_peer *peer, struct sock_extended_err *ee, 1441494337c9SDavid Howells struct sockaddr_rxrpc *srx), 1442494337c9SDavid Howells 1443494337c9SDavid Howells TP_ARGS(peer, ee, srx), 1444494337c9SDavid Howells 1445494337c9SDavid Howells TP_STRUCT__entry( 1446494337c9SDavid Howells __field(unsigned int, peer ) 1447494337c9SDavid Howells __field_struct(struct sock_extended_err, ee ) 1448494337c9SDavid Howells __field_struct(struct sockaddr_rxrpc, srx ) 1449494337c9SDavid Howells ), 1450494337c9SDavid Howells 1451494337c9SDavid Howells TP_fast_assign( 1452494337c9SDavid Howells __entry->peer = peer->debug_id; 1453494337c9SDavid Howells memcpy(&__entry->ee, ee, sizeof(__entry->ee)); 1454494337c9SDavid Howells memcpy(&__entry->srx, srx, sizeof(__entry->srx)); 1455494337c9SDavid Howells ), 1456494337c9SDavid Howells 1457494337c9SDavid Howells TP_printk("P=%08x o=%u t=%u c=%u i=%u d=%u e=%d %pISp", 1458494337c9SDavid Howells __entry->peer, 1459494337c9SDavid Howells __entry->ee.ee_origin, 1460494337c9SDavid Howells __entry->ee.ee_type, 1461494337c9SDavid Howells __entry->ee.ee_code, 1462494337c9SDavid Howells __entry->ee.ee_info, 1463494337c9SDavid Howells __entry->ee.ee_data, 1464494337c9SDavid Howells __entry->ee.ee_errno, 1465494337c9SDavid Howells &__entry->srx.transport) 1466494337c9SDavid Howells ); 1467494337c9SDavid Howells 14686b47fe1dSDavid Howells TRACE_EVENT(rxrpc_tx_fail, 14696b47fe1dSDavid Howells TP_PROTO(unsigned int debug_id, rxrpc_serial_t serial, int ret, 14704764c0daSDavid Howells enum rxrpc_tx_point where), 14716b47fe1dSDavid Howells 14724764c0daSDavid Howells TP_ARGS(debug_id, serial, ret, where), 14736b47fe1dSDavid Howells 14746b47fe1dSDavid Howells TP_STRUCT__entry( 14756b47fe1dSDavid Howells __field(unsigned int, debug_id ) 14766b47fe1dSDavid Howells __field(rxrpc_serial_t, serial ) 14776b47fe1dSDavid Howells __field(int, ret ) 14784764c0daSDavid Howells __field(enum rxrpc_tx_point, where ) 14796b47fe1dSDavid Howells ), 14806b47fe1dSDavid Howells 14816b47fe1dSDavid Howells TP_fast_assign( 14826b47fe1dSDavid Howells __entry->debug_id = debug_id; 14836b47fe1dSDavid Howells __entry->serial = serial; 14846b47fe1dSDavid Howells __entry->ret = ret; 14854764c0daSDavid Howells __entry->where = where; 14866b47fe1dSDavid Howells ), 14876b47fe1dSDavid Howells 14886b47fe1dSDavid Howells TP_printk("c=%08x r=%x ret=%d %s", 14896b47fe1dSDavid Howells __entry->debug_id, 14906b47fe1dSDavid Howells __entry->serial, 14916b47fe1dSDavid Howells __entry->ret, 14924764c0daSDavid Howells __print_symbolic(__entry->where, rxrpc_tx_points)) 14936b47fe1dSDavid Howells ); 14946b47fe1dSDavid Howells 14951a025028SDavid Howells TRACE_EVENT(rxrpc_call_reset, 14961a025028SDavid Howells TP_PROTO(struct rxrpc_call *call), 14971a025028SDavid Howells 14981a025028SDavid Howells TP_ARGS(call), 14991a025028SDavid Howells 15001a025028SDavid Howells TP_STRUCT__entry( 15011a025028SDavid Howells __field(unsigned int, debug_id ) 15021a025028SDavid Howells __field(u32, cid ) 15031a025028SDavid Howells __field(u32, call_id ) 15041a025028SDavid Howells __field(rxrpc_serial_t, call_serial ) 15051a025028SDavid Howells __field(rxrpc_serial_t, conn_serial ) 15061a025028SDavid Howells __field(rxrpc_seq_t, tx_seq ) 15071a025028SDavid Howells __field(rxrpc_seq_t, rx_seq ) 15081a025028SDavid Howells ), 15091a025028SDavid Howells 15101a025028SDavid Howells TP_fast_assign( 15111a025028SDavid Howells __entry->debug_id = call->debug_id; 15121a025028SDavid Howells __entry->cid = call->cid; 15131a025028SDavid Howells __entry->call_id = call->call_id; 15141a025028SDavid Howells __entry->call_serial = call->rx_serial; 15151a025028SDavid Howells __entry->conn_serial = call->conn->hi_serial; 15161a025028SDavid Howells __entry->tx_seq = call->tx_hard_ack; 15171a025028SDavid Howells __entry->rx_seq = call->ackr_seen; 15181a025028SDavid Howells ), 15191a025028SDavid Howells 15201a025028SDavid Howells TP_printk("c=%08x %08x:%08x r=%08x/%08x tx=%08x rx=%08x", 15211a025028SDavid Howells __entry->debug_id, 15221a025028SDavid Howells __entry->cid, __entry->call_id, 15231a025028SDavid Howells __entry->call_serial, __entry->conn_serial, 15241a025028SDavid Howells __entry->tx_seq, __entry->rx_seq) 15251a025028SDavid Howells ); 15261a025028SDavid Howells 15274272d303SDavid Howells TRACE_EVENT(rxrpc_notify_socket, 15284272d303SDavid Howells TP_PROTO(unsigned int debug_id, rxrpc_serial_t serial), 15294272d303SDavid Howells 15304272d303SDavid Howells TP_ARGS(debug_id, serial), 15314272d303SDavid Howells 15324272d303SDavid Howells TP_STRUCT__entry( 15334272d303SDavid Howells __field(unsigned int, debug_id ) 15344272d303SDavid Howells __field(rxrpc_serial_t, serial ) 15354272d303SDavid Howells ), 15364272d303SDavid Howells 15374272d303SDavid Howells TP_fast_assign( 15384272d303SDavid Howells __entry->debug_id = debug_id; 15394272d303SDavid Howells __entry->serial = serial; 15404272d303SDavid Howells ), 15414272d303SDavid Howells 15424272d303SDavid Howells TP_printk("c=%08x r=%08x", 15434272d303SDavid Howells __entry->debug_id, 15444272d303SDavid Howells __entry->serial) 15454272d303SDavid Howells ); 15464272d303SDavid Howells 1547df844fd4SDavid Howells #endif /* _TRACE_RXRPC_H */ 1548df844fd4SDavid Howells 1549df844fd4SDavid Howells /* This part must be outside protection */ 1550df844fd4SDavid Howells #include <trace/define_trace.h> 1551