1 /* AF_RXRPC tracepoints
3 * Copyright (C) 2016 Red Hat, Inc. All Rights Reserved.
4 * Written by David Howells (dhowells@redhat.com)
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public Licence
8 * as published by the Free Software Foundation; either version
9 * 2 of the Licence, or (at your option) any later version.
12 #define TRACE_SYSTEM rxrpc
14 #if !defined(_TRACE_RXRPC_H) || defined(TRACE_HEADER_MULTI_READ)
15 #define _TRACE_RXRPC_H
17 #include <linux/tracepoint.h>
18 #include <linux/errqueue.h>
21 * Define enums for tracing information.
23 * These should all be kept sorted, making it easier to match the string
24 * mapping tables further on.
26 #ifndef __RXRPC_DECLARE_TRACE_ENUMS_ONCE_ONLY
27 #define __RXRPC_DECLARE_TRACE_ENUMS_ONCE_ONLY
29 enum rxrpc_skb_trace
{
35 rxrpc_skb_rx_received
,
46 enum rxrpc_local_trace
{
49 rxrpc_local_processing
,
54 enum rxrpc_peer_trace
{
57 rxrpc_peer_processing
,
61 enum rxrpc_conn_trace
{
63 rxrpc_conn_new_client
,
64 rxrpc_conn_new_service
,
65 rxrpc_conn_put_client
,
66 rxrpc_conn_put_service
,
68 rxrpc_conn_reap_service
,
72 enum rxrpc_client_trace
{
73 rxrpc_client_activate_chans
,
75 rxrpc_client_chan_activate
,
76 rxrpc_client_chan_disconnect
,
77 rxrpc_client_chan_pass
,
78 rxrpc_client_chan_unstarted
,
79 rxrpc_client_chan_wait_failed
,
83 rxrpc_client_duplicate
,
86 rxrpc_client_to_active
,
87 rxrpc_client_to_culled
,
89 rxrpc_client_to_inactive
,
90 rxrpc_client_to_upgrade
,
91 rxrpc_client_to_waiting
,
95 enum rxrpc_call_trace
{
99 rxrpc_call_got_kernel
,
100 rxrpc_call_got_userid
,
101 rxrpc_call_new_client
,
102 rxrpc_call_new_service
,
104 rxrpc_call_put_kernel
,
105 rxrpc_call_put_noqueue
,
106 rxrpc_call_put_userid
,
108 rxrpc_call_queued_ref
,
113 enum rxrpc_transmit_trace
{
114 rxrpc_transmit_await_reply
,
116 rxrpc_transmit_queue
,
117 rxrpc_transmit_queue_last
,
118 rxrpc_transmit_rotate
,
119 rxrpc_transmit_rotate_last
,
123 enum rxrpc_receive_trace
{
126 rxrpc_receive_incoming
,
128 rxrpc_receive_queue_last
,
129 rxrpc_receive_rotate
,
132 enum rxrpc_recvmsg_trace
{
134 rxrpc_recvmsg_data_return
,
135 rxrpc_recvmsg_dequeue
,
140 rxrpc_recvmsg_requeue
,
141 rxrpc_recvmsg_return
,
142 rxrpc_recvmsg_terminal
,
143 rxrpc_recvmsg_to_be_accepted
,
147 enum rxrpc_rtt_tx_trace
{
152 enum rxrpc_rtt_rx_trace
{
153 rxrpc_rtt_rx_ping_response
,
154 rxrpc_rtt_rx_requested_ack
,
157 enum rxrpc_timer_trace
{
160 rxrpc_timer_exp_hard
,
161 rxrpc_timer_exp_idle
,
162 rxrpc_timer_exp_keepalive
,
163 rxrpc_timer_exp_lost_ack
,
164 rxrpc_timer_exp_normal
,
165 rxrpc_timer_exp_ping
,
166 rxrpc_timer_exp_resend
,
168 rxrpc_timer_init_for_reply
,
169 rxrpc_timer_init_for_send_reply
,
171 rxrpc_timer_set_for_ack
,
172 rxrpc_timer_set_for_hard
,
173 rxrpc_timer_set_for_idle
,
174 rxrpc_timer_set_for_keepalive
,
175 rxrpc_timer_set_for_lost_ack
,
176 rxrpc_timer_set_for_normal
,
177 rxrpc_timer_set_for_ping
,
178 rxrpc_timer_set_for_resend
,
179 rxrpc_timer_set_for_send
,
182 enum rxrpc_propose_ack_trace
{
183 rxrpc_propose_ack_client_tx_end
,
184 rxrpc_propose_ack_input_data
,
185 rxrpc_propose_ack_ping_for_keepalive
,
186 rxrpc_propose_ack_ping_for_lost_ack
,
187 rxrpc_propose_ack_ping_for_lost_reply
,
188 rxrpc_propose_ack_ping_for_params
,
189 rxrpc_propose_ack_processing_op
,
190 rxrpc_propose_ack_respond_to_ack
,
191 rxrpc_propose_ack_respond_to_ping
,
192 rxrpc_propose_ack_retry_tx
,
193 rxrpc_propose_ack_rotate_rx
,
194 rxrpc_propose_ack_terminal_ack
,
197 enum rxrpc_propose_ack_outcome
{
198 rxrpc_propose_ack_subsume
,
199 rxrpc_propose_ack_update
,
200 rxrpc_propose_ack_use
,
203 enum rxrpc_congest_change
{
204 rxrpc_cong_begin_retransmission
,
205 rxrpc_cong_cleared_nacks
,
206 rxrpc_cong_new_low_nack
,
207 rxrpc_cong_no_change
,
209 rxrpc_cong_retransmit_again
,
210 rxrpc_cong_rtt_window_end
,
214 enum rxrpc_tx_point
{
215 rxrpc_tx_point_call_abort
,
216 rxrpc_tx_point_call_ack
,
217 rxrpc_tx_point_call_data_frag
,
218 rxrpc_tx_point_call_data_nofrag
,
219 rxrpc_tx_point_call_final_resend
,
220 rxrpc_tx_point_conn_abort
,
221 rxrpc_tx_point_rxkad_challenge
,
222 rxrpc_tx_point_rxkad_response
,
223 rxrpc_tx_point_reject
,
224 rxrpc_tx_point_version_keepalive
,
225 rxrpc_tx_point_version_reply
,
228 #endif /* end __RXRPC_DECLARE_TRACE_ENUMS_ONCE_ONLY */
231 * Declare tracing information enums and their string mappings for display.
233 #define rxrpc_skb_traces \
234 EM(rxrpc_skb_rx_cleaned, "Rx CLN") \
235 EM(rxrpc_skb_rx_freed, "Rx FRE") \
236 EM(rxrpc_skb_rx_got, "Rx GOT") \
237 EM(rxrpc_skb_rx_lost, "Rx *L*") \
238 EM(rxrpc_skb_rx_purged, "Rx PUR") \
239 EM(rxrpc_skb_rx_received, "Rx RCV") \
240 EM(rxrpc_skb_rx_rotated, "Rx ROT") \
241 EM(rxrpc_skb_rx_seen, "Rx SEE") \
242 EM(rxrpc_skb_tx_cleaned, "Tx CLN") \
243 EM(rxrpc_skb_tx_freed, "Tx FRE") \
244 EM(rxrpc_skb_tx_got, "Tx GOT") \
245 EM(rxrpc_skb_tx_new, "Tx NEW") \
246 EM(rxrpc_skb_tx_rotated, "Tx ROT") \
247 E_(rxrpc_skb_tx_seen, "Tx SEE")
249 #define rxrpc_local_traces \
250 EM(rxrpc_local_got, "GOT") \
251 EM(rxrpc_local_new, "NEW") \
252 EM(rxrpc_local_processing, "PRO") \
253 EM(rxrpc_local_put, "PUT") \
254 E_(rxrpc_local_queued, "QUE")
256 #define rxrpc_peer_traces \
257 EM(rxrpc_peer_got, "GOT") \
258 EM(rxrpc_peer_new, "NEW") \
259 EM(rxrpc_peer_processing, "PRO") \
260 E_(rxrpc_peer_put, "PUT")
262 #define rxrpc_conn_traces \
263 EM(rxrpc_conn_got, "GOT") \
264 EM(rxrpc_conn_new_client, "NWc") \
265 EM(rxrpc_conn_new_service, "NWs") \
266 EM(rxrpc_conn_put_client, "PTc") \
267 EM(rxrpc_conn_put_service, "PTs") \
268 EM(rxrpc_conn_queued, "QUE") \
269 EM(rxrpc_conn_reap_service, "RPs") \
270 E_(rxrpc_conn_seen, "SEE")
272 #define rxrpc_client_traces \
273 EM(rxrpc_client_activate_chans, "Activa") \
274 EM(rxrpc_client_alloc, "Alloc ") \
275 EM(rxrpc_client_chan_activate, "ChActv") \
276 EM(rxrpc_client_chan_disconnect, "ChDisc") \
277 EM(rxrpc_client_chan_pass, "ChPass") \
278 EM(rxrpc_client_chan_unstarted, "ChUnst") \
279 EM(rxrpc_client_chan_wait_failed, "ChWtFl") \
280 EM(rxrpc_client_cleanup, "Clean ") \
281 EM(rxrpc_client_count, "Count ") \
282 EM(rxrpc_client_discard, "Discar") \
283 EM(rxrpc_client_duplicate, "Duplic") \
284 EM(rxrpc_client_exposed, "Expose") \
285 EM(rxrpc_client_replace, "Replac") \
286 EM(rxrpc_client_to_active, "->Actv") \
287 EM(rxrpc_client_to_culled, "->Cull") \
288 EM(rxrpc_client_to_idle, "->Idle") \
289 EM(rxrpc_client_to_inactive, "->Inac") \
290 EM(rxrpc_client_to_upgrade, "->Upgd") \
291 EM(rxrpc_client_to_waiting, "->Wait") \
292 E_(rxrpc_client_uncount, "Uncoun")
294 #define rxrpc_conn_cache_states \
295 EM(RXRPC_CONN_CLIENT_INACTIVE, "Inac") \
296 EM(RXRPC_CONN_CLIENT_WAITING, "Wait") \
297 EM(RXRPC_CONN_CLIENT_ACTIVE, "Actv") \
298 EM(RXRPC_CONN_CLIENT_UPGRADE, "Upgd") \
299 EM(RXRPC_CONN_CLIENT_CULLED, "Cull") \
300 E_(RXRPC_CONN_CLIENT_IDLE, "Idle") \
302 #define rxrpc_call_traces \
303 EM(rxrpc_call_connected, "CON") \
304 EM(rxrpc_call_error, "*E*") \
305 EM(rxrpc_call_got, "GOT") \
306 EM(rxrpc_call_got_kernel, "Gke") \
307 EM(rxrpc_call_got_userid, "Gus") \
308 EM(rxrpc_call_new_client, "NWc") \
309 EM(rxrpc_call_new_service, "NWs") \
310 EM(rxrpc_call_put, "PUT") \
311 EM(rxrpc_call_put_kernel, "Pke") \
312 EM(rxrpc_call_put_noqueue, "PNQ") \
313 EM(rxrpc_call_put_userid, "Pus") \
314 EM(rxrpc_call_queued, "QUE") \
315 EM(rxrpc_call_queued_ref, "QUR") \
316 EM(rxrpc_call_release, "RLS") \
317 E_(rxrpc_call_seen, "SEE")
319 #define rxrpc_transmit_traces \
320 EM(rxrpc_transmit_await_reply, "AWR") \
321 EM(rxrpc_transmit_end, "END") \
322 EM(rxrpc_transmit_queue, "QUE") \
323 EM(rxrpc_transmit_queue_last, "QLS") \
324 EM(rxrpc_transmit_rotate, "ROT") \
325 EM(rxrpc_transmit_rotate_last, "RLS") \
326 E_(rxrpc_transmit_wait, "WAI")
328 #define rxrpc_receive_traces \
329 EM(rxrpc_receive_end, "END") \
330 EM(rxrpc_receive_front, "FRN") \
331 EM(rxrpc_receive_incoming, "INC") \
332 EM(rxrpc_receive_queue, "QUE") \
333 EM(rxrpc_receive_queue_last, "QLS") \
334 E_(rxrpc_receive_rotate, "ROT")
336 #define rxrpc_recvmsg_traces \
337 EM(rxrpc_recvmsg_cont, "CONT") \
338 EM(rxrpc_recvmsg_data_return, "DATA") \
339 EM(rxrpc_recvmsg_dequeue, "DEQU") \
340 EM(rxrpc_recvmsg_enter, "ENTR") \
341 EM(rxrpc_recvmsg_full, "FULL") \
342 EM(rxrpc_recvmsg_hole, "HOLE") \
343 EM(rxrpc_recvmsg_next, "NEXT") \
344 EM(rxrpc_recvmsg_requeue, "REQU") \
345 EM(rxrpc_recvmsg_return, "RETN") \
346 EM(rxrpc_recvmsg_terminal, "TERM") \
347 EM(rxrpc_recvmsg_to_be_accepted, "TBAC") \
348 E_(rxrpc_recvmsg_wait, "WAIT")
350 #define rxrpc_rtt_tx_traces \
351 EM(rxrpc_rtt_tx_data, "DATA") \
352 E_(rxrpc_rtt_tx_ping, "PING")
354 #define rxrpc_rtt_rx_traces \
355 EM(rxrpc_rtt_rx_ping_response, "PONG") \
356 E_(rxrpc_rtt_rx_requested_ack, "RACK")
358 #define rxrpc_timer_traces \
359 EM(rxrpc_timer_begin, "Begin ") \
360 EM(rxrpc_timer_expired, "*EXPR*") \
361 EM(rxrpc_timer_exp_ack, "ExpAck") \
362 EM(rxrpc_timer_exp_hard, "ExpHrd") \
363 EM(rxrpc_timer_exp_idle, "ExpIdl") \
364 EM(rxrpc_timer_exp_keepalive, "ExpKA ") \
365 EM(rxrpc_timer_exp_lost_ack, "ExpLoA") \
366 EM(rxrpc_timer_exp_normal, "ExpNml") \
367 EM(rxrpc_timer_exp_ping, "ExpPng") \
368 EM(rxrpc_timer_exp_resend, "ExpRsn") \
369 EM(rxrpc_timer_init_for_reply, "IniRpl") \
370 EM(rxrpc_timer_init_for_send_reply, "SndRpl") \
371 EM(rxrpc_timer_restart, "Restrt") \
372 EM(rxrpc_timer_set_for_ack, "SetAck") \
373 EM(rxrpc_timer_set_for_hard, "SetHrd") \
374 EM(rxrpc_timer_set_for_idle, "SetIdl") \
375 EM(rxrpc_timer_set_for_keepalive, "KeepAl") \
376 EM(rxrpc_timer_set_for_lost_ack, "SetLoA") \
377 EM(rxrpc_timer_set_for_normal, "SetNml") \
378 EM(rxrpc_timer_set_for_ping, "SetPng") \
379 EM(rxrpc_timer_set_for_resend, "SetRTx") \
380 E_(rxrpc_timer_set_for_send, "SetSnd")
382 #define rxrpc_propose_ack_traces \
383 EM(rxrpc_propose_ack_client_tx_end, "ClTxEnd") \
384 EM(rxrpc_propose_ack_input_data, "DataIn ") \
385 EM(rxrpc_propose_ack_ping_for_keepalive, "KeepAlv") \
386 EM(rxrpc_propose_ack_ping_for_lost_ack, "LostAck") \
387 EM(rxrpc_propose_ack_ping_for_lost_reply, "LostRpl") \
388 EM(rxrpc_propose_ack_ping_for_params, "Params ") \
389 EM(rxrpc_propose_ack_processing_op, "ProcOp ") \
390 EM(rxrpc_propose_ack_respond_to_ack, "Rsp2Ack") \
391 EM(rxrpc_propose_ack_respond_to_ping, "Rsp2Png") \
392 EM(rxrpc_propose_ack_retry_tx, "RetryTx") \
393 EM(rxrpc_propose_ack_rotate_rx, "RxAck ") \
394 E_(rxrpc_propose_ack_terminal_ack, "ClTerm ")
396 #define rxrpc_propose_ack_outcomes \
397 EM(rxrpc_propose_ack_subsume, " Subsume") \
398 EM(rxrpc_propose_ack_update, " Update") \
399 E_(rxrpc_propose_ack_use, " New")
401 #define rxrpc_congest_modes \
402 EM(RXRPC_CALL_CONGEST_AVOIDANCE, "CongAvoid") \
403 EM(RXRPC_CALL_FAST_RETRANSMIT, "FastReTx ") \
404 EM(RXRPC_CALL_PACKET_LOSS, "PktLoss ") \
405 E_(RXRPC_CALL_SLOW_START, "SlowStart")
407 #define rxrpc_congest_changes \
408 EM(rxrpc_cong_begin_retransmission, " Retrans") \
409 EM(rxrpc_cong_cleared_nacks, " Cleared") \
410 EM(rxrpc_cong_new_low_nack, " NewLowN") \
411 EM(rxrpc_cong_no_change, " -") \
412 EM(rxrpc_cong_progress, " Progres") \
413 EM(rxrpc_cong_retransmit_again, " ReTxAgn") \
414 EM(rxrpc_cong_rtt_window_end, " RttWinE") \
415 E_(rxrpc_cong_saw_nack, " SawNack")
419 EM(RXRPC_PACKET_TYPE_DATA, "DATA") \
420 EM(RXRPC_PACKET_TYPE_ACK, "ACK") \
421 EM(RXRPC_PACKET_TYPE_BUSY, "BUSY") \
422 EM(RXRPC_PACKET_TYPE_ABORT, "ABORT") \
423 EM(RXRPC_PACKET_TYPE_ACKALL, "ACKALL") \
424 EM(RXRPC_PACKET_TYPE_CHALLENGE, "CHALL") \
425 EM(RXRPC_PACKET_TYPE_RESPONSE, "RESP") \
426 EM(RXRPC_PACKET_TYPE_DEBUG, "DEBUG") \
431 EM(RXRPC_PACKET_TYPE_VERSION, "VERSION") \
435 #define rxrpc_ack_names \
437 EM(RXRPC_ACK_REQUESTED, "REQ") \
438 EM(RXRPC_ACK_DUPLICATE, "DUP") \
439 EM(RXRPC_ACK_OUT_OF_SEQUENCE, "OOS") \
440 EM(RXRPC_ACK_EXCEEDS_WINDOW, "WIN") \
441 EM(RXRPC_ACK_NOSPACE, "MEM") \
442 EM(RXRPC_ACK_PING, "PNG") \
443 EM(RXRPC_ACK_PING_RESPONSE, "PNR") \
444 EM(RXRPC_ACK_DELAY, "DLY") \
445 EM(RXRPC_ACK_IDLE, "IDL") \
446 E_(RXRPC_ACK__INVALID, "-?-")
448 #define rxrpc_completions \
449 EM(RXRPC_CALL_SUCCEEDED, "Succeeded") \
450 EM(RXRPC_CALL_REMOTELY_ABORTED, "RemoteAbort") \
451 EM(RXRPC_CALL_LOCALLY_ABORTED, "LocalAbort") \
452 EM(RXRPC_CALL_LOCAL_ERROR, "LocalError") \
453 E_(RXRPC_CALL_NETWORK_ERROR, "NetError")
455 #define rxrpc_tx_points \
456 EM(rxrpc_tx_point_call_abort, "CallAbort") \
457 EM(rxrpc_tx_point_call_ack, "CallAck") \
458 EM(rxrpc_tx_point_call_data_frag, "CallDataFrag") \
459 EM(rxrpc_tx_point_call_data_nofrag, "CallDataNofrag") \
460 EM(rxrpc_tx_point_call_final_resend, "CallFinalResend") \
461 EM(rxrpc_tx_point_conn_abort, "ConnAbort") \
462 EM(rxrpc_tx_point_reject, "Reject") \
463 EM(rxrpc_tx_point_rxkad_challenge, "RxkadChall") \
464 EM(rxrpc_tx_point_rxkad_response, "RxkadResp") \
465 EM(rxrpc_tx_point_version_keepalive, "VerKeepalive") \
466 E_(rxrpc_tx_point_version_reply, "VerReply")
469 * Export enum symbols via userspace.
473 #define EM(a, b) TRACE_DEFINE_ENUM(a);
474 #define E_(a, b) TRACE_DEFINE_ENUM(a);
481 rxrpc_transmit_traces
;
482 rxrpc_receive_traces
;
483 rxrpc_recvmsg_traces
;
487 rxrpc_propose_ack_traces
;
488 rxrpc_propose_ack_outcomes
;
490 rxrpc_congest_changes
;
494 * Now redefine the EM() and E_() macros to map the enums to the strings that
495 * will be printed in the output.
499 #define EM(a, b) { a, b },
500 #define E_(a, b) { a, b }
502 TRACE_EVENT(rxrpc_local
,
503 TP_PROTO(unsigned int local_debug_id
, enum rxrpc_local_trace op
,
504 int usage
, const void *where
),
506 TP_ARGS(local_debug_id
, op
, usage
, where
),
509 __field(unsigned int, local
)
512 __field(const void *, where
)
516 __entry
->local
= local_debug_id
;
518 __entry
->usage
= usage
;
519 __entry
->where
= where
;
522 TP_printk("L=%08x %s u=%d sp=%pSR",
524 __print_symbolic(__entry
->op
, rxrpc_local_traces
),
529 TRACE_EVENT(rxrpc_peer
,
530 TP_PROTO(unsigned int peer_debug_id
, enum rxrpc_peer_trace op
,
531 int usage
, const void *where
),
533 TP_ARGS(peer_debug_id
, op
, usage
, where
),
536 __field(unsigned int, peer
)
539 __field(const void *, where
)
543 __entry
->peer
= peer_debug_id
;
545 __entry
->usage
= usage
;
546 __entry
->where
= where
;
549 TP_printk("P=%08x %s u=%d sp=%pSR",
551 __print_symbolic(__entry
->op
, rxrpc_peer_traces
),
556 TRACE_EVENT(rxrpc_conn
,
557 TP_PROTO(unsigned int conn_debug_id
, enum rxrpc_conn_trace op
,
558 int usage
, const void *where
),
560 TP_ARGS(conn_debug_id
, op
, usage
, where
),
563 __field(unsigned int, conn
)
566 __field(const void *, where
)
570 __entry
->conn
= conn_debug_id
;
572 __entry
->usage
= usage
;
573 __entry
->where
= where
;
576 TP_printk("C=%08x %s u=%d sp=%pSR",
578 __print_symbolic(__entry
->op
, rxrpc_conn_traces
),
583 TRACE_EVENT(rxrpc_client
,
584 TP_PROTO(struct rxrpc_connection
*conn
, int channel
,
585 enum rxrpc_client_trace op
),
587 TP_ARGS(conn
, channel
, op
),
590 __field(unsigned int, conn
)
592 __field(int, channel
)
594 __field(enum rxrpc_client_trace
, op
)
595 __field(enum rxrpc_conn_cache_state
, cs
)
599 __entry
->conn
= conn
->debug_id
;
600 __entry
->channel
= channel
;
601 __entry
->usage
= atomic_read(&conn
->usage
);
603 __entry
->cid
= conn
->proto
.cid
;
604 __entry
->cs
= conn
->cache_state
;
607 TP_printk("C=%08x h=%2d %s %s i=%08x u=%d",
610 __print_symbolic(__entry
->op
, rxrpc_client_traces
),
611 __print_symbolic(__entry
->cs
, rxrpc_conn_cache_states
),
616 TRACE_EVENT(rxrpc_call
,
617 TP_PROTO(struct rxrpc_call
*call
, enum rxrpc_call_trace op
,
618 int usage
, const void *where
, const void *aux
),
620 TP_ARGS(call
, op
, usage
, where
, aux
),
623 __field(unsigned int, call
)
626 __field(const void *, where
)
627 __field(const void *, aux
)
631 __entry
->call
= call
->debug_id
;
633 __entry
->usage
= usage
;
634 __entry
->where
= where
;
638 TP_printk("c=%08x %s u=%d sp=%pSR a=%p",
640 __print_symbolic(__entry
->op
, rxrpc_call_traces
),
646 TRACE_EVENT(rxrpc_skb
,
647 TP_PROTO(struct sk_buff
*skb
, enum rxrpc_skb_trace op
,
648 int usage
, int mod_count
, const void *where
),
650 TP_ARGS(skb
, op
, usage
, mod_count
, where
),
653 __field(struct sk_buff
*, skb
)
654 __field(enum rxrpc_skb_trace
, op
)
656 __field(int, mod_count
)
657 __field(const void *, where
)
663 __entry
->usage
= usage
;
664 __entry
->mod_count
= mod_count
;
665 __entry
->where
= where
;
668 TP_printk("s=%p %s u=%d m=%d p=%pSR",
670 __print_symbolic(__entry
->op
, rxrpc_skb_traces
),
676 TRACE_EVENT(rxrpc_rx_packet
,
677 TP_PROTO(struct rxrpc_skb_priv
*sp
),
682 __field_struct(struct rxrpc_host_header
, hdr
)
686 memcpy(&__entry
->hdr
, &sp
->hdr
, sizeof(__entry
->hdr
));
689 TP_printk("%08x:%08x:%08x:%04x %08x %08x %02x %02x %s",
690 __entry
->hdr
.epoch
, __entry
->hdr
.cid
,
691 __entry
->hdr
.callNumber
, __entry
->hdr
.serviceId
,
692 __entry
->hdr
.serial
, __entry
->hdr
.seq
,
693 __entry
->hdr
.type
, __entry
->hdr
.flags
,
694 __entry
->hdr
.type
<= 15 ?
695 __print_symbolic(__entry
->hdr
.type
, rxrpc_pkts
) : "?UNK")
698 TRACE_EVENT(rxrpc_rx_done
,
699 TP_PROTO(int result
, int abort_code
),
701 TP_ARGS(result
, abort_code
),
704 __field(int, result
)
705 __field(int, abort_code
)
709 __entry
->result
= result
;
710 __entry
->abort_code
= abort_code
;
713 TP_printk("r=%d a=%d", __entry
->result
, __entry
->abort_code
)
716 TRACE_EVENT(rxrpc_abort
,
717 TP_PROTO(unsigned int call_nr
, const char *why
, u32 cid
, u32 call_id
,
718 rxrpc_seq_t seq
, int abort_code
, int error
),
720 TP_ARGS(call_nr
, why
, cid
, call_id
, seq
, abort_code
, error
),
723 __field(unsigned int, call_nr
)
724 __array(char, why
, 4 )
726 __field(u32
, call_id
)
727 __field(rxrpc_seq_t
, seq
)
728 __field(int, abort_code
)
733 memcpy(__entry
->why
, why
, 4);
734 __entry
->call_nr
= call_nr
;
736 __entry
->call_id
= call_id
;
737 __entry
->abort_code
= abort_code
;
738 __entry
->error
= error
;
742 TP_printk("c=%08x %08x:%08x s=%u a=%d e=%d %s",
744 __entry
->cid
, __entry
->call_id
, __entry
->seq
,
745 __entry
->abort_code
, __entry
->error
, __entry
->why
)
748 TRACE_EVENT(rxrpc_call_complete
,
749 TP_PROTO(struct rxrpc_call
*call
),
754 __field(unsigned int, call
)
755 __field(enum rxrpc_call_completion
, compl )
757 __field(u32
, abort_code
)
761 __entry
->call
= call
->debug_id
;
762 __entry
->compl = call
->completion
;
763 __entry
->error
= call
->error
;
764 __entry
->abort_code
= call
->abort_code
;
767 TP_printk("c=%08x %s r=%d ac=%d",
769 __print_symbolic(__entry
->compl, rxrpc_completions
),
774 TRACE_EVENT(rxrpc_transmit
,
775 TP_PROTO(struct rxrpc_call
*call
, enum rxrpc_transmit_trace why
),
780 __field(unsigned int, call
)
781 __field(enum rxrpc_transmit_trace
, why
)
782 __field(rxrpc_seq_t
, tx_hard_ack
)
783 __field(rxrpc_seq_t
, tx_top
)
784 __field(int, tx_winsize
)
788 __entry
->call
= call
->debug_id
;
790 __entry
->tx_hard_ack
= call
->tx_hard_ack
;
791 __entry
->tx_top
= call
->tx_top
;
792 __entry
->tx_winsize
= call
->tx_winsize
;
795 TP_printk("c=%08x %s f=%08x n=%u/%u",
797 __print_symbolic(__entry
->why
, rxrpc_transmit_traces
),
798 __entry
->tx_hard_ack
+ 1,
799 __entry
->tx_top
- __entry
->tx_hard_ack
,
803 TRACE_EVENT(rxrpc_rx_data
,
804 TP_PROTO(unsigned int call
, rxrpc_seq_t seq
,
805 rxrpc_serial_t serial
, u8 flags
, u8 anno
),
807 TP_ARGS(call
, seq
, serial
, flags
, anno
),
810 __field(unsigned int, call
)
811 __field(rxrpc_seq_t
, seq
)
812 __field(rxrpc_serial_t
, serial
)
818 __entry
->call
= call
;
820 __entry
->serial
= serial
;
821 __entry
->flags
= flags
;
822 __entry
->anno
= anno
;
825 TP_printk("c=%08x DATA %08x q=%08x fl=%02x a=%02x",
833 TRACE_EVENT(rxrpc_rx_ack
,
834 TP_PROTO(struct rxrpc_call
*call
,
835 rxrpc_serial_t serial
, rxrpc_serial_t ack_serial
,
836 rxrpc_seq_t first
, rxrpc_seq_t prev
, u8 reason
, u8 n_acks
),
838 TP_ARGS(call
, serial
, ack_serial
, first
, prev
, reason
, n_acks
),
841 __field(unsigned int, call
)
842 __field(rxrpc_serial_t
, serial
)
843 __field(rxrpc_serial_t
, ack_serial
)
844 __field(rxrpc_seq_t
, first
)
845 __field(rxrpc_seq_t
, prev
)
851 __entry
->call
= call
->debug_id
;
852 __entry
->serial
= serial
;
853 __entry
->ack_serial
= ack_serial
;
854 __entry
->first
= first
;
855 __entry
->prev
= prev
;
856 __entry
->reason
= reason
;
857 __entry
->n_acks
= n_acks
;
860 TP_printk("c=%08x %08x %s r=%08x f=%08x p=%08x n=%u",
863 __print_symbolic(__entry
->reason
, rxrpc_ack_names
),
870 TRACE_EVENT(rxrpc_rx_abort
,
871 TP_PROTO(struct rxrpc_call
*call
, rxrpc_serial_t serial
,
874 TP_ARGS(call
, serial
, abort_code
),
877 __field(unsigned int, call
)
878 __field(rxrpc_serial_t
, serial
)
879 __field(u32
, abort_code
)
883 __entry
->call
= call
->debug_id
;
884 __entry
->serial
= serial
;
885 __entry
->abort_code
= abort_code
;
888 TP_printk("c=%08x ABORT %08x ac=%d",
894 TRACE_EVENT(rxrpc_rx_rwind_change
,
895 TP_PROTO(struct rxrpc_call
*call
, rxrpc_serial_t serial
,
896 u32 rwind
, bool wake
),
898 TP_ARGS(call
, serial
, rwind
, wake
),
901 __field(unsigned int, call
)
902 __field(rxrpc_serial_t
, serial
)
908 __entry
->call
= call
->debug_id
;
909 __entry
->serial
= serial
;
910 __entry
->rwind
= rwind
;
911 __entry
->wake
= wake
;
914 TP_printk("c=%08x %08x rw=%u%s",
918 __entry
->wake
? " wake" : "")
921 TRACE_EVENT(rxrpc_tx_packet
,
922 TP_PROTO(unsigned int call_id
, struct rxrpc_wire_header
*whdr
,
923 enum rxrpc_tx_point where
),
925 TP_ARGS(call_id
, whdr
, where
),
928 __field(unsigned int, call
)
929 __field(enum rxrpc_tx_point
, where
)
930 __field_struct(struct rxrpc_wire_header
, whdr
)
934 __entry
->call
= call_id
;
935 memcpy(&__entry
->whdr
, whdr
, sizeof(__entry
->whdr
));
936 __entry
->where
= where
;
939 TP_printk("c=%08x %08x:%08x:%08x:%04x %08x %08x %02x %02x %s %s",
941 ntohl(__entry
->whdr
.epoch
),
942 ntohl(__entry
->whdr
.cid
),
943 ntohl(__entry
->whdr
.callNumber
),
944 ntohs(__entry
->whdr
.serviceId
),
945 ntohl(__entry
->whdr
.serial
),
946 ntohl(__entry
->whdr
.seq
),
947 __entry
->whdr
.type
, __entry
->whdr
.flags
,
948 __entry
->whdr
.type
<= 15 ?
949 __print_symbolic(__entry
->whdr
.type
, rxrpc_pkts
) : "?UNK",
950 __print_symbolic(__entry
->where
, rxrpc_tx_points
))
953 TRACE_EVENT(rxrpc_tx_data
,
954 TP_PROTO(struct rxrpc_call
*call
, rxrpc_seq_t seq
,
955 rxrpc_serial_t serial
, u8 flags
, bool retrans
, bool lose
),
957 TP_ARGS(call
, seq
, serial
, flags
, retrans
, lose
),
960 __field(unsigned int, call
)
961 __field(rxrpc_seq_t
, seq
)
962 __field(rxrpc_serial_t
, serial
)
964 __field(u32
, call_id
)
966 __field(bool, retrans
)
971 __entry
->call
= call
->debug_id
;
972 __entry
->cid
= call
->cid
;
973 __entry
->call_id
= call
->call_id
;
975 __entry
->serial
= serial
;
976 __entry
->flags
= flags
;
977 __entry
->retrans
= retrans
;
978 __entry
->lose
= lose
;
981 TP_printk("c=%08x DATA %08x:%08x %08x q=%08x fl=%02x%s%s",
988 __entry
->retrans
? " *RETRANS*" : "",
989 __entry
->lose
? " *LOSE*" : "")
992 TRACE_EVENT(rxrpc_tx_ack
,
993 TP_PROTO(unsigned int call
, rxrpc_serial_t serial
,
994 rxrpc_seq_t ack_first
, rxrpc_serial_t ack_serial
,
995 u8 reason
, u8 n_acks
),
997 TP_ARGS(call
, serial
, ack_first
, ack_serial
, reason
, n_acks
),
1000 __field(unsigned int, call
)
1001 __field(rxrpc_serial_t
, serial
)
1002 __field(rxrpc_seq_t
, ack_first
)
1003 __field(rxrpc_serial_t
, ack_serial
)
1004 __field(u8
, reason
)
1005 __field(u8
, n_acks
)
1009 __entry
->call
= call
;
1010 __entry
->serial
= serial
;
1011 __entry
->ack_first
= ack_first
;
1012 __entry
->ack_serial
= ack_serial
;
1013 __entry
->reason
= reason
;
1014 __entry
->n_acks
= n_acks
;
1017 TP_printk(" c=%08x ACK %08x %s f=%08x r=%08x n=%u",
1020 __print_symbolic(__entry
->reason
, rxrpc_ack_names
),
1022 __entry
->ack_serial
,
1026 TRACE_EVENT(rxrpc_receive
,
1027 TP_PROTO(struct rxrpc_call
*call
, enum rxrpc_receive_trace why
,
1028 rxrpc_serial_t serial
, rxrpc_seq_t seq
),
1030 TP_ARGS(call
, why
, serial
, seq
),
1033 __field(unsigned int, call
)
1034 __field(enum rxrpc_receive_trace
, why
)
1035 __field(rxrpc_serial_t
, serial
)
1036 __field(rxrpc_seq_t
, seq
)
1037 __field(rxrpc_seq_t
, hard_ack
)
1038 __field(rxrpc_seq_t
, top
)
1042 __entry
->call
= call
->debug_id
;
1044 __entry
->serial
= serial
;
1046 __entry
->hard_ack
= call
->rx_hard_ack
;
1047 __entry
->top
= call
->rx_top
;
1050 TP_printk("c=%08x %s r=%08x q=%08x w=%08x-%08x",
1052 __print_symbolic(__entry
->why
, rxrpc_receive_traces
),
1059 TRACE_EVENT(rxrpc_recvmsg
,
1060 TP_PROTO(struct rxrpc_call
*call
, enum rxrpc_recvmsg_trace why
,
1061 rxrpc_seq_t seq
, unsigned int offset
, unsigned int len
,
1064 TP_ARGS(call
, why
, seq
, offset
, len
, ret
),
1067 __field(unsigned int, call
)
1068 __field(enum rxrpc_recvmsg_trace
, why
)
1069 __field(rxrpc_seq_t
, seq
)
1070 __field(unsigned int, offset
)
1071 __field(unsigned int, len
)
1076 __entry
->call
= call
? call
->debug_id
: 0;
1079 __entry
->offset
= offset
;
1084 TP_printk("c=%08x %s q=%08x o=%u l=%u ret=%d",
1086 __print_symbolic(__entry
->why
, rxrpc_recvmsg_traces
),
1093 TRACE_EVENT(rxrpc_rtt_tx
,
1094 TP_PROTO(struct rxrpc_call
*call
, enum rxrpc_rtt_tx_trace why
,
1095 rxrpc_serial_t send_serial
),
1097 TP_ARGS(call
, why
, send_serial
),
1100 __field(unsigned int, call
)
1101 __field(enum rxrpc_rtt_tx_trace
, why
)
1102 __field(rxrpc_serial_t
, send_serial
)
1106 __entry
->call
= call
->debug_id
;
1108 __entry
->send_serial
= send_serial
;
1111 TP_printk("c=%08x %s sr=%08x",
1113 __print_symbolic(__entry
->why
, rxrpc_rtt_tx_traces
),
1114 __entry
->send_serial
)
1117 TRACE_EVENT(rxrpc_rtt_rx
,
1118 TP_PROTO(struct rxrpc_call
*call
, enum rxrpc_rtt_rx_trace why
,
1119 rxrpc_serial_t send_serial
, rxrpc_serial_t resp_serial
,
1120 s64 rtt
, u8 nr
, s64 avg
),
1122 TP_ARGS(call
, why
, send_serial
, resp_serial
, rtt
, nr
, avg
),
1125 __field(unsigned int, call
)
1126 __field(enum rxrpc_rtt_rx_trace
, why
)
1128 __field(rxrpc_serial_t
, send_serial
)
1129 __field(rxrpc_serial_t
, resp_serial
)
1135 __entry
->call
= call
->debug_id
;
1137 __entry
->send_serial
= send_serial
;
1138 __entry
->resp_serial
= resp_serial
;
1144 TP_printk("c=%08x %s sr=%08x rr=%08x rtt=%lld nr=%u avg=%lld",
1146 __print_symbolic(__entry
->why
, rxrpc_rtt_rx_traces
),
1147 __entry
->send_serial
,
1148 __entry
->resp_serial
,
1154 TRACE_EVENT(rxrpc_timer
,
1155 TP_PROTO(struct rxrpc_call
*call
, enum rxrpc_timer_trace why
,
1158 TP_ARGS(call
, why
, now
),
1161 __field(unsigned int, call
)
1162 __field(enum rxrpc_timer_trace
, why
)
1164 __field(long, ack_at
)
1165 __field(long, ack_lost_at
)
1166 __field(long, resend_at
)
1167 __field(long, ping_at
)
1168 __field(long, expect_rx_by
)
1169 __field(long, expect_req_by
)
1170 __field(long, expect_term_by
)
1171 __field(long, timer
)
1175 __entry
->call
= call
->debug_id
;
1178 __entry
->ack_at
= call
->ack_at
;
1179 __entry
->ack_lost_at
= call
->ack_lost_at
;
1180 __entry
->resend_at
= call
->resend_at
;
1181 __entry
->expect_rx_by
= call
->expect_rx_by
;
1182 __entry
->expect_req_by
= call
->expect_req_by
;
1183 __entry
->expect_term_by
= call
->expect_term_by
;
1184 __entry
->timer
= call
->timer
.expires
;
1187 TP_printk("c=%08x %s a=%ld la=%ld r=%ld xr=%ld xq=%ld xt=%ld t=%ld",
1189 __print_symbolic(__entry
->why
, rxrpc_timer_traces
),
1190 __entry
->ack_at
- __entry
->now
,
1191 __entry
->ack_lost_at
- __entry
->now
,
1192 __entry
->resend_at
- __entry
->now
,
1193 __entry
->expect_rx_by
- __entry
->now
,
1194 __entry
->expect_req_by
- __entry
->now
,
1195 __entry
->expect_term_by
- __entry
->now
,
1196 __entry
->timer
- __entry
->now
)
1199 TRACE_EVENT(rxrpc_rx_lose
,
1200 TP_PROTO(struct rxrpc_skb_priv
*sp
),
1205 __field_struct(struct rxrpc_host_header
, hdr
)
1209 memcpy(&__entry
->hdr
, &sp
->hdr
, sizeof(__entry
->hdr
));
1212 TP_printk("%08x:%08x:%08x:%04x %08x %08x %02x %02x %s *LOSE*",
1213 __entry
->hdr
.epoch
, __entry
->hdr
.cid
,
1214 __entry
->hdr
.callNumber
, __entry
->hdr
.serviceId
,
1215 __entry
->hdr
.serial
, __entry
->hdr
.seq
,
1216 __entry
->hdr
.type
, __entry
->hdr
.flags
,
1217 __entry
->hdr
.type
<= 15 ?
1218 __print_symbolic(__entry
->hdr
.type
, rxrpc_pkts
) : "?UNK")
1221 TRACE_EVENT(rxrpc_propose_ack
,
1222 TP_PROTO(struct rxrpc_call
*call
, enum rxrpc_propose_ack_trace why
,
1223 u8 ack_reason
, rxrpc_serial_t serial
, bool immediate
,
1224 bool background
, enum rxrpc_propose_ack_outcome outcome
),
1226 TP_ARGS(call
, why
, ack_reason
, serial
, immediate
, background
,
1230 __field(unsigned int, call
)
1231 __field(enum rxrpc_propose_ack_trace
, why
)
1232 __field(rxrpc_serial_t
, serial
)
1233 __field(u8
, ack_reason
)
1234 __field(bool, immediate
)
1235 __field(bool, background
)
1236 __field(enum rxrpc_propose_ack_outcome
, outcome
)
1240 __entry
->call
= call
->debug_id
;
1242 __entry
->serial
= serial
;
1243 __entry
->ack_reason
= ack_reason
;
1244 __entry
->immediate
= immediate
;
1245 __entry
->background
= background
;
1246 __entry
->outcome
= outcome
;
1249 TP_printk("c=%08x %s %s r=%08x i=%u b=%u%s",
1251 __print_symbolic(__entry
->why
, rxrpc_propose_ack_traces
),
1252 __print_symbolic(__entry
->ack_reason
, rxrpc_ack_names
),
1255 __entry
->background
,
1256 __print_symbolic(__entry
->outcome
, rxrpc_propose_ack_outcomes
))
1259 TRACE_EVENT(rxrpc_retransmit
,
1260 TP_PROTO(struct rxrpc_call
*call
, rxrpc_seq_t seq
, u8 annotation
,
1263 TP_ARGS(call
, seq
, annotation
, expiry
),
1266 __field(unsigned int, call
)
1267 __field(rxrpc_seq_t
, seq
)
1268 __field(u8
, annotation
)
1269 __field(s64
, expiry
)
1273 __entry
->call
= call
->debug_id
;
1275 __entry
->annotation
= annotation
;
1276 __entry
->expiry
= expiry
;
1279 TP_printk("c=%08x q=%x a=%02x xp=%lld",
1282 __entry
->annotation
,
1286 TRACE_EVENT(rxrpc_congest
,
1287 TP_PROTO(struct rxrpc_call
*call
, struct rxrpc_ack_summary
*summary
,
1288 rxrpc_serial_t ack_serial
, enum rxrpc_congest_change change
),
1290 TP_ARGS(call
, summary
, ack_serial
, change
),
1293 __field(unsigned int, call
)
1294 __field(enum rxrpc_congest_change
, change
)
1295 __field(rxrpc_seq_t
, hard_ack
)
1296 __field(rxrpc_seq_t
, top
)
1297 __field(rxrpc_seq_t
, lowest_nak
)
1298 __field(rxrpc_serial_t
, ack_serial
)
1299 __field_struct(struct rxrpc_ack_summary
, sum
)
1303 __entry
->call
= call
->debug_id
;
1304 __entry
->change
= change
;
1305 __entry
->hard_ack
= call
->tx_hard_ack
;
1306 __entry
->top
= call
->tx_top
;
1307 __entry
->lowest_nak
= call
->acks_lowest_nak
;
1308 __entry
->ack_serial
= ack_serial
;
1309 memcpy(&__entry
->sum
, summary
, sizeof(__entry
->sum
));
1312 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",
1314 __entry
->ack_serial
,
1315 __print_symbolic(__entry
->sum
.ack_reason
, rxrpc_ack_names
),
1317 __print_symbolic(__entry
->sum
.mode
, rxrpc_congest_modes
),
1319 __entry
->sum
.ssthresh
,
1320 __entry
->sum
.nr_acks
, __entry
->sum
.nr_nacks
,
1321 __entry
->sum
.nr_new_acks
, __entry
->sum
.nr_new_nacks
,
1322 __entry
->sum
.nr_rot_new_acks
,
1323 __entry
->top
- __entry
->hard_ack
,
1324 __entry
->sum
.cumulative_acks
,
1325 __entry
->sum
.dup_acks
,
1326 __entry
->lowest_nak
, __entry
->sum
.new_low_nack
? "!" : "",
1327 __print_symbolic(__entry
->change
, rxrpc_congest_changes
),
1328 __entry
->sum
.retrans_timeo
? " rTxTo" : "")
1331 TRACE_EVENT(rxrpc_disconnect_call
,
1332 TP_PROTO(struct rxrpc_call
*call
),
1337 __field(unsigned int, call
)
1338 __field(u32
, abort_code
)
1342 __entry
->call
= call
->debug_id
;
1343 __entry
->abort_code
= call
->abort_code
;
1346 TP_printk("c=%08x ab=%08x",
1348 __entry
->abort_code
)
1351 TRACE_EVENT(rxrpc_improper_term
,
1352 TP_PROTO(struct rxrpc_call
*call
),
1357 __field(unsigned int, call
)
1358 __field(u32
, abort_code
)
1362 __entry
->call
= call
->debug_id
;
1363 __entry
->abort_code
= call
->abort_code
;
1366 TP_printk("c=%08x ab=%08x",
1368 __entry
->abort_code
)
1371 TRACE_EVENT(rxrpc_rx_eproto
,
1372 TP_PROTO(struct rxrpc_call
*call
, rxrpc_serial_t serial
,
1375 TP_ARGS(call
, serial
, why
),
1378 __field(unsigned int, call
)
1379 __field(rxrpc_serial_t
, serial
)
1380 __field(const char *, why
)
1384 __entry
->call
= call
? call
->debug_id
: 0;
1385 __entry
->serial
= serial
;
1389 TP_printk("c=%08x EPROTO %08x %s",
1395 TRACE_EVENT(rxrpc_connect_call
,
1396 TP_PROTO(struct rxrpc_call
*call
),
1401 __field(unsigned int, call
)
1402 __field(unsigned long, user_call_ID
)
1404 __field(u32
, call_id
)
1408 __entry
->call
= call
->debug_id
;
1409 __entry
->user_call_ID
= call
->user_call_ID
;
1410 __entry
->cid
= call
->cid
;
1411 __entry
->call_id
= call
->call_id
;
1414 TP_printk("c=%08x u=%p %08x:%08x",
1416 (void *)__entry
->user_call_ID
,
1421 TRACE_EVENT(rxrpc_resend
,
1422 TP_PROTO(struct rxrpc_call
*call
, int ix
),
1427 __field(unsigned int, call
)
1429 __array(u8
, anno
, 64 )
1433 __entry
->call
= call
->debug_id
;
1435 memcpy(__entry
->anno
, call
->rxtx_annotations
, 64);
1438 TP_printk("c=%08x ix=%u a=%64phN",
1444 TRACE_EVENT(rxrpc_rx_icmp
,
1445 TP_PROTO(struct rxrpc_peer
*peer
, struct sock_extended_err
*ee
,
1446 struct sockaddr_rxrpc
*srx
),
1448 TP_ARGS(peer
, ee
, srx
),
1451 __field(unsigned int, peer
)
1452 __field_struct(struct sock_extended_err
, ee
)
1453 __field_struct(struct sockaddr_rxrpc
, srx
)
1457 __entry
->peer
= peer
->debug_id
;
1458 memcpy(&__entry
->ee
, ee
, sizeof(__entry
->ee
));
1459 memcpy(&__entry
->srx
, srx
, sizeof(__entry
->srx
));
1462 TP_printk("P=%08x o=%u t=%u c=%u i=%u d=%u e=%d %pISp",
1464 __entry
->ee
.ee_origin
,
1465 __entry
->ee
.ee_type
,
1466 __entry
->ee
.ee_code
,
1467 __entry
->ee
.ee_info
,
1468 __entry
->ee
.ee_data
,
1469 __entry
->ee
.ee_errno
,
1470 &__entry
->srx
.transport
)
1473 TRACE_EVENT(rxrpc_tx_fail
,
1474 TP_PROTO(unsigned int debug_id
, rxrpc_serial_t serial
, int ret
,
1475 enum rxrpc_tx_point where
),
1477 TP_ARGS(debug_id
, serial
, ret
, where
),
1480 __field(unsigned int, debug_id
)
1481 __field(rxrpc_serial_t
, serial
)
1483 __field(enum rxrpc_tx_point
, where
)
1487 __entry
->debug_id
= debug_id
;
1488 __entry
->serial
= serial
;
1490 __entry
->where
= where
;
1493 TP_printk("c=%08x r=%x ret=%d %s",
1497 __print_symbolic(__entry
->where
, rxrpc_tx_points
))
1500 TRACE_EVENT(rxrpc_call_reset
,
1501 TP_PROTO(struct rxrpc_call
*call
),
1506 __field(unsigned int, debug_id
)
1508 __field(u32
, call_id
)
1509 __field(rxrpc_serial_t
, call_serial
)
1510 __field(rxrpc_serial_t
, conn_serial
)
1511 __field(rxrpc_seq_t
, tx_seq
)
1512 __field(rxrpc_seq_t
, rx_seq
)
1516 __entry
->debug_id
= call
->debug_id
;
1517 __entry
->cid
= call
->cid
;
1518 __entry
->call_id
= call
->call_id
;
1519 __entry
->call_serial
= call
->rx_serial
;
1520 __entry
->conn_serial
= call
->conn
->hi_serial
;
1521 __entry
->tx_seq
= call
->tx_hard_ack
;
1522 __entry
->rx_seq
= call
->ackr_seen
;
1525 TP_printk("c=%08x %08x:%08x r=%08x/%08x tx=%08x rx=%08x",
1527 __entry
->cid
, __entry
->call_id
,
1528 __entry
->call_serial
, __entry
->conn_serial
,
1529 __entry
->tx_seq
, __entry
->rx_seq
)
1532 TRACE_EVENT(rxrpc_notify_socket
,
1533 TP_PROTO(unsigned int debug_id
, rxrpc_serial_t serial
),
1535 TP_ARGS(debug_id
, serial
),
1538 __field(unsigned int, debug_id
)
1539 __field(rxrpc_serial_t
, serial
)
1543 __entry
->debug_id
= debug_id
;
1544 __entry
->serial
= serial
;
1547 TP_printk("c=%08x r=%08x",
1552 TRACE_EVENT(rxrpc_rx_discard_ack
,
1553 TP_PROTO(unsigned int debug_id
, rxrpc_serial_t serial
,
1554 rxrpc_seq_t first_soft_ack
, rxrpc_seq_t call_ackr_first
,
1555 rxrpc_seq_t prev_pkt
, rxrpc_seq_t call_ackr_prev
),
1557 TP_ARGS(debug_id
, serial
, first_soft_ack
, call_ackr_first
,
1558 prev_pkt
, call_ackr_prev
),
1561 __field(unsigned int, debug_id
)
1562 __field(rxrpc_serial_t
, serial
)
1563 __field(rxrpc_seq_t
, first_soft_ack
)
1564 __field(rxrpc_seq_t
, call_ackr_first
)
1565 __field(rxrpc_seq_t
, prev_pkt
)
1566 __field(rxrpc_seq_t
, call_ackr_prev
)
1570 __entry
->debug_id
= debug_id
;
1571 __entry
->serial
= serial
;
1572 __entry
->first_soft_ack
= first_soft_ack
;
1573 __entry
->call_ackr_first
= call_ackr_first
;
1574 __entry
->prev_pkt
= prev_pkt
;
1575 __entry
->call_ackr_prev
= call_ackr_prev
;
1578 TP_printk("c=%08x r=%08x %08x<%08x %08x<%08x",
1581 __entry
->first_soft_ack
,
1582 __entry
->call_ackr_first
,
1584 __entry
->call_ackr_prev
)
1587 #endif /* _TRACE_RXRPC_H */
1589 /* This part must be outside protection */
1590 #include <trace/define_trace.h>