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_check_life
,
186 rxrpc_propose_ack_ping_for_keepalive
,
187 rxrpc_propose_ack_ping_for_lost_ack
,
188 rxrpc_propose_ack_ping_for_lost_reply
,
189 rxrpc_propose_ack_ping_for_params
,
190 rxrpc_propose_ack_processing_op
,
191 rxrpc_propose_ack_respond_to_ack
,
192 rxrpc_propose_ack_respond_to_ping
,
193 rxrpc_propose_ack_retry_tx
,
194 rxrpc_propose_ack_rotate_rx
,
195 rxrpc_propose_ack_terminal_ack
,
198 enum rxrpc_propose_ack_outcome
{
199 rxrpc_propose_ack_subsume
,
200 rxrpc_propose_ack_update
,
201 rxrpc_propose_ack_use
,
204 enum rxrpc_congest_change
{
205 rxrpc_cong_begin_retransmission
,
206 rxrpc_cong_cleared_nacks
,
207 rxrpc_cong_new_low_nack
,
208 rxrpc_cong_no_change
,
210 rxrpc_cong_retransmit_again
,
211 rxrpc_cong_rtt_window_end
,
215 enum rxrpc_tx_point
{
216 rxrpc_tx_point_call_abort
,
217 rxrpc_tx_point_call_ack
,
218 rxrpc_tx_point_call_data_frag
,
219 rxrpc_tx_point_call_data_nofrag
,
220 rxrpc_tx_point_call_final_resend
,
221 rxrpc_tx_point_conn_abort
,
222 rxrpc_tx_point_rxkad_challenge
,
223 rxrpc_tx_point_rxkad_response
,
224 rxrpc_tx_point_reject
,
225 rxrpc_tx_point_version_keepalive
,
226 rxrpc_tx_point_version_reply
,
229 #endif /* end __RXRPC_DECLARE_TRACE_ENUMS_ONCE_ONLY */
232 * Declare tracing information enums and their string mappings for display.
234 #define rxrpc_skb_traces \
235 EM(rxrpc_skb_rx_cleaned, "Rx CLN") \
236 EM(rxrpc_skb_rx_freed, "Rx FRE") \
237 EM(rxrpc_skb_rx_got, "Rx GOT") \
238 EM(rxrpc_skb_rx_lost, "Rx *L*") \
239 EM(rxrpc_skb_rx_purged, "Rx PUR") \
240 EM(rxrpc_skb_rx_received, "Rx RCV") \
241 EM(rxrpc_skb_rx_rotated, "Rx ROT") \
242 EM(rxrpc_skb_rx_seen, "Rx SEE") \
243 EM(rxrpc_skb_tx_cleaned, "Tx CLN") \
244 EM(rxrpc_skb_tx_freed, "Tx FRE") \
245 EM(rxrpc_skb_tx_got, "Tx GOT") \
246 EM(rxrpc_skb_tx_new, "Tx NEW") \
247 EM(rxrpc_skb_tx_rotated, "Tx ROT") \
248 E_(rxrpc_skb_tx_seen, "Tx SEE")
250 #define rxrpc_local_traces \
251 EM(rxrpc_local_got, "GOT") \
252 EM(rxrpc_local_new, "NEW") \
253 EM(rxrpc_local_processing, "PRO") \
254 EM(rxrpc_local_put, "PUT") \
255 E_(rxrpc_local_queued, "QUE")
257 #define rxrpc_peer_traces \
258 EM(rxrpc_peer_got, "GOT") \
259 EM(rxrpc_peer_new, "NEW") \
260 EM(rxrpc_peer_processing, "PRO") \
261 E_(rxrpc_peer_put, "PUT")
263 #define rxrpc_conn_traces \
264 EM(rxrpc_conn_got, "GOT") \
265 EM(rxrpc_conn_new_client, "NWc") \
266 EM(rxrpc_conn_new_service, "NWs") \
267 EM(rxrpc_conn_put_client, "PTc") \
268 EM(rxrpc_conn_put_service, "PTs") \
269 EM(rxrpc_conn_queued, "QUE") \
270 EM(rxrpc_conn_reap_service, "RPs") \
271 E_(rxrpc_conn_seen, "SEE")
273 #define rxrpc_client_traces \
274 EM(rxrpc_client_activate_chans, "Activa") \
275 EM(rxrpc_client_alloc, "Alloc ") \
276 EM(rxrpc_client_chan_activate, "ChActv") \
277 EM(rxrpc_client_chan_disconnect, "ChDisc") \
278 EM(rxrpc_client_chan_pass, "ChPass") \
279 EM(rxrpc_client_chan_unstarted, "ChUnst") \
280 EM(rxrpc_client_chan_wait_failed, "ChWtFl") \
281 EM(rxrpc_client_cleanup, "Clean ") \
282 EM(rxrpc_client_count, "Count ") \
283 EM(rxrpc_client_discard, "Discar") \
284 EM(rxrpc_client_duplicate, "Duplic") \
285 EM(rxrpc_client_exposed, "Expose") \
286 EM(rxrpc_client_replace, "Replac") \
287 EM(rxrpc_client_to_active, "->Actv") \
288 EM(rxrpc_client_to_culled, "->Cull") \
289 EM(rxrpc_client_to_idle, "->Idle") \
290 EM(rxrpc_client_to_inactive, "->Inac") \
291 EM(rxrpc_client_to_upgrade, "->Upgd") \
292 EM(rxrpc_client_to_waiting, "->Wait") \
293 E_(rxrpc_client_uncount, "Uncoun")
295 #define rxrpc_conn_cache_states \
296 EM(RXRPC_CONN_CLIENT_INACTIVE, "Inac") \
297 EM(RXRPC_CONN_CLIENT_WAITING, "Wait") \
298 EM(RXRPC_CONN_CLIENT_ACTIVE, "Actv") \
299 EM(RXRPC_CONN_CLIENT_UPGRADE, "Upgd") \
300 EM(RXRPC_CONN_CLIENT_CULLED, "Cull") \
301 E_(RXRPC_CONN_CLIENT_IDLE, "Idle") \
303 #define rxrpc_call_traces \
304 EM(rxrpc_call_connected, "CON") \
305 EM(rxrpc_call_error, "*E*") \
306 EM(rxrpc_call_got, "GOT") \
307 EM(rxrpc_call_got_kernel, "Gke") \
308 EM(rxrpc_call_got_userid, "Gus") \
309 EM(rxrpc_call_new_client, "NWc") \
310 EM(rxrpc_call_new_service, "NWs") \
311 EM(rxrpc_call_put, "PUT") \
312 EM(rxrpc_call_put_kernel, "Pke") \
313 EM(rxrpc_call_put_noqueue, "PNQ") \
314 EM(rxrpc_call_put_userid, "Pus") \
315 EM(rxrpc_call_queued, "QUE") \
316 EM(rxrpc_call_queued_ref, "QUR") \
317 EM(rxrpc_call_release, "RLS") \
318 E_(rxrpc_call_seen, "SEE")
320 #define rxrpc_transmit_traces \
321 EM(rxrpc_transmit_await_reply, "AWR") \
322 EM(rxrpc_transmit_end, "END") \
323 EM(rxrpc_transmit_queue, "QUE") \
324 EM(rxrpc_transmit_queue_last, "QLS") \
325 EM(rxrpc_transmit_rotate, "ROT") \
326 EM(rxrpc_transmit_rotate_last, "RLS") \
327 E_(rxrpc_transmit_wait, "WAI")
329 #define rxrpc_receive_traces \
330 EM(rxrpc_receive_end, "END") \
331 EM(rxrpc_receive_front, "FRN") \
332 EM(rxrpc_receive_incoming, "INC") \
333 EM(rxrpc_receive_queue, "QUE") \
334 EM(rxrpc_receive_queue_last, "QLS") \
335 E_(rxrpc_receive_rotate, "ROT")
337 #define rxrpc_recvmsg_traces \
338 EM(rxrpc_recvmsg_cont, "CONT") \
339 EM(rxrpc_recvmsg_data_return, "DATA") \
340 EM(rxrpc_recvmsg_dequeue, "DEQU") \
341 EM(rxrpc_recvmsg_enter, "ENTR") \
342 EM(rxrpc_recvmsg_full, "FULL") \
343 EM(rxrpc_recvmsg_hole, "HOLE") \
344 EM(rxrpc_recvmsg_next, "NEXT") \
345 EM(rxrpc_recvmsg_requeue, "REQU") \
346 EM(rxrpc_recvmsg_return, "RETN") \
347 EM(rxrpc_recvmsg_terminal, "TERM") \
348 EM(rxrpc_recvmsg_to_be_accepted, "TBAC") \
349 E_(rxrpc_recvmsg_wait, "WAIT")
351 #define rxrpc_rtt_tx_traces \
352 EM(rxrpc_rtt_tx_data, "DATA") \
353 E_(rxrpc_rtt_tx_ping, "PING")
355 #define rxrpc_rtt_rx_traces \
356 EM(rxrpc_rtt_rx_ping_response, "PONG") \
357 E_(rxrpc_rtt_rx_requested_ack, "RACK")
359 #define rxrpc_timer_traces \
360 EM(rxrpc_timer_begin, "Begin ") \
361 EM(rxrpc_timer_expired, "*EXPR*") \
362 EM(rxrpc_timer_exp_ack, "ExpAck") \
363 EM(rxrpc_timer_exp_hard, "ExpHrd") \
364 EM(rxrpc_timer_exp_idle, "ExpIdl") \
365 EM(rxrpc_timer_exp_keepalive, "ExpKA ") \
366 EM(rxrpc_timer_exp_lost_ack, "ExpLoA") \
367 EM(rxrpc_timer_exp_normal, "ExpNml") \
368 EM(rxrpc_timer_exp_ping, "ExpPng") \
369 EM(rxrpc_timer_exp_resend, "ExpRsn") \
370 EM(rxrpc_timer_init_for_reply, "IniRpl") \
371 EM(rxrpc_timer_init_for_send_reply, "SndRpl") \
372 EM(rxrpc_timer_restart, "Restrt") \
373 EM(rxrpc_timer_set_for_ack, "SetAck") \
374 EM(rxrpc_timer_set_for_hard, "SetHrd") \
375 EM(rxrpc_timer_set_for_idle, "SetIdl") \
376 EM(rxrpc_timer_set_for_keepalive, "KeepAl") \
377 EM(rxrpc_timer_set_for_lost_ack, "SetLoA") \
378 EM(rxrpc_timer_set_for_normal, "SetNml") \
379 EM(rxrpc_timer_set_for_ping, "SetPng") \
380 EM(rxrpc_timer_set_for_resend, "SetRTx") \
381 E_(rxrpc_timer_set_for_send, "SetSnd")
383 #define rxrpc_propose_ack_traces \
384 EM(rxrpc_propose_ack_client_tx_end, "ClTxEnd") \
385 EM(rxrpc_propose_ack_input_data, "DataIn ") \
386 EM(rxrpc_propose_ack_ping_for_check_life, "ChkLife") \
387 EM(rxrpc_propose_ack_ping_for_keepalive, "KeepAlv") \
388 EM(rxrpc_propose_ack_ping_for_lost_ack, "LostAck") \
389 EM(rxrpc_propose_ack_ping_for_lost_reply, "LostRpl") \
390 EM(rxrpc_propose_ack_ping_for_params, "Params ") \
391 EM(rxrpc_propose_ack_processing_op, "ProcOp ") \
392 EM(rxrpc_propose_ack_respond_to_ack, "Rsp2Ack") \
393 EM(rxrpc_propose_ack_respond_to_ping, "Rsp2Png") \
394 EM(rxrpc_propose_ack_retry_tx, "RetryTx") \
395 EM(rxrpc_propose_ack_rotate_rx, "RxAck ") \
396 E_(rxrpc_propose_ack_terminal_ack, "ClTerm ")
398 #define rxrpc_propose_ack_outcomes \
399 EM(rxrpc_propose_ack_subsume, " Subsume") \
400 EM(rxrpc_propose_ack_update, " Update") \
401 E_(rxrpc_propose_ack_use, " New")
403 #define rxrpc_congest_modes \
404 EM(RXRPC_CALL_CONGEST_AVOIDANCE, "CongAvoid") \
405 EM(RXRPC_CALL_FAST_RETRANSMIT, "FastReTx ") \
406 EM(RXRPC_CALL_PACKET_LOSS, "PktLoss ") \
407 E_(RXRPC_CALL_SLOW_START, "SlowStart")
409 #define rxrpc_congest_changes \
410 EM(rxrpc_cong_begin_retransmission, " Retrans") \
411 EM(rxrpc_cong_cleared_nacks, " Cleared") \
412 EM(rxrpc_cong_new_low_nack, " NewLowN") \
413 EM(rxrpc_cong_no_change, "") \
414 EM(rxrpc_cong_progress, " Progres") \
415 EM(rxrpc_cong_retransmit_again, " ReTxAgn") \
416 EM(rxrpc_cong_rtt_window_end, " RttWinE") \
417 E_(rxrpc_cong_saw_nack, " SawNack")
421 EM(RXRPC_PACKET_TYPE_DATA, "DATA") \
422 EM(RXRPC_PACKET_TYPE_ACK, "ACK") \
423 EM(RXRPC_PACKET_TYPE_BUSY, "BUSY") \
424 EM(RXRPC_PACKET_TYPE_ABORT, "ABORT") \
425 EM(RXRPC_PACKET_TYPE_ACKALL, "ACKALL") \
426 EM(RXRPC_PACKET_TYPE_CHALLENGE, "CHALL") \
427 EM(RXRPC_PACKET_TYPE_RESPONSE, "RESP") \
428 EM(RXRPC_PACKET_TYPE_DEBUG, "DEBUG") \
433 EM(RXRPC_PACKET_TYPE_VERSION, "VERSION") \
437 #define rxrpc_ack_names \
439 EM(RXRPC_ACK_REQUESTED, "REQ") \
440 EM(RXRPC_ACK_DUPLICATE, "DUP") \
441 EM(RXRPC_ACK_OUT_OF_SEQUENCE, "OOS") \
442 EM(RXRPC_ACK_EXCEEDS_WINDOW, "WIN") \
443 EM(RXRPC_ACK_NOSPACE, "MEM") \
444 EM(RXRPC_ACK_PING, "PNG") \
445 EM(RXRPC_ACK_PING_RESPONSE, "PNR") \
446 EM(RXRPC_ACK_DELAY, "DLY") \
447 EM(RXRPC_ACK_IDLE, "IDL") \
448 E_(RXRPC_ACK__INVALID, "-?-")
450 #define rxrpc_completions \
451 EM(RXRPC_CALL_SUCCEEDED, "Succeeded") \
452 EM(RXRPC_CALL_REMOTELY_ABORTED, "RemoteAbort") \
453 EM(RXRPC_CALL_LOCALLY_ABORTED, "LocalAbort") \
454 EM(RXRPC_CALL_LOCAL_ERROR, "LocalError") \
455 E_(RXRPC_CALL_NETWORK_ERROR, "NetError")
457 #define rxrpc_tx_points \
458 EM(rxrpc_tx_point_call_abort, "CallAbort") \
459 EM(rxrpc_tx_point_call_ack, "CallAck") \
460 EM(rxrpc_tx_point_call_data_frag, "CallDataFrag") \
461 EM(rxrpc_tx_point_call_data_nofrag, "CallDataNofrag") \
462 EM(rxrpc_tx_point_call_final_resend, "CallFinalResend") \
463 EM(rxrpc_tx_point_conn_abort, "ConnAbort") \
464 EM(rxrpc_tx_point_reject, "Reject") \
465 EM(rxrpc_tx_point_rxkad_challenge, "RxkadChall") \
466 EM(rxrpc_tx_point_rxkad_response, "RxkadResp") \
467 EM(rxrpc_tx_point_version_keepalive, "VerKeepalive") \
468 E_(rxrpc_tx_point_version_reply, "VerReply")
471 * Export enum symbols via userspace.
475 #define EM(a, b) TRACE_DEFINE_ENUM(a);
476 #define E_(a, b) TRACE_DEFINE_ENUM(a);
483 rxrpc_transmit_traces
;
484 rxrpc_receive_traces
;
485 rxrpc_recvmsg_traces
;
489 rxrpc_propose_ack_traces
;
490 rxrpc_propose_ack_outcomes
;
492 rxrpc_congest_changes
;
496 * Now redefine the EM() and E_() macros to map the enums to the strings that
497 * will be printed in the output.
501 #define EM(a, b) { a, b },
502 #define E_(a, b) { a, b }
504 TRACE_EVENT(rxrpc_local
,
505 TP_PROTO(struct rxrpc_local
*local
, enum rxrpc_local_trace op
,
506 int usage
, const void *where
),
508 TP_ARGS(local
, op
, usage
, where
),
511 __field(unsigned int, local
)
514 __field(const void *, where
)
518 __entry
->local
= local
->debug_id
;
520 __entry
->usage
= usage
;
521 __entry
->where
= where
;
524 TP_printk("L=%08x %s u=%d sp=%pSR",
526 __print_symbolic(__entry
->op
, rxrpc_local_traces
),
531 TRACE_EVENT(rxrpc_peer
,
532 TP_PROTO(struct rxrpc_peer
*peer
, enum rxrpc_peer_trace op
,
533 int usage
, const void *where
),
535 TP_ARGS(peer
, op
, usage
, where
),
538 __field(unsigned int, peer
)
541 __field(const void *, where
)
545 __entry
->peer
= peer
->debug_id
;
547 __entry
->usage
= usage
;
548 __entry
->where
= where
;
551 TP_printk("P=%08x %s u=%d sp=%pSR",
553 __print_symbolic(__entry
->op
, rxrpc_peer_traces
),
558 TRACE_EVENT(rxrpc_conn
,
559 TP_PROTO(struct rxrpc_connection
*conn
, enum rxrpc_conn_trace op
,
560 int usage
, const void *where
),
562 TP_ARGS(conn
, op
, usage
, where
),
565 __field(unsigned int, conn
)
568 __field(const void *, where
)
572 __entry
->conn
= conn
->debug_id
;
574 __entry
->usage
= usage
;
575 __entry
->where
= where
;
578 TP_printk("C=%08x %s u=%d sp=%pSR",
580 __print_symbolic(__entry
->op
, rxrpc_conn_traces
),
585 TRACE_EVENT(rxrpc_client
,
586 TP_PROTO(struct rxrpc_connection
*conn
, int channel
,
587 enum rxrpc_client_trace op
),
589 TP_ARGS(conn
, channel
, op
),
592 __field(unsigned int, conn
)
594 __field(int, channel
)
596 __field(enum rxrpc_client_trace
, op
)
597 __field(enum rxrpc_conn_cache_state
, cs
)
601 __entry
->conn
= conn
->debug_id
;
602 __entry
->channel
= channel
;
603 __entry
->usage
= atomic_read(&conn
->usage
);
605 __entry
->cid
= conn
->proto
.cid
;
606 __entry
->cs
= conn
->cache_state
;
609 TP_printk("C=%08x h=%2d %s %s i=%08x u=%d",
612 __print_symbolic(__entry
->op
, rxrpc_client_traces
),
613 __print_symbolic(__entry
->cs
, rxrpc_conn_cache_states
),
618 TRACE_EVENT(rxrpc_call
,
619 TP_PROTO(struct rxrpc_call
*call
, enum rxrpc_call_trace op
,
620 int usage
, const void *where
, const void *aux
),
622 TP_ARGS(call
, op
, usage
, where
, aux
),
625 __field(unsigned int, call
)
628 __field(const void *, where
)
629 __field(const void *, aux
)
633 __entry
->call
= call
->debug_id
;
635 __entry
->usage
= usage
;
636 __entry
->where
= where
;
640 TP_printk("c=%08x %s u=%d sp=%pSR a=%p",
642 __print_symbolic(__entry
->op
, rxrpc_call_traces
),
648 TRACE_EVENT(rxrpc_skb
,
649 TP_PROTO(struct sk_buff
*skb
, enum rxrpc_skb_trace op
,
650 int usage
, int mod_count
, const void *where
),
652 TP_ARGS(skb
, op
, usage
, mod_count
, where
),
655 __field(struct sk_buff
*, skb
)
656 __field(enum rxrpc_skb_trace
, op
)
658 __field(int, mod_count
)
659 __field(const void *, where
)
665 __entry
->usage
= usage
;
666 __entry
->mod_count
= mod_count
;
667 __entry
->where
= where
;
670 TP_printk("s=%p %s u=%d m=%d p=%pSR",
672 __print_symbolic(__entry
->op
, rxrpc_skb_traces
),
678 TRACE_EVENT(rxrpc_rx_packet
,
679 TP_PROTO(struct rxrpc_skb_priv
*sp
),
684 __field_struct(struct rxrpc_host_header
, hdr
)
688 memcpy(&__entry
->hdr
, &sp
->hdr
, sizeof(__entry
->hdr
));
691 TP_printk("%08x:%08x:%08x:%04x %08x %08x %02x %02x %s",
692 __entry
->hdr
.epoch
, __entry
->hdr
.cid
,
693 __entry
->hdr
.callNumber
, __entry
->hdr
.serviceId
,
694 __entry
->hdr
.serial
, __entry
->hdr
.seq
,
695 __entry
->hdr
.type
, __entry
->hdr
.flags
,
696 __entry
->hdr
.type
<= 15 ?
697 __print_symbolic(__entry
->hdr
.type
, rxrpc_pkts
) : "?UNK")
700 TRACE_EVENT(rxrpc_rx_done
,
701 TP_PROTO(int result
, int abort_code
),
703 TP_ARGS(result
, abort_code
),
706 __field(int, result
)
707 __field(int, abort_code
)
711 __entry
->result
= result
;
712 __entry
->abort_code
= abort_code
;
715 TP_printk("r=%d a=%d", __entry
->result
, __entry
->abort_code
)
718 TRACE_EVENT(rxrpc_abort
,
719 TP_PROTO(unsigned int call_nr
, const char *why
, u32 cid
, u32 call_id
,
720 rxrpc_seq_t seq
, int abort_code
, int error
),
722 TP_ARGS(call_nr
, why
, cid
, call_id
, seq
, abort_code
, error
),
725 __field(unsigned int, call_nr
)
726 __array(char, why
, 4 )
728 __field(u32
, call_id
)
729 __field(rxrpc_seq_t
, seq
)
730 __field(int, abort_code
)
735 memcpy(__entry
->why
, why
, 4);
736 __entry
->call_nr
= call_nr
;
738 __entry
->call_id
= call_id
;
739 __entry
->abort_code
= abort_code
;
740 __entry
->error
= error
;
744 TP_printk("c=%08x %08x:%08x s=%u a=%d e=%d %s",
746 __entry
->cid
, __entry
->call_id
, __entry
->seq
,
747 __entry
->abort_code
, __entry
->error
, __entry
->why
)
750 TRACE_EVENT(rxrpc_call_complete
,
751 TP_PROTO(struct rxrpc_call
*call
),
756 __field(unsigned int, call
)
757 __field(enum rxrpc_call_completion
, compl )
759 __field(u32
, abort_code
)
763 __entry
->call
= call
->debug_id
;
764 __entry
->compl = call
->completion
;
765 __entry
->error
= call
->error
;
766 __entry
->abort_code
= call
->abort_code
;
769 TP_printk("c=%08x %s r=%d ac=%d",
771 __print_symbolic(__entry
->compl, rxrpc_completions
),
776 TRACE_EVENT(rxrpc_transmit
,
777 TP_PROTO(struct rxrpc_call
*call
, enum rxrpc_transmit_trace why
),
782 __field(unsigned int, call
)
783 __field(enum rxrpc_transmit_trace
, why
)
784 __field(rxrpc_seq_t
, tx_hard_ack
)
785 __field(rxrpc_seq_t
, tx_top
)
786 __field(int, tx_winsize
)
790 __entry
->call
= call
->debug_id
;
792 __entry
->tx_hard_ack
= call
->tx_hard_ack
;
793 __entry
->tx_top
= call
->tx_top
;
794 __entry
->tx_winsize
= call
->tx_winsize
;
797 TP_printk("c=%08x %s f=%08x n=%u/%u",
799 __print_symbolic(__entry
->why
, rxrpc_transmit_traces
),
800 __entry
->tx_hard_ack
+ 1,
801 __entry
->tx_top
- __entry
->tx_hard_ack
,
805 TRACE_EVENT(rxrpc_rx_data
,
806 TP_PROTO(unsigned int call
, rxrpc_seq_t seq
,
807 rxrpc_serial_t serial
, u8 flags
, u8 anno
),
809 TP_ARGS(call
, seq
, serial
, flags
, anno
),
812 __field(unsigned int, call
)
813 __field(rxrpc_seq_t
, seq
)
814 __field(rxrpc_serial_t
, serial
)
820 __entry
->call
= call
;
822 __entry
->serial
= serial
;
823 __entry
->flags
= flags
;
824 __entry
->anno
= anno
;
827 TP_printk("c=%08x DATA %08x q=%08x fl=%02x a=%02x",
835 TRACE_EVENT(rxrpc_rx_ack
,
836 TP_PROTO(struct rxrpc_call
*call
,
837 rxrpc_serial_t serial
, rxrpc_serial_t ack_serial
,
838 rxrpc_seq_t first
, rxrpc_seq_t prev
, u8 reason
, u8 n_acks
),
840 TP_ARGS(call
, serial
, ack_serial
, first
, prev
, reason
, n_acks
),
843 __field(unsigned int, call
)
844 __field(rxrpc_serial_t
, serial
)
845 __field(rxrpc_serial_t
, ack_serial
)
846 __field(rxrpc_seq_t
, first
)
847 __field(rxrpc_seq_t
, prev
)
853 __entry
->call
= call
->debug_id
;
854 __entry
->serial
= serial
;
855 __entry
->ack_serial
= ack_serial
;
856 __entry
->first
= first
;
857 __entry
->prev
= prev
;
858 __entry
->reason
= reason
;
859 __entry
->n_acks
= n_acks
;
862 TP_printk("c=%08x %08x %s r=%08x f=%08x p=%08x n=%u",
865 __print_symbolic(__entry
->reason
, rxrpc_ack_names
),
872 TRACE_EVENT(rxrpc_rx_abort
,
873 TP_PROTO(struct rxrpc_call
*call
, rxrpc_serial_t serial
,
876 TP_ARGS(call
, serial
, abort_code
),
879 __field(unsigned int, call
)
880 __field(rxrpc_serial_t
, serial
)
881 __field(u32
, abort_code
)
885 __entry
->call
= call
->debug_id
;
886 __entry
->serial
= serial
;
887 __entry
->abort_code
= abort_code
;
890 TP_printk("c=%08x ABORT %08x ac=%d",
896 TRACE_EVENT(rxrpc_rx_rwind_change
,
897 TP_PROTO(struct rxrpc_call
*call
, rxrpc_serial_t serial
,
898 u32 rwind
, bool wake
),
900 TP_ARGS(call
, serial
, rwind
, wake
),
903 __field(unsigned int, call
)
904 __field(rxrpc_serial_t
, serial
)
910 __entry
->call
= call
->debug_id
;
911 __entry
->serial
= serial
;
912 __entry
->rwind
= rwind
;
913 __entry
->wake
= wake
;
916 TP_printk("c=%08x %08x rw=%u%s",
920 __entry
->wake
? " wake" : "")
923 TRACE_EVENT(rxrpc_tx_packet
,
924 TP_PROTO(unsigned int call_id
, struct rxrpc_wire_header
*whdr
,
925 enum rxrpc_tx_point where
),
927 TP_ARGS(call_id
, whdr
, where
),
930 __field(unsigned int, call
)
931 __field(enum rxrpc_tx_point
, where
)
932 __field_struct(struct rxrpc_wire_header
, whdr
)
936 __entry
->call
= call_id
;
937 memcpy(&__entry
->whdr
, whdr
, sizeof(__entry
->whdr
));
938 __entry
->where
= where
;
941 TP_printk("c=%08x %08x:%08x:%08x:%04x %08x %08x %02x %02x %s %s",
943 ntohl(__entry
->whdr
.epoch
),
944 ntohl(__entry
->whdr
.cid
),
945 ntohl(__entry
->whdr
.callNumber
),
946 ntohs(__entry
->whdr
.serviceId
),
947 ntohl(__entry
->whdr
.serial
),
948 ntohl(__entry
->whdr
.seq
),
949 __entry
->whdr
.type
, __entry
->whdr
.flags
,
950 __entry
->whdr
.type
<= 15 ?
951 __print_symbolic(__entry
->whdr
.type
, rxrpc_pkts
) : "?UNK",
952 __print_symbolic(__entry
->where
, rxrpc_tx_points
))
955 TRACE_EVENT(rxrpc_tx_data
,
956 TP_PROTO(struct rxrpc_call
*call
, rxrpc_seq_t seq
,
957 rxrpc_serial_t serial
, u8 flags
, bool retrans
, bool lose
),
959 TP_ARGS(call
, seq
, serial
, flags
, retrans
, lose
),
962 __field(unsigned int, call
)
963 __field(rxrpc_seq_t
, seq
)
964 __field(rxrpc_serial_t
, serial
)
966 __field(u32
, call_id
)
968 __field(bool, retrans
)
973 __entry
->call
= call
->debug_id
;
974 __entry
->cid
= call
->cid
;
975 __entry
->call_id
= call
->call_id
;
977 __entry
->serial
= serial
;
978 __entry
->flags
= flags
;
979 __entry
->retrans
= retrans
;
980 __entry
->lose
= lose
;
983 TP_printk("c=%08x DATA %08x:%08x %08x q=%08x fl=%02x%s%s",
990 __entry
->retrans
? " *RETRANS*" : "",
991 __entry
->lose
? " *LOSE*" : "")
994 TRACE_EVENT(rxrpc_tx_ack
,
995 TP_PROTO(unsigned int call
, rxrpc_serial_t serial
,
996 rxrpc_seq_t ack_first
, rxrpc_serial_t ack_serial
,
997 u8 reason
, u8 n_acks
),
999 TP_ARGS(call
, serial
, ack_first
, ack_serial
, reason
, n_acks
),
1002 __field(unsigned int, call
)
1003 __field(rxrpc_serial_t
, serial
)
1004 __field(rxrpc_seq_t
, ack_first
)
1005 __field(rxrpc_serial_t
, ack_serial
)
1006 __field(u8
, reason
)
1007 __field(u8
, n_acks
)
1011 __entry
->call
= call
;
1012 __entry
->serial
= serial
;
1013 __entry
->ack_first
= ack_first
;
1014 __entry
->ack_serial
= ack_serial
;
1015 __entry
->reason
= reason
;
1016 __entry
->n_acks
= n_acks
;
1019 TP_printk(" c=%08x ACK %08x %s f=%08x r=%08x n=%u",
1022 __print_symbolic(__entry
->reason
, rxrpc_ack_names
),
1024 __entry
->ack_serial
,
1028 TRACE_EVENT(rxrpc_receive
,
1029 TP_PROTO(struct rxrpc_call
*call
, enum rxrpc_receive_trace why
,
1030 rxrpc_serial_t serial
, rxrpc_seq_t seq
),
1032 TP_ARGS(call
, why
, serial
, seq
),
1035 __field(unsigned int, call
)
1036 __field(enum rxrpc_receive_trace
, why
)
1037 __field(rxrpc_serial_t
, serial
)
1038 __field(rxrpc_seq_t
, seq
)
1039 __field(rxrpc_seq_t
, hard_ack
)
1040 __field(rxrpc_seq_t
, top
)
1044 __entry
->call
= call
->debug_id
;
1046 __entry
->serial
= serial
;
1048 __entry
->hard_ack
= call
->rx_hard_ack
;
1049 __entry
->top
= call
->rx_top
;
1052 TP_printk("c=%08x %s r=%08x q=%08x w=%08x-%08x",
1054 __print_symbolic(__entry
->why
, rxrpc_receive_traces
),
1061 TRACE_EVENT(rxrpc_recvmsg
,
1062 TP_PROTO(struct rxrpc_call
*call
, enum rxrpc_recvmsg_trace why
,
1063 rxrpc_seq_t seq
, unsigned int offset
, unsigned int len
,
1066 TP_ARGS(call
, why
, seq
, offset
, len
, ret
),
1069 __field(unsigned int, call
)
1070 __field(enum rxrpc_recvmsg_trace
, why
)
1071 __field(rxrpc_seq_t
, seq
)
1072 __field(unsigned int, offset
)
1073 __field(unsigned int, len
)
1078 __entry
->call
= call
->debug_id
;
1081 __entry
->offset
= offset
;
1086 TP_printk("c=%08x %s q=%08x o=%u l=%u ret=%d",
1088 __print_symbolic(__entry
->why
, rxrpc_recvmsg_traces
),
1095 TRACE_EVENT(rxrpc_rtt_tx
,
1096 TP_PROTO(struct rxrpc_call
*call
, enum rxrpc_rtt_tx_trace why
,
1097 rxrpc_serial_t send_serial
),
1099 TP_ARGS(call
, why
, send_serial
),
1102 __field(unsigned int, call
)
1103 __field(enum rxrpc_rtt_tx_trace
, why
)
1104 __field(rxrpc_serial_t
, send_serial
)
1108 __entry
->call
= call
->debug_id
;
1110 __entry
->send_serial
= send_serial
;
1113 TP_printk("c=%08x %s sr=%08x",
1115 __print_symbolic(__entry
->why
, rxrpc_rtt_tx_traces
),
1116 __entry
->send_serial
)
1119 TRACE_EVENT(rxrpc_rtt_rx
,
1120 TP_PROTO(struct rxrpc_call
*call
, enum rxrpc_rtt_rx_trace why
,
1121 rxrpc_serial_t send_serial
, rxrpc_serial_t resp_serial
,
1122 s64 rtt
, u8 nr
, s64 avg
),
1124 TP_ARGS(call
, why
, send_serial
, resp_serial
, rtt
, nr
, avg
),
1127 __field(unsigned int, call
)
1128 __field(enum rxrpc_rtt_rx_trace
, why
)
1130 __field(rxrpc_serial_t
, send_serial
)
1131 __field(rxrpc_serial_t
, resp_serial
)
1137 __entry
->call
= call
->debug_id
;
1139 __entry
->send_serial
= send_serial
;
1140 __entry
->resp_serial
= resp_serial
;
1146 TP_printk("c=%08x %s sr=%08x rr=%08x rtt=%lld nr=%u avg=%lld",
1148 __print_symbolic(__entry
->why
, rxrpc_rtt_rx_traces
),
1149 __entry
->send_serial
,
1150 __entry
->resp_serial
,
1156 TRACE_EVENT(rxrpc_timer
,
1157 TP_PROTO(struct rxrpc_call
*call
, enum rxrpc_timer_trace why
,
1160 TP_ARGS(call
, why
, now
),
1163 __field(unsigned int, call
)
1164 __field(enum rxrpc_timer_trace
, why
)
1166 __field(long, ack_at
)
1167 __field(long, ack_lost_at
)
1168 __field(long, resend_at
)
1169 __field(long, ping_at
)
1170 __field(long, expect_rx_by
)
1171 __field(long, expect_req_by
)
1172 __field(long, expect_term_by
)
1173 __field(long, timer
)
1177 __entry
->call
= call
->debug_id
;
1180 __entry
->ack_at
= call
->ack_at
;
1181 __entry
->ack_lost_at
= call
->ack_lost_at
;
1182 __entry
->resend_at
= call
->resend_at
;
1183 __entry
->expect_rx_by
= call
->expect_rx_by
;
1184 __entry
->expect_req_by
= call
->expect_req_by
;
1185 __entry
->expect_term_by
= call
->expect_term_by
;
1186 __entry
->timer
= call
->timer
.expires
;
1189 TP_printk("c=%08x %s a=%ld la=%ld r=%ld xr=%ld xq=%ld xt=%ld t=%ld",
1191 __print_symbolic(__entry
->why
, rxrpc_timer_traces
),
1192 __entry
->ack_at
- __entry
->now
,
1193 __entry
->ack_lost_at
- __entry
->now
,
1194 __entry
->resend_at
- __entry
->now
,
1195 __entry
->expect_rx_by
- __entry
->now
,
1196 __entry
->expect_req_by
- __entry
->now
,
1197 __entry
->expect_term_by
- __entry
->now
,
1198 __entry
->timer
- __entry
->now
)
1201 TRACE_EVENT(rxrpc_rx_lose
,
1202 TP_PROTO(struct rxrpc_skb_priv
*sp
),
1207 __field_struct(struct rxrpc_host_header
, hdr
)
1211 memcpy(&__entry
->hdr
, &sp
->hdr
, sizeof(__entry
->hdr
));
1214 TP_printk("%08x:%08x:%08x:%04x %08x %08x %02x %02x %s *LOSE*",
1215 __entry
->hdr
.epoch
, __entry
->hdr
.cid
,
1216 __entry
->hdr
.callNumber
, __entry
->hdr
.serviceId
,
1217 __entry
->hdr
.serial
, __entry
->hdr
.seq
,
1218 __entry
->hdr
.type
, __entry
->hdr
.flags
,
1219 __entry
->hdr
.type
<= 15 ?
1220 __print_symbolic(__entry
->hdr
.type
, rxrpc_pkts
) : "?UNK")
1223 TRACE_EVENT(rxrpc_propose_ack
,
1224 TP_PROTO(struct rxrpc_call
*call
, enum rxrpc_propose_ack_trace why
,
1225 u8 ack_reason
, rxrpc_serial_t serial
, bool immediate
,
1226 bool background
, enum rxrpc_propose_ack_outcome outcome
),
1228 TP_ARGS(call
, why
, ack_reason
, serial
, immediate
, background
,
1232 __field(unsigned int, call
)
1233 __field(enum rxrpc_propose_ack_trace
, why
)
1234 __field(rxrpc_serial_t
, serial
)
1235 __field(u8
, ack_reason
)
1236 __field(bool, immediate
)
1237 __field(bool, background
)
1238 __field(enum rxrpc_propose_ack_outcome
, outcome
)
1242 __entry
->call
= call
->debug_id
;
1244 __entry
->serial
= serial
;
1245 __entry
->ack_reason
= ack_reason
;
1246 __entry
->immediate
= immediate
;
1247 __entry
->background
= background
;
1248 __entry
->outcome
= outcome
;
1251 TP_printk("c=%08x %s %s r=%08x i=%u b=%u%s",
1253 __print_symbolic(__entry
->why
, rxrpc_propose_ack_traces
),
1254 __print_symbolic(__entry
->ack_reason
, rxrpc_ack_names
),
1257 __entry
->background
,
1258 __print_symbolic(__entry
->outcome
, rxrpc_propose_ack_outcomes
))
1261 TRACE_EVENT(rxrpc_retransmit
,
1262 TP_PROTO(struct rxrpc_call
*call
, rxrpc_seq_t seq
, u8 annotation
,
1265 TP_ARGS(call
, seq
, annotation
, expiry
),
1268 __field(unsigned int, call
)
1269 __field(rxrpc_seq_t
, seq
)
1270 __field(u8
, annotation
)
1271 __field(s64
, expiry
)
1275 __entry
->call
= call
->debug_id
;
1277 __entry
->annotation
= annotation
;
1278 __entry
->expiry
= expiry
;
1281 TP_printk("c=%08x q=%x a=%02x xp=%lld",
1284 __entry
->annotation
,
1288 TRACE_EVENT(rxrpc_congest
,
1289 TP_PROTO(struct rxrpc_call
*call
, struct rxrpc_ack_summary
*summary
,
1290 rxrpc_serial_t ack_serial
, enum rxrpc_congest_change change
),
1292 TP_ARGS(call
, summary
, ack_serial
, change
),
1295 __field(unsigned int, call
)
1296 __field(enum rxrpc_congest_change
, change
)
1297 __field(rxrpc_seq_t
, hard_ack
)
1298 __field(rxrpc_seq_t
, top
)
1299 __field(rxrpc_seq_t
, lowest_nak
)
1300 __field(rxrpc_serial_t
, ack_serial
)
1301 __field_struct(struct rxrpc_ack_summary
, sum
)
1305 __entry
->call
= call
->debug_id
;
1306 __entry
->change
= change
;
1307 __entry
->hard_ack
= call
->tx_hard_ack
;
1308 __entry
->top
= call
->tx_top
;
1309 __entry
->lowest_nak
= call
->acks_lowest_nak
;
1310 __entry
->ack_serial
= ack_serial
;
1311 memcpy(&__entry
->sum
, summary
, sizeof(__entry
->sum
));
1314 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",
1316 __entry
->ack_serial
,
1317 __print_symbolic(__entry
->sum
.ack_reason
, rxrpc_ack_names
),
1319 __print_symbolic(__entry
->sum
.mode
, rxrpc_congest_modes
),
1321 __entry
->sum
.ssthresh
,
1322 __entry
->sum
.nr_acks
, __entry
->sum
.nr_nacks
,
1323 __entry
->sum
.nr_new_acks
, __entry
->sum
.nr_new_nacks
,
1324 __entry
->sum
.nr_rot_new_acks
,
1325 __entry
->top
- __entry
->hard_ack
,
1326 __entry
->sum
.cumulative_acks
,
1327 __entry
->sum
.dup_acks
,
1328 __entry
->lowest_nak
, __entry
->sum
.new_low_nack
? "!" : "",
1329 __print_symbolic(__entry
->change
, rxrpc_congest_changes
),
1330 __entry
->sum
.retrans_timeo
? " rTxTo" : "")
1333 TRACE_EVENT(rxrpc_disconnect_call
,
1334 TP_PROTO(struct rxrpc_call
*call
),
1339 __field(unsigned int, call
)
1340 __field(u32
, abort_code
)
1344 __entry
->call
= call
->debug_id
;
1345 __entry
->abort_code
= call
->abort_code
;
1348 TP_printk("c=%08x ab=%08x",
1350 __entry
->abort_code
)
1353 TRACE_EVENT(rxrpc_improper_term
,
1354 TP_PROTO(struct rxrpc_call
*call
),
1359 __field(unsigned int, call
)
1360 __field(u32
, abort_code
)
1364 __entry
->call
= call
->debug_id
;
1365 __entry
->abort_code
= call
->abort_code
;
1368 TP_printk("c=%08x ab=%08x",
1370 __entry
->abort_code
)
1373 TRACE_EVENT(rxrpc_rx_eproto
,
1374 TP_PROTO(struct rxrpc_call
*call
, rxrpc_serial_t serial
,
1377 TP_ARGS(call
, serial
, why
),
1380 __field(unsigned int, call
)
1381 __field(rxrpc_serial_t
, serial
)
1382 __field(const char *, why
)
1386 __entry
->call
= call
->debug_id
;
1387 __entry
->serial
= serial
;
1391 TP_printk("c=%08x EPROTO %08x %s",
1397 TRACE_EVENT(rxrpc_connect_call
,
1398 TP_PROTO(struct rxrpc_call
*call
),
1403 __field(unsigned int, call
)
1404 __field(unsigned long, user_call_ID
)
1406 __field(u32
, call_id
)
1410 __entry
->call
= call
->debug_id
;
1411 __entry
->user_call_ID
= call
->user_call_ID
;
1412 __entry
->cid
= call
->cid
;
1413 __entry
->call_id
= call
->call_id
;
1416 TP_printk("c=%08x u=%p %08x:%08x",
1418 (void *)__entry
->user_call_ID
,
1423 TRACE_EVENT(rxrpc_resend
,
1424 TP_PROTO(struct rxrpc_call
*call
, int ix
),
1429 __field(unsigned int, call
)
1431 __array(u8
, anno
, 64 )
1435 __entry
->call
= call
->debug_id
;
1437 memcpy(__entry
->anno
, call
->rxtx_annotations
, 64);
1440 TP_printk("c=%08x ix=%u a=%64phN",
1446 TRACE_EVENT(rxrpc_rx_icmp
,
1447 TP_PROTO(struct rxrpc_peer
*peer
, struct sock_extended_err
*ee
,
1448 struct sockaddr_rxrpc
*srx
),
1450 TP_ARGS(peer
, ee
, srx
),
1453 __field(unsigned int, peer
)
1454 __field_struct(struct sock_extended_err
, ee
)
1455 __field_struct(struct sockaddr_rxrpc
, srx
)
1459 __entry
->peer
= peer
->debug_id
;
1460 memcpy(&__entry
->ee
, ee
, sizeof(__entry
->ee
));
1461 memcpy(&__entry
->srx
, srx
, sizeof(__entry
->srx
));
1464 TP_printk("P=%08x o=%u t=%u c=%u i=%u d=%u e=%d %pISp",
1466 __entry
->ee
.ee_origin
,
1467 __entry
->ee
.ee_type
,
1468 __entry
->ee
.ee_code
,
1469 __entry
->ee
.ee_info
,
1470 __entry
->ee
.ee_data
,
1471 __entry
->ee
.ee_errno
,
1472 &__entry
->srx
.transport
)
1475 TRACE_EVENT(rxrpc_tx_fail
,
1476 TP_PROTO(unsigned int debug_id
, rxrpc_serial_t serial
, int ret
,
1477 enum rxrpc_tx_point where
),
1479 TP_ARGS(debug_id
, serial
, ret
, where
),
1482 __field(unsigned int, debug_id
)
1483 __field(rxrpc_serial_t
, serial
)
1485 __field(enum rxrpc_tx_point
, where
)
1489 __entry
->debug_id
= debug_id
;
1490 __entry
->serial
= serial
;
1492 __entry
->where
= where
;
1495 TP_printk("c=%08x r=%x ret=%d %s",
1499 __print_symbolic(__entry
->where
, rxrpc_tx_points
))
1502 TRACE_EVENT(rxrpc_call_reset
,
1503 TP_PROTO(struct rxrpc_call
*call
),
1508 __field(unsigned int, debug_id
)
1510 __field(u32
, call_id
)
1511 __field(rxrpc_serial_t
, call_serial
)
1512 __field(rxrpc_serial_t
, conn_serial
)
1513 __field(rxrpc_seq_t
, tx_seq
)
1514 __field(rxrpc_seq_t
, rx_seq
)
1518 __entry
->debug_id
= call
->debug_id
;
1519 __entry
->cid
= call
->cid
;
1520 __entry
->call_id
= call
->call_id
;
1521 __entry
->call_serial
= call
->rx_serial
;
1522 __entry
->conn_serial
= call
->conn
->hi_serial
;
1523 __entry
->tx_seq
= call
->tx_hard_ack
;
1524 __entry
->rx_seq
= call
->ackr_seen
;
1527 TP_printk("c=%08x %08x:%08x r=%08x/%08x tx=%08x rx=%08x",
1529 __entry
->cid
, __entry
->call_id
,
1530 __entry
->call_serial
, __entry
->conn_serial
,
1531 __entry
->tx_seq
, __entry
->rx_seq
)
1534 TRACE_EVENT(rxrpc_notify_socket
,
1535 TP_PROTO(unsigned int debug_id
, rxrpc_serial_t serial
),
1537 TP_ARGS(debug_id
, serial
),
1540 __field(unsigned int, debug_id
)
1541 __field(rxrpc_serial_t
, serial
)
1545 __entry
->debug_id
= debug_id
;
1546 __entry
->serial
= serial
;
1549 TP_printk("c=%08x r=%08x",
1554 #endif /* _TRACE_RXRPC_H */
1556 /* This part must be outside protection */
1557 #include <trace/define_trace.h>