Home
last modified time | relevance | path

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

/linux-6.1.9/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-6.1.9/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()
1682 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-6.1.9/arch/loongarch/kernel/
Dperf_event.c457 static atomic_t active_events = ATOMIC_INIT(0); variable
474 if (atomic_dec_and_mutex_lock(&active_events, &pmu_reserve_mutex)) { in hw_perf_event_destroy()
567 if (!atomic_inc_not_zero(&active_events)) { in loongarch_pmu_event_init()
569 if (atomic_read(&active_events) == 0) { in loongarch_pmu_event_init()
577 atomic_inc(&active_events); in loongarch_pmu_event_init()
/linux-6.1.9/arch/s390/kernel/
Dperf_pai_ext.c58 unsigned int active_events; /* # of PAI Extension users */ member
342 if (++cpump->active_events == 1) { in paiext_add()
380 if (--cpump->active_events == 0) { in paiext_del()
/linux-6.1.9/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-6.1.9/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-6.1.9/arch/x86/events/
Dcore.c186 static atomic_t active_events; variable
343 atomic_dec(&active_events); in hw_perf_event_destroy()
453 atomic_inc(&active_events); in x86_add_exclusive()
463 atomic_dec(&active_events); in x86_del_exclusive()
663 atomic_inc(&active_events); in __x86_pmu_event_init()
1741 if (!atomic_read(&active_events)) in perf_event_nmi_handler()