Searched refs:active_events (Results 1 – 7 of 7) sorted by relevance
101 unsigned int active_events; member373 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()
129 int active_events; member448 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()
111 atomic_t active_events; member1086 atomic_t *active_events = &cci_pmu->active_events; in hw_perf_event_destroy() local1089 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() local1343 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()
100 int active_events; member533 pmu->active_events++; in ddr_perf_event_add()565 pmu->active_events--; in ddr_perf_event_del()
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()
588 static atomic_t active_events = ATOMIC_INIT(0); variable639 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()
185 static atomic_t active_events; variable342 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()