Home
last modified time | relevance | path

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

/arch/powerpc/perf/
Dcore-book3s.c121 static unsigned long ebb_switch_in(bool ebb, struct cpu_hw_events *cpuhw) in ebb_switch_in() argument
123 return cpuhw->mmcr[0]; in ebb_switch_in()
129 static inline void power_pmu_bhrb_read(struct cpu_hw_events *cpuhw) {} in power_pmu_bhrb_read() argument
360 struct cpu_hw_events *cpuhw = this_cpu_ptr(&cpu_hw_events); in power_pmu_bhrb_enable() local
366 if (event->ctx->task && cpuhw->bhrb_context != event->ctx) { in power_pmu_bhrb_enable()
368 cpuhw->bhrb_context = event->ctx; in power_pmu_bhrb_enable()
370 cpuhw->bhrb_users++; in power_pmu_bhrb_enable()
376 struct cpu_hw_events *cpuhw = this_cpu_ptr(&cpu_hw_events); in power_pmu_bhrb_disable() local
381 WARN_ON_ONCE(!cpuhw->bhrb_users); in power_pmu_bhrb_disable()
382 cpuhw->bhrb_users--; in power_pmu_bhrb_disable()
[all …]
Dcore-fsl-emb.c209 struct cpu_hw_events *cpuhw; in fsl_emb_pmu_disable() local
213 cpuhw = this_cpu_ptr(&cpu_hw_events); in fsl_emb_pmu_disable()
215 if (!cpuhw->disabled) { in fsl_emb_pmu_disable()
216 cpuhw->disabled = 1; in fsl_emb_pmu_disable()
221 if (!cpuhw->pmcs_enabled) { in fsl_emb_pmu_disable()
223 cpuhw->pmcs_enabled = 1; in fsl_emb_pmu_disable()
248 struct cpu_hw_events *cpuhw; in fsl_emb_pmu_enable() local
252 cpuhw = this_cpu_ptr(&cpu_hw_events); in fsl_emb_pmu_enable()
253 if (!cpuhw->disabled) in fsl_emb_pmu_enable()
256 cpuhw->disabled = 0; in fsl_emb_pmu_enable()
[all …]
/arch/s390/kernel/
Dperf_cpum_cf.c104 struct cpu_hw_events *cpuhw; in validate_ctr_version() local
108 cpuhw = &get_cpu_var(cpu_hw_events); in validate_ctr_version()
114 if (cpuhw->info.cfvn < 1) in validate_ctr_version()
119 if (cpuhw->info.csvn < 1) in validate_ctr_version()
121 if ((cpuhw->info.csvn == 1 && hwc->config > 159) || in validate_ctr_version()
122 (cpuhw->info.csvn == 2 && hwc->config > 175) || in validate_ctr_version()
123 (cpuhw->info.csvn > 2 && hwc->config > 255)) in validate_ctr_version()
127 if (cpuhw->info.csvn <= 3) in validate_ctr_version()
142 if (!((cpuhw->info.auth_ctl & mtdiag_ctl) && in validate_ctr_version()
143 (cpuhw->info.enable_ctl & mtdiag_ctl) && in validate_ctr_version()
[all …]
Dperf_cpum_sf.c108 static int sf_buffer_available(struct cpu_hw_sf *cpuhw) in sf_buffer_available() argument
110 return !!cpuhw->sfb.sdbt; in sf_buffer_available()
373 static void deallocate_buffers(struct cpu_hw_sf *cpuhw) in deallocate_buffers() argument
375 if (cpuhw->sfb.sdbt) in deallocate_buffers()
376 free_sampling_buffer(&cpuhw->sfb); in deallocate_buffers()
379 static int allocate_buffers(struct cpu_hw_sf *cpuhw, struct hw_perf_event *hwc) in allocate_buffers() argument
401 sfr_size = ALIGN((sizeof(*sfr) - sizeof(sfr->diag) + cpuhw->qsi.dsdes) + in allocate_buffers()
408 sfr->bsdes = cpuhw->qsi.bsdes; in allocate_buffers()
409 sfr->dsdes = cpuhw->qsi.dsdes; in allocate_buffers()
437 freq = sample_rate_to_freq(&cpuhw->qsi, SAMPL_RATE(hwc)); in allocate_buffers()
[all …]
/arch/x86/events/amd/
Dcore.c543 struct cpu_hw_events *cpuhw; in amd_pmu_cpu_dead() local
548 cpuhw = &per_cpu(cpu_hw_events, cpu); in amd_pmu_cpu_dead()
550 if (cpuhw->amd_nb) { in amd_pmu_cpu_dead()
551 struct amd_nb *nb = cpuhw->amd_nb; in amd_pmu_cpu_dead()
556 cpuhw->amd_nb = NULL; in amd_pmu_cpu_dead()
/arch/sh/kernel/
Dperf_event.c357 struct cpu_hw_events *cpuhw = &per_cpu(cpu_hw_events, cpu); in sh_pmu_prepare_cpu() local
359 memset(cpuhw, 0, sizeof(struct cpu_hw_events)); in sh_pmu_prepare_cpu()
/arch/blackfin/kernel/
Dperf_event.c458 struct cpu_hw_events *cpuhw = &per_cpu(cpu_hw_events, cpu); in bfin_pmu_prepare_cpu() local
461 memset(cpuhw, 0, sizeof(struct cpu_hw_events)); in bfin_pmu_prepare_cpu()
/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()
/arch/metag/kernel/perf/
Dperf_event.c757 struct cpu_hw_events *cpuhw = this_cpu_ptr(&cpu_hw_events); in metag_pmu_counter_overflow() local
758 struct perf_event *event = cpuhw->events[idx]; in metag_pmu_counter_overflow()