Searched refs:cpu_stats (Results 1 - 12 of 12) sorted by relevance
/linux-master/net/netfilter/ |
H A D | nft_counter.c | 62 struct nft_counter __percpu *cpu_stats; local 65 cpu_stats = alloc_percpu_gfp(struct nft_counter, GFP_KERNEL_ACCOUNT); 66 if (cpu_stats == NULL) 70 this_cpu = this_cpu_ptr(cpu_stats); 80 priv->counter = cpu_stats; 233 struct nft_counter __percpu *cpu_stats; local 239 cpu_stats = alloc_percpu_gfp(struct nft_counter, GFP_ATOMIC); 240 if (cpu_stats == NULL) 244 this_cpu = this_cpu_ptr(cpu_stats); 249 priv_clone->counter = cpu_stats; [all...] |
H A D | nf_tables_api.c | 1736 struct nft_stats *cpu_stats, total; local 1747 cpu_stats = per_cpu_ptr(stats, cpu); 1749 seq = u64_stats_fetch_begin(&cpu_stats->syncp); 1750 pkts = cpu_stats->pkts; 1751 bytes = cpu_stats->bytes; 1752 } while (u64_stats_fetch_retry(&cpu_stats->syncp, seq));
|
/linux-master/net/core/ |
H A D | drop_monitor.c | 1445 struct net_dm_stats *cpu_stats = &data->stats; local 1450 start = u64_stats_fetch_begin(&cpu_stats->syncp); 1451 dropped = u64_stats_read(&cpu_stats->dropped); 1452 } while (u64_stats_fetch_retry(&cpu_stats->syncp, start)); 1489 struct net_dm_stats *cpu_stats = &hw_data->stats; local 1494 start = u64_stats_fetch_begin(&cpu_stats->syncp); 1495 dropped = u64_stats_read(&cpu_stats->dropped); 1496 } while (u64_stats_fetch_retry(&cpu_stats->syncp, start));
|
/linux-master/net/devlink/ |
H A D | trap.c | 163 struct devlink_stats *cpu_stats; local 167 cpu_stats = per_cpu_ptr(trap_stats, i); 169 start = u64_stats_fetch_begin(&cpu_stats->syncp); 170 rx_packets = u64_stats_read(&cpu_stats->rx_packets); 171 rx_bytes = u64_stats_read(&cpu_stats->rx_bytes); 172 } while (u64_stats_fetch_retry(&cpu_stats->syncp, start));
|
/linux-master/drivers/net/team/ |
H A D | team_mode_loadbalance.c | 449 struct lb_stats *cpu_stats, 457 tmp.tx_bytes = cpu_stats->tx_bytes; 448 __lb_one_cpu_stats_add(struct lb_stats *acc_stats, struct lb_stats *cpu_stats, struct u64_stats_sync *syncp) argument
|
/linux-master/net/bridge/ |
H A D | br_vlan.c | 1387 struct pcpu_sw_netstats *cpu_stats; local 1390 cpu_stats = per_cpu_ptr(v->stats, i); 1392 start = u64_stats_fetch_begin(&cpu_stats->syncp); 1393 rxpackets = u64_stats_read(&cpu_stats->rx_packets); 1394 rxbytes = u64_stats_read(&cpu_stats->rx_bytes); 1395 txbytes = u64_stats_read(&cpu_stats->tx_bytes); 1396 txpackets = u64_stats_read(&cpu_stats->tx_packets); 1397 } while (u64_stats_fetch_retry(&cpu_stats->syncp, start));
|
H A D | br_multicast.c | 5081 struct bridge_mcast_stats *cpu_stats = per_cpu_ptr(stats, i); local 5086 start = u64_stats_fetch_begin(&cpu_stats->syncp); 5087 memcpy(&temp, &cpu_stats->mstats, sizeof(temp)); 5088 } while (u64_stats_fetch_retry(&cpu_stats->syncp, start));
|
/linux-master/net/ipv4/ |
H A D | nexthop.c | 675 struct nh_grp_entry_stats *cpu_stats; local 677 cpu_stats = get_cpu_ptr(nhge->stats); 678 u64_stats_update_begin(&cpu_stats->syncp); 679 u64_stats_inc(&cpu_stats->packets); 680 u64_stats_update_end(&cpu_stats->syncp); 681 put_cpu_ptr(cpu_stats); 692 struct nh_grp_entry_stats *cpu_stats; local 696 cpu_stats = per_cpu_ptr(nhge->stats, i); 698 start = u64_stats_fetch_begin(&cpu_stats->syncp); 699 packets = u64_stats_read(&cpu_stats [all...] |
/linux-master/drivers/net/ethernet/marvell/mvpp2/ |
H A D | mvpp2_main.c | 2037 struct mvpp2_pcpu_stats *cpu_stats; local 2046 cpu_stats = per_cpu_ptr(port->stats, cpu); 2048 start = u64_stats_fetch_begin(&cpu_stats->syncp); 2049 xdp_redirect = cpu_stats->xdp_redirect; 2050 xdp_pass = cpu_stats->xdp_pass; 2051 xdp_drop = cpu_stats->xdp_drop; 2052 xdp_xmit = cpu_stats->xdp_xmit; 2053 xdp_xmit_err = cpu_stats->xdp_xmit_err; 2054 xdp_tx = cpu_stats->xdp_tx; 2055 xdp_tx_err = cpu_stats 5155 struct mvpp2_pcpu_stats *cpu_stats; local [all...] |
/linux-master/drivers/net/ethernet/ti/ |
H A D | am65-cpsw-nuss.c | 1465 struct am65_cpsw_ndev_stats *cpu_stats; local 1471 cpu_stats = per_cpu_ptr(ndev_priv->stats, cpu); 1473 start = u64_stats_fetch_begin(&cpu_stats->syncp); 1474 rx_packets = cpu_stats->rx_packets; 1475 rx_bytes = cpu_stats->rx_bytes; 1476 tx_packets = cpu_stats->tx_packets; 1477 tx_bytes = cpu_stats->tx_bytes; 1478 } while (u64_stats_fetch_retry(&cpu_stats->syncp, start));
|
/linux-master/drivers/net/ethernet/marvell/ |
H A D | mvneta.c | 812 struct mvneta_pcpu_stats *cpu_stats; local 820 cpu_stats = per_cpu_ptr(pp->stats, cpu); 822 start = u64_stats_fetch_begin(&cpu_stats->syncp); 823 rx_packets = cpu_stats->es.ps.rx_packets; 824 rx_bytes = cpu_stats->es.ps.rx_bytes; 825 rx_dropped = cpu_stats->rx_dropped; 826 rx_errors = cpu_stats->rx_errors; 827 tx_packets = cpu_stats->es.ps.tx_packets; 828 tx_bytes = cpu_stats->es.ps.tx_bytes; 829 } while (u64_stats_fetch_retry(&cpu_stats [all...] |
/linux-master/kernel/locking/ |
H A D | lockdep.c | 328 struct lock_class_stats *cpu_stats = local 331 memset(cpu_stats, 0, sizeof(struct lock_class_stats));
|
Completed in 395 milliseconds