Lines Matching refs:bp
82 REG_OFFSET_NAME(bp),
475 static void ptrace_triggered(struct perf_event *bp, in ptrace_triggered() argument
487 if (thread->ptrace_bps[i] == bp) in ptrace_triggered()
499 static unsigned long ptrace_get_dr7(struct perf_event *bp[]) in ptrace_get_dr7() argument
506 if (bp[i] && !bp[i]->attr.disabled) { in ptrace_get_dr7()
507 info = counter_arch_bp(bp[i]); in ptrace_get_dr7()
548 static int ptrace_modify_breakpoint(struct perf_event *bp, int len, int type, in ptrace_modify_breakpoint() argument
551 struct perf_event_attr attr = bp->attr; in ptrace_modify_breakpoint()
558 return modify_user_hw_breakpoint(bp, &attr); in ptrace_modify_breakpoint()
579 struct perf_event *bp = thread->ptrace_bps[i]; in ptrace_write_dr7() local
581 if (!bp) { in ptrace_write_dr7()
585 bp = ptrace_register_breakpoint(tsk, in ptrace_write_dr7()
587 if (IS_ERR(bp)) { in ptrace_write_dr7()
588 rc = PTR_ERR(bp); in ptrace_write_dr7()
592 thread->ptrace_bps[i] = bp; in ptrace_write_dr7()
596 rc = ptrace_modify_breakpoint(bp, len, type, disabled); in ptrace_write_dr7()
622 struct perf_event *bp = thread->ptrace_bps[index]; in ptrace_get_debugreg() local
624 if (bp) in ptrace_get_debugreg()
625 val = bp->hw.info.address; in ptrace_get_debugreg()
638 struct perf_event *bp = t->ptrace_bps[nr]; in ptrace_set_breakpoint_addr() local
641 if (!bp) { in ptrace_set_breakpoint_addr()
653 bp = ptrace_register_breakpoint(tsk, in ptrace_set_breakpoint_addr()
656 if (IS_ERR(bp)) in ptrace_set_breakpoint_addr()
657 err = PTR_ERR(bp); in ptrace_set_breakpoint_addr()
659 t->ptrace_bps[nr] = bp; in ptrace_set_breakpoint_addr()
661 struct perf_event_attr attr = bp->attr; in ptrace_set_breakpoint_addr()
664 err = modify_user_hw_breakpoint(bp, &attr); in ptrace_set_breakpoint_addr()
883 R32(ebp, bp); in putreg32()
956 R32(ebp, bp); in getreg32()