Home
last modified time | relevance | path

Searched refs:active_events (Results 1 – 7 of 7) sorted by relevance

/linux-5.19.10/arch/arm/mach-imx/ !
Dmmdc.c101 unsigned int active_events; member
373 pmu_mmdc->active_events++; in mmdc_pmu_event_add()
402 pmu_mmdc->active_events--; in mmdc_pmu_event_del()
404 if (pmu_mmdc->active_events == 0) in mmdc_pmu_event_del()
452 .active_events = 0, in mmdc_pmu_init()
/linux-5.19.10/drivers/perf/ !
Dmarvell_cn10k_ddr_pmu.c129 int active_events; member
448 pmu->active_events++; in cn10k_ddr_perf_event_add()
451 if (pmu->active_events == 1) in cn10k_ddr_perf_event_add()
504 pmu->active_events--; in cn10k_ddr_perf_event_del()
508 if (pmu->active_events == 0) in cn10k_ddr_perf_event_del()
Darm-cci.c111 atomic_t active_events; member
1086 atomic_t *active_events = &cci_pmu->active_events; in hw_perf_event_destroy() local
1089 if (atomic_dec_and_mutex_lock(active_events, reserve_mutex)) { in hw_perf_event_destroy()
1319 atomic_t *active_events = &cci_pmu->active_events; in cci_pmu_event_init() local
1343 if (!atomic_inc_not_zero(active_events)) { in cci_pmu_event_init()
1345 if (atomic_read(active_events) == 0) in cci_pmu_event_init()
1348 atomic_inc(active_events); in cci_pmu_event_init()
1683 atomic_set(&cci_pmu->active_events, 0); in cci_pmu_probe()
Dfsl_imx8_ddr_perf.c100 int active_events; member
533 pmu->active_events++; in ddr_perf_event_add()
565 pmu->active_events--; in ddr_perf_event_del()
/linux-5.19.10/arch/sparc/kernel/ !
Dperf_event.c1158 static atomic_t active_events = ATOMIC_INIT(0); variable
1173 if (atomic_inc_not_zero(&active_events)) in perf_event_grab_pmc()
1177 if (atomic_read(&active_events) == 0) { in perf_event_grab_pmc()
1182 atomic_inc(&active_events); in perf_event_grab_pmc()
1189 if (atomic_dec_and_mutex_lock(&active_events, &pmc_grab_mutex)) { in perf_event_release_pmc()
1624 if (!atomic_read(&active_events)) in perf_event_nmi_handler()
/linux-5.19.10/arch/mips/kernel/ !
Dperf_event_mipsxx.c588 static atomic_t active_events = ATOMIC_INIT(0); variable
639 if (atomic_dec_and_mutex_lock(&active_events, in hw_perf_event_destroy()
673 if (!atomic_inc_not_zero(&active_events)) { in mipspmu_event_init()
675 if (atomic_read(&active_events) == 0) in mipspmu_event_init()
679 atomic_inc(&active_events); in mipspmu_event_init()
/linux-5.19.10/arch/x86/events/ !
Dcore.c185 static atomic_t active_events; variable
342 atomic_dec(&active_events); in hw_perf_event_destroy()
452 atomic_inc(&active_events); in x86_add_exclusive()
462 atomic_dec(&active_events); in x86_del_exclusive()
661 atomic_inc(&active_events); in __x86_pmu_event_init()
1752 if (!atomic_read(&active_events)) in perf_event_nmi_handler()