Lines Matching refs:bp

80 	REG_OFFSET_NAME(bp),
558 static void ptrace_triggered(struct perf_event *bp, in ptrace_triggered() argument
570 if (thread->ptrace_bps[i] == bp) in ptrace_triggered()
582 static unsigned long ptrace_get_dr7(struct perf_event *bp[]) in ptrace_get_dr7() argument
589 if (bp[i] && !bp[i]->attr.disabled) { in ptrace_get_dr7()
590 info = counter_arch_bp(bp[i]); in ptrace_get_dr7()
631 static int ptrace_modify_breakpoint(struct perf_event *bp, int len, int type, in ptrace_modify_breakpoint() argument
634 struct perf_event_attr attr = bp->attr; in ptrace_modify_breakpoint()
641 return modify_user_hw_breakpoint(bp, &attr); in ptrace_modify_breakpoint()
662 struct perf_event *bp = thread->ptrace_bps[i]; in ptrace_write_dr7() local
664 if (!bp) { in ptrace_write_dr7()
668 bp = ptrace_register_breakpoint(tsk, in ptrace_write_dr7()
670 if (IS_ERR(bp)) { in ptrace_write_dr7()
671 rc = PTR_ERR(bp); in ptrace_write_dr7()
675 thread->ptrace_bps[i] = bp; in ptrace_write_dr7()
679 rc = ptrace_modify_breakpoint(bp, len, type, disabled); in ptrace_write_dr7()
704 struct perf_event *bp = thread->ptrace_bps[n]; in ptrace_get_debugreg() local
706 if (bp) in ptrace_get_debugreg()
707 val = bp->hw.info.address; in ptrace_get_debugreg()
720 struct perf_event *bp = t->ptrace_bps[nr]; in ptrace_set_breakpoint_addr() local
723 if (!bp) { in ptrace_set_breakpoint_addr()
735 bp = ptrace_register_breakpoint(tsk, in ptrace_set_breakpoint_addr()
738 if (IS_ERR(bp)) in ptrace_set_breakpoint_addr()
739 err = PTR_ERR(bp); in ptrace_set_breakpoint_addr()
741 t->ptrace_bps[nr] = bp; in ptrace_set_breakpoint_addr()
743 struct perf_event_attr attr = bp->attr; in ptrace_set_breakpoint_addr()
746 err = modify_user_hw_breakpoint(bp, &attr); in ptrace_set_breakpoint_addr()
968 R32(ebp, bp); in putreg32()
1038 R32(ebp, bp); in getreg32()
1512 sd.args[5] = regs->bp; in syscall_trace_enter_phase1()