Home
last modified time | relevance | path

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

/Linux-v4.19/arch/arm/mach-imx/
Dmmdc.c106 unsigned int active_events; member
383 pmu_mmdc->active_events++; in mmdc_pmu_event_add()
412 pmu_mmdc->active_events--; in mmdc_pmu_event_del()
414 if (pmu_mmdc->active_events == 0) in mmdc_pmu_event_del()
461 .active_events = 0, in mmdc_pmu_init()
/Linux-v4.19/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
1353 if (!atomic_inc_not_zero(active_events)) { in cci_pmu_event_init()
1355 if (atomic_read(active_events) == 0) in cci_pmu_event_init()
1358 atomic_inc(active_events); in cci_pmu_event_init()
1694 atomic_set(&cci_pmu->active_events, 0); in cci_pmu_probe()
/Linux-v4.19/arch/sparc/kernel/
Dperf_event.c1154 static atomic_t active_events = ATOMIC_INIT(0); variable
1169 if (atomic_inc_not_zero(&active_events)) in perf_event_grab_pmc()
1173 if (atomic_read(&active_events) == 0) { in perf_event_grab_pmc()
1178 atomic_inc(&active_events); in perf_event_grab_pmc()
1185 if (atomic_dec_and_mutex_lock(&active_events, &pmc_grab_mutex)) { in perf_event_release_pmc()
1620 if (!atomic_read(&active_events)) in perf_event_nmi_handler()
/Linux-v4.19/arch/mips/kernel/
Dperf_event_mipsxx.c563 static atomic_t active_events = ATOMIC_INIT(0); variable
614 if (atomic_dec_and_mutex_lock(&active_events, in hw_perf_event_destroy()
648 if (!atomic_inc_not_zero(&active_events)) { in mipspmu_event_init()
650 if (atomic_read(&active_events) == 0) in mipspmu_event_init()
654 atomic_inc(&active_events); in mipspmu_event_init()
/Linux-v4.19/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()
600 atomic_inc(&active_events); in __x86_pmu_event_init()
1507 if (!atomic_read(&active_events)) in perf_event_nmi_handler()