Searched refs:active_events (Results 1 – 9 of 9) 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()1682 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()
457 static atomic_t active_events = ATOMIC_INIT(0); variable474 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()
58 unsigned int active_events; /* # of PAI Extension users */ member342 if (++cpump->active_events == 1) { in paiext_add()380 if (--cpump->active_events == 0) { in paiext_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()
186 static atomic_t active_events; variable343 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()