Home
last modified time | relevance | path

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

/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 …]
/linux/arch/x86/events/amd/
H A Dcore.c638 struct cpu_hw_events *cpuhw = &per_cpu(cpu_hw_events, cpu); in amd_pmu_cpu_dead() local
640 kfree(cpuhw->lbr_sel); in amd_pmu_cpu_dead()
641 cpuhw->lbr_sel = NULL; in amd_pmu_cpu_dead()
646 if (cpuhw->amd_nb) { in amd_pmu_cpu_dead()
647 struct amd_nb *nb = cpuhw->amd_nb; in amd_pmu_cpu_dead()
652 cpuhw->amd_nb = NULL; in amd_pmu_cpu_dead()
/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()