Home
last modified time | relevance | path

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

/Linux-v5.4/arch/arm/mach-imx/
Dmmdc.c101 unsigned int active_events; member
372 pmu_mmdc->active_events++; in mmdc_pmu_event_add()
401 pmu_mmdc->active_events--; in mmdc_pmu_event_del()
403 if (pmu_mmdc->active_events == 0) in mmdc_pmu_event_del()
451 .active_events = 0, in mmdc_pmu_init()
/Linux-v5.4/drivers/perf/
Darm-cci.c111 atomic_t active_events; member
1087 atomic_t *active_events = &cci_pmu->active_events; in hw_perf_event_destroy() local
1090 if (atomic_dec_and_mutex_lock(active_events, reserve_mutex)) { in hw_perf_event_destroy()
1320 atomic_t *active_events = &cci_pmu->active_events; in cci_pmu_event_init() local
1344 if (!atomic_inc_not_zero(active_events)) { in cci_pmu_event_init()
1346 if (atomic_read(active_events) == 0) in cci_pmu_event_init()
1349 atomic_inc(active_events); in cci_pmu_event_init()
1686 atomic_set(&cci_pmu->active_events, 0); in cci_pmu_probe()
Dfsl_imx8_ddr_perf.c74 int active_events; member
367 pmu->active_events++; in ddr_perf_event_add()
399 pmu->active_events--; in ddr_perf_event_del()
/Linux-v5.4/arch/nds32/kernel/
Dperf_event_cpu.c861 atomic_t *active_events = &nds32_pmu->active_events; in nds32_pmu_event_init() local
870 if (!atomic_inc_not_zero(active_events)) { in nds32_pmu_event_init()
871 if (atomic_read(active_events) == 0) { in nds32_pmu_event_init()
877 atomic_inc(active_events); in nds32_pmu_event_init()
1042 atomic_set(&nds32_pmu->active_events, 0); in nds32_init()
/Linux-v5.4/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-v5.4/arch/mips/kernel/
Dperf_event_mipsxx.c545 static atomic_t active_events = ATOMIC_INIT(0); variable
596 if (atomic_dec_and_mutex_lock(&active_events, in hw_perf_event_destroy()
630 if (!atomic_inc_not_zero(&active_events)) { in mipspmu_event_init()
632 if (atomic_read(&active_events) == 0) in mipspmu_event_init()
636 atomic_inc(&active_events); in mipspmu_event_init()
/Linux-v5.4/arch/x86/events/
Dcore.c141 static atomic_t active_events; variable
283 atomic_dec(&active_events); in hw_perf_event_destroy()
390 atomic_inc(&active_events); in x86_add_exclusive()
404 atomic_dec(&active_events); in x86_del_exclusive()
595 atomic_inc(&active_events); in __x86_pmu_event_init()
1557 if (!atomic_read(&active_events)) in perf_event_nmi_handler()
/Linux-v5.4/arch/nds32/include/asm/
Dpmu.h83 atomic_t active_events; member