Re: Kernel trace

2003-03-16 Thread Terry Lambert
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

Re: Kernel trace

2003-03-13 Thread Greg 'groggy' Lehey
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

Kernel trace

2003-03-12 Thread Yaoping Ruan
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

Need help with kernel trace

1999-08-14 Thread Zhihui Zhang
I think it helps to understand a routine in the kernel code if I know how the routine is called and what parameters are being passed to it. To get such information, I decide to simulate a panic whenever that routine is called. For example, I want know how link() in vfs_syscalls.c is called and