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()
124 deconfigure_bp(child->pid); in ptrace_disable()
339 void deconfigure_bp(long pid) in deconfigure_bp() argument
344 if (bp_owner != pid) in deconfigure_bp()
350 put_debugreg(pid, PT_BP + 3 + (bp * 2), 0); in deconfigure_bp()
351 put_debugreg(pid, PT_BP + 4 + (bp * 2), 0); in deconfigure_bp()
354 tmp = get_debugreg(pid, PT_BP_CTRL) & ~(3 << (2 + (bp * 4))); in deconfigure_bp()
355 put_debugreg(pid, PT_BP_CTRL, tmp); in deconfigure_bp()
361 static int put_debugreg(long pid, unsigned int regno, long data) in put_debugreg() argument
374 bp_owner = pid; in put_debugreg()
375 else if (bp_owner != pid) { in put_debugreg()
433 static long get_debugreg(long pid, unsigned int regno) in get_debugreg() argument
438 if (pid != bp_owner) { in get_debugreg()