Lines Matching refs:tp_stats
10 struct tp_stats { struct
17 struct tp_stats *tpstats = optval; in get_tpacket_stats() argument
41 if (optlen > offsetof(struct tp_stats, tp_drops)) { in get_tpacket_stats()
42 optlen -= offsetof(struct tp_stats, tp_drops); in get_tpacket_stats()
49 if (optlen > offsetof(struct tp_stats, tp_freeze_q_cnt) - in get_tpacket_stats()
50 offsetof(struct tp_stats, tp_drops)) { in get_tpacket_stats()
51 optlen -= offsetof(struct tp_stats, tp_freeze_q_cnt) - in get_tpacket_stats()
52 offsetof(struct tp_stats, tp_drops); in get_tpacket_stats()
72 TAIL_ALLOC_OBJECT_CONST_PTR(struct tp_stats, tp_stats); in main()
76 const unsigned int offset_tp_packets = offsetofend(struct tp_stats, tp_packets); in main()
79 const unsigned int offset_tp_drops = offsetofend(struct tp_stats, tp_drops); in main()
82 const unsigned int offset_tp_freeze_q_cnt = offsetofend(struct tp_stats, tp_freeze_q_cnt); in main()
85 *len = sizeof(*tp_stats); in main()
89 get_tpacket_stats(tp_stats, &optlen); in main()
93 get_tpacket_stats(tp_stats, &optlen); in main()
100 get_tpacket_stats(tp_stats, &optlen); in main()
108 get_tpacket_stats(tp_stats, &optlen); in main()
116 get_tpacket_stats(tp_stats, &optlen); in main()
123 get_tpacket_stats(tp_stats, &optlen); in main()
131 get_tpacket_stats(tp_stats, &optlen); in main()
137 get_tpacket_stats(tp_stats, &optlen); in main()
143 get_tpacket_stats(tp_stats, &optlen); in main()