Lines Matching refs:pid
29 static int put_debugreg(long pid, unsigned int regno, long data);
30 static long get_debugreg(long pid, unsigned int regno);
32 void deconfigure_bp(long pid);
53 ret = get_debugreg(task->pid, regno); in get_reg()
74 return put_debugreg(task->pid, regno, data); in put_reg()
101 if (!get_debugreg(child->pid, PT_BP_CTRL)) { in user_disable_single_step()
122 deconfigure_bp(child->pid); in ptrace_disable()
337 void deconfigure_bp(long pid) in deconfigure_bp() argument
342 if (bp_owner != pid) in deconfigure_bp()
348 put_debugreg(pid, PT_BP + 3 + (bp * 2), 0); in deconfigure_bp()
349 put_debugreg(pid, PT_BP + 4 + (bp * 2), 0); in deconfigure_bp()
352 tmp = get_debugreg(pid, PT_BP_CTRL) & ~(3 << (2 + (bp * 4))); in deconfigure_bp()
353 put_debugreg(pid, PT_BP_CTRL, tmp); in deconfigure_bp()
359 static int put_debugreg(long pid, unsigned int regno, long data) in put_debugreg() argument
372 bp_owner = pid; in put_debugreg()
373 else if (bp_owner != pid) { in put_debugreg()
431 static long get_debugreg(long pid, unsigned int regno) in get_debugreg() argument
436 if (pid != bp_owner) { in get_debugreg()