/linux/mm/ |
A D | percpu-internal.h | 157 pcpu_stats.nr_alloc++; in pcpu_stats_area_alloc() 158 pcpu_stats.nr_cur_alloc++; in pcpu_stats_area_alloc() 159 pcpu_stats.nr_max_alloc = in pcpu_stats_area_alloc() 160 max(pcpu_stats.nr_max_alloc, pcpu_stats.nr_cur_alloc); in pcpu_stats_area_alloc() 161 pcpu_stats.min_alloc_size = in pcpu_stats_area_alloc() 181 pcpu_stats.nr_dealloc++; in pcpu_stats_area_dealloc() 182 pcpu_stats.nr_cur_alloc--; in pcpu_stats_area_dealloc() 195 pcpu_stats.nr_chunks++; in pcpu_stats_chunk_alloc() 196 pcpu_stats.nr_max_chunks = in pcpu_stats_chunk_alloc() 197 max(pcpu_stats.nr_max_chunks, pcpu_stats.nr_chunks); in pcpu_stats_chunk_alloc() [all …]
|
A 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/include/linux/ |
A D | if_macvlan.h | 25 struct vlan_pcpu_stats __percpu *pcpu_stats; member 44 struct vlan_pcpu_stats *pcpu_stats; in macvlan_count_rx() local 46 pcpu_stats = get_cpu_ptr(vlan->pcpu_stats); in macvlan_count_rx() 47 u64_stats_update_begin(&pcpu_stats->syncp); in macvlan_count_rx() 48 pcpu_stats->rx_packets++; in macvlan_count_rx() 49 pcpu_stats->rx_bytes += len; in macvlan_count_rx() 51 pcpu_stats->rx_multicast++; in macvlan_count_rx() 52 u64_stats_update_end(&pcpu_stats->syncp); in macvlan_count_rx() 53 put_cpu_ptr(vlan->pcpu_stats); in macvlan_count_rx() 55 this_cpu_inc(vlan->pcpu_stats->rx_errors); in macvlan_count_rx()
|
A D | if_team.h | 190 struct team_pcpu_stats __percpu *pcpu_stats; member
|
A D | netdevice.h | 2709 typeof(type) __percpu *pcpu_stats = alloc_percpu_gfp(type, gfp);\ 2710 if (pcpu_stats) { \ 2714 stat = per_cpu_ptr(pcpu_stats, __cpu); \ 2718 pcpu_stats; \ 2726 typeof(type) __percpu *pcpu_stats = devm_alloc_percpu(dev, type);\ 2727 if (pcpu_stats) { \ 2731 stat = per_cpu_ptr(pcpu_stats, __cpu); \ 2735 pcpu_stats; \
|
/linux/drivers/infiniband/ulp/rtrs/ |
A D | rtrs-clt-stats.c | 22 s = get_cpu_ptr(stats->pcpu_stats); in rtrs_clt_update_wc_stats() 30 put_cpu_ptr(stats->pcpu_stats); in rtrs_clt_update_wc_stats() 37 s = get_cpu_ptr(stats->pcpu_stats); in rtrs_clt_inc_failover_cnt() 39 put_cpu_ptr(stats->pcpu_stats); in rtrs_clt_inc_failover_cnt() 51 s = per_cpu_ptr(stats->pcpu_stats, cpu); in rtrs_clt_stats_migration_from_cnt_to_str() 70 s = per_cpu_ptr(stats->pcpu_stats, cpu); in rtrs_clt_stats_migration_to_cnt_to_str() 123 s = per_cpu_ptr(stats->pcpu_stats, cpu); in rtrs_clt_reset_rdma_stats() 174 s = get_cpu_ptr(stats->pcpu_stats); in rtrs_clt_update_rdma_stats() 177 put_cpu_ptr(stats->pcpu_stats); in rtrs_clt_update_rdma_stats() 195 stats->pcpu_stats = alloc_percpu(typeof(*stats->pcpu_stats)); in rtrs_clt_init_stats() [all …]
|
A D | rtrs-clt.h | 66 struct rtrs_clt_stats_pcpu __percpu *pcpu_stats; member
|
A D | rtrs-clt-sysfs.c | 39 free_percpu(stats->pcpu_stats); in rtrs_clt_sess_stats_release()
|
A D | rtrs-clt.c | 2822 free_percpu(sess->stats->pcpu_stats); in rtrs_clt_open() 2832 free_percpu(sess->stats->pcpu_stats); in rtrs_clt_open() 3122 free_percpu(sess->stats->pcpu_stats); in rtrs_clt_create_path_from_sysfs()
|
/linux/drivers/net/team/ |
A D | team_mode_loadbalance.c | 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() 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() 506 &pcpu_stats->syncp); in lb_stats_refresh() 517 pcpu_stats = per_cpu_ptr(lb_priv->pcpu_stats, i); in lb_stats_refresh() 520 &pcpu_stats->syncp); in lb_stats_refresh() 620 if (!lb_priv->pcpu_stats) { in lb_init() 640 free_percpu(lb_priv->pcpu_stats); in lb_init() [all …]
|
A D | team.c | 743 struct team_pcpu_stats *pcpu_stats; in team_handle_frame() local 745 pcpu_stats = this_cpu_ptr(team->pcpu_stats); in team_handle_frame() 747 pcpu_stats->rx_packets++; in team_handle_frame() 748 pcpu_stats->rx_bytes += skb->len; in team_handle_frame() 750 pcpu_stats->rx_multicast++; in team_handle_frame() 1625 if (!team->pcpu_stats) in team_init() 1659 free_percpu(team->pcpu_stats); in team_init() 1688 free_percpu(team->pcpu_stats); in team_destructor() 1716 pcpu_stats = this_cpu_ptr(team->pcpu_stats); in team_xmit() 1718 pcpu_stats->tx_packets++; in team_xmit() [all …]
|
/linux/drivers/net/ethernet/qualcomm/rmnet/ |
A D | rmnet_vnd.c | 24 pcpu_ptr = this_cpu_ptr(priv->pcpu_stats); in rmnet_vnd_rx_fixup() 37 pcpu_ptr = this_cpu_ptr(priv->pcpu_stats); in rmnet_vnd_tx_fixup() 56 this_cpu_inc(priv->pcpu_stats->stats.tx_drops); in rmnet_vnd_start_xmit() 104 priv->pcpu_stats = alloc_percpu(struct rmnet_pcpu_stats); in rmnet_vnd_init() 105 if (!priv->pcpu_stats) in rmnet_vnd_init() 110 free_percpu(priv->pcpu_stats); in rmnet_vnd_init() 122 free_percpu(priv->pcpu_stats); in rmnet_vnd_uninit() 135 pcpu_ptr = per_cpu_ptr(priv->pcpu_stats, cpu); in rmnet_get_stats64()
|
A D | rmnet_config.h | 67 struct rmnet_pcpu_stats __percpu *pcpu_stats; member
|
A D | rmnet_handlers.c | 259 this_cpu_inc(priv->pcpu_stats->stats.tx_drops); in rmnet_egress_handler()
|
/linux/drivers/net/ |
A D | macvlan.c | 570 struct vlan_pcpu_stats *pcpu_stats; in macvlan_start_xmit() local 572 pcpu_stats = this_cpu_ptr(vlan->pcpu_stats); in macvlan_start_xmit() 573 u64_stats_update_begin(&pcpu_stats->syncp); in macvlan_start_xmit() 574 pcpu_stats->tx_packets++; in macvlan_start_xmit() 575 pcpu_stats->tx_bytes += len; in macvlan_start_xmit() 576 u64_stats_update_end(&pcpu_stats->syncp); in macvlan_start_xmit() 578 this_cpu_inc(vlan->pcpu_stats->tx_dropped); in macvlan_start_xmit() 909 if (!vlan->pcpu_stats) in macvlan_init() 922 free_percpu(vlan->pcpu_stats); in macvlan_uninit() 935 if (vlan->pcpu_stats) { in macvlan_dev_get_stats64() [all …]
|
A D | macvtap.c | 60 this_cpu_inc(vlan->pcpu_stats->tx_dropped); in macvtap_count_tx_dropped()
|
/linux/drivers/net/ipvlan/ |
A D | ipvlan_main.c | 149 ipvlan->pcpu_stats = netdev_alloc_pcpu_stats(struct ipvl_pcpu_stats); in ipvlan_init() 150 if (!ipvlan->pcpu_stats) in ipvlan_init() 156 free_percpu(ipvlan->pcpu_stats); in ipvlan_init() 171 free_percpu(ipvlan->pcpu_stats); in ipvlan_uninit() 226 pcptr = this_cpu_ptr(ipvlan->pcpu_stats); in ipvlan_start_xmit() 233 this_cpu_inc(ipvlan->pcpu_stats->tx_drps); in ipvlan_start_xmit() 294 if (ipvlan->pcpu_stats) { in ipvlan_get_stats64() 302 pcptr = per_cpu_ptr(ipvlan->pcpu_stats, idx); in ipvlan_get_stats64()
|
A D | ipvlan.h | 68 struct ipvl_pcpu_stats __percpu *pcpu_stats; member
|
A D | ipvtap.c | 56 this_cpu_inc(vlan->pcpu_stats->tx_drps); in ipvtap_count_tx_dropped()
|
A 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/drivers/net/hyperv/ |
A D | netvsc_drv.c | 507 struct netvsc_vf_pcpu_stats *pcpu_stats in netvsc_vf_xmit() local 510 u64_stats_update_begin(&pcpu_stats->syncp); in netvsc_vf_xmit() 511 pcpu_stats->tx_packets++; in netvsc_vf_xmit() 512 pcpu_stats->tx_bytes += len; in netvsc_vf_xmit() 513 u64_stats_update_end(&pcpu_stats->syncp); in netvsc_vf_xmit() 1487 }, pcpu_stats[] = { variable 1596 + pcpu_stats[j].offset); in netvsc_get_ethtool_stats() 2185 struct netvsc_vf_pcpu_stats *pcpu_stats in netvsc_vf_handle_frame() local 2197 pcpu_stats->rx_packets++; in netvsc_vf_handle_frame() 2198 pcpu_stats->rx_bytes += skb->len; in netvsc_vf_handle_frame() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlxsw/ |
A D | spectrum.c | 649 pcpu_stats = this_cpu_ptr(mlxsw_sp_port->pcpu_stats); in mlxsw_sp_port_xmit() 651 pcpu_stats->tx_packets++; in mlxsw_sp_port_xmit() 652 pcpu_stats->tx_bytes += len; in mlxsw_sp_port_xmit() 653 u64_stats_update_end(&pcpu_stats->syncp); in mlxsw_sp_port_xmit() 1557 mlxsw_sp_port->pcpu_stats = in mlxsw_sp_port_create() 1559 if (!mlxsw_sp_port->pcpu_stats) { in mlxsw_sp_port_create() 1770 free_percpu(mlxsw_sp_port->pcpu_stats); in mlxsw_sp_port_create() 1803 free_percpu(mlxsw_sp_port->pcpu_stats); in mlxsw_sp_port_remove() 2229 pcpu_stats = this_cpu_ptr(mlxsw_sp_port->pcpu_stats); in mlxsw_sp_rx_listener_no_mark_func() 2231 pcpu_stats->rx_packets++; in mlxsw_sp_rx_listener_no_mark_func() [all …]
|
A D | spectrum_trap.c | 66 struct mlxsw_sp_port_pcpu_stats *pcpu_stats; in mlxsw_sp_rx_listener() local 77 pcpu_stats = this_cpu_ptr(mlxsw_sp_port->pcpu_stats); in mlxsw_sp_rx_listener() 78 u64_stats_update_begin(&pcpu_stats->syncp); in mlxsw_sp_rx_listener() 79 pcpu_stats->rx_packets++; in mlxsw_sp_rx_listener() 80 pcpu_stats->rx_bytes += skb->len; in mlxsw_sp_rx_listener() 81 u64_stats_update_end(&pcpu_stats->syncp); in mlxsw_sp_rx_listener()
|
A D | spectrum.h | 309 struct mlxsw_sp_port_pcpu_stats __percpu *pcpu_stats; member
|