Lines Matching refs:bp
104 int arch_install_hw_breakpoint(struct perf_event *bp) in arch_install_hw_breakpoint() argument
106 struct arch_hw_breakpoint *info = counter_arch_bp(bp); in arch_install_hw_breakpoint()
114 *slot = bp; in arch_install_hw_breakpoint()
144 void arch_uninstall_hw_breakpoint(struct perf_event *bp) in arch_uninstall_hw_breakpoint() argument
146 struct arch_hw_breakpoint *info = counter_arch_bp(bp); in arch_uninstall_hw_breakpoint()
153 if (*slot == bp) { in arch_uninstall_hw_breakpoint()
173 int arch_check_bp_in_kernelspace(struct perf_event *bp) in arch_check_bp_in_kernelspace() argument
177 struct arch_hw_breakpoint *info = counter_arch_bp(bp); in arch_check_bp_in_kernelspace()
180 len = bp->attr.bp_len; in arch_check_bp_in_kernelspace()
231 static int arch_build_bp_info(struct perf_event *bp) in arch_build_bp_info() argument
233 struct arch_hw_breakpoint *info = counter_arch_bp(bp); in arch_build_bp_info()
235 info->address = bp->attr.bp_addr; in arch_build_bp_info()
238 switch (bp->attr.bp_type) { in arch_build_bp_info()
252 if (bp->attr.bp_len == sizeof(long)) { in arch_build_bp_info()
263 switch (bp->attr.bp_len) { in arch_build_bp_info()
279 if (!is_power_of_2(bp->attr.bp_len)) in arch_build_bp_info()
283 info->mask = bp->attr.bp_len - 1; in arch_build_bp_info()
293 int arch_validate_hwbkpt_settings(struct perf_event *bp) in arch_validate_hwbkpt_settings() argument
295 struct arch_hw_breakpoint *info = counter_arch_bp(bp); in arch_validate_hwbkpt_settings()
300 ret = arch_build_bp_info(bp); in arch_validate_hwbkpt_settings()
347 struct perf_event *bp; in aout_dump_debugregs() local
352 bp = thread->ptrace_bps[i]; in aout_dump_debugregs()
354 if (bp && !bp->attr.disabled) { in aout_dump_debugregs()
355 dump->u_debugreg[i] = bp->attr.bp_addr; in aout_dump_debugregs()
356 info = counter_arch_bp(bp); in aout_dump_debugregs()
418 struct perf_event *bp; in hw_breakpoint_handler() local
458 bp = per_cpu(bp_per_reg[i], cpu); in hw_breakpoint_handler()
468 if (!bp) { in hw_breakpoint_handler()
473 perf_bp_event(bp, args->regs); in hw_breakpoint_handler()
479 if (bp->hw.info.type == X86_BREAKPOINT_EXECUTE) in hw_breakpoint_handler()
511 void hw_breakpoint_pmu_read(struct perf_event *bp) in hw_breakpoint_pmu_read() argument