Lines Matching refs:bp

78 	REG_OFFSET_NAME(bp),
556 static void ptrace_triggered(struct perf_event *bp, in ptrace_triggered() argument
568 if (thread->ptrace_bps[i] == bp) in ptrace_triggered()
580 static unsigned long ptrace_get_dr7(struct perf_event *bp[]) in ptrace_get_dr7() argument
587 if (bp[i] && !bp[i]->attr.disabled) { in ptrace_get_dr7()
588 info = counter_arch_bp(bp[i]); in ptrace_get_dr7()
629 static int ptrace_modify_breakpoint(struct perf_event *bp, int len, int type, in ptrace_modify_breakpoint() argument
632 struct perf_event_attr attr = bp->attr; in ptrace_modify_breakpoint()
639 return modify_user_hw_breakpoint(bp, &attr); in ptrace_modify_breakpoint()
660 struct perf_event *bp = thread->ptrace_bps[i]; in ptrace_write_dr7() local
662 if (!bp) { in ptrace_write_dr7()
666 bp = ptrace_register_breakpoint(tsk, in ptrace_write_dr7()
668 if (IS_ERR(bp)) { in ptrace_write_dr7()
669 rc = PTR_ERR(bp); in ptrace_write_dr7()
673 thread->ptrace_bps[i] = bp; in ptrace_write_dr7()
677 rc = ptrace_modify_breakpoint(bp, len, type, disabled); in ptrace_write_dr7()
702 struct perf_event *bp = thread->ptrace_bps[n]; in ptrace_get_debugreg() local
704 if (bp) in ptrace_get_debugreg()
705 val = bp->hw.info.address; in ptrace_get_debugreg()
718 struct perf_event *bp = t->ptrace_bps[nr]; in ptrace_set_breakpoint_addr() local
721 if (!bp) { in ptrace_set_breakpoint_addr()
733 bp = ptrace_register_breakpoint(tsk, in ptrace_set_breakpoint_addr()
736 if (IS_ERR(bp)) in ptrace_set_breakpoint_addr()
737 err = PTR_ERR(bp); in ptrace_set_breakpoint_addr()
739 t->ptrace_bps[nr] = bp; in ptrace_set_breakpoint_addr()
741 struct perf_event_attr attr = bp->attr; in ptrace_set_breakpoint_addr()
744 err = modify_user_hw_breakpoint(bp, &attr); in ptrace_set_breakpoint_addr()
966 R32(ebp, bp); in putreg32()
1036 R32(ebp, bp); in getreg32()