From owner-freebsd-hackers Thu Mar 13 17:23:47 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 0188C37B401 for ; Thu, 13 Mar 2003 17:23:46 -0800 (PST) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8109743FBF for ; Thu, 13 Mar 2003 17:23:44 -0800 (PST) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id B89C051A60; Fri, 14 Mar 2003 11:55:14 +1030 (CST) Date: Fri, 14 Mar 2003 11:55:14 +1030 From: Greg 'groggy' Lehey To: Yaoping Ruan Cc: hackers@FreeBSD.ORG Subject: Re: Kernel trace Message-ID: <20030314012514.GB37955@wantadilla.lemis.com> References: <3E6FFAAE.2B6108F8@cs.princeton.edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="nVMJ2NtxeReIH9PS" Content-Disposition: inline In-Reply-To: <3E6FFAAE.2B6108F8@cs.princeton.edu> User-Agent: Mutt/1.4i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 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 --nVMJ2NtxeReIH9PS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wednesday, 12 March 2003 at 22:27:42 -0500, 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? Start with kern/kern_ktrace.c. Note that work is currently going on with the implementation. Greg -- See complete headers for address and phone numbers --nVMJ2NtxeReIH9PS Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQE+cS96IubykFB6QiMRAoNvAJ40T8K5ICC7tpRcuYh3txXLXb9QLgCeNMUf AJbIsT86eKW7EbwMgQYebRk= =jii6 -----END PGP SIGNATURE----- --nVMJ2NtxeReIH9PS-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message