Searched refs:cpu_stats (Results 1 – 9 of 9) sorted by relevance
| /linux/net/core/ |
| H A D | drop_monitor.c | 1447 struct net_dm_stats *cpu_stats = &data->stats; in net_dm_stats_read() local 1452 start = u64_stats_fetch_begin(&cpu_stats->syncp); in net_dm_stats_read() 1453 dropped = u64_stats_read(&cpu_stats->dropped); in net_dm_stats_read() 1454 } while (u64_stats_fetch_retry(&cpu_stats->syncp, start)); in net_dm_stats_read() 1491 struct net_dm_stats *cpu_stats = &hw_data->stats; in net_dm_hw_stats_read() local 1496 start = u64_stats_fetch_begin(&cpu_stats->syncp); in net_dm_hw_stats_read() 1497 dropped = u64_stats_read(&cpu_stats->dropped); in net_dm_hw_stats_read() 1498 } while (u64_stats_fetch_retry(&cpu_stats->syncp, start)); in net_dm_hw_stats_read()
|
| /linux/net/devlink/ |
| H A D | trap.c | 163 struct devlink_stats *cpu_stats; in devlink_trap_stats_read() local 167 cpu_stats = per_cpu_ptr(trap_stats, i); in devlink_trap_stats_read() 169 start = u64_stats_fetch_begin(&cpu_stats->syncp); in devlink_trap_stats_read() 170 rx_packets = u64_stats_read(&cpu_stats->rx_packets); in devlink_trap_stats_read() 171 rx_bytes = u64_stats_read(&cpu_stats->rx_bytes); in devlink_trap_stats_read() 172 } while (u64_stats_fetch_retry(&cpu_stats->syncp, start)); in devlink_trap_stats_read()
|
| /linux/net/ipv4/ |
| H A D | nexthop.c | 674 struct nh_grp_entry_stats *cpu_stats; in nh_grp_entry_stats_inc() local 676 cpu_stats = get_cpu_ptr(nhge->stats); in nh_grp_entry_stats_inc() 677 u64_stats_update_begin(&cpu_stats->syncp); in nh_grp_entry_stats_inc() 678 u64_stats_inc(&cpu_stats->packets); in nh_grp_entry_stats_inc() 679 u64_stats_update_end(&cpu_stats->syncp); in nh_grp_entry_stats_inc() 680 put_cpu_ptr(cpu_stats); in nh_grp_entry_stats_inc() 691 struct nh_grp_entry_stats *cpu_stats; in nh_grp_entry_stats_read() local 695 cpu_stats = per_cpu_ptr(nhge->stats, i); in nh_grp_entry_stats_read() 697 start = u64_stats_fetch_begin(&cpu_stats->syncp); in nh_grp_entry_stats_read() 698 packets = u64_stats_read(&cpu_stats->packets); in nh_grp_entry_stats_read() [all …]
|
| /linux/drivers/net/ethernet/marvell/mvpp2/ |
| H A D | mvpp2_main.c | 2024 struct mvpp2_pcpu_stats *cpu_stats; in mvpp2_get_xdp_stats() local 2033 cpu_stats = per_cpu_ptr(port->stats, cpu); in mvpp2_get_xdp_stats() 2035 start = u64_stats_fetch_begin(&cpu_stats->syncp); in mvpp2_get_xdp_stats() 2036 xdp_redirect = cpu_stats->xdp_redirect; in mvpp2_get_xdp_stats() 2037 xdp_pass = cpu_stats->xdp_pass; in mvpp2_get_xdp_stats() 2038 xdp_drop = cpu_stats->xdp_drop; in mvpp2_get_xdp_stats() 2039 xdp_xmit = cpu_stats->xdp_xmit; in mvpp2_get_xdp_stats() 2040 xdp_xmit_err = cpu_stats->xdp_xmit_err; in mvpp2_get_xdp_stats() 2041 xdp_tx = cpu_stats->xdp_tx; in mvpp2_get_xdp_stats() 2042 xdp_tx_err = cpu_stats->xdp_tx_err; in mvpp2_get_xdp_stats() [all …]
|
| /linux/mm/ |
| H A D | slab.h | 248 struct kmem_cache_stats __percpu *cpu_stats; member
|
| H A D | slub.c | 381 raw_cpu_inc(s->cpu_stats->stat[si]); in stat() 389 raw_cpu_add(s->cpu_stats->stat[si], v); in stat_add() 7546 s->cpu_stats = alloc_percpu(struct kmem_cache_stats); in alloc_kmem_cache_stats() 7548 if (!s->cpu_stats) in alloc_kmem_cache_stats() 7670 free_percpu(s->cpu_stats); in __kmem_cache_release() 9311 unsigned int x = per_cpu_ptr(s->cpu_stats, cpu)->stat[si]; in show_stat() 9337 per_cpu_ptr(s->cpu_stats, cpu)->stat[si] = 0; in clear_stat()
|
| /linux/net/bridge/ |
| H A D | br_multicast.c | 5201 struct bridge_mcast_stats *cpu_stats = per_cpu_ptr(stats, i); in br_multicast_get_stats() local 5206 start = u64_stats_fetch_begin(&cpu_stats->syncp); in br_multicast_get_stats() 5207 u64_stats_copy(&temp, &cpu_stats->mstats, sizeof(temp)); in br_multicast_get_stats() 5208 } while (u64_stats_fetch_retry(&cpu_stats->syncp, start)); in br_multicast_get_stats()
|
| /linux/net/netfilter/ |
| H A D | nf_tables_api.c | 1934 struct nft_stats *cpu_stats, total; in nft_dump_stats() local 1945 cpu_stats = per_cpu_ptr(stats, cpu); in nft_dump_stats() 1947 seq = u64_stats_fetch_begin(&cpu_stats->syncp); in nft_dump_stats() 1948 pkts = cpu_stats->pkts; in nft_dump_stats() 1949 bytes = cpu_stats->bytes; in nft_dump_stats() 1950 } while (u64_stats_fetch_retry(&cpu_stats->syncp, seq)); in nft_dump_stats()
|
| /linux/kernel/locking/ |
| H A D | lockdep.c | 331 struct lock_class_stats *cpu_stats = in clear_lock_stats() local 334 memset(cpu_stats, 0, sizeof(struct lock_class_stats)); in clear_lock_stats()
|