From owner-freebsd-hackers Sun Mar 16 15:32:44 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0DF2137B407 for ; Sun, 16 Mar 2003 15:32:42 -0800 (PST) Received: from puffin.mail.pas.earthlink.net (puffin.mail.pas.earthlink.net [207.217.120.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5725543F75 for ; Sun, 16 Mar 2003 15:32:41 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0507.cvx22-bradley.dialup.earthlink.net ([209.179.199.252] helo=mindspring.com) by puffin.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18uhcL-0002Pd-00; Sun, 16 Mar 2003 15:32:37 -0800 Message-ID: <3E750942.57742CDD@mindspring.com> Date: Sun, 16 Mar 2003 15:31:14 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Yaoping Ruan Cc: hackers@FreeBSD.ORG Subject: Re: Kernel trace References: <3E6FFAAE.2B6108F8@cs.princeton.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a4a6cd0579fdf898d8b304500bfc30d432350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Yaoping Ruan wrote: > Does any one know the implementation of "ktrace" in FreeBSD? I would > like to hack the source code and have a relatively easy way to copy > the kernel stack image when a certain of thing happens, such as page > fault. It should work like the breakpoints in gdb. But kernel panic > is too much trouble for just a single stack image, and kgdb is not > simple enough. Which source file(s) I should look at? Look at: http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.bin/ktrace/ktrace.c http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/kern/kern_ktrace.c And from the checkins list on each of these, determine who is maintaining the code. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message