Symbol: rapl_pmus
arch/x86/events/rapl.c
165
static struct rapl_pmus *rapl_pmus_pkg;
arch/x86/events/rapl.c
166
static struct rapl_pmus *rapl_pmus_core;
arch/x86/events/rapl.c
371
struct rapl_pmus *rapl_pmus;
arch/x86/events/rapl.c
388
rapl_pmus = container_of(event->pmu, struct rapl_pmus, pmu);
arch/x86/events/rapl.c
389
if (!rapl_pmus)
arch/x86/events/rapl.c
391
rapl_pmus_scope = rapl_pmus->pmu.scope;
arch/x86/events/rapl.c
411
if (!(rapl_pmus->cntr_mask & (1 << bit)))
arch/x86/events/rapl.c
415
if (rapl_pmu_idx >= rapl_pmus->nr_rapl_pmu)
arch/x86/events/rapl.c
418
rapl_pmu = rapl_pmus->rapl_pmu[rapl_pmu_idx];
arch/x86/events/rapl.c
678
static void cleanup_rapl_pmus(struct rapl_pmus *rapl_pmus)
arch/x86/events/rapl.c
682
for (i = 0; i < rapl_pmus->nr_rapl_pmu; i++)
arch/x86/events/rapl.c
683
kfree(rapl_pmus->rapl_pmu[i]);
arch/x86/events/rapl.c
684
kfree(rapl_pmus);
arch/x86/events/rapl.c
701
static int __init init_rapl_pmu(struct rapl_pmus *rapl_pmus)
arch/x86/events/rapl.c
706
for (idx = 0; idx < rapl_pmus->nr_rapl_pmu; idx++) {
arch/x86/events/rapl.c
713
rapl_pmu->pmu = &rapl_pmus->pmu;
arch/x86/events/rapl.c
717
rapl_pmus->rapl_pmu[idx] = rapl_pmu;
arch/x86/events/rapl.c
723
kfree(rapl_pmus->rapl_pmu[idx - 1]);
arch/x86/events/rapl.c
727
static int __init init_rapl_pmus(struct rapl_pmus **rapl_pmus_ptr, int rapl_pmu_scope,
arch/x86/events/rapl.c
732
struct rapl_pmus *rapl_pmus;
arch/x86/events/rapl.c
745
rapl_pmus = kzalloc_flex(*rapl_pmus, rapl_pmu, nr_rapl_pmu);
arch/x86/events/rapl.c
746
if (!rapl_pmus)
arch/x86/events/rapl.c
749
*rapl_pmus_ptr = rapl_pmus;
arch/x86/events/rapl.c
751
rapl_pmus->nr_rapl_pmu = nr_rapl_pmu;
arch/x86/events/rapl.c
752
rapl_pmus->pmu.attr_groups = rapl_attr_groups;
arch/x86/events/rapl.c
753
rapl_pmus->pmu.attr_update = rapl_attr_update;
arch/x86/events/rapl.c
754
rapl_pmus->pmu.task_ctx_nr = perf_invalid_context;
arch/x86/events/rapl.c
755
rapl_pmus->pmu.event_init = rapl_pmu_event_init;
arch/x86/events/rapl.c
756
rapl_pmus->pmu.add = rapl_pmu_event_add;
arch/x86/events/rapl.c
757
rapl_pmus->pmu.del = rapl_pmu_event_del;
arch/x86/events/rapl.c
758
rapl_pmus->pmu.start = rapl_pmu_event_start;
arch/x86/events/rapl.c
759
rapl_pmus->pmu.stop = rapl_pmu_event_stop;
arch/x86/events/rapl.c
760
rapl_pmus->pmu.read = rapl_pmu_event_read;
arch/x86/events/rapl.c
761
rapl_pmus->pmu.scope = rapl_pmu_scope;
arch/x86/events/rapl.c
762
rapl_pmus->pmu.module = THIS_MODULE;
arch/x86/events/rapl.c
763
rapl_pmus->pmu.capabilities = PERF_PMU_CAP_NO_EXCLUDE;
arch/x86/events/rapl.c
765
ret = init_rapl_pmu(rapl_pmus);
arch/x86/events/rapl.c
767
kfree(rapl_pmus);