Home
last modified time | relevance | path

Searched refs:cpu_stats (Results 1 – 14 of 14) sorted by relevance

/openbmc/linux/net/netfilter/
H A Dnft_counter.c62 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()
H A Dnf_tables_api.c1718 struct nft_stats *cpu_stats, total; in nft_dump_stats() local
1729 cpu_stats = per_cpu_ptr(stats, cpu); in nft_dump_stats()
1731 seq = u64_stats_fetch_begin(&cpu_stats->syncp); in nft_dump_stats()
1732 pkts = cpu_stats->pkts; in nft_dump_stats()
1733 bytes = cpu_stats->bytes; in nft_dump_stats()
1734 } while (u64_stats_fetch_retry(&cpu_stats->syncp, seq)); in nft_dump_stats()
/openbmc/openbmc/poky/scripts/pybootchartgui/pybootchartgui/
H A Dparsing.py44 self.cpu_stats = []
118 self.ps_stats != None and self.cpu_stats != None
211 … cpu_util = [(sample.time, sample.user + sample.sys + sample.io) for sample in self.cpu_stats]
229 while len (self.cpu_stats) \
230 and self.cpu_stats[-1].time > crop_at:
231 self.cpu_stats.pop()
759 state.cpu_stats = _parse_proc_stat_log(file)
761 state.cpu_stats = _parse_reduced_log(file, CPUSample)
H A Ddraw.py355 if trace.cpu_stats:
387 if trace.cpu_stats:
399 … [(sample.time, sample.user + sample.sys + sample.io) for sample in trace.cpu_stats], \
403 [(sample.time, sample.user + sample.sys) for sample in trace.cpu_stats], \
/openbmc/linux/net/core/
H A Ddrop_monitor.c1445 struct net_dm_stats *cpu_stats = &data->stats; in net_dm_stats_read() local
1450 start = u64_stats_fetch_begin(&cpu_stats->syncp); in net_dm_stats_read()
1451 dropped = u64_stats_read(&cpu_stats->dropped); in net_dm_stats_read()
1452 } while (u64_stats_fetch_retry(&cpu_stats->syncp, start)); in net_dm_stats_read()
1489 struct net_dm_stats *cpu_stats = &hw_data->stats; in net_dm_hw_stats_read() local
1494 start = u64_stats_fetch_begin(&cpu_stats->syncp); in net_dm_hw_stats_read()
1495 dropped = u64_stats_read(&cpu_stats->dropped); in net_dm_hw_stats_read()
1496 } while (u64_stats_fetch_retry(&cpu_stats->syncp, start)); in net_dm_hw_stats_read()
/openbmc/linux/net/devlink/
H A Dtrap.c163 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()
/openbmc/linux/net/bridge/
H A Dbr_vlan.c1387 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()
H A Dbr_multicast.c5080 struct bridge_mcast_stats *cpu_stats = per_cpu_ptr(stats, i); in br_multicast_get_stats() local
5085 start = u64_stats_fetch_begin(&cpu_stats->syncp); in br_multicast_get_stats()
5086 memcpy(&temp, &cpu_stats->mstats, sizeof(temp)); in br_multicast_get_stats()
5087 } while (u64_stats_fetch_retry(&cpu_stats->syncp, start)); in br_multicast_get_stats()
/openbmc/openbmc/poky/scripts/pybootchartgui/pybootchartgui/tests/
H A Dparser_test.py86 samples = parsing.parse_file(writer, trace, self.mk_fname('proc_stat.log')).cpu_stats
/openbmc/linux/drivers/net/ethernet/marvell/mvpp2/
H A Dmvpp2_main.c2025 struct mvpp2_pcpu_stats *cpu_stats; in mvpp2_get_xdp_stats() local
2038 xdp_pass = cpu_stats->xdp_pass; in mvpp2_get_xdp_stats()
2039 xdp_drop = cpu_stats->xdp_drop; in mvpp2_get_xdp_stats()
2040 xdp_xmit = cpu_stats->xdp_xmit; in mvpp2_get_xdp_stats()
2042 xdp_tx = cpu_stats->xdp_tx; in mvpp2_get_xdp_stats()
2043 xdp_tx_err = cpu_stats->xdp_tx_err; in mvpp2_get_xdp_stats()
5146 struct mvpp2_pcpu_stats *cpu_stats; in mvpp2_get_stats64() local
5155 rx_packets = cpu_stats->rx_packets; in mvpp2_get_stats64()
5156 rx_bytes = cpu_stats->rx_bytes; in mvpp2_get_stats64()
5157 tx_packets = cpu_stats->tx_packets; in mvpp2_get_stats64()
[all …]
/openbmc/linux/drivers/net/ethernet/ti/
H A Dam65-cpsw-nuss.c1397 struct am65_cpsw_ndev_stats *cpu_stats; in am65_cpsw_nuss_ndo_get_stats() local
1403 cpu_stats = per_cpu_ptr(ndev_priv->stats, cpu); in am65_cpsw_nuss_ndo_get_stats()
1405 start = u64_stats_fetch_begin(&cpu_stats->syncp); in am65_cpsw_nuss_ndo_get_stats()
1406 rx_packets = cpu_stats->rx_packets; in am65_cpsw_nuss_ndo_get_stats()
1407 rx_bytes = cpu_stats->rx_bytes; in am65_cpsw_nuss_ndo_get_stats()
1408 tx_packets = cpu_stats->tx_packets; in am65_cpsw_nuss_ndo_get_stats()
1409 tx_bytes = cpu_stats->tx_bytes; in am65_cpsw_nuss_ndo_get_stats()
1410 } while (u64_stats_fetch_retry(&cpu_stats->syncp, start)); in am65_cpsw_nuss_ndo_get_stats()
/openbmc/linux/drivers/net/team/
H A Dteam_mode_loadbalance.c449 struct lb_stats *cpu_stats, in __lb_one_cpu_stats_add() argument
457 tmp.tx_bytes = cpu_stats->tx_bytes; in __lb_one_cpu_stats_add()
/openbmc/linux/drivers/net/ethernet/marvell/
H A Dmvneta.c812 struct mvneta_pcpu_stats *cpu_stats; in mvneta_get_stats64() local
820 cpu_stats = per_cpu_ptr(pp->stats, cpu); in mvneta_get_stats64()
822 start = u64_stats_fetch_begin(&cpu_stats->syncp); in mvneta_get_stats64()
823 rx_packets = cpu_stats->es.ps.rx_packets; in mvneta_get_stats64()
824 rx_bytes = cpu_stats->es.ps.rx_bytes; in mvneta_get_stats64()
825 rx_dropped = cpu_stats->rx_dropped; in mvneta_get_stats64()
826 rx_errors = cpu_stats->rx_errors; in mvneta_get_stats64()
827 tx_packets = cpu_stats->es.ps.tx_packets; in mvneta_get_stats64()
828 tx_bytes = cpu_stats->es.ps.tx_bytes; in mvneta_get_stats64()
829 } while (u64_stats_fetch_retry(&cpu_stats->syncp, start)); in mvneta_get_stats64()
/openbmc/linux/kernel/locking/
H A Dlockdep.c328 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()