Home
last modified time | relevance | path

Searched refs:PERF_HES_STOPPED (Results 1 – 25 of 52) sorted by relevance

123

/linux-6.1.9/arch/x86/events/amd/
Dpower.c73 if (WARN_ON_ONCE(!(event->hw.state & PERF_HES_STOPPED))) in __pmu_event_start()
92 if (!(hwc->state & PERF_HES_STOPPED)) in pmu_event_stop()
93 hwc->state |= PERF_HES_STOPPED; in pmu_event_stop()
110 hwc->state = PERF_HES_UPTODATE | PERF_HES_STOPPED; in pmu_event_add()
Diommu.c281 if (WARN_ON_ONCE(!(hwc->state & PERF_HES_STOPPED))) in perf_iommu_start()
344 WARN_ON_ONCE(hwc->state & PERF_HES_STOPPED); in perf_iommu_stop()
345 hwc->state |= PERF_HES_STOPPED; in perf_iommu_stop()
352 event->hw.state = PERF_HES_UPTODATE | PERF_HES_STOPPED; in perf_iommu_add()
/linux-6.1.9/drivers/perf/
Driscv_pmu.c129 WARN_ON_ONCE(hwc->state & PERF_HES_STOPPED); in riscv_pmu_stop()
131 if (!(hwc->state & PERF_HES_STOPPED)) { in riscv_pmu_stop()
134 hwc->state |= PERF_HES_STOPPED; in riscv_pmu_stop()
184 if (WARN_ON_ONCE(!(event->hw.state & PERF_HES_STOPPED))) in riscv_pmu_start()
211 hwc->state = PERF_HES_UPTODATE | PERF_HES_STOPPED; in riscv_pmu_add()
Darm_dmc620_pmu.c388 if (!(event->hw.state & PERF_HES_STOPPED)) in dmc620_pmu_handle_irq()
548 if (event->hw.state & PERF_HES_STOPPED) in dmc620_pmu_stop()
553 event->hw.state |= PERF_HES_STOPPED | PERF_HES_UPTODATE; in dmc620_pmu_stop()
570 hwc->state = PERF_HES_STOPPED | PERF_HES_UPTODATE; in dmc620_pmu_add()
Dalibaba_uncore_drw_pmu.c393 if (!(event->hw.state & PERF_HES_STOPPED)) in ali_drw_pmu_isr()
582 if (event->hw.state & PERF_HES_STOPPED) in ali_drw_pmu_stop()
591 event->hw.state |= PERF_HES_STOPPED | PERF_HES_UPTODATE; in ali_drw_pmu_stop()
612 hwc->state = PERF_HES_STOPPED | PERF_HES_UPTODATE; in ali_drw_pmu_add()
Darm_spe_pmu.c502 event->hw.state |= PERF_HES_STOPPED; in arm_spe_perf_aux_output_begin()
783 if (hwc->state & PERF_HES_STOPPED) in arm_spe_pmu_stop()
814 hwc->state |= PERF_HES_STOPPED; in arm_spe_pmu_stop()
827 hwc->state = PERF_HES_UPTODATE | PERF_HES_STOPPED; in arm_spe_pmu_add()
831 if (hwc->state & PERF_HES_STOPPED) in arm_spe_pmu_add()
Dqcom_l3_pmu.c538 if (hwc->state & PERF_HES_STOPPED) in qcom_l3_cache__event_stop()
544 hwc->state |= PERF_HES_STOPPED | PERF_HES_UPTODATE; in qcom_l3_cache__event_stop()
563 hwc->state = PERF_HES_STOPPED | PERF_HES_UPTODATE; in qcom_l3_cache__event_add()
Dmarvell_cn10k_tad_pmu.c76 hwc->state |= PERF_HES_STOPPED | PERF_HES_UPTODATE; in tad_pmu_event_counter_stop()
130 hwc->state = PERF_HES_STOPPED; in tad_pmu_event_counter_add()
Darm_dsu_pmu.c433 if (event->hw.state & PERF_HES_STOPPED) in dsu_pmu_stop()
437 event->hw.state |= PERF_HES_STOPPED | PERF_HES_UPTODATE; in dsu_pmu_stop()
457 hwc->state = PERF_HES_STOPPED | PERF_HES_UPTODATE; in dsu_pmu_add()
Darm_pmu.c279 if (!(hwc->state & PERF_HES_STOPPED)) { in armpmu_stop()
282 hwc->state |= PERF_HES_STOPPED | PERF_HES_UPTODATE; in armpmu_stop()
351 hwc->state = PERF_HES_STOPPED | PERF_HES_UPTODATE; in armpmu_add()
/linux-6.1.9/arch/powerpc/perf/
Dcore-fsl-emb.c166 if (event->hw.state & PERF_HES_STOPPED) in fsl_emb_pmu_read()
317 event->hw.state = PERF_HES_STOPPED | PERF_HES_UPTODATE; in fsl_emb_pmu_add()
320 event->hw.state &= ~(PERF_HES_STOPPED | PERF_HES_UPTODATE); in fsl_emb_pmu_add()
383 if (!(event->hw.state & PERF_HES_STOPPED)) in fsl_emb_pmu_start()
411 if (event->hw.state & PERF_HES_STOPPED) in fsl_emb_pmu_stop()
418 event->hw.state |= PERF_HES_STOPPED | PERF_HES_UPTODATE; in fsl_emb_pmu_stop()
596 if (event->hw.state & PERF_HES_STOPPED) { in record_and_restart()
/linux-6.1.9/arch/sh/kernel/
Dperf_event.c205 if (!(event->hw.state & PERF_HES_STOPPED)) { in sh_pmu_stop()
208 event->hw.state |= PERF_HES_STOPPED; in sh_pmu_stop()
264 event->hw.state = PERF_HES_UPTODATE | PERF_HES_STOPPED; in sh_pmu_add()
/linux-6.1.9/drivers/hwtracing/coresight/
Dcoresight-etm-perf.c500 event->hw.state = PERF_HES_STOPPED; in etm_event_start()
526 if (event->hw.state == PERF_HES_STOPPED) in etm_event_stop()
541 event->hw.state = PERF_HES_STOPPED; in etm_event_stop()
561 event->hw.state = PERF_HES_STOPPED; in etm_event_stop()
607 if (hwc->state & PERF_HES_STOPPED) in etm_event_add()
610 hwc->state = PERF_HES_STOPPED; in etm_event_add()
/linux-6.1.9/arch/arm/mm/
Dcache-l2x0-pmu.c190 if (WARN_ON_ONCE(!(event->hw.state & PERF_HES_STOPPED))) in l2x0_pmu_event_start()
216 if (WARN_ON_ONCE(event->hw.state & PERF_HES_STOPPED)) in l2x0_pmu_event_stop()
221 hw->state |= PERF_HES_STOPPED; in l2x0_pmu_event_stop()
251 hw->state = PERF_HES_STOPPED | PERF_HES_UPTODATE; in l2x0_pmu_event_add()
/linux-6.1.9/arch/alpha/kernel/
Dperf_event.c421 if (!(hwc->state & PERF_HES_STOPPED)) in maybe_change_configuration()
471 hwc->state |= PERF_HES_STOPPED; in alpha_pmu_add()
537 if (!(hwc->state & PERF_HES_STOPPED)) { in alpha_pmu_stop()
539 hwc->state |= PERF_HES_STOPPED; in alpha_pmu_stop()
557 if (WARN_ON_ONCE(!(hwc->state & PERF_HES_STOPPED))) in alpha_pmu_start()
/linux-6.1.9/drivers/perf/hisilicon/
Dhisi_uncore_pmu.c316 if (WARN_ON_ONCE(!(hwc->state & PERF_HES_STOPPED))) in hisi_uncore_pmu_start()
339 WARN_ON_ONCE(hwc->state & PERF_HES_STOPPED); in hisi_uncore_pmu_stop()
340 hwc->state |= PERF_HES_STOPPED; in hisi_uncore_pmu_stop()
357 hwc->state = PERF_HES_STOPPED | PERF_HES_UPTODATE; in hisi_uncore_pmu_add()
Dhisi_pcie_pmu.c490 if (WARN_ON_ONCE(!(hwc->state & PERF_HES_STOPPED))) in hisi_pcie_pmu_start()
518 WARN_ON_ONCE(hwc->state & PERF_HES_STOPPED); in hisi_pcie_pmu_stop()
519 hwc->state |= PERF_HES_STOPPED; in hisi_pcie_pmu_stop()
533 hwc->state = PERF_HES_STOPPED | PERF_HES_UPTODATE; in hisi_pcie_pmu_add()
/linux-6.1.9/arch/x86/events/
Drapl.c248 if (WARN_ON_ONCE(!(event->hw.state & PERF_HES_STOPPED))) in __rapl_pmu_event_start()
281 if (!(hwc->state & PERF_HES_STOPPED)) { in rapl_pmu_event_stop()
289 WARN_ON_ONCE(hwc->state & PERF_HES_STOPPED); in rapl_pmu_event_stop()
290 hwc->state |= PERF_HES_STOPPED; in rapl_pmu_event_stop()
314 hwc->state = PERF_HES_UPTODATE | PERF_HES_STOPPED; in rapl_pmu_event_add()
/linux-6.1.9/arch/x86/events/intel/
Dbts.c288 event->hw.state = PERF_HES_STOPPED; in bts_event_start()
318 event->hw.state |= PERF_HES_STOPPED; in bts_event_stop()
525 event->hw.state = PERF_HES_STOPPED; in bts_event_add()
535 if (hwc->state & PERF_HES_STOPPED) in bts_event_add()
Dpt.c1509 event->hw.state = PERF_HES_STOPPED; in intel_pt_interrupt()
1593 hwc->state = PERF_HES_STOPPED; in pt_event_start()
1608 if (event->hw.state == PERF_HES_STOPPED) in pt_event_stop()
1611 event->hw.state = PERF_HES_STOPPED; in pt_event_stop()
1699 if (hwc->state == PERF_HES_STOPPED) in pt_event_add()
1702 hwc->state = PERF_HES_STOPPED; in pt_event_add()
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/
Damdgpu_pmu.c233 if (WARN_ON_ONCE(!(hwc->state & PERF_HES_STOPPED))) in amdgpu_perf_start()
322 WARN_ON_ONCE(hwc->state & PERF_HES_STOPPED); in amdgpu_perf_stop()
323 hwc->state |= PERF_HES_STOPPED; in amdgpu_perf_stop()
356 event->hw.state = PERF_HES_UPTODATE | PERF_HES_STOPPED; in amdgpu_perf_add()
/linux-6.1.9/arch/xtensa/kernel/
Dperf_event.c263 if (!(hwc->state & PERF_HES_STOPPED)) { in xtensa_pmu_stop()
267 hwc->state |= PERF_HES_STOPPED; in xtensa_pmu_stop()
298 hwc->state = PERF_HES_UPTODATE | PERF_HES_STOPPED; in xtensa_pmu_add()
/linux-6.1.9/drivers/hwtracing/ptt/
Dhisi_ptt.c777 event->hw.state |= PERF_HES_STOPPED; in hisi_ptt_pmu_start()
786 if (hwc->state & PERF_HES_STOPPED) in hisi_ptt_pmu_stop()
800 hwc->state |= PERF_HES_STOPPED; in hisi_ptt_pmu_stop()
815 hwc->state = PERF_HES_STOPPED | PERF_HES_UPTODATE; in hisi_ptt_pmu_add()
819 if (hwc->state & PERF_HES_STOPPED) in hisi_ptt_pmu_add()
/linux-6.1.9/arch/s390/kernel/
Dperf_cpum_cf.c600 if (event->hw.state & PERF_HES_STOPPED) in cpumf_pmu_read()
612 if (!(hwc->state & PERF_HES_STOPPED)) in cpumf_pmu_start()
688 if (!(hwc->state & PERF_HES_STOPPED)) { in cpumf_pmu_stop()
699 hwc->state |= PERF_HES_STOPPED; in cpumf_pmu_stop()
724 event->hw.state = PERF_HES_UPTODATE | PERF_HES_STOPPED; in cpumf_pmu_add()
/linux-6.1.9/arch/loongarch/kernel/
Dperf_event.c376 if (!(hwc->state & PERF_HES_STOPPED)) { in loongarch_pmu_stop()
381 hwc->state |= PERF_HES_STOPPED | PERF_HES_UPTODATE; in loongarch_pmu_stop()
408 hwc->state = PERF_HES_STOPPED | PERF_HES_UPTODATE; in loongarch_pmu_add()

123