/linux/arch/powerpc/perf/ |
A 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()
|
A D | core-book3s.c | 1157 prev = local64_read(&event->hw.period_left); in power_pmu_read() 1161 } while (local64_cmpxchg(&event->hw.period_left, prev, val) != prev); in power_pmu_read() 1477 left = local64_read(&event->hw.period_left); in power_pmu_enable() 1702 left = local64_read(&event->hw.period_left); in power_pmu_start() 2076 local64_set(&event->hw.period_left, event->hw.last_period); in power_pmu_event_init() 2167 left = local64_read(&event->hw.period_left) - delta; in record_and_restart() 2194 local64_set(&event->hw.period_left, left); in record_and_restart()
|
/linux/Documentation/translations/zh_CN/riscv/ |
A D | pmu.rst | 86 local64_set(&hwc->period_left, hwc->sample_period); 139 event->hw.period_left by subtracting delta 159 (event->count),还要更新左周期到下一个中断(event->hw.period_left)。
|
/linux/arch/xtensa/kernel/ |
A 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/arch/arc/kernel/ |
A D | perf_event.c | 131 local64_sub(delta, &hwc->period_left); in arc_perf_event_update() 175 local64_set(&hwc->period_left, hwc->sample_period); in arc_pmu_event_init() 246 s64 left = local64_read(&hwc->period_left); in arc_pmu_event_set_period() 255 local64_set(&hwc->period_left, left); in arc_pmu_event_set_period() 261 local64_set(&hwc->period_left, left); in arc_pmu_event_set_period()
|
/linux/arch/alpha/kernel/ |
A 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/arch/x86/events/amd/ |
A D | ibs.c | 107 s64 left = local64_read(&hwc->period_left); in perf_event_set_period() 116 local64_set(&hwc->period_left, left); in perf_event_set_period() 123 local64_set(&hwc->period_left, left); in perf_event_set_period() 179 local64_sub(delta, &hwc->period_left); in perf_event_try_update() 302 local64_set(&hwc->period_left, hwc->sample_period); in perf_ibs_init()
|
/linux/drivers/perf/ |
A D | arm_pmu.c | 200 s64 left = local64_read(&hwc->period_left); in armpmu_event_set_period() 208 local64_set(&hwc->period_left, left); in armpmu_event_set_period() 215 local64_set(&hwc->period_left, left); in armpmu_event_set_period() 256 local64_sub(delta, &hwc->period_left); in armpmu_event_update() 487 local64_set(&hwc->period_left, hwc->sample_period); in __hw_perf_event_init()
|
A D | arm_spe_pmu.c | 747 reg = local64_read(&hwc->period_left); in arm_spe_pmu_start() 790 local64_set(&hwc->period_left, read_sysreg_s(SYS_PMSICR_EL1)); in arm_spe_pmu_stop()
|
/linux/arch/nds32/kernel/ |
A D | perf_event_cpu.c | 187 s64 left = local64_read(&hwc->period_left); in nds32_pmu_event_set_period() 197 local64_set(&hwc->period_left, left); in nds32_pmu_event_set_period() 204 local64_set(&hwc->period_left, left); in nds32_pmu_event_set_period() 846 local64_set(&hwc->period_left, hwc->sample_period); in __hw_perf_event_init() 964 local64_sub(delta, &hwc->period_left); in nds32_pmu_event_update()
|
/linux/arch/mips/kernel/ |
A 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/arch/csky/kernel/ |
A 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/Documentation/riscv/ |
A D | pmu.rst | 87 local64_set(&hwc->period_left, hwc->sample_period); 143 event->hw.period_left by subtracting delta 166 (event->hw.period_left).
|
/linux/arch/sparc/kernel/ |
A 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/arch/x86/events/ |
A D | core.c | 149 local64_sub(delta, &hwc->period_left); in x86_perf_event_update() 482 local64_set(&hwc->period_left, hwc->sample_period); in x86_setup_perfctr() 1362 s64 left = local64_read(&hwc->period_left); in x86_perf_event_set_period() 1378 local64_set(&hwc->period_left, left); in x86_perf_event_set_period() 1385 local64_set(&hwc->period_left, left); in x86_perf_event_set_period()
|
/linux/kernel/events/ |
A D | core.c | 4031 if (local64_read(&hwc->period_left) > 8*sample_period) { in perf_adjust_period() 4035 local64_set(&hwc->period_left, 0); in perf_adjust_period() 5533 local64_set(&event->hw.period_left, 0); in __perf_event_period() 9256 old = val = local64_read(&hwc->period_left); in perf_swevent_set_period() 9263 if (local64_cmpxchg(&hwc->period_left, old, val) != old) in perf_swevent_set_period() 9318 if (local64_add_negative(nr, &hwc->period_left)) in perf_swevent_event() 10618 period = local64_read(&hwc->period_left); in perf_swevent_start_hrtimer() 10623 local64_set(&hwc->period_left, 0); in perf_swevent_start_hrtimer() 10662 local64_set(&hwc->period_left, hwc->sample_period); in perf_swevent_init_hrtimer() 11595 local64_set(&hwc->period_left, hwc->sample_period); in perf_event_alloc() [all …]
|
/linux/arch/arm64/kvm/ |
A D | pmu-emul.c | 491 local64_set(&perf_event->hw.period_left, 0); in kvm_pmu_perf_overflow()
|
/linux/include/linux/ |
A D | perf_event.h | 229 local64_t period_left; member
|
/linux/arch/s390/kernel/ |
A D | perf_cpum_cf.c | 1320 local64_set(&event->hw.period_left, event->hw.sample_period); in cfdiag_event_init2()
|
A D | perf_cpum_sf.c | 617 local64_set(&hwc->period_left, hwc->sample_period); in hw_init_period()
|
/linux/arch/x86/events/intel/ |
A D | ds.c | 1851 local64_set(&hwc->period_left, -new); in intel_pmu_save_and_restart_reload()
|
A D | core.c | 2465 s64 left = local64_read(&hwc->period_left); in icl_set_topdown_event_period()
|