From 515b7a0b97a2e5ff7acae73cb7d57ccc8f51db7b Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Mon, 25 May 2015 22:13:22 +0000 Subject: Add KTR tracing for some MI ptrace events. Differential Revision: https://reviews.freebsd.org/D2643 Reviewed by: kib --- sys/kern/kern_sig.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/kern/kern_sig.c') diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index 154c250b4b91..b30e1ed75461 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -2478,6 +2478,8 @@ ptracestop(struct thread *td, int sig) td->td_dbgflags |= TDB_XSIG; td->td_xsig = sig; + CTR4(KTR_PTRACE, "ptracestop: tid %d (pid %d) flags %#x sig %d", + td->td_tid, p->p_pid, td->td_dbgflags, sig); PROC_SLOCK(p); while ((p->p_flag & P_TRACED) && (td->td_dbgflags & TDB_XSIG)) { if (p->p_flag & P_SINGLE_EXIT) { -- cgit v1.2.3