Home
last modified time | relevance | path

Searched refs:period_left (Results 1 – 21 of 21) sorted by relevance

/linux-6.1.9/drivers/perf/
Driscv_pmu.c119 local64_sub(delta, &hwc->period_left); in riscv_pmu_event_update()
144 s64 left = local64_read(&hwc->period_left); in riscv_pmu_event_set_period()
151 local64_set(&hwc->period_left, left); in riscv_pmu_event_set_period()
158 local64_set(&hwc->period_left, left); in riscv_pmu_event_set_period()
280 local64_set(&hwc->period_left, hwc->sample_period); in riscv_pmu_event_init()
Darm_pmu.c202 s64 left = local64_read(&hwc->period_left); in armpmu_event_set_period()
210 local64_set(&hwc->period_left, left); in armpmu_event_set_period()
217 local64_set(&hwc->period_left, left); in armpmu_event_set_period()
258 local64_sub(delta, &hwc->period_left); in armpmu_event_update()
492 local64_set(&hwc->period_left, hwc->sample_period); in __hw_perf_event_init()
Darm_spe_pmu.c767 reg = local64_read(&hwc->period_left); in arm_spe_pmu_start()
810 local64_set(&hwc->period_left, read_sysreg_s(SYS_PMSICR_EL1)); in arm_spe_pmu_stop()
/linux-6.1.9/arch/powerpc/perf/
Dcore-fsl-emb.c183 local64_sub(delta, &event->hw.period_left); in fsl_emb_pmu_read()
310 s64 left = local64_read(&event->hw.period_left); in fsl_emb_pmu_add()
393 left = local64_read(&event->hw.period_left); in fsl_emb_pmu_start()
547 local64_set(&event->hw.period_left, event->hw.last_period); in fsl_emb_pmu_event_init()
611 left = local64_read(&event->hw.period_left) - delta; in record_and_restart()
626 local64_set(&event->hw.period_left, left); in record_and_restart()
Dcore-book3s.c1199 prev = local64_read(&event->hw.period_left); in power_pmu_read()
1203 } while (local64_cmpxchg(&event->hw.period_left, prev, val) != prev); in power_pmu_read()
1553 left = local64_read(&event->hw.period_left); in power_pmu_enable()
1778 left = local64_read(&event->hw.period_left); in power_pmu_start()
2169 local64_set(&event->hw.period_left, event->hw.last_period); in power_pmu_event_init()
2260 left = local64_read(&event->hw.period_left) - delta; in record_and_restart()
2287 local64_set(&event->hw.period_left, left); in record_and_restart()
/linux-6.1.9/arch/xtensa/kernel/
Dperf_event.c151 local64_sub(delta, &hwc->period_left); in xtensa_perf_event_update()
165 left = local64_read(&hwc->period_left); in xtensa_perf_event_set_period()
168 local64_set(&hwc->period_left, left); in xtensa_perf_event_set_period()
173 local64_set(&hwc->period_left, left); in xtensa_perf_event_set_period()
/linux-6.1.9/arch/loongarch/kernel/
Dperf_event.c304 u64 left = local64_read(&hwc->period_left); in loongarch_pmu_event_set_period()
310 local64_set(&hwc->period_left, left); in loongarch_pmu_event_set_period()
316 local64_set(&hwc->period_left, left); in loongarch_pmu_event_set_period()
323 local64_set(&hwc->period_left, left); in loongarch_pmu_event_set_period()
353 local64_sub(delta, &hwc->period_left); in loongarch_pmu_event_update()
808 local64_set(&hwc->period_left, hwc->sample_period); in __hw_perf_event_init()
/linux-6.1.9/arch/alpha/kernel/
Dperf_event.c255 long left = local64_read(&hwc->period_left); in alpha_perf_event_set_period()
261 local64_set(&hwc->period_left, left); in alpha_perf_event_set_period()
268 local64_set(&hwc->period_left, left); in alpha_perf_event_set_period()
331 local64_sub(delta, &hwc->period_left); in alpha_perf_event_update()
681 local64_set(&hwc->period_left, hwc->sample_period); in __hw_perf_event_init()
/linux-6.1.9/arch/arc/kernel/
Dperf_event.c293 local64_sub(delta, &hwc->period_left); in arc_perf_event_update()
337 local64_set(&hwc->period_left, hwc->sample_period); in arc_pmu_event_init()
408 s64 left = local64_read(&hwc->period_left); in arc_pmu_event_set_period()
417 local64_set(&hwc->period_left, left); in arc_pmu_event_set_period()
423 local64_set(&hwc->period_left, left); in arc_pmu_event_set_period()
/linux-6.1.9/arch/x86/events/amd/
Dibs.c103 s64 left = local64_read(&hwc->period_left); in perf_event_set_period()
112 local64_set(&hwc->period_left, left); in perf_event_set_period()
119 local64_set(&hwc->period_left, left); in perf_event_set_period()
175 local64_sub(delta, &hwc->period_left); in perf_event_try_update()
298 local64_set(&hwc->period_left, hwc->sample_period); in perf_ibs_init()
/linux-6.1.9/arch/mips/kernel/
Dperf_event_mipsxx.c413 u64 left = local64_read(&hwc->period_left); in mipspmu_event_set_period()
420 local64_set(&hwc->period_left, left); in mipspmu_event_set_period()
426 local64_set(&hwc->period_left, left); in mipspmu_event_set_period()
433 local64_set(&hwc->period_left, left); in mipspmu_event_set_period()
467 local64_sub(delta, &hwc->period_left); in mipspmu_event_update()
1531 local64_set(&hwc->period_left, hwc->sample_period); in __hw_perf_event_init()
/linux-6.1.9/arch/csky/kernel/
Dperf_event.c881 s64 left = local64_read(&hwc->period_left); in csky_pmu_event_set_period()
887 local64_set(&hwc->period_left, left); in csky_pmu_event_set_period()
894 local64_set(&hwc->period_left, left); in csky_pmu_event_set_period()
937 local64_sub(delta, &hwc->period_left); in csky_perf_event_update()
/linux-6.1.9/arch/sparc/kernel/
Dperf_event.c882 local64_sub(delta, &hwc->period_left); in sparc_perf_event_update()
890 s64 left = local64_read(&hwc->period_left); in sparc_perf_event_set_period()
900 local64_set(&hwc->period_left, left); in sparc_perf_event_set_period()
907 local64_set(&hwc->period_left, left); in sparc_perf_event_set_period()
1501 local64_set(&hwc->period_left, hwc->sample_period); in sparc_pmu_event_init()
/linux-6.1.9/arch/x86/events/
Dcore.c150 local64_sub(delta, &hwc->period_left); in x86_perf_event_update()
483 local64_set(&hwc->period_left, hwc->sample_period); in x86_setup_perfctr()
1368 s64 left = local64_read(&hwc->period_left); in x86_perf_event_set_period()
1380 local64_set(&hwc->period_left, left); in x86_perf_event_set_period()
1387 local64_set(&hwc->period_left, left); in x86_perf_event_set_period()
/linux-6.1.9/kernel/events/
Dcore.c4050 if (local64_read(&hwc->period_left) > 8*sample_period) { in perf_adjust_period()
4054 local64_set(&hwc->period_left, 0); in perf_adjust_period()
5565 local64_set(&event->hw.period_left, 0); in __perf_event_period()
9416 old = val = local64_read(&hwc->period_left); in perf_swevent_set_period()
9423 if (local64_cmpxchg(&hwc->period_left, old, val) != old) in perf_swevent_set_period()
9478 if (local64_add_negative(nr, &hwc->period_left)) in perf_swevent_event()
10793 period = local64_read(&hwc->period_left); in perf_swevent_start_hrtimer()
10798 local64_set(&hwc->period_left, 0); in perf_swevent_start_hrtimer()
10812 local64_set(&hwc->period_left, ktime_to_ns(remaining)); in perf_swevent_cancel_hrtimer()
10837 local64_set(&hwc->period_left, hwc->sample_period); in perf_swevent_init_hrtimer()
[all …]
/linux-6.1.9/arch/arm64/kvm/
Dpmu-emul.c511 local64_set(&perf_event->hw.period_left, 0); in kvm_pmu_perf_overflow()
/linux-6.1.9/include/linux/
Dperf_event.h244 local64_t period_left; member
/linux-6.1.9/arch/s390/kernel/
Dperf_cpum_cf.c1341 local64_set(&event->hw.period_left, event->hw.sample_period); in cfdiag_event_init2()
Dperf_cpum_sf.c618 local64_set(&hwc->period_left, hwc->sample_period); in hw_init_period()
/linux-6.1.9/arch/x86/events/intel/
Dds.c1951 local64_set(&hwc->period_left, -new); in intel_pmu_save_and_restart_reload()
Dcore.c2501 s64 left = local64_read(&hwc->period_left); in icl_set_topdown_event_period()