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 [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message