Searched refs:active_events (Results 1 – 6 of 6) sorted by relevance
101 unsigned int active_events; member374 pmu_mmdc->active_events++; in mmdc_pmu_event_add()403 pmu_mmdc->active_events--; in mmdc_pmu_event_del()405 if (pmu_mmdc->active_events == 0) in mmdc_pmu_event_del()451 .active_events = 0, in mmdc_pmu_init()
861 atomic_t *active_events = &nds32_pmu->active_events; in nds32_pmu_event_init() local870 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()
1158 static atomic_t active_events = ATOMIC_INIT(0); variable1173 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()
545 static atomic_t active_events = ATOMIC_INIT(0); variable596 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()
141 static atomic_t active_events; variable283 atomic_dec(&active_events); in hw_perf_event_destroy()391 atomic_inc(&active_events); in x86_add_exclusive()401 atomic_dec(&active_events); in x86_del_exclusive()600 atomic_inc(&active_events); in __x86_pmu_event_init()1562 if (!atomic_read(&active_events)) in perf_event_nmi_handler()
83 atomic_t active_events; member