/linux-6.1.9/drivers/perf/ |
D | riscv_pmu.c | 119 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()
|
D | arm_pmu.c | 202 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()
|
D | arm_spe_pmu.c | 767 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/ |
D | core-fsl-emb.c | 183 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()
|
D | core-book3s.c | 1199 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/ |
D | perf_event.c | 151 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/ |
D | perf_event.c | 304 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/ |
D | perf_event.c | 255 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/ |
D | perf_event.c | 293 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/ |
D | ibs.c | 103 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/ |
D | perf_event_mipsxx.c | 413 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/ |
D | perf_event.c | 881 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/ |
D | perf_event.c | 882 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/ |
D | core.c | 150 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/ |
D | core.c | 4050 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/ |
D | pmu-emul.c | 511 local64_set(&perf_event->hw.period_left, 0); in kvm_pmu_perf_overflow()
|
/linux-6.1.9/include/linux/ |
D | perf_event.h | 244 local64_t period_left; member
|
/linux-6.1.9/arch/s390/kernel/ |
D | perf_cpum_cf.c | 1341 local64_set(&event->hw.period_left, event->hw.sample_period); in cfdiag_event_init2()
|
D | perf_cpum_sf.c | 618 local64_set(&hwc->period_left, hwc->sample_period); in hw_init_period()
|
/linux-6.1.9/arch/x86/events/intel/ |
D | ds.c | 1951 local64_set(&hwc->period_left, -new); in intel_pmu_save_and_restart_reload()
|
D | core.c | 2501 s64 left = local64_read(&hwc->period_left); in icl_set_topdown_event_period()
|