Searched refs:cpu_stats (Results 1 – 11 of 11) sorted by relevance
/linux-6.3-rc2/net/netfilter/ |
A D | nft_counter.c | 62 struct nft_counter __percpu *cpu_stats; in nft_counter_do_init() local 65 cpu_stats = alloc_percpu_gfp(struct nft_counter, GFP_KERNEL_ACCOUNT); in nft_counter_do_init() 66 if (cpu_stats == NULL) in nft_counter_do_init() 70 this_cpu = this_cpu_ptr(cpu_stats); in nft_counter_do_init() 80 priv->counter = cpu_stats; in nft_counter_do_init() 233 struct nft_counter __percpu *cpu_stats; in nft_counter_clone() local 239 cpu_stats = alloc_percpu_gfp(struct nft_counter, GFP_ATOMIC); in nft_counter_clone() 240 if (cpu_stats == NULL) in nft_counter_clone() 244 this_cpu = this_cpu_ptr(cpu_stats); in nft_counter_clone() 249 priv_clone->counter = cpu_stats; in nft_counter_clone()
|
A D | nf_tables_api.c | 1540 struct nft_stats *cpu_stats, total; in nft_dump_stats() local 1551 cpu_stats = per_cpu_ptr(stats, cpu); in nft_dump_stats() 1553 seq = u64_stats_fetch_begin(&cpu_stats->syncp); in nft_dump_stats() 1554 pkts = cpu_stats->pkts; in nft_dump_stats() 1555 bytes = cpu_stats->bytes; in nft_dump_stats() 1556 } while (u64_stats_fetch_retry(&cpu_stats->syncp, seq)); in nft_dump_stats()
|
/linux-6.3-rc2/net/core/ |
A D | drop_monitor.c | 1430 struct net_dm_stats *cpu_stats = &data->stats; in net_dm_stats_read() local 1435 start = u64_stats_fetch_begin(&cpu_stats->syncp); in net_dm_stats_read() 1436 dropped = u64_stats_read(&cpu_stats->dropped); in net_dm_stats_read() 1437 } while (u64_stats_fetch_retry(&cpu_stats->syncp, start)); in net_dm_stats_read() 1474 struct net_dm_stats *cpu_stats = &hw_data->stats; in net_dm_hw_stats_read() local 1479 start = u64_stats_fetch_begin(&cpu_stats->syncp); in net_dm_hw_stats_read() 1480 dropped = u64_stats_read(&cpu_stats->dropped); in net_dm_hw_stats_read() 1481 } while (u64_stats_fetch_retry(&cpu_stats->syncp, start)); in net_dm_hw_stats_read()
|
/linux-6.3-rc2/net/bridge/ |
A D | br_vlan.c | 1387 struct pcpu_sw_netstats *cpu_stats; in br_vlan_get_stats() local 1390 cpu_stats = per_cpu_ptr(v->stats, i); in br_vlan_get_stats() 1392 start = u64_stats_fetch_begin(&cpu_stats->syncp); in br_vlan_get_stats() 1393 rxpackets = u64_stats_read(&cpu_stats->rx_packets); in br_vlan_get_stats() 1394 rxbytes = u64_stats_read(&cpu_stats->rx_bytes); in br_vlan_get_stats() 1395 txbytes = u64_stats_read(&cpu_stats->tx_bytes); in br_vlan_get_stats() 1396 txpackets = u64_stats_read(&cpu_stats->tx_packets); in br_vlan_get_stats() 1397 } while (u64_stats_fetch_retry(&cpu_stats->syncp, start)); in br_vlan_get_stats()
|
A D | br_multicast.c | 5070 struct bridge_mcast_stats *cpu_stats = per_cpu_ptr(stats, i); in br_multicast_get_stats() local 5075 start = u64_stats_fetch_begin(&cpu_stats->syncp); in br_multicast_get_stats() 5076 memcpy(&temp, &cpu_stats->mstats, sizeof(temp)); in br_multicast_get_stats() 5077 } while (u64_stats_fetch_retry(&cpu_stats->syncp, start)); in br_multicast_get_stats()
|
/linux-6.3-rc2/drivers/net/ethernet/marvell/mvpp2/ |
A D | mvpp2_main.c | 2000 struct mvpp2_pcpu_stats *cpu_stats; in mvpp2_get_xdp_stats() local 2013 xdp_pass = cpu_stats->xdp_pass; in mvpp2_get_xdp_stats() 2014 xdp_drop = cpu_stats->xdp_drop; in mvpp2_get_xdp_stats() 2015 xdp_xmit = cpu_stats->xdp_xmit; in mvpp2_get_xdp_stats() 2017 xdp_tx = cpu_stats->xdp_tx; in mvpp2_get_xdp_stats() 2018 xdp_tx_err = cpu_stats->xdp_tx_err; in mvpp2_get_xdp_stats() 5110 struct mvpp2_pcpu_stats *cpu_stats; in mvpp2_get_stats64() local 5119 rx_packets = cpu_stats->rx_packets; in mvpp2_get_stats64() 5120 rx_bytes = cpu_stats->rx_bytes; in mvpp2_get_stats64() 5121 tx_packets = cpu_stats->tx_packets; in mvpp2_get_stats64() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/ti/ |
A D | am65-cpsw-nuss.c | 1388 struct am65_cpsw_ndev_stats *cpu_stats; in am65_cpsw_nuss_ndo_get_stats() local 1394 cpu_stats = per_cpu_ptr(ndev_priv->stats, cpu); in am65_cpsw_nuss_ndo_get_stats() 1396 start = u64_stats_fetch_begin(&cpu_stats->syncp); in am65_cpsw_nuss_ndo_get_stats() 1397 rx_packets = cpu_stats->rx_packets; in am65_cpsw_nuss_ndo_get_stats() 1398 rx_bytes = cpu_stats->rx_bytes; in am65_cpsw_nuss_ndo_get_stats() 1399 tx_packets = cpu_stats->tx_packets; in am65_cpsw_nuss_ndo_get_stats() 1400 tx_bytes = cpu_stats->tx_bytes; in am65_cpsw_nuss_ndo_get_stats() 1401 } while (u64_stats_fetch_retry(&cpu_stats->syncp, start)); in am65_cpsw_nuss_ndo_get_stats()
|
/linux-6.3-rc2/drivers/net/team/ |
A D | team_mode_loadbalance.c | 462 struct lb_stats *cpu_stats, in __lb_one_cpu_stats_add() argument 470 tmp.tx_bytes = cpu_stats->tx_bytes; in __lb_one_cpu_stats_add()
|
/linux-6.3-rc2/drivers/net/ethernet/marvell/ |
A D | mvneta.c | 806 struct mvneta_pcpu_stats *cpu_stats; in mvneta_get_stats64() local 814 cpu_stats = per_cpu_ptr(pp->stats, cpu); in mvneta_get_stats64() 816 start = u64_stats_fetch_begin(&cpu_stats->syncp); in mvneta_get_stats64() 817 rx_packets = cpu_stats->es.ps.rx_packets; in mvneta_get_stats64() 818 rx_bytes = cpu_stats->es.ps.rx_bytes; in mvneta_get_stats64() 819 rx_dropped = cpu_stats->rx_dropped; in mvneta_get_stats64() 820 rx_errors = cpu_stats->rx_errors; in mvneta_get_stats64() 821 tx_packets = cpu_stats->es.ps.tx_packets; in mvneta_get_stats64() 822 tx_bytes = cpu_stats->es.ps.tx_bytes; in mvneta_get_stats64() 823 } while (u64_stats_fetch_retry(&cpu_stats->syncp, start)); in mvneta_get_stats64()
|
/linux-6.3-rc2/net/devlink/ |
A D | leftover.c | 5527 struct devlink_stats *cpu_stats; in devlink_trap_stats_read() local 5531 cpu_stats = per_cpu_ptr(trap_stats, i); in devlink_trap_stats_read() 5533 start = u64_stats_fetch_begin(&cpu_stats->syncp); in devlink_trap_stats_read() 5534 rx_packets = u64_stats_read(&cpu_stats->rx_packets); in devlink_trap_stats_read() 5535 rx_bytes = u64_stats_read(&cpu_stats->rx_bytes); in devlink_trap_stats_read() 5536 } while (u64_stats_fetch_retry(&cpu_stats->syncp, start)); in devlink_trap_stats_read()
|
/linux-6.3-rc2/kernel/locking/ |
A D | lockdep.c | 328 struct lock_class_stats *cpu_stats = in clear_lock_stats() local 331 memset(cpu_stats, 0, sizeof(struct lock_class_stats)); in clear_lock_stats()
|
Completed in 110 milliseconds