Home
last modified time | relevance | path

Searched refs:cpu_hw_events (Results 1 – 18 of 18) sorted by relevance

/Linux-v4.19/arch/s390/kernel/
Dperf_cpum_cf.c61 struct cpu_hw_events { struct
68 static DEFINE_PER_CPU(struct cpu_hw_events, cpu_hw_events) = { argument
101 struct cpu_hw_events *cpuhw; in validate_ctr_version()
105 cpuhw = &get_cpu_var(cpu_hw_events); in validate_ctr_version()
146 put_cpu_var(cpu_hw_events); in validate_ctr_version()
152 struct cpu_hw_events *cpuhw; in validate_ctr_auth()
156 cpuhw = &get_cpu_var(cpu_hw_events); in validate_ctr_auth()
167 put_cpu_var(cpu_hw_events); in validate_ctr_auth()
178 struct cpu_hw_events *cpuhw = this_cpu_ptr(&cpu_hw_events); in cpumf_pmu_enable()
201 struct cpu_hw_events *cpuhw = this_cpu_ptr(&cpu_hw_events); in cpumf_pmu_disable()
[all …]
/Linux-v4.19/arch/sh/kernel/
Dperf_event.c31 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_prepare_cpu()
359 memset(cpuhw, 0, sizeof(struct cpu_hw_events)); in sh_pmu_prepare_cpu()
/Linux-v4.19/arch/x86/events/amd/
Dcore.c207 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 …]
/Linux-v4.19/arch/x86/events/intel/
Dds.c265 struct debug_store *ds = per_cpu(cpu_hw_events, cpu).ds; in init_debug_store_on_cpu()
277 if (!per_cpu(cpu_hw_events, cpu).ds) in fini_debug_store_on_cpu()
336 struct cpu_hw_events *hwev = per_cpu_ptr(&cpu_hw_events, cpu); in alloc_pebs_buffer()
374 struct cpu_hw_events *hwev = per_cpu_ptr(&cpu_hw_events, cpu); in release_pebs_buffer()
392 struct cpu_hw_events *hwev = per_cpu_ptr(&cpu_hw_events, cpu); in alloc_bts_buffer()
421 struct cpu_hw_events *hwev = per_cpu_ptr(&cpu_hw_events, cpu); in release_bts_buffer()
439 per_cpu(cpu_hw_events, cpu).ds = ds; in alloc_ds_buffer()
445 per_cpu(cpu_hw_events, cpu).ds = NULL; in release_ds_buffer()
565 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in intel_pmu_disable_bts()
582 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in intel_pmu_drain_bts_buffer()
[all …]
Dlbr.c146 static void intel_pmu_lbr_filter(struct cpu_hw_events *cpuc);
155 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in __intel_pmu_lbr_enable()
219 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in intel_pmu_lbr_reset()
342 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in __intel_pmu_lbr_restore()
390 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in __intel_pmu_lbr_save()
422 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in intel_pmu_lbr_sched_task()
459 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in intel_pmu_lbr_add()
498 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in intel_pmu_lbr_del()
517 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in intel_pmu_lbr_enable_all()
525 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in intel_pmu_lbr_disable_all()
[all …]
Dbts.c147 struct debug_store *ds = per_cpu(cpu_hw_events, cpu).ds; in bts_config_buffer()
186 struct debug_store *ds = per_cpu(cpu_hw_events, cpu).ds; in bts_update()
256 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in bts_event_start()
301 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in bts_event_stop()
446 struct debug_store *ds = this_cpu_ptr(&cpu_hw_events)->ds; in intel_bts_interrupt()
516 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in bts_event_add()
Dcore.c1876 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in __intel_pmu_disable_all()
1894 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in __intel_pmu_enable_all()
1933 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in intel_pmu_nhm_workaround()
2032 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in intel_pmu_disable_event()
2107 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in intel_pmu_enable_event()
2110 if (!__this_cpu_read(cpu_hw_events.enabled)) in intel_pmu_enable_event()
2167 struct debug_store *ds = __this_cpu_read(cpu_hw_events.ds); in intel_pmu_reset()
2210 struct cpu_hw_events *cpuc; in intel_pmu_handle_irq()
2216 cpuc = this_cpu_ptr(&cpu_hw_events); in intel_pmu_handle_irq()
2418 __intel_shared_reg_get_constraints(struct cpu_hw_events *cpuc, in __intel_shared_reg_get_constraints()
[all …]
Dknc.c216 struct cpu_hw_events *cpuc; in knc_pmu_handle_irq()
221 cpuc = this_cpu_ptr(&cpu_hw_events); in knc_pmu_handle_irq()
Dp4.c918 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()
/Linux-v4.19/arch/powerpc/perf/
Dcore-fsl-emb.c23 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 …]
Dcore-book3s.c29 struct cpu_hw_events { struct
63 static DEFINE_PER_CPU(struct cpu_hw_events, cpu_hw_events); argument
121 static unsigned long ebb_switch_in(bool ebb, struct cpu_hw_events *cpuhw) in ebb_switch_in()
129 static inline void power_pmu_bhrb_read(struct cpu_hw_events *cpuhw) {} in power_pmu_bhrb_read()
360 struct cpu_hw_events *cpuhw = this_cpu_ptr(&cpu_hw_events); in power_pmu_bhrb_enable()
376 struct cpu_hw_events *cpuhw = this_cpu_ptr(&cpu_hw_events); in power_pmu_bhrb_disable()
438 static void power_pmu_bhrb_read(struct cpu_hw_events *cpuhw) in power_pmu_bhrb_read()
587 static unsigned long ebb_switch_in(bool ebb, struct cpu_hw_events *cpuhw) in ebb_switch_in()
857 static int power_check_constraints(struct cpu_hw_events *cpuhw, in power_check_constraints()
1094 static void freeze_limited_counters(struct cpu_hw_events *cpuhw, in freeze_limited_counters()
[all …]
/Linux-v4.19/arch/alpha/kernel/
Dperf_event.c34 struct cpu_hw_events { struct
53 DEFINE_PER_CPU(struct cpu_hw_events, cpu_hw_events); argument
391 static void maybe_change_configuration(struct cpu_hw_events *cpuc) in maybe_change_configuration()
435 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in alpha_pmu_add()
487 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in alpha_pmu_del()
535 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in alpha_pmu_stop()
555 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in alpha_pmu_start()
728 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in alpha_pmu_enable()
754 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in alpha_pmu_disable()
812 struct cpu_hw_events *cpuc; in alpha_perf_event_irq_handler()
[all …]
/Linux-v4.19/arch/x86/events/
Dcore.c48 DEFINE_PER_CPU(struct cpu_hw_events, cpu_hw_events) = {
616 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in x86_pmu_disable_all()
647 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in x86_pmu_disable()
664 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in x86_pmu_enable_all()
867 int x86_schedule_events(struct cpu_hw_events *cpuc, int n, int *assign) in x86_schedule_events()
980 static int collect_events(struct cpu_hw_events *cpuc, struct perf_event *leader, bool dogrp) in collect_events()
1014 struct cpu_hw_events *cpuc, int i) in x86_assign_hw_event()
1037 struct cpu_hw_events *cpuc, in match_prev_assignment()
1049 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in x86_pmu_enable()
1190 if (__this_cpu_read(cpu_hw_events.enabled)) in x86_pmu_enable_event()
[all …]
Dperf_event.h175 struct cpu_hw_events { struct
528 int (*schedule_events)(struct cpu_hw_events *cpuc, int n, int *assign);
547 (*get_event_constraints)(struct cpu_hw_events *cpuc,
551 void (*put_event_constraints)(struct cpu_hw_events *cpuc,
554 void (*start_scheduling)(struct cpu_hw_events *cpuc);
556 void (*commit_scheduling)(struct cpu_hw_events *cpuc, int idx, int cntr);
558 void (*stop_scheduling)(struct cpu_hw_events *cpuc);
711 DECLARE_PER_CPU(struct cpu_hw_events, cpu_hw_events);
774 u64 disable_mask = __this_cpu_read(cpu_hw_events.perf_ctr_virt_mask); in __x86_pmu_enable_event()
785 int x86_schedule_events(struct cpu_hw_events *cpuc, int n, int *assign);
[all …]
/Linux-v4.19/arch/sparc/kernel/
Dperf_event.c78 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()
919 static void read_in_all_counters(struct cpu_hw_events *cpuc) in read_in_all_counters()
943 static void calculate_single_pcr(struct cpu_hw_events *cpuc) in calculate_single_pcr()
979 static void calculate_multiple_pcrs(struct cpu_hw_events *cpuc) in calculate_multiple_pcrs()
1013 static void update_pcrs_for_enable(struct cpu_hw_events *cpuc) in update_pcrs_for_enable()
1027 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in sparc_pmu_enable()
1045 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in sparc_pmu_disable()
[all …]
/Linux-v4.19/arch/riscv/kernel/
Dperf_event.c36 static DEFINE_PER_CPU(struct cpu_hw_events, cpu_hw_events);
299 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in riscv_pmu_add()
330 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in riscv_pmu_del()
/Linux-v4.19/arch/mips/kernel/
Dperf_event_mipsxx.c34 struct cpu_hw_events { struct
51 DEFINE_PER_CPU(struct cpu_hw_events, cpu_hw_events) = { argument
294 static int mipsxx_pmu_alloc_counter(struct cpu_hw_events *cpuc, in mipsxx_pmu_alloc_counter()
327 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in mipsxx_pmu_enable_event()
376 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in mipsxx_pmu_disable_event()
476 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in mipspmu_add()
512 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in mipspmu_del()
732 struct cpu_hw_events fake_cpuc; in validate_group()
751 static void handle_associated_event(struct cpu_hw_events *cpuc, in handle_associated_event()
1370 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in pause_local_counters()
[all …]
/Linux-v4.19/arch/riscv/include/asm/
Dperf_event.h50 struct cpu_hw_events { struct