Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Mar 2003 15:31:14 -0800
From:      Terry Lambert <tlambert2@mindspring.com>
To:        Yaoping Ruan <yruan@cs.princeton.edu>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: Kernel trace
Message-ID:  <3E750942.57742CDD@mindspring.com>
References:  <bulk.24288.20030308135115@hub.freebsd.org> <3E6FFAAE.2B6108F8@cs.princeton.edu>

next in thread | previous in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E750942.57742CDD>