Searched refs:cpuhw (Results 1 – 7 of 7) sorted by relevance
/arch/powerpc/perf/ |
D | core-book3s.c | 282 static int power_check_constraints(struct cpu_hw_events *cpuhw, in power_check_constraints() argument 301 cpuhw->alternatives[i]); in power_check_constraints() 302 event_id[i] = cpuhw->alternatives[i][0]; in power_check_constraints() 304 if (ppmu->get_constraint(event_id[i], &cpuhw->amasks[i][0], in power_check_constraints() 305 &cpuhw->avalues[i][0])) in power_check_constraints() 310 nv = (value | cpuhw->avalues[i][0]) + in power_check_constraints() 311 (value & cpuhw->avalues[i][0] & addf); in power_check_constraints() 313 (((nv + tadd) ^ cpuhw->avalues[i][0]) & in power_check_constraints() 314 cpuhw->amasks[i][0]) != 0) in power_check_constraints() 317 mask |= cpuhw->amasks[i][0]; in power_check_constraints() [all …]
|
D | core-fsl-emb.c | 185 struct cpu_hw_events *cpuhw; in fsl_emb_pmu_disable() local 189 cpuhw = &__get_cpu_var(cpu_hw_events); in fsl_emb_pmu_disable() 191 if (!cpuhw->disabled) { in fsl_emb_pmu_disable() 192 cpuhw->disabled = 1; in fsl_emb_pmu_disable() 197 if (!cpuhw->pmcs_enabled) { in fsl_emb_pmu_disable() 199 cpuhw->pmcs_enabled = 1; in fsl_emb_pmu_disable() 224 struct cpu_hw_events *cpuhw; in fsl_emb_pmu_enable() local 228 cpuhw = &__get_cpu_var(cpu_hw_events); in fsl_emb_pmu_enable() 229 if (!cpuhw->disabled) in fsl_emb_pmu_enable() 232 cpuhw->disabled = 0; in fsl_emb_pmu_enable() [all …]
|
/arch/s390/kernel/ |
D | perf_cpum_cf.c | 125 struct cpu_hw_events *cpuhw; in validate_ctr_version() local 128 cpuhw = &get_cpu_var(cpu_hw_events); in validate_ctr_version() 134 if (cpuhw->info.cfvn < 1) in validate_ctr_version() 139 if (cpuhw->info.csvn < 1) in validate_ctr_version() 150 struct cpu_hw_events *cpuhw; in validate_ctr_auth() local 154 cpuhw = &get_cpu_var(cpu_hw_events); in validate_ctr_auth() 158 if (!(ctrs_state & cpuhw->info.auth_ctl)) in validate_ctr_auth() 172 struct cpu_hw_events *cpuhw = &__get_cpu_var(cpu_hw_events); in cpumf_pmu_enable() local 175 if (cpuhw->flags & PMU_F_ENABLED) in cpumf_pmu_enable() 178 err = lcctl(cpuhw->state); in cpumf_pmu_enable() [all …]
|
/arch/x86/kernel/cpu/ |
D | perf_event_amd.c | 390 struct cpu_hw_events *cpuhw; in amd_pmu_cpu_dead() local 395 cpuhw = &per_cpu(cpu_hw_events, cpu); in amd_pmu_cpu_dead() 397 if (cpuhw->amd_nb) { in amd_pmu_cpu_dead() 398 struct amd_nb *nb = cpuhw->amd_nb; in amd_pmu_cpu_dead() 403 cpuhw->amd_nb = NULL; in amd_pmu_cpu_dead()
|
/arch/sh/kernel/ |
D | perf_event.c | 365 struct cpu_hw_events *cpuhw = &per_cpu(cpu_hw_events, cpu); in sh_pmu_setup() local 367 memset(cpuhw, 0, sizeof(struct cpu_hw_events)); in sh_pmu_setup()
|
/arch/blackfin/kernel/ |
D | perf_event.c | 466 struct cpu_hw_events *cpuhw = &per_cpu(cpu_hw_events, cpu); in bfin_pmu_setup() local 468 memset(cpuhw, 0, sizeof(struct cpu_hw_events)); in bfin_pmu_setup()
|
/arch/sparc/kernel/ |
D | perf_event.c | 1198 struct cpu_hw_events *cpuhw = &__get_cpu_var(cpu_hw_events); in sparc_pmu_start_txn() local 1201 cpuhw->group_flag |= PERF_EVENT_TXN; in sparc_pmu_start_txn() 1211 struct cpu_hw_events *cpuhw = &__get_cpu_var(cpu_hw_events); in sparc_pmu_cancel_txn() local 1213 cpuhw->group_flag &= ~PERF_EVENT_TXN; in sparc_pmu_cancel_txn()
|