History

rxrpc: Trace received aborts

Add a tracepoint (rxrpc_rx_abort) to record received aborts.

David Howells committed 9 years ago

Commit 005ede21 parent fb46f6e2 files · +27 −1Browse files

Showing the changes to include/trace (1 of 2 files). Show all

Unified · Split

include/trace/events/rxrpc.h+24−0
@@ -683,6 +683,30 @@ TRACE_EVENT(rxrpc_rx_ack, · 682 unmodified lines
683 __entry->n_acks)683 __entry->n_acks)
684 );684 );
685 685
686TRACE_EVENT(rxrpc_rx_abort,
687 TP_PROTO(struct rxrpc_call *call, rxrpc_serial_t serial,
688 u32 abort_code),
689
690 TP_ARGS(call, serial, abort_code),
691
692 TP_STRUCT__entry(
693 __field(struct rxrpc_call *, call )
694 __field(rxrpc_serial_t, serial )
695 __field(u32, abort_code )
696 ),
697
698 TP_fast_assign(
699 __entry->call = call;
700 __entry->serial = serial;
701 __entry->abort_code = abort_code;
702 ),
703
704 TP_printk("c=%p ABORT %08x ac=%d",
705 __entry->call,
706 __entry->serial,
707 __entry->abort_code)
708 );
709
686TRACE_EVENT(rxrpc_tx_data,710TRACE_EVENT(rxrpc_tx_data,
687 TP_PROTO(struct rxrpc_call *call, rxrpc_seq_t seq,711 TP_PROTO(struct rxrpc_call *call, rxrpc_seq_t seq,
688 rxrpc_serial_t serial, u8 flags, bool retrans, bool lose),712 rxrpc_serial_t serial, u8 flags, bool retrans, bool lose),