Home
last modified time | relevance | path

Searched refs:PERF_HES_UPTODATE (Results 1 – 25 of 43) sorted by relevance

12

/linux-6.6.21/arch/sh/kernel/
Dperf_event.c211 if ((flags & PERF_EF_UPDATE) && !(event->hw.state & PERF_HES_UPTODATE)) { in sh_pmu_stop()
213 event->hw.state |= PERF_HES_UPTODATE; in sh_pmu_stop()
227 WARN_ON_ONCE(!(event->hw.state & PERF_HES_UPTODATE)); in sh_pmu_start()
264 event->hw.state = PERF_HES_UPTODATE | PERF_HES_STOPPED; in sh_pmu_add()
/linux-6.6.21/arch/x86/events/amd/
Dpower.c96 if ((mode & PERF_EF_UPDATE) && !(hwc->state & PERF_HES_UPTODATE)) { in pmu_event_stop()
102 hwc->state |= PERF_HES_UPTODATE; in pmu_event_stop()
110 hwc->state = PERF_HES_UPTODATE | PERF_HES_STOPPED; in pmu_event_add()
Diommu.c284 WARN_ON_ONCE(!(hwc->state & PERF_HES_UPTODATE)); in perf_iommu_start()
333 if (hwc->state & PERF_HES_UPTODATE) in perf_iommu_stop()
341 hwc->state |= PERF_HES_UPTODATE; in perf_iommu_stop()
352 event->hw.state = PERF_HES_UPTODATE | PERF_HES_STOPPED; in perf_iommu_add()
Duncore.c120 if ((flags & PERF_EF_UPDATE) && !(hwc->state & PERF_HES_UPTODATE)) { in amd_uncore_stop()
122 hwc->state |= PERF_HES_UPTODATE; in amd_uncore_stop()
159 hwc->state = PERF_HES_UPTODATE | PERF_HES_STOPPED; in amd_uncore_add()
Dibs.c432 WARN_ON_ONCE(!(hwc->state & PERF_HES_UPTODATE)); in perf_ibs_start()
466 if (!stopping && (hwc->state & PERF_HES_UPTODATE)) in perf_ibs_stop()
494 if (hwc->state & PERF_HES_UPTODATE) in perf_ibs_stop()
504 hwc->state |= PERF_HES_UPTODATE; in perf_ibs_stop()
515 event->hw.state = PERF_HES_UPTODATE | PERF_HES_STOPPED; in perf_ibs_add()
/linux-6.6.21/arch/xtensa/kernel/
Dperf_event.c258 WARN_ON_ONCE(!(event->hw.state & PERF_HES_UPTODATE)); in xtensa_pmu_start()
280 !(event->hw.state & PERF_HES_UPTODATE)) { in xtensa_pmu_stop()
282 event->hw.state |= PERF_HES_UPTODATE; in xtensa_pmu_stop()
307 hwc->state = PERF_HES_UPTODATE | PERF_HES_STOPPED; in xtensa_pmu_add()
/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/
Damdgpu_pmu.c240 WARN_ON_ONCE(!(hwc->state & PERF_HES_UPTODATE)); in amdgpu_perf_start()
304 if (hwc->state & PERF_HES_UPTODATE) in amdgpu_perf_stop()
324 if (hwc->state & PERF_HES_UPTODATE) in amdgpu_perf_stop()
328 hwc->state |= PERF_HES_UPTODATE; in amdgpu_perf_stop()
355 event->hw.state = PERF_HES_UPTODATE | PERF_HES_STOPPED; in amdgpu_perf_add()
/linux-6.6.21/drivers/perf/hisilicon/
Dhisi_uncore_pmu.c321 WARN_ON_ONCE(!(hwc->state & PERF_HES_UPTODATE)); in hisi_uncore_pmu_start()
344 if (hwc->state & PERF_HES_UPTODATE) in hisi_uncore_pmu_stop()
349 hwc->state |= PERF_HES_UPTODATE; in hisi_uncore_pmu_stop()
359 hwc->state = PERF_HES_STOPPED | PERF_HES_UPTODATE; in hisi_uncore_pmu_add()
Dhisi_pcie_pmu.c505 WARN_ON_ONCE(!(hwc->state & PERF_HES_UPTODATE)); in hisi_pcie_pmu_start()
533 if (hwc->state & PERF_HES_UPTODATE) in hisi_pcie_pmu_stop()
536 hwc->state |= PERF_HES_UPTODATE; in hisi_pcie_pmu_stop()
545 hwc->state = PERF_HES_STOPPED | PERF_HES_UPTODATE; in hisi_pcie_pmu_add()
/linux-6.6.21/arch/powerpc/perf/
Dcore-fsl-emb.c317 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()
387 WARN_ON_ONCE(!(event->hw.state & PERF_HES_UPTODATE)); in fsl_emb_pmu_start()
418 event->hw.state |= PERF_HES_STOPPED | PERF_HES_UPTODATE; in fsl_emb_pmu_stop()
/linux-6.6.21/drivers/perf/
Driscv_pmu.c202 hwc->state |= PERF_HES_UPTODATE; in riscv_pmu_stop()
252 WARN_ON_ONCE(!(event->hw.state & PERF_HES_UPTODATE)); in riscv_pmu_start()
275 hwc->state = PERF_HES_UPTODATE | PERF_HES_STOPPED; in riscv_pmu_add()
Darm_pmu.c284 hwc->state |= PERF_HES_STOPPED | PERF_HES_UPTODATE; in armpmu_stop()
298 WARN_ON_ONCE(!(hwc->state & PERF_HES_UPTODATE)); in armpmu_start()
353 hwc->state = PERF_HES_STOPPED | PERF_HES_UPTODATE; in armpmu_add()
Darm_dsu_pmu.c421 WARN_ON(!(event->hw.state & PERF_HES_UPTODATE)); in dsu_pmu_start()
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()
Dthunderx2_pmu.c639 if (hwc->state & PERF_HES_UPTODATE) in tx2_uncore_event_stop()
648 hwc->state |= PERF_HES_UPTODATE; in tx2_uncore_event_stop()
668 hwc->state = PERF_HES_UPTODATE | PERF_HES_STOPPED; in tx2_uncore_event_add()
Darm_dmc620_pmu.c582 event->hw.state |= PERF_HES_STOPPED | PERF_HES_UPTODATE; in dmc620_pmu_stop()
599 hwc->state = PERF_HES_STOPPED | PERF_HES_UPTODATE; in dmc620_pmu_add()
Dqcom_l3_pmu.c544 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()
Dcxl_pmu.c634 WARN_ON_ONCE(!(hwc->state & PERF_HES_UPTODATE)); in cxl_pmu_event_start()
735 hwc->state |= PERF_HES_UPTODATE; in cxl_pmu_event_stop()
745 hwc->state = PERF_HES_STOPPED | PERF_HES_UPTODATE; in cxl_pmu_event_add()
/linux-6.6.21/arch/arm/mm/
Dcache-l2x0-pmu.c194 WARN_ON_ONCE(!(hw->state & PERF_HES_UPTODATE)); in l2x0_pmu_event_start()
225 hw->state |= PERF_HES_UPTODATE; in l2x0_pmu_event_stop()
251 hw->state = PERF_HES_STOPPED | PERF_HES_UPTODATE; in l2x0_pmu_event_add()
/linux-6.6.21/arch/alpha/kernel/
Dperf_event.c469 hwc->state = PERF_HES_UPTODATE; in alpha_pmu_add()
542 if ((flags & PERF_EF_UPDATE) && !(hwc->state & PERF_HES_UPTODATE)) { in alpha_pmu_stop()
544 hwc->state |= PERF_HES_UPTODATE; in alpha_pmu_stop()
561 WARN_ON_ONCE(!(hwc->state & PERF_HES_UPTODATE)); in alpha_pmu_start()
/linux-6.6.21/arch/arc/kernel/
Dperf_event.c460 WARN_ON_ONCE(!(hwc->state & PERF_HES_UPTODATE)); in arc_pmu_start()
503 !(event->hw.state & PERF_HES_UPTODATE)) { in arc_pmu_stop()
505 event->hw.state |= PERF_HES_UPTODATE; in arc_pmu_stop()
552 hwc->state = PERF_HES_UPTODATE | PERF_HES_STOPPED; in arc_pmu_add()
/linux-6.6.21/arch/x86/events/
Drapl.c294 if ((mode & PERF_EF_UPDATE) && !(hwc->state & PERF_HES_UPTODATE)) { in rapl_pmu_event_stop()
300 hwc->state |= PERF_HES_UPTODATE; in rapl_pmu_event_stop()
314 hwc->state = PERF_HES_UPTODATE | PERF_HES_STOPPED; in rapl_pmu_event_add()
/linux-6.6.21/arch/loongarch/kernel/
Dperf_event.c361 WARN_ON_ONCE(!(hwc->state & PERF_HES_UPTODATE)); in loongarch_pmu_start()
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()
/linux-6.6.21/arch/csky/kernel/
Dperf_event.c1031 WARN_ON_ONCE(!(hwc->state & PERF_HES_UPTODATE)); in csky_pmu_start()
1067 !(event->hw.state & PERF_HES_UPTODATE)) { in csky_pmu_stop()
1069 event->hw.state |= PERF_HES_UPTODATE; in csky_pmu_stop()
1093 hwc->state = PERF_HES_UPTODATE | PERF_HES_STOPPED; in csky_pmu_add()
/linux-6.6.21/drivers/iommu/intel/
Dperfmon.c357 WARN_ON_ONCE(!(event->hw.state & PERF_HES_UPTODATE)); in iommu_pmu_start()
391 hwc->state |= PERF_HES_STOPPED | PERF_HES_UPTODATE; in iommu_pmu_stop()
464 hwc->state = PERF_HES_UPTODATE | PERF_HES_STOPPED; in iommu_pmu_add()
/linux-6.6.21/drivers/perf/arm_cspmu/
Darm_cspmu.c819 WARN_ON(!(hwc->state & PERF_HES_UPTODATE)); in arm_cspmu_start()
848 hwc->state |= PERF_HES_STOPPED | PERF_HES_UPTODATE; in arm_cspmu_stop()
875 hwc->state = PERF_HES_STOPPED | PERF_HES_UPTODATE; in arm_cspmu_add()

12