Home
last modified time | relevance | path

Searched refs:perf_event (Results 1 – 25 of 93) sorted by relevance

1234

/arch/x86/include/asm/
Dhw_breakpoint.h50 struct perf_event;
53 extern int arch_check_bp_in_kernelspace(struct perf_event *bp);
54 extern int arch_validate_hwbkpt_settings(struct perf_event *bp);
59 int arch_install_hw_breakpoint(struct perf_event *bp);
60 void arch_uninstall_hw_breakpoint(struct perf_event *bp);
61 void hw_breakpoint_pmu_read(struct perf_event *bp);
62 void hw_breakpoint_pmu_unthrottle(struct perf_event *bp);
65 arch_fill_perf_breakpoint(struct perf_event *bp);
/arch/arm/include/asm/
Dpmu.h69 struct perf_event **events;
89 void (*enable)(struct perf_event *event);
90 void (*disable)(struct perf_event *event);
92 struct perf_event *event);
94 struct perf_event *event);
97 u32 (*read_counter)(struct perf_event *event);
98 void (*write_counter)(struct perf_event *event, u32 val);
104 int (*map_event)(struct perf_event *event);
119 u64 armpmu_event_update(struct perf_event *event);
121 int armpmu_event_set_period(struct perf_event *event);
[all …]
Dhw_breakpoint.h114 struct perf_event;
120 extern int arch_check_bp_in_kernelspace(struct perf_event *bp);
121 extern int arch_validate_hwbkpt_settings(struct perf_event *bp);
129 int arch_install_hw_breakpoint(struct perf_event *bp);
130 void arch_uninstall_hw_breakpoint(struct perf_event *bp);
131 void hw_breakpoint_pmu_read(struct perf_event *bp);
/arch/sh/include/asm/
Dhw_breakpoint.h43 struct perf_event;
56 extern int arch_check_bp_in_kernelspace(struct perf_event *bp);
57 extern int arch_validate_hwbkpt_settings(struct perf_event *bp);
61 int arch_install_hw_breakpoint(struct perf_event *bp);
62 void arch_uninstall_hw_breakpoint(struct perf_event *bp);
63 void hw_breakpoint_pmu_read(struct perf_event *bp);
65 extern void arch_fill_perf_breakpoint(struct perf_event *bp);
/arch/powerpc/include/asm/
Dhw_breakpoint.h55 struct perf_event;
63 extern int arch_check_bp_in_kernelspace(struct perf_event *bp);
64 extern int arch_validate_hwbkpt_settings(struct perf_event *bp);
67 int arch_install_hw_breakpoint(struct perf_event *bp);
68 void arch_uninstall_hw_breakpoint(struct perf_event *bp);
69 void hw_breakpoint_pmu_read(struct perf_event *bp);
73 extern void ptrace_triggered(struct perf_event *bp,
/arch/x86/kernel/cpu/
Dperf_event_intel_uncore.h66 void (*disable_event)(struct intel_uncore_box *, struct perf_event *);
67 void (*enable_event)(struct intel_uncore_box *, struct perf_event *);
68 u64 (*read_counter)(struct intel_uncore_box *, struct perf_event *);
69 int (*hw_config)(struct intel_uncore_box *, struct perf_event *);
71 struct perf_event *);
72 void (*put_constraint)(struct intel_uncore_box *, struct perf_event *);
98 struct perf_event *events[UNCORE_PMC_IDX_MAX];
99 struct perf_event *event_list[UNCORE_PMC_IDX_MAX];
273 struct perf_event *event) in uncore_disable_event()
279 struct perf_event *event) in uncore_enable_event()
[all …]
Dperf_event.h78 struct perf_event *owners[X86_PMC_IDX_MAX];
130 struct perf_event *events[X86_PMC_IDX_MAX]; /* in counter order */
142 struct perf_event *event_list[X86_PMC_IDX_MAX]; /* in enabled order */
417 void (*enable)(struct perf_event *);
418 void (*disable)(struct perf_event *);
419 int (*hw_config)(struct perf_event *event);
440 struct perf_event *event);
443 struct perf_event *event);
488 void (*pebs_aliases)(struct perf_event *event);
545 int x86_perf_event_set_period(struct perf_event *event);
[all …]
Dperf_event_intel_uncore_snb.c61 static void snb_uncore_msr_enable_event(struct intel_uncore_box *box, struct perf_event *event) in snb_uncore_msr_enable_event()
71 static void snb_uncore_msr_disable_event(struct intel_uncore_box *box, struct perf_event *event) in snb_uncore_msr_disable_event()
212 static void snb_uncore_imc_enable_event(struct intel_uncore_box *box, struct perf_event *event) in snb_uncore_imc_enable_event()
215 static void snb_uncore_imc_disable_event(struct intel_uncore_box *box, struct perf_event *event) in snb_uncore_imc_disable_event()
218 static u64 snb_uncore_imc_read_counter(struct intel_uncore_box *box, struct perf_event *event) in snb_uncore_imc_read_counter()
230 static int snb_uncore_imc_event_init(struct perf_event *event) in snb_uncore_imc_event_init()
307 static int snb_uncore_imc_hw_config(struct intel_uncore_box *box, struct perf_event *event) in snb_uncore_imc_hw_config()
312 static void snb_uncore_imc_event_start(struct perf_event *event, int flags) in snb_uncore_imc_event_start()
332 static void snb_uncore_imc_event_stop(struct perf_event *event, int flags) in snb_uncore_imc_event_stop()
359 static int snb_uncore_imc_event_add(struct perf_event *event, int flags) in snb_uncore_imc_event_add()
[all …]
/arch/arm64/include/asm/
Dhw_breakpoint.h110 struct perf_event;
115 extern int arch_check_bp_in_kernelspace(struct perf_event *bp);
116 extern int arch_validate_hwbkpt_settings(struct perf_event *bp);
120 extern int arch_install_hw_breakpoint(struct perf_event *bp);
121 extern void arch_uninstall_hw_breakpoint(struct perf_event *bp);
122 extern void hw_breakpoint_pmu_read(struct perf_event *bp);
Dpmu.h29 struct perf_event **events;
60 int (*map_event)(struct perf_event *event);
73 u64 armpmu_event_update(struct perf_event *event,
77 int armpmu_event_set_period(struct perf_event *event,
/arch/powerpc/kernel/
Dhw_breakpoint.c42 static DEFINE_PER_CPU(struct perf_event *, bp_per_reg);
63 int arch_install_hw_breakpoint(struct perf_event *bp) in arch_install_hw_breakpoint()
66 struct perf_event **slot = &__get_cpu_var(bp_per_reg); in arch_install_hw_breakpoint()
89 void arch_uninstall_hw_breakpoint(struct perf_event *bp) in arch_uninstall_hw_breakpoint()
91 struct perf_event **slot = &__get_cpu_var(bp_per_reg); in arch_uninstall_hw_breakpoint()
106 void arch_unregister_hw_breakpoint(struct perf_event *bp) in arch_unregister_hw_breakpoint()
120 int arch_check_bp_in_kernelspace(struct perf_event *bp) in arch_check_bp_in_kernelspace()
142 int arch_validate_hwbkpt_settings(struct perf_event *bp) in arch_validate_hwbkpt_settings()
211 struct perf_event *bp; in hw_breakpoint_handler()
299 struct perf_event *bp = NULL; in single_step_dabr_instruction()
[all …]
/arch/sh/kernel/
Dhw_breakpoint.c31 static DEFINE_PER_CPU(struct perf_event *, bp_per_reg[HBP_NUM]);
49 int arch_install_hw_breakpoint(struct perf_event *bp) in arch_install_hw_breakpoint()
55 struct perf_event **slot = this_cpu_ptr(&bp_per_reg[i]); in arch_install_hw_breakpoint()
81 void arch_uninstall_hw_breakpoint(struct perf_event *bp) in arch_uninstall_hw_breakpoint()
87 struct perf_event **slot = this_cpu_ptr(&bp_per_reg[i]); in arch_uninstall_hw_breakpoint()
126 int arch_check_bp_in_kernelspace(struct perf_event *bp) in arch_check_bp_in_kernelspace()
176 static int arch_build_bp_info(struct perf_event *bp) in arch_build_bp_info()
221 int arch_validate_hwbkpt_settings(struct perf_event *bp) in arch_validate_hwbkpt_settings()
284 struct perf_event *bp; in hw_breakpoint_handler()
404 void hw_breakpoint_pmu_read(struct perf_event *bp) in hw_breakpoint_pmu_read()
Dperf_event.c32 struct perf_event *events[MAX_HWEVENTS];
84 static void hw_perf_event_destroy(struct perf_event *event) in hw_perf_event_destroy()
121 static int __hw_perf_event_init(struct perf_event *event) in __hw_perf_event_init()
179 static void sh_perf_event_update(struct perf_event *event, in sh_perf_event_update()
220 static void sh_pmu_stop(struct perf_event *event, int flags) in sh_pmu_stop()
238 static void sh_pmu_start(struct perf_event *event, int flags) in sh_pmu_start()
255 static void sh_pmu_del(struct perf_event *event, int flags) in sh_pmu_del()
265 static int sh_pmu_add(struct perf_event *event, int flags) in sh_pmu_add()
296 static void sh_pmu_read(struct perf_event *event) in sh_pmu_read()
301 static int sh_pmu_event_init(struct perf_event *event) in sh_pmu_event_init()
/arch/alpha/kernel/
Dperf_event.c40 struct perf_event *event[MAX_HWEVENTS];
85 int (*check_constraints)(struct perf_event **, unsigned long *, int);
151 static int ev67_check_constraints(struct perf_event **event, in ev67_check_constraints()
251 static int alpha_perf_event_set_period(struct perf_event *event, in alpha_perf_event_set_period()
306 static unsigned long alpha_perf_event_update(struct perf_event *event, in alpha_perf_event_update()
339 static int collect_events(struct perf_event *group, int max_count, in collect_events()
340 struct perf_event *event[], unsigned long *evtype, in collect_events()
343 struct perf_event *pe; in collect_events()
370 static int alpha_check_constraints(struct perf_event **events, in alpha_check_constraints()
399 struct perf_event *pe = cpuc->event[j]; in maybe_change_configuration()
[all …]
/arch/x86/kernel/
Dhw_breakpoint.c57 static DEFINE_PER_CPU(struct perf_event *, bp_per_reg[HBP_NUM]);
104 int arch_install_hw_breakpoint(struct perf_event *bp) in arch_install_hw_breakpoint()
111 struct perf_event **slot = this_cpu_ptr(&bp_per_reg[i]); in arch_install_hw_breakpoint()
142 void arch_uninstall_hw_breakpoint(struct perf_event *bp) in arch_uninstall_hw_breakpoint()
149 struct perf_event **slot = this_cpu_ptr(&bp_per_reg[i]); in arch_uninstall_hw_breakpoint()
192 int arch_check_bp_in_kernelspace(struct perf_event *bp) in arch_check_bp_in_kernelspace()
250 static int arch_build_bp_info(struct perf_event *bp) in arch_build_bp_info()
304 int arch_validate_hwbkpt_settings(struct perf_event *bp) in arch_validate_hwbkpt_settings()
358 struct perf_event *bp; in aout_dump_debugregs()
429 struct perf_event *bp; in hw_breakpoint_handler()
[all …]
/arch/sh/kernel/cpu/sh4/
DMakefile13 perf-$(CONFIG_CPU_SUBTYPE_SH7750) := perf_event.o
14 perf-$(CONFIG_CPU_SUBTYPE_SH7750S) := perf_event.o
15 perf-$(CONFIG_CPU_SUBTYPE_SH7091) := perf_event.o
/arch/arm/kernel/
Dperf_event.c74 armpmu_map_event(struct perf_event *event, in armpmu_map_event()
96 int armpmu_event_set_period(struct perf_event *event) in armpmu_event_set_period()
130 u64 armpmu_event_update(struct perf_event *event) in armpmu_event_update()
153 armpmu_read(struct perf_event *event) in armpmu_read()
159 armpmu_stop(struct perf_event *event, int flags) in armpmu_stop()
175 static void armpmu_start(struct perf_event *event, int flags) in armpmu_start()
200 armpmu_del(struct perf_event *event, int flags) in armpmu_del()
217 armpmu_add(struct perf_event *event, int flags) in armpmu_add()
256 struct perf_event *event) in validate_event()
273 validate_group(struct perf_event *event) in validate_group()
[all …]
Dperf_event_xscale.c166 struct perf_event *event = cpuc->events[idx]; in xscale1pmu_handle_irq()
196 static void xscale1pmu_enable_event(struct perf_event *event) in xscale1pmu_enable_event()
232 static void xscale1pmu_disable_event(struct perf_event *event) in xscale1pmu_disable_event()
268 struct perf_event *event) in xscale1pmu_get_event_idx()
311 static inline u32 xscale1pmu_read_counter(struct perf_event *event) in xscale1pmu_read_counter()
332 static inline void xscale1pmu_write_counter(struct perf_event *event, u32 val) in xscale1pmu_write_counter()
350 static int xscale_map_event(struct perf_event *event) in xscale_map_event()
507 struct perf_event *event = cpuc->events[idx]; in xscale2pmu_handle_irq()
537 static void xscale2pmu_enable_event(struct perf_event *event) in xscale2pmu_enable_event()
583 static void xscale2pmu_disable_event(struct perf_event *event) in xscale2pmu_disable_event()
[all …]
Dhw_breakpoint.c42 static DEFINE_PER_CPU(struct perf_event *, bp_on_reg[ARM_MAX_BRP]);
45 static DEFINE_PER_CPU(struct perf_event *, wp_on_reg[ARM_MAX_WRP]);
334 int arch_install_hw_breakpoint(struct perf_event *bp) in arch_install_hw_breakpoint()
337 struct perf_event **slot, **slots; in arch_install_hw_breakpoint()
391 void arch_uninstall_hw_breakpoint(struct perf_event *bp) in arch_uninstall_hw_breakpoint()
394 struct perf_event **slot, **slots; in arch_uninstall_hw_breakpoint()
460 int arch_check_bp_in_kernelspace(struct perf_event *bp) in arch_check_bp_in_kernelspace()
522 static int arch_build_bp_info(struct perf_event *bp) in arch_build_bp_info()
595 int arch_validate_hwbkpt_settings(struct perf_event *bp) in arch_validate_hwbkpt_settings()
671 static void enable_single_step(struct perf_event *bp, u32 addr) in enable_single_step()
[all …]
/arch/powerpc/perf/
Dcore-fsl-emb.c27 struct perf_event *event[MAX_HWEVENTS];
179 static void fsl_emb_pmu_read(struct perf_event *event) in fsl_emb_pmu_read()
268 static int collect_events(struct perf_event *group, int max_count, in collect_events()
269 struct perf_event *ctrs[]) in collect_events()
272 struct perf_event *event; in collect_events()
293 static int fsl_emb_pmu_add(struct perf_event *event, int flags) in fsl_emb_pmu_add()
352 static void fsl_emb_pmu_del(struct perf_event *event, int flags) in fsl_emb_pmu_del()
389 static void fsl_emb_pmu_start(struct perf_event *event, int ef_flags) in fsl_emb_pmu_start()
415 static void fsl_emb_pmu_stop(struct perf_event *event, int ef_flags) in fsl_emb_pmu_stop()
440 static void hw_perf_event_destroy(struct perf_event *event) in hw_perf_event_destroy()
[all …]
Dhv-gpci.c151 static u64 h_gpci_get_value(struct perf_event *event) in h_gpci_get_value()
166 static void h_gpci_event_update(struct perf_event *event) in h_gpci_event_update()
174 static void h_gpci_event_start(struct perf_event *event, int flags) in h_gpci_event_start()
179 static void h_gpci_event_stop(struct perf_event *event, int flags) in h_gpci_event_stop()
184 static int h_gpci_event_add(struct perf_event *event, int flags) in h_gpci_event_add()
192 static int h_gpci_event_init(struct perf_event *event) in h_gpci_event_init()
Dcore-book3s.c36 struct perf_event *event[MAX_HWEVENTS];
45 struct perf_event *limited_counter[MAX_LIMITED_HWCOUNTERS];
116 static bool is_ebb_event(struct perf_event *event) { return false; } in is_ebb_event()
117 static int ebb_event_check(struct perf_event *event) { return 0; } in ebb_event_check()
118 static void ebb_event_add(struct perf_event *event) { } in ebb_event_add()
125 static inline void power_pmu_bhrb_enable(struct perf_event *event) {} in power_pmu_bhrb_enable()
126 static inline void power_pmu_bhrb_disable(struct perf_event *event) {} in power_pmu_bhrb_disable()
349 static void power_pmu_bhrb_enable(struct perf_event *event) in power_pmu_bhrb_enable()
364 static void power_pmu_bhrb_disable(struct perf_event *event) in power_pmu_bhrb_disable()
499 static bool is_ebb_event(struct perf_event *event) in is_ebb_event()
[all …]
/arch/arm64/kernel/
Dhw_breakpoint.c43 static DEFINE_PER_CPU(struct perf_event *, bp_on_reg[ARM_MAX_BRP]);
46 static DEFINE_PER_CPU(struct perf_event *, wp_on_reg[ARM_MAX_WRP]);
200 static int hw_breakpoint_slot_setup(struct perf_event **slots, int max_slots, in hw_breakpoint_slot_setup()
201 struct perf_event *bp, in hw_breakpoint_slot_setup()
205 struct perf_event **slot; in hw_breakpoint_slot_setup()
234 static int hw_breakpoint_control(struct perf_event *bp, in hw_breakpoint_control()
238 struct perf_event **slots; in hw_breakpoint_control()
300 int arch_install_hw_breakpoint(struct perf_event *bp) in arch_install_hw_breakpoint()
305 void arch_uninstall_hw_breakpoint(struct perf_event *bp) in arch_uninstall_hw_breakpoint()
347 int arch_check_bp_in_kernelspace(struct perf_event *bp) in arch_check_bp_in_kernelspace()
[all …]
/arch/x86/kvm/
Dpmu.c106 static void kvm_perf_overflow(struct perf_event *perf_event, in kvm_perf_overflow() argument
110 struct kvm_pmc *pmc = perf_event->overflow_handler_context; in kvm_perf_overflow()
118 static void kvm_perf_overflow_intr(struct perf_event *perf_event, in kvm_perf_overflow_intr() argument
121 struct kvm_pmc *pmc = perf_event->overflow_handler_context; in kvm_perf_overflow_intr()
147 if (pmc->perf_event) in read_pmc()
148 counter += perf_event_read_value(pmc->perf_event, in read_pmc()
158 if (pmc->perf_event) { in stop_counter()
160 perf_event_release_kernel(pmc->perf_event); in stop_counter()
161 pmc->perf_event = NULL; in stop_counter()
169 struct perf_event *event; in reprogram_counter()
[all …]
/arch/blackfin/kernel/
Dperf_event.c231 struct perf_event *events[MAX_HWEVENTS];
260 static void bfin_perf_event_update(struct perf_event *event, in bfin_perf_event_update()
301 static void bfin_pmu_stop(struct perf_event *event, int flags) in bfin_pmu_stop()
319 static void bfin_pmu_start(struct perf_event *event, int flags) in bfin_pmu_start()
336 static void bfin_pmu_del(struct perf_event *event, int flags) in bfin_pmu_del()
346 static int bfin_pmu_add(struct perf_event *event, int flags) in bfin_pmu_add()
377 static void bfin_pmu_read(struct perf_event *event) in bfin_pmu_read()
382 static int bfin_pmu_event_init(struct perf_event *event) in bfin_pmu_event_init()
425 struct perf_event *event; in bfin_pmu_enable()

1234