/linux-master/arch/powerpc/perf/ |
H A D | core-book3s.c | 128 static unsigned long ebb_switch_in(bool ebb, struct cpu_hw_events *cpuhw) argument 130 return cpuhw->mmcr.mmcr0; 136 static inline void power_pmu_bhrb_read(struct perf_event *event, struct cpu_hw_events *cpuhw) {} argument 157 struct cpu_hw_events *cpuhw = this_cpu_ptr(&cpu_hw_events); local 159 return cpuhw->pmcs[idx]; 416 struct cpu_hw_events *cpuhw = this_cpu_ptr(&cpu_hw_events); local 422 if (event->ctx->task && cpuhw->bhrb_context != event->ctx) { 424 cpuhw->bhrb_context = event->ctx; 426 cpuhw->bhrb_users++; 432 struct cpu_hw_events *cpuhw local 490 power_pmu_bhrb_read(struct perf_event *event, struct cpu_hw_events *cpuhw) argument 647 ebb_switch_in(bool ebb, struct cpu_hw_events *cpuhw) argument 795 struct cpu_hw_events *cpuhw; local 889 any_pmc_overflown(struct cpu_hw_events *cpuhw) argument 969 power_check_constraints(struct cpu_hw_events *cpuhw, u64 event_id[], unsigned int cflags[], int n_ev, struct perf_event **event) argument 1217 freeze_limited_counters(struct cpu_hw_events *cpuhw, unsigned long pmc5, unsigned long pmc6) argument 1237 thaw_limited_counters(struct cpu_hw_events *cpuhw, unsigned long pmc5, unsigned long pmc6) argument 1266 write_mmcr0(struct cpu_hw_events *cpuhw, unsigned long mmcr0) argument 1307 struct cpu_hw_events *cpuhw; local 1420 struct cpu_hw_events *cpuhw; local 1628 struct cpu_hw_events *cpuhw; local 1704 struct cpu_hw_events *cpuhw; local 1823 struct cpu_hw_events *cpuhw = this_cpu_ptr(&cpu_hw_events); local 1842 struct cpu_hw_events *cpuhw = this_cpu_ptr(&cpu_hw_events); local 1862 struct cpu_hw_events *cpuhw; local 2012 struct cpu_hw_events *cpuhw; local 2312 struct cpu_hw_events *cpuhw; local 2399 struct cpu_hw_events *cpuhw = this_cpu_ptr(&cpu_hw_events); local 2496 struct cpu_hw_events *cpuhw = &per_cpu(cpu_hw_events, cpu); local [all...] |
H A D | core-fsl-emb.c | 192 struct cpu_hw_events *cpuhw; local 196 cpuhw = this_cpu_ptr(&cpu_hw_events); 198 if (!cpuhw->disabled) { 199 cpuhw->disabled = 1; 204 if (!cpuhw->pmcs_enabled) { 206 cpuhw->pmcs_enabled = 1; 231 struct cpu_hw_events *cpuhw; local 235 cpuhw = this_cpu_ptr(&cpu_hw_events); 236 if (!cpuhw->disabled) 239 cpuhw 278 struct cpu_hw_events *cpuhw; local 339 struct cpu_hw_events *cpuhw; local 645 struct cpu_hw_events *cpuhw = this_cpu_ptr(&cpu_hw_events); local 675 struct cpu_hw_events *cpuhw = &per_cpu(cpu_hw_events, cpu); local [all...] |
/linux-master/arch/s390/kernel/ |
H A D | perf_cpum_cf.c | 209 struct cpu_cf_events *cpuhw; local 221 cpuhw = p->cpucf; 226 if (!cpuhw) 229 if (refcount_dec_and_test(&cpuhw->refcnt)) { 230 kfree(cpuhw); 241 struct cpu_cf_events *cpuhw; local 250 cpuhw = p->cpucf; 252 if (!cpuhw) { 253 cpuhw = kzalloc(sizeof(*cpuhw), GFP_KERNE 554 cfdiag_diffctr(struct cpu_cf_events *cpuhw, unsigned long auth) argument 667 struct cpu_cf_events *cpuhw = this_cpu_cfhw(); local 687 struct cpu_cf_events *cpuhw = this_cpu_cfhw(); local 917 struct cpu_cf_events *cpuhw = this_cpu_cfhw(); local 956 cfdiag_push_sample(struct perf_event *event, struct cpu_cf_events *cpuhw) argument 987 struct cpu_cf_events *cpuhw = this_cpu_cfhw(); local 1023 struct cpu_cf_events *cpuhw = this_cpu_cfhw(); local 1036 struct cpu_cf_events *cpuhw = this_cpu_cfhw(); local 1150 struct cpu_cf_events *cpuhw; local 1308 struct cpu_cf_events *cpuhw = this_cpu_cfhw(); local 1334 struct cpu_cf_events *cpuhw = this_cpu_cfhw(); local 1354 struct cpu_cf_events *cpuhw = this_cpu_cfhw(); local 1482 struct cpu_cf_events *cpuhw = get_cpu_cfhw(cpu); local 1524 struct cpu_cf_events *cpuhw = this_cpu_cfhw(); local [all...] |
H A D | perf_cpum_sf.c | 168 static int sf_buffer_available(struct cpu_hw_sf *cpuhw) argument 170 return !!cpuhw->sfb.sdbt; 420 static void deallocate_buffers(struct cpu_hw_sf *cpuhw) argument 422 if (cpuhw->sfb.sdbt) 423 free_sampling_buffer(&cpuhw->sfb); 426 static int allocate_buffers(struct cpu_hw_sf *cpuhw, struct hw_perf_event *hwc) argument 461 freq = sample_rate_to_freq(&cpuhw->qsi, SAMPL_RATE(hwc)); 473 if (sf_buffer_available(cpuhw)) 478 " sample_size %lu cpuhw %p\n", __func__, 480 sample_size, cpuhw); 515 sfb_account_overflows(struct cpu_hw_sf *cpuhw, struct hw_perf_event *hwc) argument 809 struct cpu_hw_sf *cpuhw; local 978 struct cpu_hw_sf *cpuhw = this_cpu_ptr(&cpu_hw_sf); local 1036 struct cpu_hw_sf *cpuhw = this_cpu_ptr(&cpu_hw_sf); local 1459 aux_output_begin(struct perf_output_handle *handle, struct aux_buffer *aux, struct cpu_hw_sf *cpuhw) argument 1635 hw_collect_aux(struct cpu_hw_sf *cpuhw) argument 1872 struct cpu_hw_sf *cpuhw = &per_cpu(cpu_hw_sf, event->cpu); local 1897 struct cpu_hw_sf *cpuhw = this_cpu_ptr(&cpu_hw_sf); local 1918 struct cpu_hw_sf *cpuhw = this_cpu_ptr(&cpu_hw_sf); local 1937 struct cpu_hw_sf *cpuhw = this_cpu_ptr(&cpu_hw_sf); local 1999 struct cpu_hw_sf *cpuhw = this_cpu_ptr(&cpu_hw_sf); local 2090 struct cpu_hw_sf *cpuhw; local [all...] |
/linux-master/arch/sh/kernel/ |
H A D | perf_event.c | 336 struct cpu_hw_events *cpuhw = &per_cpu(cpu_hw_events, cpu); local 338 memset(cpuhw, 0, sizeof(struct cpu_hw_events));
|
/linux-master/arch/sparc/kernel/ |
H A D | perf_event.c | 1514 struct cpu_hw_events *cpuhw = this_cpu_ptr(&cpu_hw_events); local 1516 WARN_ON_ONCE(cpuhw->txn_flags); /* txn already in flight */ 1518 cpuhw->txn_flags = txn_flags; 1532 struct cpu_hw_events *cpuhw = this_cpu_ptr(&cpu_hw_events); local 1535 WARN_ON_ONCE(!cpuhw->txn_flags); /* no txn in flight */ 1537 txn_flags = cpuhw->txn_flags; 1538 cpuhw->txn_flags = 0;
|
/linux-master/arch/x86/events/amd/ |
H A D | core.c | 632 struct cpu_hw_events *cpuhw = &per_cpu(cpu_hw_events, cpu); local 634 kfree(cpuhw->lbr_sel); 635 cpuhw->lbr_sel = NULL; 640 if (cpuhw->amd_nb) { 641 struct amd_nb *nb = cpuhw->amd_nb; 646 cpuhw->amd_nb = NULL;
|