Searched refs:cpu_stats (Results 1 – 6 of 6) sorted by relevance
| /linux/net/netfilter/ |
| H A D | nft_counter.c | 66 struct nft_counter __percpu *cpu_stats; in nft_counter_do_init() local 69 cpu_stats = alloc_percpu_gfp(struct nft_counter, GFP_KERNEL_ACCOUNT); in nft_counter_do_init() 70 if (cpu_stats == NULL) in nft_counter_do_init() 73 this_cpu = raw_cpu_ptr(cpu_stats); in nft_counter_do_init() 83 priv->counter = cpu_stats; in nft_counter_do_init() 242 struct nft_counter __percpu *cpu_stats; in nft_counter_clone() local 248 cpu_stats = alloc_percpu_gfp(struct nft_counter, gfp); in nft_counter_clone() 249 if (cpu_stats == NULL) in nft_counter_clone() 252 this_cpu = raw_cpu_ptr(cpu_stats); in nft_counter_clone() 256 priv_clone->counter = cpu_stats; in nft_counter_clone()
|
| H A D | nf_tables_api.c | 1943 struct nft_stats *cpu_stats, total; in nft_dump_stats() 1954 cpu_stats = per_cpu_ptr(stats, cpu); in nft_dump_stats() 1956 seq = u64_stats_fetch_begin(&cpu_stats->syncp); 1957 pkts = cpu_stats->pkts; in hook_is_prefix() 1958 bytes = cpu_stats->bytes; in hook_is_prefix() 1959 } while (u64_stats_fetch_retry(&cpu_stats->syncp, seq)); in hook_is_prefix() 1920 struct nft_stats *cpu_stats, total; nft_dump_stats() local
|
| /linux/net/core/ |
| H A D | drop_monitor.c | 1448 struct net_dm_stats *cpu_stats = &data->stats; in net_dm_stats_read() local 1453 start = u64_stats_fetch_begin(&cpu_stats->syncp); in net_dm_stats_read() 1454 dropped = u64_stats_read(&cpu_stats->dropped); in net_dm_stats_read() 1455 } while (u64_stats_fetch_retry(&cpu_stats->syncp, start)); in net_dm_stats_read() 1492 struct net_dm_stats *cpu_stats = &hw_data->stats; in net_dm_hw_stats_read() local 1497 start = u64_stats_fetch_begin(&cpu_stats->syncp); in net_dm_hw_stats_read() 1498 dropped = u64_stats_read(&cpu_stats->dropped); in net_dm_hw_stats_read() 1499 } while (u64_stats_fetch_retry(&cpu_stats->syncp, start)); in net_dm_hw_stats_read()
|
| /linux/net/bridge/ |
| H A D | br_vlan.c | 1391 struct pcpu_sw_netstats *cpu_stats; in br_vlan_get_stats() local 1394 cpu_stats = per_cpu_ptr(v->stats, i); in br_vlan_get_stats() 1396 start = u64_stats_fetch_begin(&cpu_stats->syncp); in br_vlan_get_stats() 1397 rxpackets = u64_stats_read(&cpu_stats->rx_packets); in br_vlan_get_stats() 1398 rxbytes = u64_stats_read(&cpu_stats->rx_bytes); in br_vlan_get_stats() 1399 txbytes = u64_stats_read(&cpu_stats->tx_bytes); in br_vlan_get_stats() 1400 txpackets = u64_stats_read(&cpu_stats->tx_packets); in br_vlan_get_stats() 1401 } while (u64_stats_fetch_retry(&cpu_stats->syncp, start)); in br_vlan_get_stats()
|
| /linux/drivers/net/team/ |
| H A D | team_mode_loadbalance.c | 446 struct lb_stats *cpu_stats, in __lb_one_cpu_stats_add() argument 454 tmp.tx_bytes = cpu_stats->tx_bytes; in __lb_one_cpu_stats_add()
|
| /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()
|