/Linux-v5.4/mm/ |
D | percpu-internal.h | 124 extern struct percpu_stats pcpu_stats; 135 pcpu_stats.min_alloc_size = pcpu_stats_ai.unit_size; in pcpu_stats_save_ai() 150 pcpu_stats.nr_alloc++; in pcpu_stats_area_alloc() 151 pcpu_stats.nr_cur_alloc++; in pcpu_stats_area_alloc() 152 pcpu_stats.nr_max_alloc = in pcpu_stats_area_alloc() 153 max(pcpu_stats.nr_max_alloc, pcpu_stats.nr_cur_alloc); in pcpu_stats_area_alloc() 154 pcpu_stats.min_alloc_size = in pcpu_stats_area_alloc() 155 min(pcpu_stats.min_alloc_size, size); in pcpu_stats_area_alloc() 156 pcpu_stats.max_alloc_size = in pcpu_stats_area_alloc() 157 max(pcpu_stats.max_alloc_size, size); in pcpu_stats_area_alloc() [all …]
|
D | percpu-stats.c | 22 struct percpu_stats pcpu_stats; variable 178 seq_printf(m, " %-20s: %12llu\n", #X, (unsigned long long)pcpu_stats.X) in percpu_stats_show()
|
/Linux-v5.4/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 | 193 struct team_pcpu_stats __percpu *pcpu_stats; member
|
D | netdevice.h | 2397 typeof(type) __percpu *pcpu_stats = alloc_percpu_gfp(type, gfp);\ 2398 if (pcpu_stats) { \ 2402 stat = per_cpu_ptr(pcpu_stats, __cpu); \ 2406 pcpu_stats; \
|
/Linux-v5.4/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 | 738 struct team_pcpu_stats *pcpu_stats; in team_handle_frame() local 740 pcpu_stats = this_cpu_ptr(team->pcpu_stats); in team_handle_frame() 741 u64_stats_update_begin(&pcpu_stats->syncp); in team_handle_frame() 742 pcpu_stats->rx_packets++; in team_handle_frame() 743 pcpu_stats->rx_bytes += skb->len; in team_handle_frame() 745 pcpu_stats->rx_multicast++; in team_handle_frame() 746 u64_stats_update_end(&pcpu_stats->syncp); in team_handle_frame() 750 this_cpu_inc(team->pcpu_stats->rx_nohandler); in team_handle_frame() 752 this_cpu_inc(team->pcpu_stats->rx_dropped); in team_handle_frame() 1620 team->pcpu_stats = netdev_alloc_pcpu_stats(struct team_pcpu_stats); in team_init() [all …]
|
/Linux-v5.4/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 | 63 struct rmnet_pcpu_stats __percpu *pcpu_stats; member
|
D | rmnet_handlers.c | 233 this_cpu_inc(priv->pcpu_stats->stats.tx_drops); in rmnet_egress_handler()
|
/Linux-v5.4/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_trap.c | 63 struct mlxsw_sp_port_pcpu_stats *pcpu_stats; in mlxsw_sp_rx_listener() local 74 pcpu_stats = this_cpu_ptr(mlxsw_sp_port->pcpu_stats); in mlxsw_sp_rx_listener() 75 u64_stats_update_begin(&pcpu_stats->syncp); in mlxsw_sp_rx_listener() 76 pcpu_stats->rx_packets++; in mlxsw_sp_rx_listener() 77 pcpu_stats->rx_bytes += skb->len; in mlxsw_sp_rx_listener() 78 u64_stats_update_end(&pcpu_stats->syncp); in mlxsw_sp_rx_listener()
|
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 312 this_cpu_inc(mlxsw_sx_port->pcpu_stats->tx_dropped); in mlxsw_sx_port_xmit() 329 pcpu_stats = this_cpu_ptr(mlxsw_sx_port->pcpu_stats); in mlxsw_sx_port_xmit() 330 u64_stats_update_begin(&pcpu_stats->syncp); in mlxsw_sx_port_xmit() 331 pcpu_stats->tx_packets++; in mlxsw_sx_port_xmit() 332 pcpu_stats->tx_bytes += len; in mlxsw_sx_port_xmit() 333 u64_stats_update_end(&pcpu_stats->syncp); in mlxsw_sx_port_xmit() 335 this_cpu_inc(mlxsw_sx_port->pcpu_stats->tx_dropped); in mlxsw_sx_port_xmit() 365 p = per_cpu_ptr(mlxsw_sx_port->pcpu_stats, i); in mlxsw_sx_port_get_stats64() [all …]
|
D | spectrum.c | 807 struct mlxsw_sp_port_pcpu_stats *pcpu_stats; in mlxsw_sp_port_xmit() local 825 this_cpu_inc(mlxsw_sp_port->pcpu_stats->tx_dropped); in mlxsw_sp_port_xmit() 833 this_cpu_inc(mlxsw_sp_port->pcpu_stats->tx_dropped); in mlxsw_sp_port_xmit() 849 pcpu_stats = this_cpu_ptr(mlxsw_sp_port->pcpu_stats); in mlxsw_sp_port_xmit() 850 u64_stats_update_begin(&pcpu_stats->syncp); in mlxsw_sp_port_xmit() 851 pcpu_stats->tx_packets++; in mlxsw_sp_port_xmit() 852 pcpu_stats->tx_bytes += len; in mlxsw_sp_port_xmit() 853 u64_stats_update_end(&pcpu_stats->syncp); in mlxsw_sp_port_xmit() 855 this_cpu_inc(mlxsw_sp_port->pcpu_stats->tx_dropped); in mlxsw_sp_port_xmit() 1031 p = per_cpu_ptr(mlxsw_sp_port->pcpu_stats, i); in mlxsw_sp_port_get_sw_stats64() [all …]
|
D | spectrum.h | 240 struct mlxsw_sp_port_pcpu_stats __percpu *pcpu_stats; member
|
/Linux-v5.4/drivers/net/ |
D | macvlan.c | 561 struct vlan_pcpu_stats *pcpu_stats; in macvlan_start_xmit() local 563 pcpu_stats = this_cpu_ptr(vlan->pcpu_stats); in macvlan_start_xmit() 564 u64_stats_update_begin(&pcpu_stats->syncp); in macvlan_start_xmit() 565 pcpu_stats->tx_packets++; in macvlan_start_xmit() 566 pcpu_stats->tx_bytes += len; in macvlan_start_xmit() 567 u64_stats_update_end(&pcpu_stats->syncp); in macvlan_start_xmit() 569 this_cpu_inc(vlan->pcpu_stats->tx_dropped); in macvlan_start_xmit() 888 vlan->pcpu_stats = netdev_alloc_pcpu_stats(struct vlan_pcpu_stats); in macvlan_init() 889 if (!vlan->pcpu_stats) in macvlan_init() 902 free_percpu(vlan->pcpu_stats); in macvlan_uninit() [all …]
|
D | tun.c | 240 struct tun_pcpu_stats __percpu *pcpu_stats; member 1121 this_cpu_inc(tun->pcpu_stats->tx_dropped); in tun_net_xmit() 1167 p = per_cpu_ptr(tun->pcpu_stats, i); in tun_net_get_stats64() 1317 this_cpu_inc(tun->pcpu_stats->tx_dropped); in tun_xdp_xmit() 1648 this_cpu_inc(tun->pcpu_stats->rx_dropped); in tun_xdp_act() 1820 this_cpu_inc(tun->pcpu_stats->rx_dropped); in tun_get_user() 1849 this_cpu_inc(tun->pcpu_stats->rx_dropped); in tun_get_user() 1863 this_cpu_inc(tun->pcpu_stats->rx_dropped); in tun_get_user() 1875 this_cpu_inc(tun->pcpu_stats->rx_frame_errors); in tun_get_user() 1898 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.4/drivers/net/ipvlan/ |
D | ipvlan_main.c | 134 ipvlan->pcpu_stats = netdev_alloc_pcpu_stats(struct ipvl_pcpu_stats); in ipvlan_init() 135 if (!ipvlan->pcpu_stats) in ipvlan_init() 141 free_percpu(ipvlan->pcpu_stats); in ipvlan_init() 156 free_percpu(ipvlan->pcpu_stats); in ipvlan_uninit() 214 pcptr = this_cpu_ptr(ipvlan->pcpu_stats); in ipvlan_start_xmit() 221 this_cpu_inc(ipvlan->pcpu_stats->tx_drps); in ipvlan_start_xmit() 275 if (ipvlan->pcpu_stats) { in ipvlan_get_stats64() 283 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.4/drivers/net/hyperv/ |
D | netvsc_drv.c | 508 struct netvsc_vf_pcpu_stats *pcpu_stats in netvsc_vf_xmit() local 511 u64_stats_update_begin(&pcpu_stats->syncp); in netvsc_vf_xmit() 512 pcpu_stats->tx_packets++; in netvsc_vf_xmit() 513 pcpu_stats->tx_bytes += len; in netvsc_vf_xmit() 514 u64_stats_update_end(&pcpu_stats->syncp); in netvsc_vf_xmit() 1347 }, pcpu_stats[] = { variable 1376 #define NETVSC_PCPU_STATS_LEN (num_present_cpus() * ARRAY_SIZE(pcpu_stats)) 1451 for (j = 0; j < ARRAY_SIZE(pcpu_stats); j++) in netvsc_get_ethtool_stats() 1453 + pcpu_stats[j].offset); in netvsc_get_ethtool_stats() 1492 for (i = 0; i < ARRAY_SIZE(pcpu_stats); i++) { in netvsc_get_strings() [all …]
|