rxrpc.h (b54a134a7de461f804cf0e28331d0a43ee82fb13) rxrpc.h (b1d9f7fde0bb6c143a9a5b9246ea191e28f2c364)
1/* AF_RXRPC tracepoints
2 *
3 * Copyright (C) 2016 Red Hat, Inc. All Rights Reserved.
4 * Written by David Howells (dhowells@redhat.com)
5 *
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

--- 581 unchanged lines hidden (view full) ---

590
591 TP_ARGS(call, why),
592
593 TP_STRUCT__entry(
594 __field(struct rxrpc_call *, call )
595 __field(enum rxrpc_transmit_trace, why )
596 __field(rxrpc_seq_t, tx_hard_ack )
597 __field(rxrpc_seq_t, tx_top )
1/* AF_RXRPC tracepoints
2 *
3 * Copyright (C) 2016 Red Hat, Inc. All Rights Reserved.
4 * Written by David Howells (dhowells@redhat.com)
5 *
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

--- 581 unchanged lines hidden (view full) ---

590
591 TP_ARGS(call, why),
592
593 TP_STRUCT__entry(
594 __field(struct rxrpc_call *, call )
595 __field(enum rxrpc_transmit_trace, why )
596 __field(rxrpc_seq_t, tx_hard_ack )
597 __field(rxrpc_seq_t, tx_top )
598 __field(int, tx_winsize )
598 ),
599
600 TP_fast_assign(
601 __entry->call = call;
602 __entry->why = why;
603 __entry->tx_hard_ack = call->tx_hard_ack;
604 __entry->tx_top = call->tx_top;
599 ),
600
601 TP_fast_assign(
602 __entry->call = call;
603 __entry->why = why;
604 __entry->tx_hard_ack = call->tx_hard_ack;
605 __entry->tx_top = call->tx_top;
606 __entry->tx_winsize = call->tx_winsize;
605 ),
606
607 ),
608
607 TP_printk("c=%p %s f=%08x n=%u",
609 TP_printk("c=%p %s f=%08x n=%u/%u",
608 __entry->call,
609 __print_symbolic(__entry->why, rxrpc_transmit_traces),
610 __entry->tx_hard_ack + 1,
610 __entry->call,
611 __print_symbolic(__entry->why, rxrpc_transmit_traces),
612 __entry->tx_hard_ack + 1,
611 __entry->tx_top - __entry->tx_hard_ack)
613 __entry->tx_top - __entry->tx_hard_ack,
614 __entry->tx_winsize)
612 );
613
615 );
616
617TRACE_EVENT(rxrpc_rx_data,
618 TP_PROTO(struct rxrpc_call *call, rxrpc_seq_t seq,
619 rxrpc_serial_t serial, u8 flags, u8 anno),
620
621 TP_ARGS(call, seq, serial, flags, anno),
622
623 TP_STRUCT__entry(
624 __field(struct rxrpc_call *, call )
625 __field(rxrpc_seq_t, seq )
626 __field(rxrpc_serial_t, serial )
627 __field(u8, flags )
628 __field(u8, anno )
629 ),
630
631 TP_fast_assign(
632 __entry->call = call;
633 __entry->seq = seq;
634 __entry->serial = serial;
635 __entry->flags = flags;
636 __entry->anno = anno;
637 ),
638
639 TP_printk("c=%p DATA %08x q=%08x fl=%02x a=%02x",
640 __entry->call,
641 __entry->serial,
642 __entry->seq,
643 __entry->flags,
644 __entry->anno)
645 );
646
614TRACE_EVENT(rxrpc_rx_ack,
647TRACE_EVENT(rxrpc_rx_ack,
615 TP_PROTO(struct rxrpc_call *call, rxrpc_seq_t first, u8 reason, u8 n_acks),
648 TP_PROTO(struct rxrpc_call *call,
649 rxrpc_serial_t serial, rxrpc_serial_t ack_serial,
650 rxrpc_seq_t first, rxrpc_seq_t prev, u8 reason, u8 n_acks),
616
651
617 TP_ARGS(call, first, reason, n_acks),
652 TP_ARGS(call, serial, ack_serial, first, prev, reason, n_acks),
618
619 TP_STRUCT__entry(
620 __field(struct rxrpc_call *, call )
653
654 TP_STRUCT__entry(
655 __field(struct rxrpc_call *, call )
656 __field(rxrpc_serial_t, serial )
657 __field(rxrpc_serial_t, ack_serial )
621 __field(rxrpc_seq_t, first )
658 __field(rxrpc_seq_t, first )
659 __field(rxrpc_seq_t, prev )
622 __field(u8, reason )
623 __field(u8, n_acks )
624 ),
625
626 TP_fast_assign(
627 __entry->call = call;
660 __field(u8, reason )
661 __field(u8, n_acks )
662 ),
663
664 TP_fast_assign(
665 __entry->call = call;
666 __entry->serial = serial;
667 __entry->ack_serial = ack_serial;
628 __entry->first = first;
668 __entry->first = first;
669 __entry->prev = prev;
629 __entry->reason = reason;
630 __entry->n_acks = n_acks;
631 ),
632
670 __entry->reason = reason;
671 __entry->n_acks = n_acks;
672 ),
673
633 TP_printk("c=%p %s f=%08x n=%u",
674 TP_printk("c=%p %08x %s r=%08x f=%08x p=%08x n=%u",
634 __entry->call,
675 __entry->call,
676 __entry->serial,
635 __print_symbolic(__entry->reason, rxrpc_ack_names),
677 __print_symbolic(__entry->reason, rxrpc_ack_names),
678 __entry->ack_serial,
636 __entry->first,
679 __entry->first,
680 __entry->prev,
637 __entry->n_acks)
638 );
639
640TRACE_EVENT(rxrpc_tx_data,
641 TP_PROTO(struct rxrpc_call *call, rxrpc_seq_t seq,
642 rxrpc_serial_t serial, u8 flags, bool retrans, bool lose),
643
644 TP_ARGS(call, seq, serial, flags, retrans, lose),

--- 351 unchanged lines hidden (view full) ---

996 __entry->top - __entry->hard_ack,
997 __entry->sum.cumulative_acks,
998 __entry->sum.dup_acks,
999 __entry->lowest_nak, __entry->sum.new_low_nack ? "!" : "",
1000 __print_symbolic(__entry->change, rxrpc_congest_changes),
1001 __entry->sum.retrans_timeo ? " rTxTo" : "")
1002 );
1003
681 __entry->n_acks)
682 );
683
684TRACE_EVENT(rxrpc_tx_data,
685 TP_PROTO(struct rxrpc_call *call, rxrpc_seq_t seq,
686 rxrpc_serial_t serial, u8 flags, bool retrans, bool lose),
687
688 TP_ARGS(call, seq, serial, flags, retrans, lose),

--- 351 unchanged lines hidden (view full) ---

1040 __entry->top - __entry->hard_ack,
1041 __entry->sum.cumulative_acks,
1042 __entry->sum.dup_acks,
1043 __entry->lowest_nak, __entry->sum.new_low_nack ? "!" : "",
1044 __print_symbolic(__entry->change, rxrpc_congest_changes),
1045 __entry->sum.retrans_timeo ? " rTxTo" : "")
1046 );
1047
1048TRACE_EVENT(rxrpc_disconnect_call,
1049 TP_PROTO(struct rxrpc_call *call),
1050
1051 TP_ARGS(call),
1052
1053 TP_STRUCT__entry(
1054 __field(struct rxrpc_call *, call )
1055 __field(u32, abort_code )
1056 ),
1057
1058 TP_fast_assign(
1059 __entry->call = call;
1060 __entry->abort_code = call->abort_code;
1061 ),
1062
1063 TP_printk("c=%p ab=%08x",
1064 __entry->call,
1065 __entry->abort_code)
1066 );
1067
1068TRACE_EVENT(rxrpc_improper_term,
1069 TP_PROTO(struct rxrpc_call *call),
1070
1071 TP_ARGS(call),
1072
1073 TP_STRUCT__entry(
1074 __field(struct rxrpc_call *, call )
1075 __field(u32, abort_code )
1076 ),
1077
1078 TP_fast_assign(
1079 __entry->call = call;
1080 __entry->abort_code = call->abort_code;
1081 ),
1082
1083 TP_printk("c=%p ab=%08x",
1084 __entry->call,
1085 __entry->abort_code)
1086 );
1087
1004#endif /* _TRACE_RXRPC_H */
1005
1006/* This part must be outside protection */
1007#include <trace/define_trace.h>
1088#endif /* _TRACE_RXRPC_H */
1089
1090/* This part must be outside protection */
1091#include <trace/define_trace.h>