/arch/x86/include/asm/ |
D | hw_breakpoint.h | 52 struct perf_event; 55 extern int arch_check_bp_in_kernelspace(struct perf_event *bp); 56 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); 64 void hw_breakpoint_pmu_unthrottle(struct perf_event *bp); 67 arch_fill_perf_breakpoint(struct perf_event *bp);
|
/arch/sh/include/asm/ |
D | hw_breakpoint.h | 44 struct perf_event; 57 extern int arch_check_bp_in_kernelspace(struct perf_event *bp); 58 extern int arch_validate_hwbkpt_settings(struct perf_event *bp); 62 int arch_install_hw_breakpoint(struct perf_event *bp); 63 void arch_uninstall_hw_breakpoint(struct perf_event *bp); 64 void hw_breakpoint_pmu_read(struct perf_event *bp); 66 extern void arch_fill_perf_breakpoint(struct perf_event *bp);
|
/arch/xtensa/include/asm/ |
D | hw_breakpoint.h | 33 struct perf_event; 38 int arch_check_bp_in_kernelspace(struct perf_event *bp); 39 int arch_validate_hwbkpt_settings(struct perf_event *bp); 43 int arch_install_hw_breakpoint(struct perf_event *bp); 44 void arch_uninstall_hw_breakpoint(struct perf_event *bp); 45 void hw_breakpoint_pmu_read(struct perf_event *bp);
|
/arch/powerpc/include/asm/ |
D | hw_breakpoint.h | 55 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/xtensa/kernel/ |
D | hw_breakpoint.c | 18 static DEFINE_PER_CPU(struct perf_event *, bp_on_reg[XCHAL_NUM_IBREAK]); 21 static DEFINE_PER_CPU(struct perf_event *, wp_on_reg[XCHAL_NUM_DBREAK]); 36 int arch_check_bp_in_kernelspace(struct perf_event *bp) in arch_check_bp_in_kernelspace() 51 static int arch_build_bp_info(struct perf_event *bp) in arch_build_bp_info() 86 int arch_validate_hwbkpt_settings(struct perf_event *bp) in arch_validate_hwbkpt_settings() 143 static int alloc_slot(struct perf_event **slot, size_t n, in alloc_slot() 144 struct perf_event *bp) in alloc_slot() 157 static void set_ibreak_regs(int reg, struct perf_event *bp) in set_ibreak_regs() 167 static void set_dbreak_regs(int reg, struct perf_event *bp) in set_dbreak_regs() 181 int arch_install_hw_breakpoint(struct perf_event *bp) in arch_install_hw_breakpoint() [all …]
|
D | perf_event.c | 55 struct perf_event *event[XCHAL_NUM_PERF_COUNTERS]; 139 static void xtensa_perf_event_update(struct perf_event *event, in xtensa_perf_event_update() 157 static bool xtensa_perf_event_set_period(struct perf_event *event, in xtensa_perf_event_set_period() 201 static int xtensa_pmu_event_init(struct perf_event *event) in xtensa_pmu_event_init() 243 static void xtensa_pmu_start(struct perf_event *event, int flags) in xtensa_pmu_start() 261 static void xtensa_pmu_stop(struct perf_event *event, int flags) in xtensa_pmu_stop() 284 static int xtensa_pmu_add(struct perf_event *event, int flags) in xtensa_pmu_add() 310 static void xtensa_pmu_del(struct perf_event *event, int flags) in xtensa_pmu_del() 319 static void xtensa_pmu_read(struct perf_event *event) in xtensa_pmu_read() 372 struct perf_event *event = ev->event[i]; in xtensa_pmu_irq_handler()
|
/arch/x86/events/ |
D | perf_event.h | 78 struct perf_event *owners[X86_PMC_IDX_MAX]; 177 struct perf_event *events[X86_PMC_IDX_MAX]; /* in counter order */ 190 struct perf_event *event_list[X86_PMC_IDX_MAX]; /* in enabled order */ 523 void (*enable)(struct perf_event *); 524 void (*disable)(struct perf_event *); 525 void (*add)(struct perf_event *); 526 void (*del)(struct perf_event *); 527 int (*hw_config)(struct perf_event *event); 549 struct perf_event *event); 552 struct perf_event *event); [all …]
|
D | msr.c | 142 static int msr_event_init(struct perf_event *event) in msr_event_init() 174 static inline u64 msr_read_counter(struct perf_event *event) in msr_read_counter() 185 static void msr_event_update(struct perf_event *event) in msr_event_update() 205 static void msr_event_start(struct perf_event *event, int flags) in msr_event_start() 213 static void msr_event_stop(struct perf_event *event, int flags) in msr_event_stop() 218 static void msr_event_del(struct perf_event *event, int flags) in msr_event_del() 223 static int msr_event_add(struct perf_event *event, int flags) in msr_event_add()
|
/arch/x86/events/intel/ |
D | uncore.h | 75 void (*disable_event)(struct intel_uncore_box *, struct perf_event *); 76 void (*enable_event)(struct intel_uncore_box *, struct perf_event *); 77 u64 (*read_counter)(struct intel_uncore_box *, struct perf_event *); 78 int (*hw_config)(struct intel_uncore_box *, struct perf_event *); 80 struct perf_event *); 81 void (*put_constraint)(struct intel_uncore_box *, struct perf_event *); 109 struct perf_event *events[UNCORE_PMC_IDX_MAX]; 110 struct perf_event *event_list[UNCORE_PMC_IDX_MAX]; 297 struct perf_event *event) in uncore_disable_event() 303 struct perf_event *event) in uncore_enable_event() [all …]
|
/arch/powerpc/kernel/ |
D | hw_breakpoint.c | 42 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 = this_cpu_ptr(&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 = this_cpu_ptr(&bp_per_reg); in arch_uninstall_hw_breakpoint() 106 void arch_unregister_hw_breakpoint(struct perf_event *bp) in arch_unregister_hw_breakpoint() 121 int arch_check_bp_in_kernelspace(struct perf_event *bp) in arch_check_bp_in_kernelspace() 143 int arch_validate_hwbkpt_settings(struct perf_event *bp) in arch_validate_hwbkpt_settings() 212 struct perf_event *bp; in hw_breakpoint_handler() 307 struct perf_event *bp = NULL; in single_step_dabr_instruction() [all …]
|
/arch/arm/include/asm/ |
D | hw_breakpoint.h | 115 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/arm64/include/asm/ |
D | hw_breakpoint.h | 122 struct perf_event; 127 extern int arch_check_bp_in_kernelspace(struct perf_event *bp); 128 extern int arch_validate_hwbkpt_settings(struct perf_event *bp); 132 extern int arch_install_hw_breakpoint(struct perf_event *bp); 133 extern void arch_uninstall_hw_breakpoint(struct perf_event *bp); 134 extern void hw_breakpoint_pmu_read(struct perf_event *bp);
|
/arch/sh/kernel/ |
D | hw_breakpoint.c | 32 static DEFINE_PER_CPU(struct perf_event *, bp_per_reg[HBP_NUM]); 50 int arch_install_hw_breakpoint(struct perf_event *bp) in arch_install_hw_breakpoint() 56 struct perf_event **slot = this_cpu_ptr(&bp_per_reg[i]); in arch_install_hw_breakpoint() 82 void arch_uninstall_hw_breakpoint(struct perf_event *bp) in arch_uninstall_hw_breakpoint() 88 struct perf_event **slot = this_cpu_ptr(&bp_per_reg[i]); in arch_uninstall_hw_breakpoint() 127 int arch_check_bp_in_kernelspace(struct perf_event *bp) in arch_check_bp_in_kernelspace() 178 static int arch_build_bp_info(struct perf_event *bp) in arch_build_bp_info() 223 int arch_validate_hwbkpt_settings(struct perf_event *bp) in arch_validate_hwbkpt_settings() 286 struct perf_event *bp; in hw_breakpoint_handler() 406 void hw_breakpoint_pmu_read(struct perf_event *bp) in hw_breakpoint_pmu_read()
|
D | perf_event.c | 32 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/ |
D | perf_event.c | 41 struct perf_event *event[MAX_HWEVENTS]; 86 int (*check_constraints)(struct perf_event **, unsigned long *, int); 152 static int ev67_check_constraints(struct perf_event **event, in ev67_check_constraints() 252 static int alpha_perf_event_set_period(struct perf_event *event, in alpha_perf_event_set_period() 307 static unsigned long alpha_perf_event_update(struct perf_event *event, in alpha_perf_event_update() 340 static int collect_events(struct perf_event *group, int max_count, in collect_events() 341 struct perf_event *event[], unsigned long *evtype, in collect_events() 344 struct perf_event *pe; in collect_events() 371 static int alpha_check_constraints(struct perf_event **events, in alpha_check_constraints() 400 struct perf_event *pe = cpuc->event[j]; in maybe_change_configuration() [all …]
|
/arch/x86/kernel/ |
D | hw_breakpoint.c | 59 static DEFINE_PER_CPU(struct perf_event *, bp_per_reg[HBP_NUM]); 106 int arch_install_hw_breakpoint(struct perf_event *bp) in arch_install_hw_breakpoint() 113 struct perf_event **slot = this_cpu_ptr(&bp_per_reg[i]); in arch_install_hw_breakpoint() 146 void arch_uninstall_hw_breakpoint(struct perf_event *bp) in arch_uninstall_hw_breakpoint() 153 struct perf_event **slot = this_cpu_ptr(&bp_per_reg[i]); in arch_uninstall_hw_breakpoint() 175 int arch_check_bp_in_kernelspace(struct perf_event *bp) in arch_check_bp_in_kernelspace() 237 static int arch_build_bp_info(struct perf_event *bp) in arch_build_bp_info() 325 int arch_validate_hwbkpt_settings(struct perf_event *bp) in arch_validate_hwbkpt_settings() 380 struct perf_event *bp; in aout_dump_debugregs() 451 struct perf_event *bp; in hw_breakpoint_handler() [all …]
|
/arch/x86/events/amd/ |
D | power.c | 50 static void event_update(struct perf_event *event) in event_update() 78 static void __pmu_event_start(struct perf_event *event) in __pmu_event_start() 89 static void pmu_event_start(struct perf_event *event, int mode) in pmu_event_start() 94 static void pmu_event_stop(struct perf_event *event, int mode) in pmu_event_stop() 113 static int pmu_event_add(struct perf_event *event, int mode) in pmu_event_add() 125 static void pmu_event_del(struct perf_event *event, int flags) in pmu_event_del() 130 static int pmu_event_init(struct perf_event *event) in pmu_event_init() 155 static void pmu_event_read(struct perf_event *event) in pmu_event_read()
|
/arch/x86/kvm/ |
D | pmu.c | 58 static void kvm_perf_overflow(struct perf_event *perf_event, in kvm_perf_overflow() argument 62 struct kvm_pmc *pmc = perf_event->overflow_handler_context; in kvm_perf_overflow() 72 static void kvm_perf_overflow_intr(struct perf_event *perf_event, in kvm_perf_overflow_intr() argument 76 struct kvm_pmc *pmc = perf_event->overflow_handler_context; in kvm_perf_overflow_intr() 104 struct perf_event *event; in pmc_reprogram_counter() 139 pmc->perf_event = event; in pmc_reprogram_counter() 232 if (unlikely(!pmc || !pmc->perf_event)) { in kvm_pmu_handle_event()
|
D | pmu.h | 48 if (pmc->perf_event) in pmc_read_counter() 49 counter += perf_event_read_value(pmc->perf_event, in pmc_read_counter() 57 if (pmc->perf_event) { in pmc_stop_counter() 59 perf_event_release_kernel(pmc->perf_event); in pmc_stop_counter() 60 pmc->perf_event = NULL; in pmc_stop_counter()
|
/arch/powerpc/perf/ |
D | 8xx-pmu.c | 49 static int event_type(struct perf_event *event) in event_type() 72 static int mpc8xx_pmu_event_init(struct perf_event *event) in mpc8xx_pmu_event_init() 81 static int mpc8xx_pmu_add(struct perf_event *event, int flags) in mpc8xx_pmu_add() 109 static void mpc8xx_pmu_read(struct perf_event *event) in mpc8xx_pmu_read() 144 static void mpc8xx_pmu_del(struct perf_event *event, int flags) in mpc8xx_pmu_del()
|
D | core-fsl-emb.c | 27 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() 354 static void fsl_emb_pmu_del(struct perf_event *event, int flags) in fsl_emb_pmu_del() 391 static void fsl_emb_pmu_start(struct perf_event *event, int ef_flags) in fsl_emb_pmu_start() 421 static void fsl_emb_pmu_stop(struct perf_event *event, int ef_flags) in fsl_emb_pmu_stop() 446 static void hw_perf_event_destroy(struct perf_event *event) in hw_perf_event_destroy() [all …]
|
/arch/arm/mm/ |
D | cache-l2x0-pmu.c | 48 static struct perf_event *events[PMU_NR_COUNTERS]; 129 static void l2x0_pmu_event_read(struct perf_event *event) in l2x0_pmu_event_read() 145 static void l2x0_pmu_event_configure(struct perf_event *event) in l2x0_pmu_event_configure() 172 struct perf_event *event = events[i]; in l2x0_pmu_poll() 198 static void l2x0_pmu_event_start(struct perf_event *event, int flags) in l2x0_pmu_event_start() 224 static void l2x0_pmu_event_stop(struct perf_event *event, int flags) in l2x0_pmu_event_stop() 241 static int l2x0_pmu_event_add(struct perf_event *event, int flags) in l2x0_pmu_event_add() 271 static void l2x0_pmu_event_del(struct perf_event *event, int flags) in l2x0_pmu_event_del() 284 static bool l2x0_pmu_group_is_valid(struct perf_event *event) in l2x0_pmu_group_is_valid() 287 struct perf_event *leader = event->group_leader; in l2x0_pmu_group_is_valid() [all …]
|
/arch/sh/kernel/cpu/sh4/ |
D | Makefile | 14 perf-$(CONFIG_CPU_SUBTYPE_SH7750) := perf_event.o 15 perf-$(CONFIG_CPU_SUBTYPE_SH7750S) := perf_event.o 16 perf-$(CONFIG_CPU_SUBTYPE_SH7091) := perf_event.o
|
/arch/arm64/kernel/ |
D | hw_breakpoint.c | 42 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]); 172 static int is_compat_bp(struct perf_event *bp) in is_compat_bp() 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() [all …]
|
/arch/blackfin/kernel/ |
D | perf_event.c | 231 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()
|