Home
last modified time | relevance | path

Searched refs:cpuhw (Results 1 – 8 of 8) sorted by relevance

/linux-6.1.9/arch/powerpc/perf/
Dcore-book3s.c128 static unsigned long ebb_switch_in(bool ebb, struct cpu_hw_events *cpuhw) in ebb_switch_in() argument
130 return cpuhw->mmcr.mmcr0; in ebb_switch_in()
136 static inline void power_pmu_bhrb_read(struct perf_event *event, struct cpu_hw_events *cpuhw) {} in power_pmu_bhrb_read() argument
157 struct cpu_hw_events *cpuhw = this_cpu_ptr(&cpu_hw_events); in get_pmcs_ext_regs() local
159 return cpuhw->pmcs[idx]; in get_pmcs_ext_regs()
416 struct cpu_hw_events *cpuhw = this_cpu_ptr(&cpu_hw_events); in power_pmu_bhrb_enable() local
422 if (event->ctx->task && cpuhw->bhrb_context != event->ctx) { in power_pmu_bhrb_enable()
424 cpuhw->bhrb_context = event->ctx; in power_pmu_bhrb_enable()
426 cpuhw->bhrb_users++; in power_pmu_bhrb_enable()
432 struct cpu_hw_events *cpuhw = this_cpu_ptr(&cpu_hw_events); in power_pmu_bhrb_disable() local
[all …]
Dcore-fsl-emb.c192 struct cpu_hw_events *cpuhw; in fsl_emb_pmu_disable() local
196 cpuhw = this_cpu_ptr(&cpu_hw_events); in fsl_emb_pmu_disable()
198 if (!cpuhw->disabled) { in fsl_emb_pmu_disable()
199 cpuhw->disabled = 1; in fsl_emb_pmu_disable()
204 if (!cpuhw->pmcs_enabled) { in fsl_emb_pmu_disable()
206 cpuhw->pmcs_enabled = 1; in fsl_emb_pmu_disable()
231 struct cpu_hw_events *cpuhw; in fsl_emb_pmu_enable() local
235 cpuhw = this_cpu_ptr(&cpu_hw_events); in fsl_emb_pmu_enable()
236 if (!cpuhw->disabled) in fsl_emb_pmu_enable()
239 cpuhw->disabled = 0; in fsl_emb_pmu_enable()
[all …]
/linux-6.1.9/arch/s390/kernel/
Dperf_cpum_cf.c99 struct cpu_cf_events *cpuhw = this_cpu_ptr(&cpu_cf_events); in cfdiag_trailer() local
102 te->cfvn = cpuhw->info.cfvn; /* Counter version numbers */ in cfdiag_trailer()
103 te->csvn = cpuhw->info.csvn; in cfdiag_trailer()
133 struct cpu_cf_events *cpuhw = this_cpu_ptr(&cpu_cf_events); in cfdiag_getctrset() local
140 ctrset_size = cpum_cf_ctrset_size(ctrset, &cpuhw->info); in cfdiag_getctrset()
157 cpuhw->info.cfvn, cpuhw->info.csvn, need, rc); in cfdiag_getctrset()
211 static int cfdiag_diffctr(struct cpu_cf_events *cpuhw, unsigned long auth) in cfdiag_diffctr() argument
219 ctrstart = (struct cf_ctrset_entry *)(cpuhw->start + offset); in cfdiag_diffctr()
220 ctrstop = (struct cf_ctrset_entry *)(cpuhw->stop + offset); in cfdiag_diffctr()
237 trailer_start = (struct cf_trailer_entry *)(cpuhw->start + offset); in cfdiag_diffctr()
[all …]
Dperf_cpum_sf.c116 static int sf_buffer_available(struct cpu_hw_sf *cpuhw) in sf_buffer_available() argument
118 return !!cpuhw->sfb.sdbt; in sf_buffer_available()
368 static void deallocate_buffers(struct cpu_hw_sf *cpuhw) in deallocate_buffers() argument
370 if (cpuhw->sfb.sdbt) in deallocate_buffers()
371 free_sampling_buffer(&cpuhw->sfb); in deallocate_buffers()
374 static int allocate_buffers(struct cpu_hw_sf *cpuhw, struct hw_perf_event *hwc) in allocate_buffers() argument
409 freq = sample_rate_to_freq(&cpuhw->qsi, SAMPL_RATE(hwc)); in allocate_buffers()
421 if (sf_buffer_available(cpuhw)) in allocate_buffers()
428 sample_size, cpuhw); in allocate_buffers()
430 return alloc_sampling_buffer(&cpuhw->sfb, in allocate_buffers()
[all …]
Dperf_cpum_cf_common.c45 struct cpu_cf_events *cpuhw; in cpumf_measurement_alert() local
51 cpuhw = this_cpu_ptr(&cpu_cf_events); in cpumf_measurement_alert()
55 if (!(cpuhw->flags & PMU_F_RESERVED)) in cpumf_measurement_alert()
60 qctri(&cpuhw->info); in cpumf_measurement_alert()
72 atomic64_or(alert, &cpuhw->alert); in cpumf_measurement_alert()
79 struct cpu_cf_events *cpuhw = this_cpu_ptr(&cpu_cf_events); in cpum_cf_setup_cpu() local
83 memset(&cpuhw->info, 0, sizeof(cpuhw->info)); in cpum_cf_setup_cpu()
84 qctri(&cpuhw->info); in cpum_cf_setup_cpu()
85 cpuhw->flags |= PMU_F_RESERVED; in cpum_cf_setup_cpu()
89 cpuhw->flags &= ~PMU_F_RESERVED; in cpum_cf_setup_cpu()
[all …]
/linux-6.1.9/arch/x86/events/amd/
Dcore.c600 struct cpu_hw_events *cpuhw = &per_cpu(cpu_hw_events, cpu); in amd_pmu_cpu_dead() local
602 kfree(cpuhw->lbr_sel); in amd_pmu_cpu_dead()
603 cpuhw->lbr_sel = NULL; in amd_pmu_cpu_dead()
608 if (cpuhw->amd_nb) { in amd_pmu_cpu_dead()
609 struct amd_nb *nb = cpuhw->amd_nb; in amd_pmu_cpu_dead()
614 cpuhw->amd_nb = NULL; in amd_pmu_cpu_dead()
/linux-6.1.9/arch/sh/kernel/
Dperf_event.c336 struct cpu_hw_events *cpuhw = &per_cpu(cpu_hw_events, cpu); in sh_pmu_prepare_cpu() local
338 memset(cpuhw, 0, sizeof(struct cpu_hw_events)); in sh_pmu_prepare_cpu()
/linux-6.1.9/arch/sparc/kernel/
Dperf_event.c1514 struct cpu_hw_events *cpuhw = this_cpu_ptr(&cpu_hw_events); in sparc_pmu_start_txn() local
1516 WARN_ON_ONCE(cpuhw->txn_flags); /* txn already in flight */ in sparc_pmu_start_txn()
1518 cpuhw->txn_flags = txn_flags; in sparc_pmu_start_txn()
1532 struct cpu_hw_events *cpuhw = this_cpu_ptr(&cpu_hw_events); in sparc_pmu_cancel_txn() local
1535 WARN_ON_ONCE(!cpuhw->txn_flags); /* no txn in flight */ in sparc_pmu_cancel_txn()
1537 txn_flags = cpuhw->txn_flags; in sparc_pmu_cancel_txn()
1538 cpuhw->txn_flags = 0; in sparc_pmu_cancel_txn()