/Linux-v5.10/mm/ |
D | percpu-internal.h | 177 extern struct percpu_stats pcpu_stats; 188 pcpu_stats.min_alloc_size = pcpu_stats_ai.unit_size; in pcpu_stats_save_ai() 203 pcpu_stats.nr_alloc++; in pcpu_stats_area_alloc() 204 pcpu_stats.nr_cur_alloc++; in pcpu_stats_area_alloc() 205 pcpu_stats.nr_max_alloc = in pcpu_stats_area_alloc() 206 max(pcpu_stats.nr_max_alloc, pcpu_stats.nr_cur_alloc); in pcpu_stats_area_alloc() 207 pcpu_stats.min_alloc_size = in pcpu_stats_area_alloc() 208 min(pcpu_stats.min_alloc_size, size); in pcpu_stats_area_alloc() 209 pcpu_stats.max_alloc_size = in pcpu_stats_area_alloc() 210 max(pcpu_stats.max_alloc_size, size); in pcpu_stats_area_alloc() [all …]
|
D | percpu-stats.c | 22 struct percpu_stats pcpu_stats; variable 186 seq_printf(m, " %-20s: %12llu\n", #X, (unsigned long long)pcpu_stats.X) in percpu_stats_show()
|
/Linux-v5.10/include/linux/ |
D | if_macvlan.h | 25 struct vlan_pcpu_stats __percpu *pcpu_stats; member 43 struct vlan_pcpu_stats *pcpu_stats; in macvlan_count_rx() local 45 pcpu_stats = this_cpu_ptr(vlan->pcpu_stats); in macvlan_count_rx() 46 u64_stats_update_begin(&pcpu_stats->syncp); in macvlan_count_rx() 47 pcpu_stats->rx_packets++; in macvlan_count_rx() 48 pcpu_stats->rx_bytes += len; in macvlan_count_rx() 50 pcpu_stats->rx_multicast++; in macvlan_count_rx() 51 u64_stats_update_end(&pcpu_stats->syncp); in macvlan_count_rx() 53 this_cpu_inc(vlan->pcpu_stats->rx_errors); in macvlan_count_rx()
|
D | if_team.h | 190 struct team_pcpu_stats __percpu *pcpu_stats; member
|
D | netdevice.h | 2572 typeof(type) __percpu *pcpu_stats = alloc_percpu_gfp(type, gfp);\ 2573 if (pcpu_stats) { \ 2577 stat = per_cpu_ptr(pcpu_stats, __cpu); \ 2581 pcpu_stats; \
|
/Linux-v5.10/drivers/infiniband/ulp/rtrs/ |
D | rtrs-clt-stats.c | 22 s = this_cpu_ptr(stats->pcpu_stats); in rtrs_clt_update_wc_stats() 27 s = per_cpu_ptr(stats->pcpu_stats, con->cpu); in rtrs_clt_update_wc_stats() 36 s = this_cpu_ptr(stats->pcpu_stats); in rtrs_clt_inc_failover_cnt() 54 s = per_cpu_ptr(stats->pcpu_stats, cpu); in rtrs_clt_stats_migration_cnt_to_str() 61 s = per_cpu_ptr(stats->pcpu_stats, cpu); in rtrs_clt_stats_migration_cnt_to_str() 88 r = &per_cpu_ptr(stats->pcpu_stats, cpu)->rdma; in rtrs_clt_stats_rdma_to_str() 118 s = per_cpu_ptr(stats->pcpu_stats, cpu); in rtrs_clt_reset_rdma_stats() 134 s = per_cpu_ptr(stats->pcpu_stats, cpu); in rtrs_clt_reset_cpu_migr_stats() 169 s = this_cpu_ptr(stats->pcpu_stats); in rtrs_clt_update_rdma_stats() 189 stats->pcpu_stats = alloc_percpu(typeof(*stats->pcpu_stats)); in rtrs_clt_init_stats() [all …]
|
D | rtrs-clt.h | 65 struct rtrs_clt_stats_pcpu __percpu *pcpu_stats; member
|
D | rtrs-clt-sysfs.c | 39 free_percpu(stats->pcpu_stats); in rtrs_clt_sess_stats_release()
|
/Linux-v5.10/drivers/net/team/ |
D | team_mode_loadbalance.c | 73 struct lb_pcpu_stats __percpu *pcpu_stats; member 83 struct lb_stats __percpu *pcpu_stats; member 209 struct lb_pcpu_stats *pcpu_stats; in lb_update_tx_stats() local 213 pcpu_stats = this_cpu_ptr(lb_priv->pcpu_stats); in lb_update_tx_stats() 214 port_stats = this_cpu_ptr(lb_port_priv->pcpu_stats); in lb_update_tx_stats() 215 hash_stats = &pcpu_stats->hash_stats[hash]; in lb_update_tx_stats() 216 u64_stats_update_begin(&pcpu_stats->syncp); in lb_update_tx_stats() 219 u64_stats_update_end(&pcpu_stats->syncp); in lb_update_tx_stats() 480 struct lb_pcpu_stats *pcpu_stats; in lb_stats_refresh() local 503 pcpu_stats = per_cpu_ptr(lb_priv->pcpu_stats, i); in lb_stats_refresh() [all …]
|
D | team.c | 742 struct team_pcpu_stats *pcpu_stats; in team_handle_frame() local 744 pcpu_stats = this_cpu_ptr(team->pcpu_stats); in team_handle_frame() 745 u64_stats_update_begin(&pcpu_stats->syncp); in team_handle_frame() 746 pcpu_stats->rx_packets++; in team_handle_frame() 747 pcpu_stats->rx_bytes += skb->len; in team_handle_frame() 749 pcpu_stats->rx_multicast++; in team_handle_frame() 750 u64_stats_update_end(&pcpu_stats->syncp); in team_handle_frame() 754 this_cpu_inc(team->pcpu_stats->rx_nohandler); in team_handle_frame() 756 this_cpu_inc(team->pcpu_stats->rx_dropped); in team_handle_frame() 1624 team->pcpu_stats = netdev_alloc_pcpu_stats(struct team_pcpu_stats); in team_init() [all …]
|
/Linux-v5.10/drivers/net/ethernet/qualcomm/rmnet/ |
D | rmnet_vnd.c | 23 pcpu_ptr = this_cpu_ptr(priv->pcpu_stats); in rmnet_vnd_rx_fixup() 36 pcpu_ptr = this_cpu_ptr(priv->pcpu_stats); in rmnet_vnd_tx_fixup() 55 this_cpu_inc(priv->pcpu_stats->stats.tx_drops); in rmnet_vnd_start_xmit() 82 priv->pcpu_stats = alloc_percpu(struct rmnet_pcpu_stats); in rmnet_vnd_init() 83 if (!priv->pcpu_stats) in rmnet_vnd_init() 88 free_percpu(priv->pcpu_stats); in rmnet_vnd_init() 100 free_percpu(priv->pcpu_stats); in rmnet_vnd_uninit() 114 pcpu_ptr = per_cpu_ptr(priv->pcpu_stats, cpu); in rmnet_get_stats64()
|
D | rmnet_config.h | 64 struct rmnet_pcpu_stats __percpu *pcpu_stats; member
|
D | rmnet_handlers.c | 241 this_cpu_inc(priv->pcpu_stats->stats.tx_drops); in rmnet_egress_handler()
|
/Linux-v5.10/drivers/net/ethernet/mellanox/mlxsw/ |
D | switchx2.c | 46 struct mlxsw_sx_port_pcpu_stats __percpu *pcpu_stats; member 294 struct mlxsw_sx_port_pcpu_stats *pcpu_stats; in mlxsw_sx_port_xmit() local 303 this_cpu_inc(mlxsw_sx_port->pcpu_stats->tx_dropped); in mlxsw_sx_port_xmit() 324 pcpu_stats = this_cpu_ptr(mlxsw_sx_port->pcpu_stats); in mlxsw_sx_port_xmit() 325 u64_stats_update_begin(&pcpu_stats->syncp); in mlxsw_sx_port_xmit() 326 pcpu_stats->tx_packets++; in mlxsw_sx_port_xmit() 327 pcpu_stats->tx_bytes += len; in mlxsw_sx_port_xmit() 328 u64_stats_update_end(&pcpu_stats->syncp); in mlxsw_sx_port_xmit() 330 this_cpu_inc(mlxsw_sx_port->pcpu_stats->tx_dropped); in mlxsw_sx_port_xmit() 360 p = per_cpu_ptr(mlxsw_sx_port->pcpu_stats, i); in mlxsw_sx_port_get_stats64() [all …]
|
D | spectrum.c | 545 struct mlxsw_sp_port_pcpu_stats *pcpu_stats; in mlxsw_sp_port_xmit() local 554 this_cpu_inc(mlxsw_sp_port->pcpu_stats->tx_dropped); in mlxsw_sp_port_xmit() 565 this_cpu_inc(mlxsw_sp_port->pcpu_stats->tx_dropped); in mlxsw_sp_port_xmit() 581 pcpu_stats = this_cpu_ptr(mlxsw_sp_port->pcpu_stats); in mlxsw_sp_port_xmit() 582 u64_stats_update_begin(&pcpu_stats->syncp); in mlxsw_sp_port_xmit() 583 pcpu_stats->tx_packets++; in mlxsw_sp_port_xmit() 584 pcpu_stats->tx_bytes += len; in mlxsw_sp_port_xmit() 585 u64_stats_update_end(&pcpu_stats->syncp); in mlxsw_sp_port_xmit() 587 this_cpu_inc(mlxsw_sp_port->pcpu_stats->tx_dropped); in mlxsw_sp_port_xmit() 655 p = per_cpu_ptr(mlxsw_sp_port->pcpu_stats, i); in mlxsw_sp_port_get_sw_stats64() [all …]
|
D | spectrum_trap.c | 60 struct mlxsw_sp_port_pcpu_stats *pcpu_stats; in mlxsw_sp_rx_listener() local 71 pcpu_stats = this_cpu_ptr(mlxsw_sp_port->pcpu_stats); in mlxsw_sp_rx_listener() 72 u64_stats_update_begin(&pcpu_stats->syncp); in mlxsw_sp_rx_listener() 73 pcpu_stats->rx_packets++; in mlxsw_sp_rx_listener() 74 pcpu_stats->rx_bytes += skb->len; in mlxsw_sp_rx_listener() 75 u64_stats_update_end(&pcpu_stats->syncp); in mlxsw_sp_rx_listener()
|
D | spectrum.h | 275 struct mlxsw_sp_port_pcpu_stats __percpu *pcpu_stats; member
|
/Linux-v5.10/drivers/net/ |
D | macvlan.c | 569 struct vlan_pcpu_stats *pcpu_stats; in macvlan_start_xmit() local 571 pcpu_stats = this_cpu_ptr(vlan->pcpu_stats); in macvlan_start_xmit() 572 u64_stats_update_begin(&pcpu_stats->syncp); in macvlan_start_xmit() 573 pcpu_stats->tx_packets++; in macvlan_start_xmit() 574 pcpu_stats->tx_bytes += len; in macvlan_start_xmit() 575 u64_stats_update_end(&pcpu_stats->syncp); in macvlan_start_xmit() 577 this_cpu_inc(vlan->pcpu_stats->tx_dropped); in macvlan_start_xmit() 906 vlan->pcpu_stats = netdev_alloc_pcpu_stats(struct vlan_pcpu_stats); in macvlan_init() 907 if (!vlan->pcpu_stats) in macvlan_init() 920 free_percpu(vlan->pcpu_stats); in macvlan_uninit() [all …]
|
D | tun.c | 210 struct tun_pcpu_stats __percpu *pcpu_stats; member 1069 this_cpu_inc(tun->pcpu_stats->tx_dropped); in tun_net_xmit() 1115 p = per_cpu_ptr(tun->pcpu_stats, i); in tun_net_get_stats64() 1250 this_cpu_inc(tun->pcpu_stats->tx_dropped); in tun_xdp_xmit() 1580 this_cpu_inc(tun->pcpu_stats->rx_dropped); in tun_xdp_act() 1755 this_cpu_inc(tun->pcpu_stats->rx_dropped); in tun_get_user() 1784 this_cpu_inc(tun->pcpu_stats->rx_dropped); in tun_get_user() 1798 this_cpu_inc(tun->pcpu_stats->rx_dropped); in tun_get_user() 1810 this_cpu_inc(tun->pcpu_stats->rx_frame_errors); in tun_get_user() 1833 this_cpu_inc(tun->pcpu_stats->rx_dropped); in tun_get_user() [all …]
|
D | macvtap.c | 60 this_cpu_inc(vlan->pcpu_stats->tx_dropped); in macvtap_count_tx_dropped()
|
/Linux-v5.10/drivers/net/ipvlan/ |
D | ipvlan_main.c | 147 ipvlan->pcpu_stats = netdev_alloc_pcpu_stats(struct ipvl_pcpu_stats); in ipvlan_init() 148 if (!ipvlan->pcpu_stats) in ipvlan_init() 154 free_percpu(ipvlan->pcpu_stats); in ipvlan_init() 169 free_percpu(ipvlan->pcpu_stats); in ipvlan_uninit() 224 pcptr = this_cpu_ptr(ipvlan->pcpu_stats); in ipvlan_start_xmit() 231 this_cpu_inc(ipvlan->pcpu_stats->tx_drps); in ipvlan_start_xmit() 292 if (ipvlan->pcpu_stats) { in ipvlan_get_stats64() 300 pcptr = per_cpu_ptr(ipvlan->pcpu_stats, idx); in ipvlan_get_stats64()
|
D | ipvlan.h | 68 struct ipvl_pcpu_stats __percpu *pcpu_stats; member
|
D | ipvtap.c | 56 this_cpu_inc(vlan->pcpu_stats->tx_drps); in ipvtap_count_tx_dropped()
|
D | ipvlan_core.c | 20 pcptr = this_cpu_ptr(ipvlan->pcpu_stats); in ipvlan_count_rx() 28 this_cpu_inc(ipvlan->pcpu_stats->rx_errs); in ipvlan_count_rx()
|
/Linux-v5.10/drivers/net/hyperv/ |
D | netvsc_drv.c | 509 struct netvsc_vf_pcpu_stats *pcpu_stats in netvsc_vf_xmit() local 512 u64_stats_update_begin(&pcpu_stats->syncp); in netvsc_vf_xmit() 513 pcpu_stats->tx_packets++; in netvsc_vf_xmit() 514 pcpu_stats->tx_bytes += len; in netvsc_vf_xmit() 515 u64_stats_update_end(&pcpu_stats->syncp); in netvsc_vf_xmit() 1462 }, pcpu_stats[] = { variable 1491 #define NETVSC_PCPU_STATS_LEN (num_present_cpus() * ARRAY_SIZE(pcpu_stats)) 1569 for (j = 0; j < ARRAY_SIZE(pcpu_stats); j++) in netvsc_get_ethtool_stats() 1571 + pcpu_stats[j].offset); in netvsc_get_ethtool_stats() 1612 for (i = 0; i < ARRAY_SIZE(pcpu_stats); i++) { in netvsc_get_strings() [all …]
|