Home
last modified time | relevance | path

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

/openbmc/qemu/scripts/tracetool/format/
H A Dc.py19 active_events = [e for e in events
63 backend.generate_begin(active_events, group)
64 for event in active_events:
66 backend.generate_end(active_events, group)
/openbmc/linux/arch/s390/kernel/
H A Dperf_pai_crypto.c38 unsigned int active_events; /* # of PAI crypto users */ member
62 cpump->active_events, cpump->mode, in paicrypt_event_destroy()
180 __func__, a->sample_period, cpump->active_events, in paicrypt_busy()
266 if (++cpump->active_events == 1) { in paicrypt_add()
297 if (--cpump->active_events == 0) { in paicrypt_del()
H A Dperf_pai_ext.c52 unsigned int active_events; /* # of PAI Extension users */ member
339 if (++cpump->active_events == 1) { in paiext_add()
377 if (--cpump->active_events == 0) { in paiext_del()
/openbmc/linux/arch/arm/mach-imx/
H A Dmmdc.c101 unsigned int active_events; member
374 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()
/openbmc/linux/drivers/perf/
H A Darm-cci.c108 atomic_t active_events; member
1083 atomic_t *active_events = &cci_pmu->active_events; in hw_perf_event_destroy() local
1086 if (atomic_dec_and_mutex_lock(active_events, reserve_mutex)) { in hw_perf_event_destroy()
1316 atomic_t *active_events = &cci_pmu->active_events; in cci_pmu_event_init() local
1340 if (!atomic_inc_not_zero(active_events)) { in cci_pmu_event_init()
1342 if (atomic_read(active_events) == 0) in cci_pmu_event_init()
1345 atomic_inc(active_events); in cci_pmu_event_init()
1679 atomic_set(&cci_pmu->active_events, 0); in cci_pmu_probe()
H A Dmarvell_cn10k_ddr_pmu.c129 int active_events; member
448 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()
H A Dfsl_imx9_ddr_perf.c63 int active_events; member
475 pmu->active_events++; in ddr_perf_event_add()
507 pmu->active_events--; in ddr_perf_event_del()
/openbmc/linux/arch/loongarch/kernel/
H A Dperf_event.c457 static atomic_t active_events = ATOMIC_INIT(0); variable
474 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()
/openbmc/linux/arch/sparc/kernel/
H A 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()
/openbmc/linux/arch/mips/kernel/
H A Dperf_event_mipsxx.c588 static atomic_t active_events = ATOMIC_INIT(0); variable
639 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()
/openbmc/linux/arch/x86/events/
H A Dcore.c188 static atomic_t active_events; variable
345 atomic_dec(&active_events); in hw_perf_event_destroy()
455 atomic_inc(&active_events); in x86_add_exclusive()
465 atomic_dec(&active_events); in x86_del_exclusive()
665 atomic_inc(&active_events); in __x86_pmu_event_init()
1742 if (!atomic_read(&active_events)) in perf_event_nmi_handler()