Home
last modified time | relevance | path

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

/linux/arch/powerpc/perf/
H A Dcore-book3s.c129 static unsigned long ebb_switch_in(bool ebb, struct cpu_hw_events *cpuhw) in ebb_switch_in()
131 return cpuhw->mmcr.mmcr0; in ebb_switch_in()
140 static inline void power_pmu_bhrb_read(struct perf_event *event, struct cpu_hw_events *cpuhw) {} in pmao_restore_workaround()
161 struct cpu_hw_events *cpuhw = this_cpu_ptr(&cpu_hw_events); in get_pmcs_ext_regs()
163 return cpuhw->pmcs[idx]; in get_pmcs_ext_regs()
413 struct cpu_hw_events *cpuhw = this_cpu_ptr(&cpu_hw_events); in power_pmu_bhrb_enable()
419 if (event->ctx->task && cpuhw->bhrb_context != event->ctx) { in power_pmu_bhrb_enable()
421 cpuhw->bhrb_context = event->ctx; in power_pmu_bhrb_enable()
423 cpuhw->bhrb_users++; in power_pmu_bhrb_enable()
429 struct cpu_hw_events *cpuhw in power_pmu_bhrb_disable()
128 ebb_switch_in(bool ebb,struct cpu_hw_events * cpuhw) ebb_switch_in() argument
139 power_pmu_bhrb_read(struct perf_event * event,struct cpu_hw_events * cpuhw) power_pmu_bhrb_read() argument
160 struct cpu_hw_events *cpuhw = this_cpu_ptr(&cpu_hw_events); get_pmcs_ext_regs() local
412 struct cpu_hw_events *cpuhw = this_cpu_ptr(&cpu_hw_events); power_pmu_bhrb_enable() local
428 struct cpu_hw_events *cpuhw = this_cpu_ptr(&cpu_hw_events); power_pmu_bhrb_disable() local
487 power_pmu_bhrb_read(struct perf_event * event,struct cpu_hw_events * cpuhw) power_pmu_bhrb_read() argument
644 ebb_switch_in(bool ebb,struct cpu_hw_events * cpuhw) ebb_switch_in() argument
792 struct cpu_hw_events *cpuhw; power_pmu_wants_prompt_pmi() local
886 any_pmc_overflown(struct cpu_hw_events * cpuhw) any_pmc_overflown() argument
966 power_check_constraints(struct cpu_hw_events * cpuhw,u64 event_id[],unsigned int cflags[],int n_ev,struct perf_event ** event) power_check_constraints() argument
1214 freeze_limited_counters(struct cpu_hw_events * cpuhw,unsigned long pmc5,unsigned long pmc6) freeze_limited_counters() argument
1234 thaw_limited_counters(struct cpu_hw_events * cpuhw,unsigned long pmc5,unsigned long pmc6) thaw_limited_counters() argument
1263 write_mmcr0(struct cpu_hw_events * cpuhw,unsigned long mmcr0) write_mmcr0() argument
1304 struct cpu_hw_events *cpuhw; power_pmu_disable() local
1417 struct cpu_hw_events *cpuhw; power_pmu_enable() local
1625 struct cpu_hw_events *cpuhw; power_pmu_add() local
1701 struct cpu_hw_events *cpuhw; power_pmu_del() local
1820 struct cpu_hw_events *cpuhw = this_cpu_ptr(&cpu_hw_events); power_pmu_start_txn() local
1839 struct cpu_hw_events *cpuhw = this_cpu_ptr(&cpu_hw_events); power_pmu_cancel_txn() local
1859 struct cpu_hw_events *cpuhw; power_pmu_commit_txn() local
2009 struct cpu_hw_events *cpuhw; power_pmu_event_init() local
2331 struct cpu_hw_events *cpuhw; record_and_restart() local
2416 struct cpu_hw_events *cpuhw = this_cpu_ptr(&cpu_hw_events); __perf_event_interrupt() local
2513 struct cpu_hw_events *cpuhw = &per_cpu(cpu_hw_events, cpu); power_pmu_prepare_cpu() local
[all...]
/linux/arch/s390/kernel/
H A Dperf_cpum_sf.c171 static int sf_buffer_available(struct cpu_hw_sf *cpuhw) in sf_buffer_available() argument
173 return !!cpuhw->sfb.sdbt; in sf_buffer_available()
391 static void deallocate_buffers(struct cpu_hw_sf *cpuhw) in deallocate_buffers() argument
393 if (sf_buffer_available(cpuhw)) in deallocate_buffers()
394 free_sampling_buffer(&cpuhw->sfb); in deallocate_buffers()
397 static int allocate_buffers(struct cpu_hw_sf *cpuhw, struct hw_perf_event *hwc) in allocate_buffers() argument
430 freq = sample_rate_to_freq(&cpuhw->qsi, SAMPL_RATE(hwc)); in allocate_buffers()
442 if (sf_buffer_available(cpuhw)) in allocate_buffers()
445 return alloc_sampling_buffer(&cpuhw->sfb, in allocate_buffers()
446 sfb_pending_allocs(&cpuhw->sfb, hwc)); in allocate_buffers()
[all …]
H A Dperf_cpum_cf.c211 struct cpu_cf_events *cpuhw; in cpum_cf_free_cpu() local
223 cpuhw = p->cpucf; in cpum_cf_free_cpu()
228 if (!cpuhw) in cpum_cf_free_cpu()
231 if (refcount_dec_and_test(&cpuhw->refcnt)) { in cpum_cf_free_cpu()
232 kfree(cpuhw); in cpum_cf_free_cpu()
243 struct cpu_cf_events *cpuhw; in cpum_cf_alloc_cpu() local
252 cpuhw = p->cpucf; in cpum_cf_alloc_cpu()
254 if (!cpuhw) { in cpum_cf_alloc_cpu()
255 cpuhw = kzalloc_obj(*cpuhw); in cpum_cf_alloc_cpu()
256 if (cpuhw) { in cpum_cf_alloc_cpu()
[all …]
/linux/arch/sh/kernel/
H A 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/arch/sparc/kernel/
H A 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()