Lines Matching refs:stats
227 struct tipc_stats stats; member
795 l->stats.accu_queue_sz += skb_queue_len(&l->transmq); in link_profile_stats()
796 l->stats.queue_sz_counts++; in link_profile_stats()
809 l->stats.msg_lengths_total += length; in link_profile_stats()
810 l->stats.msg_length_counts++; in link_profile_stats()
812 l->stats.msg_length_profile[0]++; in link_profile_stats()
814 l->stats.msg_length_profile[1]++; in link_profile_stats()
816 l->stats.msg_length_profile[2]++; in link_profile_stats()
818 l->stats.msg_length_profile[3]++; in link_profile_stats()
820 l->stats.msg_length_profile[4]++; in link_profile_stats()
822 l->stats.msg_length_profile[5]++; in link_profile_stats()
824 l->stats.msg_length_profile[6]++; in link_profile_stats()
920 l->stats.link_congs++; in link_schedule_user()
1077 l->stats.sent_fragmented++; in tipc_link_xmit()
1078 l->stats.sent_fragments += pkt_cnt; in tipc_link_xmit()
1099 l->stats.sent_pkts++; in tipc_link_xmit()
1112 l->stats.sent_bundles++; in tipc_link_xmit()
1113 l->stats.sent_bundled++; in tipc_link_xmit()
1115 l->stats.sent_bundled++; in tipc_link_xmit()
1204 l->stats.sent_pkts++; in tipc_link_advance_backlog()
1330 l->stats.recv_bundles++; in tipc_link_input()
1331 l->stats.recv_bundled += msg_msgcnt(hdr); in tipc_link_input()
1337 l->stats.recv_fragments++; in tipc_link_input()
1339 l->stats.recv_fragmented++; in tipc_link_input()
1656 l->stats.retransmitted++; in tipc_link_advance_transmq()
1658 r->stats.retransmitted++; in tipc_link_advance_transmq()
1728 l->stats.sent_acks++; in tipc_link_build_state_msg()
1758 u32 def_cnt = ++l->stats.deferred_recv; in tipc_link_build_nack_msg()
1816 l->stats.duplicates++; in tipc_link_rcv()
1826 l->stats.duplicates++; in tipc_link_rcv()
1833 l->stats.recv_pkts++; in tipc_link_rcv()
1915 l->stats.sent_states++; in tipc_link_build_proto_msg()
1929 l->stats.sent_probes++; in tipc_link_build_proto_msg()
1931 l->stats.sent_nacks++; in tipc_link_build_proto_msg()
1933 bcl->stats.sent_nacks++; in tipc_link_build_proto_msg()
2310 l->stats.recv_states++; in tipc_link_proto_rcv()
2312 l->stats.recv_probes++; in tipc_link_proto_rcv()
2336 l->stats.recv_nacks++; in tipc_link_proto_rcv()
2493 l->stats.recv_nacks++; in tipc_link_bc_ack_rcv()
2494 r->stats.recv_nacks++; in tipc_link_bc_ack_rcv()
2537 l->stats.recv_nacks++; in tipc_link_bc_nack_rcv()
2569 memset(&l->stats, 0, sizeof(l->stats)); in tipc_link_reset_stats()
2625 struct nlattr *stats; in __tipc_nl_add_stats() local
2670 stats = nla_nest_start_noflag(skb, TIPC_NLA_LINK_STATS); in __tipc_nl_add_stats()
2671 if (!stats) in __tipc_nl_add_stats()
2678 nla_nest_end(skb, stats); in __tipc_nl_add_stats()
2682 nla_nest_cancel(skb, stats); in __tipc_nl_add_stats()
2712 if (nla_put_u32(msg->skb, TIPC_NLA_LINK_RX, link->stats.recv_pkts)) in __tipc_nl_add_link()
2714 if (nla_put_u32(msg->skb, TIPC_NLA_LINK_TX, link->stats.sent_pkts)) in __tipc_nl_add_link()
2738 err = __tipc_nl_add_stats(msg->skb, &link->stats); in __tipc_nl_add_link()
2758 struct tipc_stats *stats) in __tipc_nl_add_bc_link_stat() argument
2769 {TIPC_NLA_STATS_RX_INFO, stats->recv_pkts}, in __tipc_nl_add_bc_link_stat()
2770 {TIPC_NLA_STATS_RX_FRAGMENTS, stats->recv_fragments}, in __tipc_nl_add_bc_link_stat()
2771 {TIPC_NLA_STATS_RX_FRAGMENTED, stats->recv_fragmented}, in __tipc_nl_add_bc_link_stat()
2772 {TIPC_NLA_STATS_RX_BUNDLES, stats->recv_bundles}, in __tipc_nl_add_bc_link_stat()
2773 {TIPC_NLA_STATS_RX_BUNDLED, stats->recv_bundled}, in __tipc_nl_add_bc_link_stat()
2774 {TIPC_NLA_STATS_TX_INFO, stats->sent_pkts}, in __tipc_nl_add_bc_link_stat()
2775 {TIPC_NLA_STATS_TX_FRAGMENTS, stats->sent_fragments}, in __tipc_nl_add_bc_link_stat()
2776 {TIPC_NLA_STATS_TX_FRAGMENTED, stats->sent_fragmented}, in __tipc_nl_add_bc_link_stat()
2777 {TIPC_NLA_STATS_TX_BUNDLES, stats->sent_bundles}, in __tipc_nl_add_bc_link_stat()
2778 {TIPC_NLA_STATS_TX_BUNDLED, stats->sent_bundled}, in __tipc_nl_add_bc_link_stat()
2779 {TIPC_NLA_STATS_RX_NACKS, stats->recv_nacks}, in __tipc_nl_add_bc_link_stat()
2780 {TIPC_NLA_STATS_RX_DEFERRED, stats->deferred_recv}, in __tipc_nl_add_bc_link_stat()
2781 {TIPC_NLA_STATS_TX_NACKS, stats->sent_nacks}, in __tipc_nl_add_bc_link_stat()
2782 {TIPC_NLA_STATS_TX_ACKS, stats->sent_acks}, in __tipc_nl_add_bc_link_stat()
2783 {TIPC_NLA_STATS_RETRANSMITTED, stats->retransmitted}, in __tipc_nl_add_bc_link_stat()
2784 {TIPC_NLA_STATS_DUPLICATES, stats->duplicates}, in __tipc_nl_add_bc_link_stat()
2785 {TIPC_NLA_STATS_LINK_CONGS, stats->link_congs}, in __tipc_nl_add_bc_link_stat()
2786 {TIPC_NLA_STATS_MAX_QUEUE, stats->max_queue_sz}, in __tipc_nl_add_bc_link_stat()
2787 {TIPC_NLA_STATS_AVG_QUEUE, stats->queue_sz_counts ? in __tipc_nl_add_bc_link_stat()
2788 (stats->accu_queue_sz / stats->queue_sz_counts) : 0} in __tipc_nl_add_bc_link_stat()
2860 err = __tipc_nl_add_bc_link_stat(msg->skb, &bcl->stats); in tipc_nl_add_bc_link()