Lines Matching refs:bp
385 static void ptrace_hbptriggered(struct perf_event *bp, in ptrace_hbptriggered() argument
389 struct arch_hw_breakpoint *bkpt = counter_arch_bp(bp); in ptrace_hbptriggered()
395 if (current->thread.debug.hbp[i] == bp) in ptrace_hbptriggered()
477 struct perf_event *bp; in ptrace_gethbpregs() local
489 bp = tsk->thread.debug.hbp[idx]; in ptrace_gethbpregs()
490 if (!bp) { in ptrace_gethbpregs()
495 arch_ctrl = counter_arch_bp(bp)->ctrl; in ptrace_gethbpregs()
505 reg = bp->attr.bp_addr; in ptrace_gethbpregs()
523 struct perf_event *bp; in ptrace_sethbpregs() local
545 bp = tsk->thread.debug.hbp[idx]; in ptrace_sethbpregs()
546 if (!bp) { in ptrace_sethbpregs()
547 bp = ptrace_hbp_create(tsk, implied_type); in ptrace_sethbpregs()
548 if (IS_ERR(bp)) { in ptrace_sethbpregs()
549 ret = PTR_ERR(bp); in ptrace_sethbpregs()
552 tsk->thread.debug.hbp[idx] = bp; in ptrace_sethbpregs()
555 attr = bp->attr; in ptrace_sethbpregs()
577 ret = modify_user_hw_breakpoint(bp, &attr); in ptrace_sethbpregs()