Home
last modified time | relevance | path

Searched full:stats (Results 1 – 25 of 2494) sorted by relevance

12345678910>>...100

/openbmc/linux/drivers/cpufreq/
H A Dcpufreq_stats.c30 static void cpufreq_stats_update(struct cpufreq_stats *stats, in cpufreq_stats_update() argument
35 stats->time_in_state[stats->last_index] += cur_time - time; in cpufreq_stats_update()
36 stats->last_time = cur_time; in cpufreq_stats_update()
39 static void cpufreq_stats_reset_table(struct cpufreq_stats *stats) in cpufreq_stats_reset_table() argument
41 unsigned int count = stats->max_state; in cpufreq_stats_reset_table()
43 memset(stats->time_in_state, 0, count * sizeof(u64)); in cpufreq_stats_reset_table()
44 memset(stats->trans_table, 0, count * count * sizeof(int)); in cpufreq_stats_reset_table()
45 stats->last_time = local_clock(); in cpufreq_stats_reset_table()
46 stats->total_trans = 0; in cpufreq_stats_reset_table()
49 WRITE_ONCE(stats->reset_pending, 0); in cpufreq_stats_reset_table()
[all …]
/openbmc/linux/drivers/infiniband/hw/bnxt_re/
H A Dhw_counters.c156 struct rdma_hw_stats *stats, in bnxt_re_copy_ext_stats() argument
159 stats->value[BNXT_RE_TX_ATOMIC_REQ] = s->tx_atomic_req; in bnxt_re_copy_ext_stats()
160 stats->value[BNXT_RE_TX_READ_REQ] = s->tx_read_req; in bnxt_re_copy_ext_stats()
161 stats->value[BNXT_RE_TX_READ_RES] = s->tx_read_res; in bnxt_re_copy_ext_stats()
162 stats->value[BNXT_RE_TX_WRITE_REQ] = s->tx_write_req; in bnxt_re_copy_ext_stats()
163 stats->value[BNXT_RE_TX_SEND_REQ] = s->tx_send_req; in bnxt_re_copy_ext_stats()
164 stats->value[BNXT_RE_TX_ROCE_PKTS] = s->tx_roce_pkts; in bnxt_re_copy_ext_stats()
165 stats->value[BNXT_RE_TX_ROCE_BYTES] = s->tx_roce_bytes; in bnxt_re_copy_ext_stats()
166 stats->value[BNXT_RE_RX_ATOMIC_REQ] = s->rx_atomic_req; in bnxt_re_copy_ext_stats()
167 stats->value[BNXT_RE_RX_READ_REQ] = s->rx_read_req; in bnxt_re_copy_ext_stats()
[all …]
/openbmc/linux/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_ethtool.c308 lan966x_add_cnt(&lan966x->stats[idx++], in lan966x_stats_update()
342 struct ethtool_stats *stats, u64 *data) in lan966x_get_ethtool_stats() argument
353 *data++ = lan966x->stats[port->chip_port * in lan966x_get_ethtool_stats()
371 lan966x->stats[idx + SYS_COUNT_TX_UC] + in lan966x_get_eth_mac_stats()
372 lan966x->stats[idx + SYS_COUNT_TX_MC] + in lan966x_get_eth_mac_stats()
373 lan966x->stats[idx + SYS_COUNT_TX_BC] + in lan966x_get_eth_mac_stats()
374 lan966x->stats[idx + SYS_COUNT_TX_PMAC_UC] + in lan966x_get_eth_mac_stats()
375 lan966x->stats[idx + SYS_COUNT_TX_PMAC_MC] + in lan966x_get_eth_mac_stats()
376 lan966x->stats[idx + SYS_COUNT_TX_PMAC_BC]; in lan966x_get_eth_mac_stats()
378 lan966x->stats[idx + SYS_COUNT_TX_COL]; in lan966x_get_eth_mac_stats()
[all …]
/openbmc/linux/drivers/infiniband/hw/ocrdma/
H A Docrdma_stats.c59 pr_err("%s: No space in stats buff\n", __func__); in ocrdma_add_stat()
79 pr_err("%s: stats mbox allocation failed\n", __func__); in ocrdma_alloc_stats_resources()
104 char *stats = dev->stats_mem.debugfs_mem, *pcur; in ocrdma_resource_stats() local
109 memset(stats, 0, (OCRDMA_MAX_DBGFS_MEM)); in ocrdma_resource_stats()
111 pcur = stats; in ocrdma_resource_stats()
112 pcur += ocrdma_add_stat(stats, pcur, "active_dpp_pds", in ocrdma_resource_stats()
114 pcur += ocrdma_add_stat(stats, pcur, "active_non_dpp_pds", in ocrdma_resource_stats()
116 pcur += ocrdma_add_stat(stats, pcur, "active_rc_dpp_qps", in ocrdma_resource_stats()
118 pcur += ocrdma_add_stat(stats, pcur, "active_uc_dpp_qps", in ocrdma_resource_stats()
120 pcur += ocrdma_add_stat(stats, pcur, "active_ud_dpp_qps", in ocrdma_resource_stats()
[all …]
/openbmc/qemu/block/
H A Daccounting.c35 void block_acct_init(BlockAcctStats *stats) in block_acct_init() argument
37 qemu_mutex_init(&stats->lock); in block_acct_init()
41 stats->account_invalid = true; in block_acct_init()
42 stats->account_failed = true; in block_acct_init()
59 void block_acct_setup(BlockAcctStats *stats, enum OnOffAuto account_invalid, in block_acct_setup() argument
62 stats->account_invalid = bool_from_onoffauto(account_invalid, in block_acct_setup()
63 stats->account_invalid); in block_acct_setup()
64 stats->account_failed = bool_from_onoffauto(account_failed, in block_acct_setup()
65 stats->account_failed); in block_acct_setup()
68 void block_acct_cleanup(BlockAcctStats *stats) in block_acct_cleanup() argument
[all …]
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/
H A Dstats.c5 #include "stats.h"
80 rtlpriv->stats.pwdb_all_cnt += pstatus->rx_pwdb_all; in rtl_process_ui_rssi()
81 rtlpriv->stats.rssi_calculate_cnt++; in rtl_process_ui_rssi()
83 if (rtlpriv->stats.ui_rssi.total_num++ >= PHY_RSSI_SLID_WIN_MAX) { in rtl_process_ui_rssi()
84 rtlpriv->stats.ui_rssi.total_num = PHY_RSSI_SLID_WIN_MAX; in rtl_process_ui_rssi()
85 last_rssi = rtlpriv->stats.ui_rssi.elements[ in rtl_process_ui_rssi()
86 rtlpriv->stats.ui_rssi.index]; in rtl_process_ui_rssi()
87 rtlpriv->stats.ui_rssi.total_val -= last_rssi; in rtl_process_ui_rssi()
89 rtlpriv->stats.ui_rssi.total_val += pstatus->signalstrength; in rtl_process_ui_rssi()
90 rtlpriv->stats.ui_rssi.elements[rtlpriv->stats.ui_rssi.index++] = in rtl_process_ui_rssi()
[all …]
/openbmc/linux/kernel/
H A Dtsacct.c22 struct taskstats *stats, struct task_struct *tsk) in bacct_add_tsk() argument
37 stats->ac_tgetime = delta; in bacct_add_tsk()
40 stats->ac_etime = delta; in bacct_add_tsk()
43 stats->ac_btime = clamp_t(time64_t, btime, 0, U32_MAX); in bacct_add_tsk()
44 stats->ac_btime64 = btime; in bacct_add_tsk()
47 stats->ac_exitcode = tsk->exit_code; in bacct_add_tsk()
49 stats->ac_flag |= AFORK; in bacct_add_tsk()
51 stats->ac_flag |= ASU; in bacct_add_tsk()
53 stats->ac_flag |= ACORE; in bacct_add_tsk()
55 stats->ac_flag |= AXSIG; in bacct_add_tsk()
[all …]
H A Dtaskstats.c157 static void exe_add_tsk(struct taskstats *stats, struct task_struct *tsk) in exe_add_tsk() argument
164 stats->ac_exe_dev = in exe_add_tsk()
166 stats->ac_exe_inode = exe_file->f_inode->i_ino; in exe_add_tsk()
169 stats->ac_exe_dev = 0; in exe_add_tsk()
170 stats->ac_exe_inode = 0; in exe_add_tsk()
176 struct task_struct *tsk, struct taskstats *stats) in fill_stats() argument
178 memset(stats, 0, sizeof(*stats)); in fill_stats()
183 * per-task-foo(stats, tsk); in fill_stats()
186 delayacct_add_tsk(stats, tsk); in fill_stats()
189 stats->version = TASKSTATS_VERSION; in fill_stats()
[all …]
/openbmc/linux/drivers/fpga/tests/
H A Dfpga-mgr-test.c44 struct mgr_stats stats; member
77 struct mgr_stats *stats = mgr->priv; in op_parse_header() local
80 stats->op_parse_header_state = mgr->state; in op_parse_header()
81 stats->op_parse_header_seq = stats->seq_num++; in op_parse_header()
87 stats->header_match = true; in op_parse_header()
90 stats->header_match = false; in op_parse_header()
101 struct mgr_stats *stats = mgr->priv; in op_write_init() local
103 stats->op_write_init_state = mgr->state; in op_write_init()
104 stats->op_write_init_seq = stats->seq_num++; in op_write_init()
115 struct mgr_stats *stats = mgr->priv; in op_write() local
[all …]
/openbmc/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
H A Ddebug.c102 struct macstat stats; in brcms_debugfs_macstat_read() local
106 stats = *(drvr->wlc->core->macstat_snapshot); in brcms_debugfs_macstat_read()
109 seq_printf(s, "txallfrm: %d\n", stats.txallfrm); in brcms_debugfs_macstat_read()
110 seq_printf(s, "txrtsfrm: %d\n", stats.txrtsfrm); in brcms_debugfs_macstat_read()
111 seq_printf(s, "txctsfrm: %d\n", stats.txctsfrm); in brcms_debugfs_macstat_read()
112 seq_printf(s, "txackfrm: %d\n", stats.txackfrm); in brcms_debugfs_macstat_read()
113 seq_printf(s, "txdnlfrm: %d\n", stats.txdnlfrm); in brcms_debugfs_macstat_read()
114 seq_printf(s, "txbcnfrm: %d\n", stats.txbcnfrm); in brcms_debugfs_macstat_read()
116 for (i = 0; i < ARRAY_SIZE(stats.txfunfl); i++) in brcms_debugfs_macstat_read()
117 seq_printf(s, " %d", stats.txfunfl[i]); in brcms_debugfs_macstat_read()
[all …]
/openbmc/linux/drivers/infiniband/hw/hfi1/
H A Dvnic_main.c24 #define SUM_GRP_COUNTERS(stats, qstats, x_grp) do { \ argument
27 dst64 = &stats->x_grp.unicast; \
28 dst64 <= &stats->x_grp.s_1519_max;) { \
38 struct opa_vnic_stats *stats) in hfi1_vnic_update_stats() argument
45 struct opa_vnic_stats *qstats = &vinfo->stats[i]; in hfi1_vnic_update_stats()
46 struct rtnl_link_stats64 *qnstats = &vinfo->stats[i].netstats; in hfi1_vnic_update_stats()
48 stats->netstats.tx_fifo_errors += qnstats->tx_fifo_errors; in hfi1_vnic_update_stats()
49 stats->netstats.tx_carrier_errors += qnstats->tx_carrier_errors; in hfi1_vnic_update_stats()
50 stats->tx_drop_state += qstats->tx_drop_state; in hfi1_vnic_update_stats()
51 stats->tx_dlid_zero += qstats->tx_dlid_zero; in hfi1_vnic_update_stats()
[all …]
/openbmc/linux/tools/testing/selftests/drivers/net/netdevsim/
H A Dhw_stats_l3.sh149 $IP -j stats show dev "$netdev" group offload subgroup hw_stats_info |
174 $IP -j stats show dev "$netdev" group offload subgroup hw_stats_info |
202 check_err $? "$type stats not reported"
205 check_err $? "$type stats reported as used before either device or netdevsim request"
209 check_err $? "$type stats reported as used before device request"
211 check_err $? "$type stats reported as requested before device request"
213 $IP stats set dev dummy1 ${type}_stats on
215 check_err $? "$type stats reported as not used after both device and netdevsim request"
217 check_err $? "$type stats reported as not requested after device request"
221 check_err $? "$type stats reported as used after netdevsim request withdrawn"
[all …]
/openbmc/linux/drivers/infiniband/ulp/rtrs/
H A Drtrs-clt-stats.c17 struct rtrs_clt_stats *stats = clt_path->stats; in rtrs_clt_update_wc_stats() local
22 s = get_cpu_ptr(stats->pcpu_stats); in rtrs_clt_update_wc_stats()
27 s = per_cpu_ptr(stats->pcpu_stats, con->cpu); in rtrs_clt_update_wc_stats()
30 put_cpu_ptr(stats->pcpu_stats); in rtrs_clt_update_wc_stats()
33 void rtrs_clt_inc_failover_cnt(struct rtrs_clt_stats *stats) in rtrs_clt_inc_failover_cnt() argument
35 this_cpu_inc(stats->pcpu_stats->rdma.failover_cnt); in rtrs_clt_inc_failover_cnt()
38 int rtrs_clt_stats_migration_from_cnt_to_str(struct rtrs_clt_stats *stats, char *buf) in rtrs_clt_stats_migration_from_cnt_to_str() argument
47 s = per_cpu_ptr(stats->pcpu_stats, cpu); in rtrs_clt_stats_migration_from_cnt_to_str()
57 int rtrs_clt_stats_migration_to_cnt_to_str(struct rtrs_clt_stats *stats, char *buf) in rtrs_clt_stats_migration_to_cnt_to_str() argument
66 s = per_cpu_ptr(stats->pcpu_stats, cpu); in rtrs_clt_stats_migration_to_cnt_to_str()
[all …]
/openbmc/linux/drivers/net/wireless/st/cw1200/
H A Dqueue.c29 struct cw1200_queue_stats *stats = queue->stats; in __cw1200_queue_lock() local
33 ieee80211_stop_queue(stats->priv->hw, queue->queue_id); in __cw1200_queue_lock()
39 struct cw1200_queue_stats *stats = queue->stats; in __cw1200_queue_unlock() local
44 ieee80211_wake_queue(stats->priv->hw, queue->queue_id); in __cw1200_queue_unlock()
67 static void cw1200_queue_post_gc(struct cw1200_queue_stats *stats, in cw1200_queue_post_gc() argument
74 stats->skb_dtor(stats->priv, item->skb, &item->txpriv); in cw1200_queue_post_gc()
93 struct cw1200_queue_stats *stats = queue->stats; in __cw1200_queue_gc() local
104 spin_lock_bh(&stats->lock); in __cw1200_queue_gc()
105 --stats->num_queued; in __cw1200_queue_gc()
106 if (!--stats->link_map_cache[iter->txpriv.link_id]) in __cw1200_queue_gc()
[all …]
/openbmc/linux/drivers/scsi/snic/
H A Dsnic_debugfs.c17 * stats logging
95 * resets cumulative stats of snic.
107 struct snic_stats *stats = &snic->s_stats; in snic_reset_stats_write() local
108 u64 *io_stats_p = (u64 *) &stats->io; in snic_reset_stats_write()
109 u64 *fw_stats_p = (u64 *) &stats->fw; in snic_reset_stats_write()
130 * and IO Completions stats. Skip incrementing No IO Compls in snic_reset_stats_write()
134 atomic64_read(&stats->io.active)); in snic_reset_stats_write()
135 memset(&stats->abts, 0, sizeof(struct snic_abort_stats)); in snic_reset_stats_write()
136 memset(&stats->reset, 0, sizeof(struct snic_reset_stats)); in snic_reset_stats_write()
137 memset(&stats->misc, 0, sizeof(struct snic_misc_stats)); in snic_reset_stats_write()
[all …]
/openbmc/linux/drivers/media/platform/rockchip/rkisp1/
H A Drkisp1-stats.c3 * Rockchip ISP1 Driver - Stats subdevice
25 struct rkisp1_stats *stats = video_get_drvdata(video); in rkisp1_stats_enum_fmt_meta_cap() local
30 f->pixelformat = stats->vdev_fmt.fmt.meta.dataformat; in rkisp1_stats_enum_fmt_meta_cap()
38 struct rkisp1_stats *stats = video_get_drvdata(video); in rkisp1_stats_g_fmt_meta_cap() local
45 meta->dataformat = stats->vdev_fmt.fmt.meta.dataformat; in rkisp1_stats_g_fmt_meta_cap()
46 meta->buffersize = stats->vdev_fmt.fmt.meta.buffersize; in rkisp1_stats_g_fmt_meta_cap()
133 struct rkisp1_stats *stats = vq->drv_priv; in rkisp1_stats_vb2_stop_streaming() local
137 spin_lock_irq(&stats->lock); in rkisp1_stats_vb2_stop_streaming()
139 if (list_empty(&stats->stat)) in rkisp1_stats_vb2_stop_streaming()
141 buf = list_first_entry(&stats->stat, in rkisp1_stats_vb2_stop_streaming()
[all …]
/openbmc/linux/drivers/gpu/drm/i915/gt/
H A Dintel_engine_stats.h18 struct intel_engine_execlists_stats *stats = &engine->stats.execlists; in intel_engine_context_in() local
21 if (stats->active) { in intel_engine_context_in()
22 stats->active++; in intel_engine_context_in()
28 write_seqcount_begin(&stats->lock); in intel_engine_context_in()
30 stats->start = ktime_get(); in intel_engine_context_in()
31 stats->active++; in intel_engine_context_in()
33 write_seqcount_end(&stats->lock); in intel_engine_context_in()
36 GEM_BUG_ON(!stats->active); in intel_engine_context_in()
41 struct intel_engine_execlists_stats *stats = &engine->stats.execlists; in intel_engine_context_out() local
44 GEM_BUG_ON(!stats->active); in intel_engine_context_out()
[all …]
/openbmc/openbmc/meta-openembedded/meta-python/recipes-devtools/python/python3-yappi/
H A D0001-test_functionality-convert-line-endings-to-Unix.patch96 - stats = yappi.get_func_stats()
97 - self.assertEqual(stats.pop().ncall, 3) # aggregated if no tag is given
98 - stats = yappi.get_func_stats(tag=1)
101 - stats = yappi.get_func_stats(tag=i)
102 - stats = yappi.get_func_stats(
106 - stat = stats.pop()
114 - stats = yappi.get_func_stats()
115 - self.assertEqual(len(stats), 1)
116 - stat = stats.pop()
210 - stats = yappi.get_func_stats(
[all …]
/openbmc/linux/block/
H A Dbfq-cgroup.c96 /* bfqg stats flags */
104 static void bfqg_stats_mark_##name(struct bfqg_stats *stats) \
106 stats->flags |= (1 << BFQG_stats_##name); \
108 static void bfqg_stats_clear_##name(struct bfqg_stats *stats) \
110 stats->flags &= ~(1 << BFQG_stats_##name); \
112 static int bfqg_stats_##name(struct bfqg_stats *stats) \
114 return (stats->flags & (1 << BFQG_stats_##name)) != 0; \
123 static void bfqg_stats_update_group_wait_time(struct bfqg_stats *stats) in BFQG_FLAG_FNS()
127 if (!bfqg_stats_waiting(stats)) in BFQG_FLAG_FNS()
131 if (now > stats->start_group_wait_time) in BFQG_FLAG_FNS()
[all …]
/openbmc/linux/drivers/infiniband/hw/cxgb4/
H A Dresource.c125 mutex_lock(&rdev->stats.lock); in c4iw_get_cqid()
126 rdev->stats.qid.cur += rdev->qpmask + 1; in c4iw_get_cqid()
127 mutex_unlock(&rdev->stats.lock); in c4iw_get_cqid()
156 mutex_lock(&rdev->stats.lock); in c4iw_get_cqid()
157 if (rdev->stats.qid.cur > rdev->stats.qid.max) in c4iw_get_cqid()
158 rdev->stats.qid.max = rdev->stats.qid.cur; in c4iw_get_cqid()
159 mutex_unlock(&rdev->stats.lock); in c4iw_get_cqid()
194 mutex_lock(&rdev->stats.lock); in c4iw_get_qpid()
195 rdev->stats.qid.fail++; in c4iw_get_qpid()
196 mutex_unlock(&rdev->stats.lock); in c4iw_get_qpid()
[all …]
/openbmc/linux/sound/soc/fsl/
H A Dfsl_ssi_dbg.c18 dbg->stats.rfrc++; in fsl_ssi_dbg_isr()
21 dbg->stats.tfrc++; in fsl_ssi_dbg_isr()
24 dbg->stats.cmdau++; in fsl_ssi_dbg_isr()
27 dbg->stats.cmddu++; in fsl_ssi_dbg_isr()
30 dbg->stats.rxt++; in fsl_ssi_dbg_isr()
33 dbg->stats.rdr1++; in fsl_ssi_dbg_isr()
36 dbg->stats.rdr0++; in fsl_ssi_dbg_isr()
39 dbg->stats.tde1++; in fsl_ssi_dbg_isr()
42 dbg->stats.tde0++; in fsl_ssi_dbg_isr()
45 dbg->stats.roe1++; in fsl_ssi_dbg_isr()
[all …]
/openbmc/linux/drivers/net/ethernet/aquantia/atlantic/
H A Daq_ring.c100 u64_stats_update_begin(&self->stats.rx.syncp); in aq_get_rxpages()
101 self->stats.rx.pg_flips++; in aq_get_rxpages()
102 u64_stats_update_end(&self->stats.rx.syncp); in aq_get_rxpages()
110 u64_stats_update_begin(&self->stats.rx.syncp); in aq_get_rxpages()
111 self->stats.rx.pg_losts++; in aq_get_rxpages()
112 u64_stats_update_end(&self->stats.rx.syncp); in aq_get_rxpages()
116 u64_stats_update_begin(&self->stats.rx.syncp); in aq_get_rxpages()
117 self->stats.rx.pg_reuses++; in aq_get_rxpages()
118 u64_stats_update_end(&self->stats.rx.syncp); in aq_get_rxpages()
125 u64_stats_update_begin(&self->stats.rx.syncp); in aq_get_rxpages()
[all …]
/openbmc/openbmc/poky/scripts/contrib/bb-perf/
H A Dbuildstats.sh9 # USER_CLASSES ?= "buildstats" on local.conf), task names and a stats values
28 # Stats, by type
41 STATS="$TIME"
54 -s stats The stats to be matched. Options: TIME, IO, RUSAGE, CHILD_RUSAGE
56 (default: "$STATS")
62 -a Accumulate all stats values for found recipes
80 STATS="$OPTARG"
106 stats=""
108 for stat in ${STATS}; do
111 stats="${stats}:${TIME}"
[all …]
/openbmc/linux/net/wireless/
H A Dwext-proc.c32 /* Get stats from the driver */ in wireless_seq_printf_stats()
33 struct iw_statistics *stats = get_wireless_stats(dev); in wireless_seq_printf_stats() local
36 /* show device if it's wireless regardless of current stats */ in wireless_seq_printf_stats()
37 if (!stats) { in wireless_seq_printf_stats()
40 stats = &nullstats; in wireless_seq_printf_stats()
44 stats = &nullstats; in wireless_seq_printf_stats()
48 if (stats) { in wireless_seq_printf_stats()
51 dev->name, stats->status, stats->qual.qual, in wireless_seq_printf_stats()
52 stats->qual.updated & IW_QUAL_QUAL_UPDATED in wireless_seq_printf_stats()
54 ((__s32) stats->qual.level) - in wireless_seq_printf_stats()
[all …]
/openbmc/linux/tools/perf/util/
H A Dmem-events.c532 int c2c_decode_stats(struct c2c_stats *stats, struct mem_info *mi) in c2c_decode_stats() argument
555 stats->__f++; \ in c2c_decode_stats()
556 stats->tot_hitm++; \ in c2c_decode_stats()
561 stats->__f++; \ in c2c_decode_stats()
562 stats->tot_peer++; \ in c2c_decode_stats()
567 stats->nr_entries++; in c2c_decode_stats()
569 if (lock & P(LOCK, LOCKED)) stats->locks++; in c2c_decode_stats()
571 if (blk & P(BLK, DATA)) stats->blk_data++; in c2c_decode_stats()
572 if (blk & P(BLK, ADDR)) stats->blk_addr++; in c2c_decode_stats()
576 stats->load++; in c2c_decode_stats()
[all …]

12345678910>>...100