| /linux/arch/x86/events/amd/ |
| H A D | brs.c | 205 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in amd_brs_enable() 221 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in amd_brs_enable_all() 228 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in amd_brs_disable() 257 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in amd_brs_disable_all() 283 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in amd_brs_drain() [all...] |
| H A D | lbr.c | 102 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in amd_pmu_lbr_filter() 166 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in amd_pmu_lbr_read() 326 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in amd_pmu_lbr_reset() 345 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in amd_pmu_lbr_add() 365 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in amd_pmu_lbr_del() [all...] |
| H A D | core.c | 397 static inline int amd_has_nb(struct cpu_hw_events *cpuc) in amd_has_nb() 425 static void __amd_put_nb_event_constraints(struct cpu_hw_events *cpuc, in __amd_put_nb_event_constraints() 484 __amd_get_nb_event_constraints(struct cpu_hw_events *cpuc, struct perf_event *event, in __amd_get_nb_event_constraints() 582 struct cpu_hw_events *cpuc = &per_cpu(cpu_hw_events, cpu); in amd_pmu_cpu_prepare() 606 struct cpu_hw_events *cpuc = &per_cpu(cpu_hw_events, cpu); in amd_pmu_cpu_starting() 621 nb = per_cpu(cpu_hw_events, i).amd_nb; in amd_pmu_cpu_starting() 638 struct cpu_hw_events *cpuhw = &per_cpu(cpu_hw_events, cpu); in amd_pmu_cpu_dead() 727 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in amd_pmu_check_overflow() 759 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in __amd_pmu_enable_all() 898 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in amd_pmu_handle_irq() [all …]
|
| /linux/arch/sh/kernel/ |
| H A D | perf_event.c | 28 struct cpu_hw_events { struct 34 DEFINE_PER_CPU(struct cpu_hw_events, cpu_hw_events); argument 201 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in sh_pmu_stop() 219 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in sh_pmu_start() 236 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in sh_pmu_del() 246 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in sh_pmu_add() 336 struct cpu_hw_events *cpuhw = &per_cpu(cpu_hw_events, cpu); in sh_pmu_prepare_cpu() 338 memset(cpuhw, 0, sizeof(struct cpu_hw_events)); in sh_pmu_prepare_cpu()
|
| /linux/arch/x86/events/intel/ |
| H A D | ds.c | 800 struct debug_store *ds = per_cpu(cpu_hw_events, cpu).ds; in ds_update_cea() 810 if (!per_cpu(cpu_hw_events, cpu).ds) in ds_update_cea() 869 struct cpu_hw_events *hwev = per_cpu_ptr(&cpu_hw_events, cpu); in alloc_pebs_buffer() 912 struct cpu_hw_events *hwev = per_cpu_ptr(&cpu_hw_events, cpu); in alloc_bts_buffer() 933 struct cpu_hw_events *hwev = per_cpu_ptr(&cpu_hw_events, cpu); in alloc_bts_buffer() 962 struct cpu_hw_events *hwev = per_cpu_ptr(&cpu_hw_events, cp [all...] |
| H A D | core.c | 2772 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in intel_pmu_disable_all() 2789 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in __intel_pmu_enable_all() 2823 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); 2876 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in intel_pmu_nhm_workaround() 2941 static void intel_set_tfa(struct cpu_hw_events *cpuc, bool on) in intel_tfa_commit_scheduling() 2951 static void intel_tfa_commit_scheduling(struct cpu_hw_events *cpu in intel_tfa_pmu_enable_all() [all...] |
| H A D | bts.c | 148 struct debug_store *ds = per_cpu(cpu_hw_events, cpu).ds; in bts_config_buffer() 187 struct debug_store *ds = per_cpu(cpu_hw_events, cpu).ds; in bts_update() 263 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in bts_event_start() 308 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in bts_event_stop() 463 struct debug_store *ds = this_cpu_ptr(&cpu_hw_events)->ds; in intel_bts_interrupt() 538 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in bts_event_add()
|
| /linux/arch/loongarch/kernel/ |
| H A D | perf_event.c | 89 struct cpu_hw_events { struct 104 static DEFINE_PER_CPU(struct cpu_hw_events, cpu_hw_events) = { argument 253 static int loongarch_pmu_alloc_counter(struct cpu_hw_events *cpuc, struct hw_perf_event *hwc) in loongarch_pmu_alloc_counter() 269 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in loongarch_pmu_enable_event() 288 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in loongarch_pmu_disable_event() 388 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in loongarch_pmu_add() 422 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in loongarch_pmu_del() 471 static void handle_associated_event(struct cpu_hw_events *cpuc, int idx, in handle_associated_event() 492 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in pmu_handle_irq() 643 struct cpu_hw_events fake_cpuc; in validate_group() [all …]
|
| /linux/arch/sparc/kernel/ |
| H A D | perf_event.c | 78 struct cpu_hw_events { struct 115 static DEFINE_PER_CPU(struct cpu_hw_events, cpu_hw_events) = { .enabled = 1, }; argument 827 static inline void sparc_pmu_enable_event(struct cpu_hw_events *cpuc, struct hw_perf_event *hwc, in… in sparc_pmu_enable_event() 845 static inline void sparc_pmu_disable_event(struct cpu_hw_events *cpuc, struct hw_perf_event *hwc, i… in sparc_pmu_disable_event() 923 static void read_in_all_counters(struct cpu_hw_events *cpuc) in read_in_all_counters() 947 static void calculate_single_pcr(struct cpu_hw_events *cpuc) in calculate_single_pcr() 983 static void calculate_multiple_pcrs(struct cpu_hw_events *cpuc) in calculate_multiple_pcrs() 1017 static void update_pcrs_for_enable(struct cpu_hw_events *cpuc) in update_pcrs_for_enable() 1031 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in sparc_pmu_enable() 1049 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in sparc_pmu_disable() [all …]
|
| /linux/arch/x86/events/ |
| H A D | perf_event.h | 275 struct cpu_hw_events { struct 843 int (*schedule_events)(struct cpu_hw_events *cpuc, int n, int *assign); 883 (*get_event_constraints)(struct cpu_hw_events *cpuc, 887 void (*put_event_constraints)(struct cpu_hw_events *cpuc, 890 void (*start_scheduling)(struct cpu_hw_events *cpuc); 892 void (*commit_scheduling)(struct cpu_hw_events *cpuc, int idx, int cntr); 894 void (*stop_scheduling)(struct cpu_hw_events *cpuc); 1001 void (*lbr_read)(struct cpu_hw_events *cpuc); 1187 DECLARE_PER_CPU(struct cpu_hw_events, cpu_hw_events); in x86_pmu_has_lbr_callstack() 279 eventscpu_hw_events global() argument 280 active_maskcpu_hw_events global() argument 281 dirtycpu_hw_events global() argument 282 enabledcpu_hw_events global() argument 284 n_eventscpu_hw_events global() argument 285 n_addedcpu_hw_events global() argument 287 n_txncpu_hw_events global() argument 289 n_txn_paircpu_hw_events global() argument 290 n_txn_metriccpu_hw_events global() argument 291 assigncpu_hw_events global() argument 292 tagscpu_hw_events global() argument 294 event_listcpu_hw_events global() argument 295 event_constraintcpu_hw_events global() argument 297 n_exclcpu_hw_events global() argument 298 n_late_setupcpu_hw_events global() argument 300 txn_flagscpu_hw_events global() argument 301 is_fakecpu_hw_events global() argument 306 dscpu_hw_events global() argument 307 ds_bts_vaddrcpu_hw_events global() argument 309 pebs_vaddrcpu_hw_events global() argument 310 pebs_enabledcpu_hw_events global() argument 311 n_pebscpu_hw_events global() argument 312 n_large_pebscpu_hw_events global() argument 313 n_pebs_via_ptcpu_hw_events global() argument 314 pebs_outputcpu_hw_events global() argument 317 pebs_data_cfgcpu_hw_events global() argument 318 active_pebs_data_cfgcpu_hw_events global() argument 319 pebs_record_sizecpu_hw_events global() argument 322 fixed_ctrl_valcpu_hw_events global() argument 323 active_fixed_ctrl_valcpu_hw_events global() argument 326 acr_cfg_bcpu_hw_events global() argument 327 cfg_c_valcpu_hw_events global() argument 332 lbr_userscpu_hw_events global() argument 333 lbr_pebs_userscpu_hw_events global() argument 334 lbr_stackcpu_hw_events global() argument 335 lbr_entriescpu_hw_events global() argument 336 lbr_counterscpu_hw_events global() argument 337 __anonae6f1240070acpu_hw_events global() argument 341 br_selcpu_hw_events global() argument 342 last_task_ctxcpu_hw_events global() argument 343 last_log_idcpu_hw_events global() argument 344 lbr_selectcpu_hw_events global() argument 345 lbr_xsavecpu_hw_events global() argument 350 intel_ctrl_guest_maskcpu_hw_events global() argument 351 intel_ctrl_host_maskcpu_hw_events global() argument 352 guest_switch_msrscpu_hw_events global() argument 357 intel_cp_statuscpu_hw_events global() argument 363 shared_regscpu_hw_events global() argument 367 constraint_listcpu_hw_events global() argument 368 excl_cntrscpu_hw_events global() argument 369 excl_thread_idcpu_hw_events global() argument 374 tfa_shadowcpu_hw_events global() argument 380 n_metriccpu_hw_events global() argument 385 amd_nbcpu_hw_events global() argument 386 brs_activecpu_hw_events global() argument 389 perf_ctr_virt_maskcpu_hw_events global() argument 390 n_paircpu_hw_events global() argument 392 kfree_on_onlinecpu_hw_events global() argument 394 pmucpu_hw_events global() argument [all...] |
| /linux/include/linux/perf/ |
| H A D | riscv_pmu.h | 31 struct cpu_hw_events { struct 71 struct cpu_hw_events __percpu *hw_events; argument
|
| /linux/drivers/perf/ |
| H A D | riscv_pmu_sbi.c | 563 struct cpu_hw_events *cpuc = this_cpu_ptr(rvpmu->hw_events); in pmu_sbi_ctr_get_idx() 629 struct cpu_hw_events *cpuc = this_cpu_ptr(rvpmu->hw_events); in pmu_sbi_ctr_clear_idx() 689 struct cpu_hw_events *cpu_hw_evt = per_cpu_ptr(pmu->hw_events, cpu); in pmu_sbi_snapshot_free() 706 struct cpu_hw_events *cpu_hw_evt = per_cpu_ptr(pmu->hw_events, cpu); in pmu_sbi_snapshot_alloc() 736 struct cpu_hw_events *cpu_hw_evt; in pmu_sbi_snapshot_setup() 774 struct cpu_hw_events *cpu_hw_evt = this_cpu_ptr(pmu->hw_events); in pmu_sbi_ctr_read() 855 struct cpu_hw_events *cpu_hw_evt = this_cpu_ptr(pmu->hw_events); in pmu_sbi_ctr_stop() 947 struct cpu_hw_events *cpu_hw_evt = this_cpu_ptr(pmu->hw_events); in pmu_sbi_stop_hw_ctrs() 989 static inline void pmu_sbi_start_ovf_ctrs_sbi(struct cpu_hw_events *cpu_hw_evt, in pmu_sbi_start_ovf_ctrs_sbi() 1030 static inline void pmu_sbi_start_ovf_ctrs_snapshot(struct cpu_hw_events *cpu_hw_evt, in pmu_sbi_start_ovf_ctrs_snapshot() [all …]
|
| H A D | riscv_pmu.c | 260 struct cpu_hw_events *cpuc = this_cpu_ptr(rvpmu->hw_events); in riscv_pmu_add() 284 struct cpu_hw_events *cpuc = this_cpu_ptr(rvpmu->hw_events); in riscv_pmu_del() 390 struct cpu_hw_events *cpuc; in riscv_pmu_alloc() 396 pmu->hw_events = alloc_percpu_gfp(struct cpu_hw_events, GFP_KERNEL); in riscv_pmu_alloc()
|