Home
last modified time | relevance | path

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

12

/linux-5.19.10/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-5.19.10/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()
Dibs.c417 WARN_ON_ONCE(!(hwc->state & PERF_HES_UPTODATE)); in perf_ibs_start()
451 if (!stopping && (hwc->state & PERF_HES_UPTODATE)) in perf_ibs_stop()
479 if (hwc->state & PERF_HES_UPTODATE) in perf_ibs_stop()
489 hwc->state |= PERF_HES_UPTODATE; in perf_ibs_stop()
500 event->hw.state = PERF_HES_UPTODATE | PERF_HES_STOPPED; in perf_ibs_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()
/linux-5.19.10/Documentation/translations/zh_CN/riscv/
Dpmu.rst179 * PERF_HES_UPTODATE: event->count是最新的
187 理计数器上。当状态变为PERF_HES_STOPPED和PERF_HES_UPTODATE,因为现在已经停止了,
200 状态又一次变为PERF_HES_STOPPED和PERF_HES_UPTODATE
/linux-5.19.10/arch/xtensa/kernel/
Dperf_event.c249 WARN_ON_ONCE(!(event->hw.state & PERF_HES_UPTODATE)); in xtensa_pmu_start()
271 !(event->hw.state & PERF_HES_UPTODATE)) { in xtensa_pmu_stop()
273 event->hw.state |= PERF_HES_UPTODATE; in xtensa_pmu_stop()
298 hwc->state = PERF_HES_UPTODATE | PERF_HES_STOPPED; in xtensa_pmu_add()
/linux-5.19.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_pmu.c240 WARN_ON_ONCE(!(hwc->state & PERF_HES_UPTODATE)); in amdgpu_perf_start()
305 if (hwc->state & PERF_HES_UPTODATE) in amdgpu_perf_stop()
325 if (hwc->state & PERF_HES_UPTODATE) in amdgpu_perf_stop()
329 hwc->state |= PERF_HES_UPTODATE; in amdgpu_perf_stop()
356 event->hw.state = PERF_HES_UPTODATE | PERF_HES_STOPPED; in amdgpu_perf_add()
/linux-5.19.10/drivers/perf/hisilicon/
Dhisi_uncore_pmu.c319 WARN_ON_ONCE(!(hwc->state & PERF_HES_UPTODATE)); in hisi_uncore_pmu_start()
342 if (hwc->state & PERF_HES_UPTODATE) in hisi_uncore_pmu_stop()
347 hwc->state |= PERF_HES_UPTODATE; in hisi_uncore_pmu_stop()
357 hwc->state = PERF_HES_STOPPED | PERF_HES_UPTODATE; in hisi_uncore_pmu_add()
Dhisi_pcie_pmu.c493 WARN_ON_ONCE(!(hwc->state & PERF_HES_UPTODATE)); in hisi_pcie_pmu_start()
521 if (hwc->state & PERF_HES_UPTODATE) in hisi_pcie_pmu_stop()
524 hwc->state |= PERF_HES_UPTODATE; in hisi_pcie_pmu_stop()
533 hwc->state = PERF_HES_STOPPED | PERF_HES_UPTODATE; in hisi_pcie_pmu_add()
/linux-5.19.10/drivers/perf/
Driscv_pmu.c137 hwc->state |= PERF_HES_UPTODATE; in riscv_pmu_stop()
188 WARN_ON_ONCE(!(event->hw.state & PERF_HES_UPTODATE)); in riscv_pmu_start()
211 hwc->state = PERF_HES_UPTODATE | PERF_HES_STOPPED; in riscv_pmu_add()
Darm_pmu.c282 hwc->state |= PERF_HES_STOPPED | PERF_HES_UPTODATE; in armpmu_stop()
296 WARN_ON_ONCE(!(hwc->state & PERF_HES_UPTODATE)); in armpmu_start()
351 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.c553 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()
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()
Dqcom_l2_pmu.c585 hwc->state |= PERF_HES_STOPPED | PERF_HES_UPTODATE; in l2_cache_event_stop()
602 hwc->state = PERF_HES_STOPPED | PERF_HES_UPTODATE; in l2_cache_event_add()
/linux-5.19.10/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-5.19.10/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-5.19.10/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-5.19.10/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-5.19.10/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-5.19.10/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-5.19.10/arch/s390/kernel/
Dperf_cpum_sf.c1854 WARN_ON_ONCE(!(event->hw.state & PERF_HES_UPTODATE)); in cpumsf_pmu_start()
1879 if ((flags & PERF_EF_UPDATE) && !(event->hw.state & PERF_HES_UPTODATE)) { in cpumsf_pmu_stop()
1881 event->hw.state |= PERF_HES_UPTODATE; in cpumsf_pmu_stop()
1901 event->hw.state = PERF_HES_UPTODATE | PERF_HES_STOPPED; in cpumsf_pmu_add()
/linux-5.19.10/arch/sparc/kernel/
Dperf_event.c1087 WARN_ON_ONCE(!(event->hw.state & PERF_HES_UPTODATE)); in sparc_pmu_start()
1108 if (!(event->hw.state & PERF_HES_UPTODATE) && (flags & PERF_EF_UPDATE)) { in sparc_pmu_stop()
1110 event->hw.state |= PERF_HES_UPTODATE; in sparc_pmu_stop()
1388 event->hw.state = PERF_HES_UPTODATE | PERF_HES_STOPPED; in sparc_pmu_add()

12