Home
last modified time | relevance | path

Searched refs:prev_count (Results 1 – 25 of 63) sorted by relevance

123

/linux-6.6.21/drivers/perf/
Dmarvell_cn10k_ddr_pmu.c410 u64 prev_count, new_count, mask; in cn10k_ddr_perf_event_update() local
413 prev_count = local64_read(&hwc->prev_count); in cn10k_ddr_perf_event_update()
415 } while (local64_xchg(&hwc->prev_count, new_count) != prev_count); in cn10k_ddr_perf_event_update()
419 local64_add((new_count - prev_count) & mask, &event->count); in cn10k_ddr_perf_event_update()
428 local64_set(&hwc->prev_count, 0); in cn10k_ddr_perf_event_start()
546 local64_set(&hwc->prev_count, 0); in cn10k_ddr_perf_event_update_all()
554 u64 prev_count, new_count; in cn10k_ddr_pmu_overflow_handler() local
561 prev_count = local64_read(&hwc->prev_count); in cn10k_ddr_pmu_overflow_handler()
567 if (new_count < prev_count) in cn10k_ddr_pmu_overflow_handler()
574 prev_count = local64_read(&hwc->prev_count); in cn10k_ddr_pmu_overflow_handler()
[all …]
Darm_dmc620_pmu.c327 u64 delta, prev_count, new_count; in dmc620_pmu_event_update() local
331 prev_count = local64_read(&hwc->prev_count); in dmc620_pmu_event_update()
333 } while (local64_cmpxchg(&hwc->prev_count, in dmc620_pmu_event_update()
334 prev_count, new_count) != prev_count); in dmc620_pmu_event_update()
335 delta = (new_count - prev_count) & DMC620_CNT_MAX_PERIOD; in dmc620_pmu_event_update()
343 local64_set(&event->hw.prev_count, DMC620_CNT_INIT); in dmc620_pmu_event_set_period()
Darm_dsu_pmu.c352 u64 delta, prev_count, new_count; in dsu_pmu_event_update() local
356 prev_count = local64_read(&hwc->prev_count); in dsu_pmu_event_update()
358 } while (local64_cmpxchg(&hwc->prev_count, prev_count, new_count) != in dsu_pmu_event_update()
359 prev_count); in dsu_pmu_event_update()
360 delta = (new_count - prev_count) & DSU_PMU_COUNTER_MASK(hwc->idx); in dsu_pmu_event_update()
386 local64_set(&event->hw.prev_count, val); in dsu_pmu_set_event_period()
Dqcom_l3_pmu.c206 local64_set(&event->hw.prev_count, 0); in qcom_l3_cache__64bit_counter_start()
247 prev = local64_read(&event->hw.prev_count); in qcom_l3_cache__64bit_counter_update()
253 } while (local64_cmpxchg(&event->hw.prev_count, prev, new) != prev); in qcom_l3_cache__64bit_counter_update()
285 local64_set(&event->hw.prev_count, 0); in qcom_l3_cache__32bit_counter_start()
323 prev = local64_read(&event->hw.prev_count); in qcom_l3_cache__32bit_counter_update()
325 } while (local64_cmpxchg(&event->hw.prev_count, prev, new) != prev); in qcom_l3_cache__32bit_counter_update()
Driscv_pmu.c176 prev_raw_count = local64_read(&hwc->prev_count); in riscv_pmu_event_update()
178 oldval = local64_cmpxchg(&hwc->prev_count, prev_raw_count, in riscv_pmu_event_update()
237 local64_set(&hwc->prev_count, (u64)-left); in riscv_pmu_event_set_period()
256 init_val = local64_read(&hwc->prev_count) & max_period; in riscv_pmu_start()
Dalibaba_uncore_drw_pmu.c311 prev = local64_read(&hwc->prev_count); in ali_drw_pmu_event_update()
313 } while (local64_cmpxchg(&hwc->prev_count, prev, now) != prev); in ali_drw_pmu_event_update()
336 local64_set(&event->hw.prev_count, pre_val); in ali_drw_pmu_event_set_period()
595 local64_read(&event->hw.prev_count); in ali_drw_pmu_start()
Dthunderx2_pmu.c379 local64_set(&hwc->prev_count, 0); in uncore_start_event_l3c()
409 local64_set(&hwc->prev_count, 0); in uncore_start_event_dmc()
452 local64_set(&event->hw.prev_count, 0ULL); in uncore_start_event_ccpi2()
484 prev = local64_xchg(&hwc->prev_count, new); in tx2_uncore_event_update()
488 prev = local64_xchg(&hwc->prev_count, new); in tx2_uncore_event_update()
Dqcom_l2_pmu.c304 prev = local64_read(&hwc->prev_count); in l2_cache_event_update()
306 } while (local64_cmpxchg(&hwc->prev_count, prev, now) != prev); in l2_cache_event_update()
335 local64_set(&hwc->prev_count, new); in l2_cache_cluster_set_period()
604 local64_set(&hwc->prev_count, 0); in l2_cache_event_add()
/linux-6.6.21/arch/arm/mm/
Dcache-l2x0-pmu.c120 u64 prev_count, new_count, mask; in l2x0_pmu_event_read() local
123 prev_count = local64_read(&hw->prev_count); in l2x0_pmu_event_read()
125 } while (local64_xchg(&hw->prev_count, new_count) != prev_count); in l2x0_pmu_event_read()
128 local64_add((new_count - prev_count) & mask, &event->count); in l2x0_pmu_event_read()
147 local64_set(&hw->prev_count, 0); in l2x0_pmu_event_configure()
/linux-6.6.21/arch/powerpc/perf/
D8xx-pmu.c115 local64_set(&event->hw.prev_count, val); in mpc8xx_pmu_add()
128 prev = local64_read(&event->hw.prev_count); in mpc8xx_pmu_read()
149 } while (local64_cmpxchg(&event->hw.prev_count, prev, val) != prev); in mpc8xx_pmu_read()
Dcore-fsl-emb.c175 prev = local64_read(&event->hw.prev_count); in fsl_emb_pmu_read()
178 } while (local64_cmpxchg(&event->hw.prev_count, prev, val) != prev); in fsl_emb_pmu_read()
314 local64_set(&event->hw.prev_count, val); in fsl_emb_pmu_add()
602 prev = local64_read(&event->hw.prev_count); in record_and_restart()
625 local64_set(&event->hw.prev_count, val); in record_and_restart()
Dcore-book3s.c1169 local64_set(&event->hw.prev_count, val); in power_pmu_read()
1179 prev = local64_read(&event->hw.prev_count); in power_pmu_read()
1185 } while (local64_cmpxchg(&event->hw.prev_count, prev, val) != prev); in power_pmu_read()
1229 prev = local64_read(&event->hw.prev_count); in freeze_limited_counters()
1248 prev = local64_read(&event->hw.prev_count); in thaw_limited_counters()
1250 local64_set(&event->hw.prev_count, val); in thaw_limited_counters()
1548 val = local64_read(&event->hw.prev_count); in power_pmu_enable()
1556 local64_set(&event->hw.prev_count, val); in power_pmu_enable()
2175 local64_set(&event->hw.prev_count, 0); in power_pmu_event_init()
2250 prev = local64_read(&event->hw.prev_count); in record_and_restart()
[all …]
/linux-6.6.21/fs/gfs2/
Dfile.c779 size_t *prev_count, in should_fault_in_pages() argument
796 if (*prev_count != count) { in should_fault_in_pages()
804 *prev_count = count; in should_fault_in_pages()
814 size_t prev_count = 0, window_size = 0; in gfs2_file_direct_read() local
855 if (should_fault_in_pages(to, iocb, &prev_count, &window_size)) { in gfs2_file_direct_read()
878 size_t prev_count = 0, window_size = 0; in gfs2_file_direct_write() local
924 enough_retries = prev_count == iov_iter_count(from) && in gfs2_file_direct_write()
926 if (should_fault_in_pages(from, iocb, &prev_count, &window_size)) { in gfs2_file_direct_write()
951 size_t prev_count = 0, window_size = 0; in gfs2_file_read_iter() local
994 if (should_fault_in_pages(to, iocb, &prev_count, &window_size)) { in gfs2_file_read_iter()
[all …]
/linux-6.6.21/arch/x86/events/
Dmsr.c247 prev = local64_read(&event->hw.prev_count); in msr_event_update()
250 } while (!local64_try_cmpxchg(&event->hw.prev_count, &prev, now)); in msr_event_update()
269 local64_set(&event->hw.prev_count, now); in msr_event_start()
/linux-6.6.21/kernel/
Dsoftirq.c543 int prev_count; in __do_softirq() local
548 prev_count = preempt_count(); in __do_softirq()
555 if (unlikely(prev_count != preempt_count())) { in __do_softirq()
558 prev_count, preempt_count()); in __do_softirq()
559 preempt_count_set(prev_count); in __do_softirq()
/linux-6.6.21/drivers/iommu/intel/
Dperfmon.c324 u64 prev_count, new_count, delta; in iommu_pmu_event_update() local
328 prev_count = local64_read(&hwc->prev_count); in iommu_pmu_event_update()
330 if (local64_xchg(&hwc->prev_count, new_count) != prev_count) in iommu_pmu_event_update()
337 delta = (new_count << shift) - (prev_count << shift); in iommu_pmu_event_update()
363 local64_set((&hwc->prev_count), count); in iommu_pmu_start()
/linux-6.6.21/drivers/perf/hisilicon/
Dhisi_uncore_pmu.c286 local64_set(&hwc->prev_count, val); in hisi_uncore_pmu_set_event_period()
301 prev_raw_count = local64_read(&hwc->prev_count); in hisi_uncore_pmu_event_update()
302 } while (local64_cmpxchg(&hwc->prev_count, prev_raw_count, in hisi_uncore_pmu_event_update()
326 u64 prev_raw_count = local64_read(&hwc->prev_count); in hisi_uncore_pmu_start()
/linux-6.6.21/arch/arm/mach-imx/
Dmmdc.c313 prev_raw_count = local64_read(&hwc->prev_count); in mmdc_pmu_event_update()
316 } while (local64_cmpxchg(&hwc->prev_count, prev_raw_count, in mmdc_pmu_event_update()
341 local64_set(&hwc->prev_count, 0); in mmdc_pmu_event_start()
376 local64_set(&hwc->prev_count, mmdc_pmu_read_counter(pmu_mmdc, cfg)); in mmdc_pmu_event_add()
/linux-6.6.21/arch/xtensa/kernel/
Dperf_event.c152 prev_raw_count = local64_read(&hwc->prev_count); in xtensa_perf_event_update()
154 } while (local64_cmpxchg(&hwc->prev_count, prev_raw_count, in xtensa_perf_event_update()
190 local64_set(&hwc->prev_count, -left); in xtensa_perf_event_set_period()
/linux-6.6.21/tools/perf/arch/x86/util/
Diostat.c438 struct perf_counts_values *prev_count = in iostat_print_metric() local
441 prev_count_val = prev_count->val; in iostat_print_metric()
442 prev_count->val = count->val; in iostat_print_metric()
/linux-6.6.21/arch/sh/kernel/
Dperf_event.c178 prev_raw_count = local64_read(&hwc->prev_count); in sh_perf_event_update()
181 if (local64_cmpxchg(&hwc->prev_count, prev_raw_count, in sh_perf_event_update()
/linux-6.6.21/arch/s390/kernel/
Dperf_pai_crypto.c241 prev = local64_read(&event->hw.prev_count); in paicrypt_read()
243 local64_set(&event->hw.prev_count, new); in paicrypt_read()
257 local64_set(&event->hw.prev_count, sum); in paicrypt_start()
Dperf_pai_ext.c314 prev = local64_read(&event->hw.prev_count); in paiext_read()
316 local64_set(&event->hw.prev_count, new); in paiext_read()
329 local64_set(&event->hw.prev_count, sum); in paiext_start()
/linux-6.6.21/arch/arc/kernel/
Dperf_event.c283 u64 prev_raw_count = local64_read(&hwc->prev_count); in arc_perf_event_update()
291 local64_set(&hwc->prev_count, new_raw_count); in arc_perf_event_update()
432 local64_set(&hwc->prev_count, value); in arc_pmu_event_set_period()
550 local64_set(&hwc->prev_count, 0); in arc_pmu_add()
/linux-6.6.21/arch/alpha/kernel/
Dperf_event.c283 local64_set(&hwc->prev_count, (unsigned long)(-left)); in alpha_perf_event_set_period()
314 prev_raw_count = local64_read(&hwc->prev_count); in alpha_perf_event_update()
317 if (local64_cmpxchg(&hwc->prev_count, prev_raw_count, in alpha_perf_event_update()

123