/arch/s390/kernel/ |
D | perf_cpum_cf.c | 70 struct cpu_hw_events { struct 77 static DEFINE_PER_CPU(struct cpu_hw_events, cpu_hw_events) = { argument 127 struct cpu_hw_events *cpuhw; in validate_ctr_version() 130 cpuhw = &get_cpu_var(cpu_hw_events); in validate_ctr_version() 150 put_cpu_var(cpu_hw_events); in validate_ctr_version() 156 struct cpu_hw_events *cpuhw; in validate_ctr_auth() 160 cpuhw = &get_cpu_var(cpu_hw_events); in validate_ctr_auth() 171 put_cpu_var(cpu_hw_events); in validate_ctr_auth() 182 struct cpu_hw_events *cpuhw = this_cpu_ptr(&cpu_hw_events); in cpumf_pmu_enable() 205 struct cpu_hw_events *cpuhw = this_cpu_ptr(&cpu_hw_events); in cpumf_pmu_disable() [all …]
|
/arch/sh/kernel/ |
D | perf_event.c | 31 struct cpu_hw_events { struct 37 DEFINE_PER_CPU(struct cpu_hw_events, cpu_hw_events); argument 222 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in sh_pmu_stop() 240 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in sh_pmu_start() 257 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in sh_pmu_del() 267 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in sh_pmu_add() 357 struct cpu_hw_events *cpuhw = &per_cpu(cpu_hw_events, cpu); in sh_pmu_setup() 359 memset(cpuhw, 0, sizeof(struct cpu_hw_events)); in sh_pmu_setup()
|
/arch/blackfin/kernel/ |
D | perf_event.c | 230 struct cpu_hw_events { struct 234 DEFINE_PER_CPU(struct cpu_hw_events, cpu_hw_events); argument 303 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in bfin_pmu_stop() 321 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in bfin_pmu_start() 338 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in bfin_pmu_del() 348 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in bfin_pmu_add() 424 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in bfin_pmu_enable() 458 struct cpu_hw_events *cpuhw = &per_cpu(cpu_hw_events, cpu); in bfin_pmu_setup() 460 memset(cpuhw, 0, sizeof(struct cpu_hw_events)); in bfin_pmu_setup()
|
/arch/x86/kernel/cpu/ |
D | perf_event_amd.c | 207 static inline int amd_has_nb(struct cpu_hw_events *cpuc) in amd_has_nb() 235 static void __amd_put_nb_event_constraints(struct cpu_hw_events *cpuc, in __amd_put_nb_event_constraints() 292 __amd_get_nb_event_constraints(struct cpu_hw_events *cpuc, struct perf_event *event, in __amd_get_nb_event_constraints() 368 struct cpu_hw_events *cpuc = &per_cpu(cpu_hw_events, cpu); in amd_pmu_cpu_prepare() 384 struct cpu_hw_events *cpuc = &per_cpu(cpu_hw_events, cpu); in amd_pmu_cpu_starting() 398 nb = per_cpu(cpu_hw_events, i).amd_nb; in amd_pmu_cpu_starting() 415 struct cpu_hw_events *cpuhw; in amd_pmu_cpu_dead() 420 cpuhw = &per_cpu(cpu_hw_events, cpu); in amd_pmu_cpu_dead() 433 amd_get_event_constraints(struct cpu_hw_events *cpuc, int idx, in amd_get_event_constraints() 445 static void amd_put_event_constraints(struct cpu_hw_events *cpuc, in amd_put_event_constraints() [all …]
|
D | perf_event_intel_ds.c | 255 struct debug_store *ds = per_cpu(cpu_hw_events, cpu).ds; in init_debug_store_on_cpu() 267 if (!per_cpu(cpu_hw_events, cpu).ds) in fini_debug_store_on_cpu() 310 struct debug_store *ds = per_cpu(cpu_hw_events, cpu).ds; in alloc_pebs_buffer() 347 struct debug_store *ds = per_cpu(cpu_hw_events, cpu).ds; in release_pebs_buffer() 362 struct debug_store *ds = per_cpu(cpu_hw_events, cpu).ds; in alloc_bts_buffer() 391 struct debug_store *ds = per_cpu(cpu_hw_events, cpu).ds; in release_bts_buffer() 405 per_cpu(cpu_hw_events, cpu).ds = ds; in alloc_ds_buffer() 412 struct debug_store *ds = per_cpu(cpu_hw_events, cpu).ds; in release_ds_buffer() 417 per_cpu(cpu_hw_events, cpu).ds = NULL; in release_ds_buffer() 530 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in intel_pmu_disable_bts() [all …]
|
D | perf_event.c | 45 DEFINE_PER_CPU(struct cpu_hw_events, cpu_hw_events) = { 586 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in x86_pmu_disable_all() 617 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in x86_pmu_disable() 634 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in x86_pmu_enable_all() 837 int x86_schedule_events(struct cpu_hw_events *cpuc, int n, int *assign) in x86_schedule_events() 950 static int collect_events(struct cpu_hw_events *cpuc, struct perf_event *leader, bool dogrp) in collect_events() 984 struct cpu_hw_events *cpuc, int i) in x86_assign_hw_event() 1007 struct cpu_hw_events *cpuc, in match_prev_assignment() 1019 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in x86_pmu_enable() 1163 if (__this_cpu_read(cpu_hw_events.enabled)) in x86_pmu_enable_event() [all …]
|
D | perf_event_intel_lbr.c | 131 static void intel_pmu_lbr_filter(struct cpu_hw_events *cpuc); 140 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in __intel_pmu_lbr_enable() 280 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in intel_pmu_lbr_sched_task() 324 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in intel_pmu_lbr_enable() 352 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in intel_pmu_lbr_disable() 377 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in intel_pmu_lbr_enable_all() 385 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in intel_pmu_lbr_disable_all() 391 static void intel_pmu_lbr_read_32(struct cpu_hw_events *cpuc) in intel_pmu_lbr_read_32() 426 static void intel_pmu_lbr_read_64(struct cpu_hw_events *cpuc) in intel_pmu_lbr_read_64() 498 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in intel_pmu_lbr_read() [all …]
|
D | perf_event.h | 177 struct cpu_hw_events { struct 518 int (*schedule_events)(struct cpu_hw_events *cpuc, int n, int *assign); 537 (*get_event_constraints)(struct cpu_hw_events *cpuc, 541 void (*put_event_constraints)(struct cpu_hw_events *cpuc, 544 void (*start_scheduling)(struct cpu_hw_events *cpuc); 546 void (*commit_scheduling)(struct cpu_hw_events *cpuc, int idx, int cntr); 548 void (*stop_scheduling)(struct cpu_hw_events *cpuc); 678 DECLARE_PER_CPU(struct cpu_hw_events, cpu_hw_events); 739 u64 disable_mask = __this_cpu_read(cpu_hw_events.perf_ctr_virt_mask); in __x86_pmu_enable_event() 750 int x86_schedule_events(struct cpu_hw_events *cpuc, int n, int *assign); [all …]
|
D | perf_event_intel.c | 1473 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in __intel_pmu_disable_all() 1493 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in __intel_pmu_enable_all() 1533 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in intel_pmu_nhm_workaround() 1632 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in intel_pmu_disable_event() 1696 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in intel_pmu_enable_event() 1699 if (!__this_cpu_read(cpu_hw_events.enabled)) in intel_pmu_enable_event() 1754 struct debug_store *ds = __this_cpu_read(cpu_hw_events.ds); in intel_pmu_reset() 1797 struct cpu_hw_events *cpuc; in intel_pmu_handle_irq() 1802 cpuc = this_cpu_ptr(&cpu_hw_events); in intel_pmu_handle_irq() 1980 __intel_shared_reg_get_constraints(struct cpu_hw_events *cpuc, in __intel_shared_reg_get_constraints() [all …]
|
D | perf_event_intel_bts.c | 160 struct debug_store *ds = per_cpu(cpu_hw_events, cpu).ds; in bts_config_buffer() 211 struct debug_store *ds = per_cpu(cpu_hw_events, cpu).ds; in bts_update() 442 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in bts_event_del() 467 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in bts_event_add()
|
D | perf_event_knc.c | 215 struct cpu_hw_events *cpuc; in knc_pmu_handle_irq() 220 cpuc = this_cpu_ptr(&cpu_hw_events); in knc_pmu_handle_irq()
|
D | perf_event_p4.c | 918 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in p4_pmu_disable_all() 987 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in p4_pmu_enable_all() 1001 struct cpu_hw_events *cpuc; in p4_pmu_handle_irq() 1007 cpuc = this_cpu_ptr(&cpu_hw_events); in p4_pmu_handle_irq() 1206 static int p4_pmu_schedule_events(struct cpu_hw_events *cpuc, int n, int *assign) in p4_pmu_schedule_events()
|
/arch/metag/kernel/perf/ |
D | perf_event.c | 38 static DEFINE_PER_CPU(struct cpu_hw_events, cpu_hw_events); 261 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in metag_pmu_start() 309 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in metag_pmu_add() 351 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in metag_pmu_del() 600 struct cpu_hw_events *events = this_cpu_ptr(&cpu_hw_events); in metag_pmu_enable_counter() 673 struct cpu_hw_events *events = this_cpu_ptr(&cpu_hw_events); in metag_pmu_disable_counter() 721 struct cpu_hw_events *events = this_cpu_ptr(&cpu_hw_events); in metag_pmu_write_counter() 754 struct cpu_hw_events *cpuhw = this_cpu_ptr(&cpu_hw_events); in metag_pmu_counter_overflow() 810 struct cpu_hw_events *cpuc = &per_cpu(cpu_hw_events, cpu); in metag_pmu_cpu_notify() 815 memset(cpuc, 0, sizeof(struct cpu_hw_events)); in metag_pmu_cpu_notify() [all …]
|
D | perf_event.h | 50 struct cpu_hw_events { struct
|
/arch/powerpc/perf/ |
D | core-fsl-emb.c | 23 struct cpu_hw_events { struct 29 static DEFINE_PER_CPU(struct cpu_hw_events, cpu_hw_events); argument 209 struct cpu_hw_events *cpuhw; in fsl_emb_pmu_disable() 213 cpuhw = this_cpu_ptr(&cpu_hw_events); in fsl_emb_pmu_disable() 248 struct cpu_hw_events *cpuhw; in fsl_emb_pmu_enable() 252 cpuhw = this_cpu_ptr(&cpu_hw_events); in fsl_emb_pmu_enable() 295 struct cpu_hw_events *cpuhw; in fsl_emb_pmu_add() 302 cpuhw = &get_cpu_var(cpu_hw_events); in fsl_emb_pmu_add() 348 put_cpu_var(cpu_hw_events); in fsl_emb_pmu_add() 356 struct cpu_hw_events *cpuhw; in fsl_emb_pmu_del() [all …]
|
D | core-book3s.c | 29 struct cpu_hw_events { struct 62 static DEFINE_PER_CPU(struct cpu_hw_events, cpu_hw_events); argument 120 static unsigned long ebb_switch_in(bool ebb, struct cpu_hw_events *cpuhw) in ebb_switch_in() 128 static inline void power_pmu_bhrb_read(struct cpu_hw_events *cpuhw) {} in power_pmu_bhrb_read() 351 struct cpu_hw_events *cpuhw = this_cpu_ptr(&cpu_hw_events); in power_pmu_bhrb_enable() 367 struct cpu_hw_events *cpuhw = this_cpu_ptr(&cpu_hw_events); in power_pmu_bhrb_disable() 429 static void power_pmu_bhrb_read(struct cpu_hw_events *cpuhw) in power_pmu_bhrb_read() 578 static unsigned long ebb_switch_in(bool ebb, struct cpu_hw_events *cpuhw) in ebb_switch_in() 842 static int power_check_constraints(struct cpu_hw_events *cpuhw, in power_check_constraints() 1079 static void freeze_limited_counters(struct cpu_hw_events *cpuhw, in freeze_limited_counters() [all …]
|
/arch/alpha/kernel/ |
D | perf_event.c | 33 struct cpu_hw_events { struct 52 DEFINE_PER_CPU(struct cpu_hw_events, cpu_hw_events); argument 390 static void maybe_change_configuration(struct cpu_hw_events *cpuc) in maybe_change_configuration() 434 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in alpha_pmu_add() 486 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in alpha_pmu_del() 534 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in alpha_pmu_stop() 554 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in alpha_pmu_start() 727 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in alpha_pmu_enable() 753 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in alpha_pmu_disable() 811 struct cpu_hw_events *cpuc; in alpha_perf_event_irq_handler() [all …]
|
/arch/sparc/kernel/ |
D | perf_event.c | 76 struct cpu_hw_events { struct 113 static DEFINE_PER_CPU(struct cpu_hw_events, cpu_hw_events) = { .enabled = 1, }; argument 825 static inline void sparc_pmu_enable_event(struct cpu_hw_events *cpuc, struct hw_perf_event *hwc, in… in sparc_pmu_enable_event() 843 static inline void sparc_pmu_disable_event(struct cpu_hw_events *cpuc, struct hw_perf_event *hwc, i… in sparc_pmu_disable_event() 921 static void read_in_all_counters(struct cpu_hw_events *cpuc) in read_in_all_counters() 945 static void calculate_single_pcr(struct cpu_hw_events *cpuc) in calculate_single_pcr() 981 static void calculate_multiple_pcrs(struct cpu_hw_events *cpuc) in calculate_multiple_pcrs() 1015 static void update_pcrs_for_enable(struct cpu_hw_events *cpuc) in update_pcrs_for_enable() 1029 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in sparc_pmu_enable() 1047 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in sparc_pmu_disable() [all …]
|
/arch/tile/kernel/ |
D | perf_event.c | 50 struct cpu_hw_events { struct 84 static DEFINE_PER_CPU(struct cpu_hw_events, cpu_hw_events); 593 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in tile_pmu_stop() 619 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in tile_pmu_start() 653 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in tile_pmu_add() 709 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in tile_pmu_del() 883 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in tile_pmu_handle_irq()
|
/arch/mips/kernel/ |
D | perf_event_mipsxx.c | 34 struct cpu_hw_events { struct 51 DEFINE_PER_CPU(struct cpu_hw_events, cpu_hw_events) = { argument 311 static int mipsxx_pmu_alloc_counter(struct cpu_hw_events *cpuc, in mipsxx_pmu_alloc_counter() 343 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in mipsxx_pmu_enable_event() 363 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in mipsxx_pmu_disable_event() 463 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in mipspmu_add() 499 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in mipspmu_del() 719 struct cpu_hw_events fake_cpuc; in validate_group() 738 static void handle_associated_event(struct cpu_hw_events *cpuc, in handle_associated_event() 1392 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in pause_local_counters() [all …]
|