Home
last modified time | relevance | path

Searched refs:stats (Results 1 – 25 of 141) sorted by relevance

123456

/net/wireless/
A Dwext-proc.c37 if (!stats) { in wireless_seq_printf_stats()
40 stats = &nullstats; in wireless_seq_printf_stats()
44 stats = &nullstats; in wireless_seq_printf_stats()
48 if (stats) { in wireless_seq_printf_stats()
51 dev->name, stats->status, stats->qual.qual, in wireless_seq_printf_stats()
54 ((__s32) stats->qual.level) - in wireless_seq_printf_stats()
58 ((__s32) stats->qual.noise) - in wireless_seq_printf_stats()
62 stats->discard.nwid, stats->discard.code, in wireless_seq_printf_stats()
63 stats->discard.fragment, stats->discard.retries, in wireless_seq_printf_stats()
64 stats->discard.misc, stats->miss.beacon); in wireless_seq_printf_stats()
[all …]
/net/smc/
A Dsmc_stats.c106 stats_pload = &stats->smc[tech].tx_pd; in smc_nl_fill_stats_bufsize_data()
171 smc_tech = &stats->smc[tech]; in smc_nl_fill_stats_tech_data()
270 struct smc_stats *stats; in smc_nl_get_stats() local
288 stats = kzalloc(sizeof(*stats), GFP_KERNEL); in smc_nl_get_stats()
289 if (!stats) in smc_nl_get_stats()
291 size = sizeof(*stats) / sizeof(u64); in smc_nl_get_stats()
294 sum = (u64 *)stats; in smc_nl_get_stats()
303 stats->clnt_hshake_err_cnt, in smc_nl_get_stats()
307 stats->srv_hshake_err_cnt, in smc_nl_get_stats()
314 kfree(stats); in smc_nl_get_stats()
[all …]
/net/sunrpc/
A Dstats.c126 struct rpc_iostats *stats; in rpc_alloc_iostats() local
129 stats = kcalloc(clnt->cl_maxproc, sizeof(*stats), GFP_KERNEL); in rpc_alloc_iostats()
130 if (stats) { in rpc_alloc_iostats()
134 return stats; in rpc_alloc_iostats()
145 kfree(stats); in rpc_free_iostats()
236 stats->om_ops, in _print_rpc_iostats()
237 stats->om_ntrans, in _print_rpc_iostats()
238 stats->om_timeouts, in _print_rpc_iostats()
239 stats->om_bytes_sent, in _print_rpc_iostats()
240 stats->om_bytes_recv, in _print_rpc_iostats()
[all …]
/net/ethtool/
A Dfec.c17 u64 stats[1 + ETHTOOL_MAX_LANES]; member
76 if (stats->lanes[0] == ETHTOOL_STAT_NOT_SET) { in fec_stats_recalc()
77 grp->stats[0] = stats->total; in fec_stats_recalc()
78 grp->cnt = stats->total != ETHTOOL_STAT_NOT_SET; in fec_stats_recalc()
83 grp->stats[0] = 0; in fec_stats_recalc()
85 if (stats->lanes[i] == ETHTOOL_STAT_NOT_SET) in fec_stats_recalc()
88 grp->stats[0] += stats->lanes[i]; in fec_stats_recalc()
89 grp->stats[grp->cnt++] = stats->lanes[i]; in fec_stats_recalc()
113 struct ethtool_fec_stats stats; in fec_prepare_data() local
115 ethtool_stats_init((u64 *)&stats, sizeof(stats) / 8); in fec_prepare_data()
[all …]
A Dmm.c16 struct ethtool_mm_stats stats; member
43 ethtool_stats_init((u64 *)&data->stats, in mm_prepare_data()
44 sizeof(data->stats) / sizeof(u64)); in mm_prepare_data()
55 ops->get_mm_stats(dev, &data->stats); in mm_prepare_data()
95 const struct ethtool_mm_stats *stats) in mm_put_stats() argument
103 if (mm_put_stat(skb, stats->MACMergeFrameAssErrorCount, in mm_put_stats()
107 mm_put_stat(skb, stats->MACMergeFrameAssOkCount, in mm_put_stats()
109 mm_put_stat(skb, stats->MACMergeFragCountRx, in mm_put_stats()
111 mm_put_stat(skb, stats->MACMergeFragCountTx, in mm_put_stats()
113 mm_put_stat(skb, stats->MACMergeHoldCount, in mm_put_stats()
[all …]
/net/core/
A Dnet-procfs.c51 dev->name, stats->rx_bytes, stats->rx_packets, in dev_seq_printf_stats()
52 stats->rx_errors, in dev_seq_printf_stats()
53 stats->rx_dropped + stats->rx_missed_errors, in dev_seq_printf_stats()
54 stats->rx_fifo_errors, in dev_seq_printf_stats()
55 stats->rx_length_errors + stats->rx_over_errors + in dev_seq_printf_stats()
56 stats->rx_crc_errors + stats->rx_frame_errors, in dev_seq_printf_stats()
57 stats->rx_compressed, stats->multicast, in dev_seq_printf_stats()
58 stats->tx_bytes, stats->tx_packets, in dev_seq_printf_stats()
59 stats->tx_errors, stats->tx_dropped, in dev_seq_printf_stats()
60 stats->tx_fifo_errors, stats->collisions, in dev_seq_printf_stats()
[all …]
A Dpage_pool_user.c118 struct page_pool_stats stats = {}; in page_pool_nl_stats_fill() local
122 if (!page_pool_get_stats(pool, &stats)) in page_pool_nl_stats_fill()
140 stats.alloc_stats.fast) || in page_pool_nl_stats_fill()
142 stats.alloc_stats.slow) || in page_pool_nl_stats_fill()
146 stats.alloc_stats.empty) || in page_pool_nl_stats_fill()
148 stats.alloc_stats.refill) || in page_pool_nl_stats_fill()
150 stats.alloc_stats.waive) || in page_pool_nl_stats_fill()
152 stats.recycle_stats.cached) || in page_pool_nl_stats_fill()
154 stats.recycle_stats.cache_full) || in page_pool_nl_stats_fill()
156 stats.recycle_stats.ring) || in page_pool_nl_stats_fill()
[all …]
/net/mpls/
A Dinternal.h19 struct mpls_link_stats stats; member
26 struct mpls_pcpu_stats __percpu *stats; member
36 TYPEOF_UNQUAL(*(mdev)->stats) *ptr = \
37 raw_cpu_ptr((mdev)->stats); \
40 ptr->stats.pkts_field++; \
41 ptr->stats.bytes_field += (len); \
49 raw_cpu_ptr((mdev)->stats); \
52 ptr->stats.field++; \
61 this_cpu_inc((mdev)->stats->stats.pkts_field); \
62 this_cpu_add((mdev)->stats->stats.bytes_field, (len)); \
[all …]
/net/tipc/
A Dnetlink_compat.c510 nla_get_u32(stats[TIPC_NLA_STATS_RX_INFO]), in __fill_bc_link_stat()
518 nla_get_u32(stats[TIPC_NLA_STATS_TX_INFO]), in __fill_bc_link_stat()
525 nla_get_u32(stats[TIPC_NLA_STATS_RX_NACKS]), in __fill_bc_link_stat()
530 nla_get_u32(stats[TIPC_NLA_STATS_TX_NACKS]), in __fill_bc_link_stat()
531 nla_get_u32(stats[TIPC_NLA_STATS_TX_ACKS]), in __fill_bc_link_stat()
547 struct nlattr *stats[TIPC_NLA_STATS_MAX + 1]; in tipc_nl_compat_link_stat_dump() local
594 __fill_bc_link_stat(msg, prop, stats); in tipc_nl_compat_link_stat_dump()
616 nla_get_u32(stats[TIPC_NLA_STATS_RX_INFO]), in tipc_nl_compat_link_stat_dump()
625 nla_get_u32(stats[TIPC_NLA_STATS_TX_INFO]), in tipc_nl_compat_link_stat_dump()
660 nla_get_u32(stats[TIPC_NLA_STATS_RX_NACKS]), in tipc_nl_compat_link_stat_dump()
[all …]
A Dlink.c212 struct tipc_stats stats; member
898 l->stats.link_congs++; in link_schedule_user()
1078 l->stats.sent_pkts++; in tipc_link_xmit()
1183 l->stats.sent_pkts++; in tipc_link_advance_backlog()
1708 l->stats.sent_acks++; in tipc_link_build_state_msg()
1813 l->stats.recv_pkts++; in tipc_link_rcv()
1911 l->stats.sent_nacks++; in tipc_link_build_proto_msg()
2553 memset(&l->stats, 0, sizeof(l->stats)); in tipc_link_reset_stats()
2609 struct nlattr *stats; in __tipc_nl_add_stats() local
2655 if (!stats) in __tipc_nl_add_stats()
[all …]
/net/netrom/
A Dnr_dev.c42 struct net_device_stats *stats = &dev->stats; in nr_rx_ip() local
45 stats->rx_dropped++; in nr_rx_ip()
49 stats->rx_packets++; in nr_rx_ip()
50 stats->rx_bytes += skb->len; in nr_rx_ip()
141 struct net_device_stats *stats = &dev->stats; in nr_xmit() local
146 stats->tx_errors++; in nr_xmit()
150 stats->tx_packets++; in nr_xmit()
151 stats->tx_bytes += len; in nr_xmit()
/net/kcm/
A Dkcmproc.c115 kcm->stats.rx_msgs, in kcm_format_sock()
116 kcm->stats.rx_bytes, in kcm_format_sock()
117 kcm->stats.tx_msgs, in kcm_format_sock()
118 kcm->stats.tx_bytes, in kcm_format_sock()
145 psock->strp.stats.msgs, in kcm_format_psock()
147 psock->stats.tx_msgs, in kcm_format_psock()
148 psock->stats.tx_bytes, in kcm_format_psock()
196 mux->stats.rx_msgs, in kcm_format_mux()
197 mux->stats.rx_bytes, in kcm_format_mux()
198 mux->stats.tx_msgs, in kcm_format_mux()
[all …]
/net/openvswitch/
A Dvport.c290 stats->rx_errors = dev_stats->rx_errors; in ovs_vport_get_stats()
291 stats->tx_errors = dev_stats->tx_errors; in ovs_vport_get_stats()
292 stats->tx_dropped = dev_stats->tx_dropped; in ovs_vport_get_stats()
293 stats->rx_dropped = dev_stats->rx_dropped; in ovs_vport_get_stats()
295 stats->rx_bytes = dev_stats->rx_bytes; in ovs_vport_get_stats()
296 stats->rx_packets = dev_stats->rx_packets; in ovs_vport_get_stats()
297 stats->tx_bytes = dev_stats->tx_bytes; in ovs_vport_get_stats()
298 stats->tx_packets = dev_stats->tx_packets; in ovs_vport_get_stats()
323 stats = per_cpu_ptr(vport->upcall_stats, i); in ovs_vport_get_upcall_stats()
327 tx_fail += u64_stats_read(&stats->n_fail); in ovs_vport_get_upcall_stats()
[all …]
A Dflow.c68 stats = rcu_dereference(flow->stats[cpu]); in ovs_flow_stats_update()
71 if (likely(stats)) { in ovs_flow_stats_update()
77 stats = rcu_dereference(flow->stats[0]); /* Pre-allocated. */ in ovs_flow_stats_update()
119 stats->used = jiffies; in ovs_flow_stats_update()
120 stats->packet_count++; in ovs_flow_stats_update()
141 struct sw_flow_stats *stats = rcu_dereference_ovsl(flow->stats[cpu]); in ovs_flow_stats_get() local
143 if (stats) { in ovs_flow_stats_get()
149 *used = stats->used; in ovs_flow_stats_get()
166 struct sw_flow_stats *stats = ovsl_dereference(flow->stats[cpu]); in ovs_flow_stats_clear() local
168 if (stats) { in ovs_flow_stats_clear()
[all …]
A Dflow_table.c75 struct sw_flow_stats *stats; in ovs_flow_alloc() local
88 if (!stats) in ovs_flow_alloc()
91 spin_lock_init(&stats->lock); in ovs_flow_alloc()
93 RCU_INIT_POINTER(flow->stats[0], stats); in ovs_flow_alloc()
120 if (flow->stats[cpu]) in flow_free()
203 struct mask_array_stats *stats; in tbl_mask_array_reset_counters() local
210 counter = stats->usage_cntrs[i]; in tbl_mask_array_reset_counters()
746 stats->usage_cntrs[*index]++; in flow_lookup()
767 stats->usage_cntrs[*index]++; in flow_lookup()
1131 struct mask_array_stats *stats; in ovs_flow_masks_rebalance() local
[all …]
/net/l2tp/
A Dl2tp_ppp.c1009 const struct l2tp_stats *stats) in pppol2tp_copy_stats() argument
1028 if (!stats->session_id) { in pppol2tp_tunnel_copy_stats()
1029 pppol2tp_copy_stats(stats, &tunnel->stats); in pppol2tp_tunnel_copy_stats()
1046 pppol2tp_copy_stats(stats, &session->stats); in pppol2tp_tunnel_copy_stats()
1055 struct pppol2tp_ioc_stats stats; in pppol2tp_ioctl() local
1107 sizeof(stats))) in pppol2tp_ioctl()
1110 session_id = stats.session_id; in pppol2tp_ioctl()
1116 stats.session_id = session_id; in pppol2tp_ioctl()
1118 pppol2tp_copy_stats(&stats, &session->stats); in pppol2tp_ioctl()
1119 stats.session_id = session->session_id; in pppol2tp_ioctl()
[all …]
A Dl2tp_debugfs.c168 atomic_long_read(&tunnel->stats.tx_packets), in l2tp_dfs_seq_tunnel_show()
169 atomic_long_read(&tunnel->stats.tx_bytes), in l2tp_dfs_seq_tunnel_show()
170 atomic_long_read(&tunnel->stats.tx_errors), in l2tp_dfs_seq_tunnel_show()
171 atomic_long_read(&tunnel->stats.rx_packets), in l2tp_dfs_seq_tunnel_show()
172 atomic_long_read(&tunnel->stats.rx_bytes), in l2tp_dfs_seq_tunnel_show()
173 atomic_long_read(&tunnel->stats.rx_errors)); in l2tp_dfs_seq_tunnel_show()
219 atomic_long_read(&session->stats.tx_packets), in l2tp_dfs_seq_session_show()
220 atomic_long_read(&session->stats.tx_bytes), in l2tp_dfs_seq_session_show()
221 atomic_long_read(&session->stats.tx_errors), in l2tp_dfs_seq_session_show()
222 atomic_long_read(&session->stats.rx_packets), in l2tp_dfs_seq_session_show()
[all …]
/net/sched/
A Dsch_codel.c31 struct codel_stats stats; member
65 &q->stats, qdisc_pkt_len, codel_get_enqueue_time, in codel_qdisc_dequeue()
68 if (q->stats.drop_count) { in codel_qdisc_dequeue()
69 qdisc_tree_reduce_backlog(sch, q->stats.drop_count, q->stats.drop_len); in codel_qdisc_dequeue()
70 q->stats.drop_count = 0; in codel_qdisc_dequeue()
71 q->stats.drop_len = 0; in codel_qdisc_dequeue()
168 codel_stats_init(&q->stats); in codel_init()
221 .maxpacket = q->stats.maxpacket, in codel_dump_stats()
227 .ecn_mark = q->stats.ecn_mark, in codel_dump_stats()
228 .ce_mark = q->stats.ce_mark, in codel_dump_stats()
A Dsch_gred.c44 struct red_stats stats; member
229 q->stats.prob_drop++; in gred_enqueue()
233 q->stats.prob_mark++; in gred_enqueue()
240 q->stats.forced_drop++; in gred_enqueue()
243 q->stats.forced_mark++; in gred_enqueue()
252 q->stats.pdrop++; in gred_enqueue()
373 hw_stats->stats.xstats[i] = &table->tab[i]->stats; in gred_offload_dump_stats()
883 q->stats.prob_drop)) in gred_dump()
886 q->stats.prob_mark)) in gred_dump()
889 q->stats.forced_drop)) in gred_dump()
[all …]
A Dsch_red.c47 struct red_stats stats; member
93 q->stats.prob_drop++; in red_enqueue()
98 q->stats.prob_mark++; in red_enqueue()
103 q->stats.prob_drop++; in red_enqueue()
114 q->stats.forced_drop++; in red_enqueue()
119 q->stats.forced_mark++; in red_enqueue()
124 q->stats.forced_drop++; in red_enqueue()
138 q->stats.pdrop++; in red_enqueue()
460 .xstats = &q->stats, in red_dump_stats()
466 st.early = q->stats.prob_drop + q->stats.forced_drop; in red_dump_stats()
[all …]
A Dsch_choke.c64 } stats; member
232 q->stats.matched++; in choke_enqueue()
244 q->stats.forced_drop++; in choke_enqueue()
248 q->stats.forced_mark++; in choke_enqueue()
256 q->stats.prob_drop++; in choke_enqueue()
260 q->stats.prob_mark++; in choke_enqueue()
275 q->stats.pdrop++; in choke_enqueue()
464 .early = q->stats.prob_drop + q->stats.forced_drop, in choke_dump_stats()
465 .marked = q->stats.prob_mark + q->stats.forced_mark, in choke_dump_stats()
466 .pdrop = q->stats.pdrop, in choke_dump_stats()
[all …]
/net/strparser/
A Dstrparser.c115 STRP_STATS_INCR(strp->stats.mem_fail); in __strp_recv()
120 STRP_STATS_INCR(strp->stats.mem_fail); in __strp_recv()
135 STRP_STATS_INCR(strp->stats.mem_fail); in __strp_recv()
154 STRP_STATS_INCR(strp->stats.mem_fail); in __strp_recv()
173 STRP_STATS_INCR(strp->stats.mem_fail); in __strp_recv()
196 STRP_STATS_INCR(strp->stats.mem_fail); in __strp_recv()
237 STRP_STATS_INCR(strp->stats.msg_too_big); in __strp_recv()
245 STRP_STATS_INCR(strp->stats.bad_hdr_len); in __strp_recv()
298 STRP_STATS_INCR(strp->stats.msgs); in __strp_recv()
312 STRP_STATS_ADD(strp->stats.bytes, eaten); in __strp_recv()
[all …]
/net/devlink/
A Dtrap.c48 struct devlink_stats __percpu *stats; member
161 memset(stats, 0, sizeof(*stats)); in devlink_trap_stats_read()
183 struct devlink_stats stats; in devlink_trap_group_stats_put() local
212 struct devlink_stats stats; in devlink_trap_stats_put() local
225 devlink_trap_stats_read(trap_item->stats, &stats); in devlink_trap_stats_put()
1279 if (!trap_item->stats) { in devlink_trap_register()
1303 free_percpu(trap_item->stats); in devlink_trap_register()
1322 free_percpu(trap_item->stats); in devlink_trap_unregister()
1451 struct devlink_stats *stats; in devlink_trap_stats_update() local
1553 if (!group_item->stats) { in devlink_trap_group_register()
[all …]
/net/bridge/
A Dbr_vlan.c194 v->stats = NULL; in br_master_vlan_rcu_free()
225 v->stats = NULL; in nbp_vlan_rcu_free()
310 v->stats = in __vlan_add()
312 if (!v->stats) { in __vlan_add()
318 v->stats = masterv->stats; in __vlan_add()
369 if (v->stats && masterv->stats != v->stats) in __vlan_add()
371 v->stats = NULL; in __vlan_add()
506 stats = this_cpu_ptr(v->stats); in br_handle_vlan()
625 stats = this_cpu_ptr(v->stats); in __allowed_ingress()
793 if (!vlan->stats) { in br_vlan_add()
[all …]
/net/8021q/
A Dvlanproc.c232 const struct rtnl_link_stats64 *stats; in vlandev_seq_show() local
239 stats = dev_get_stats(vlandev, &temp); in vlandev_seq_show()
245 seq_printf(seq, fmt64, "total frames received", stats->rx_packets); in vlandev_seq_show()
246 seq_printf(seq, fmt64, "total bytes received", stats->rx_bytes); in vlandev_seq_show()
247 seq_printf(seq, fmt64, "Broadcast/Multicast Rcvd", stats->multicast); in vlandev_seq_show()
249 seq_printf(seq, fmt64, "total frames transmitted", stats->tx_packets); in vlandev_seq_show()
250 seq_printf(seq, fmt64, "total bytes transmitted", stats->tx_bytes); in vlandev_seq_show()

Completed in 77 milliseconds

123456