Date: Tue, 9 Nov 1999 10:59:34 -0500 From: Greg Lehey <grog@mojave.sitaranetworks.com> To: vladimir-freebsd-questions@math.uic.edu, freebsd-questions@FreeBSD.ORG Subject: Re: ktrace'ing a running process Message-ID: <19991109105934.34058@mojave.sitaranetworks.com> In-Reply-To: <19991109155300.2407.qmail@math.uic.edu>; from vladimir-freebsd-questions@math.uic.edu on Tue, Nov 09, 1999 at 03:53:00PM -0000 References: <19991109155300.2407.qmail@math.uic.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday, 9 November 1999 at 15:53:00 -0000, vladimir-freebsd-questions@math.uic.edu wrote: > I ran into a problem: ktrace -p PID produces > a 0 length file ktrace.out, and ktrace exits > immediately. The system is FBSD-3.3-STABLE. > What am I doing wrong? Not much. You're probably just assuming that it's a bug for ktrace to exit immediately, and in fact it's a feature. To stop the trace, enter 'ktrace -p PID -C'. The real question is: why is your process not producing any ktrace output? It may not be running, or it may be looping in user space. Remember that ktrace shows only the transitions between user and kernel space. If you don't have any such transitions, you won't get any output. What does 'ps lp PID' say? Greg -- When replying to this message, please copy the original recipients. For more information, see http://www.lemis.com/questions.html Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991109105934.34058>