Add some more information in the ktrace(1)/kdump(1) output
David Kirchner
dpk at dpk.net
Wed Apr 19 20:39:56 UTC 2006
Please Cc: me on replies as I am not a member of this list.
I'm working with Alexander Leidinger <netchild at freebsd.org> on the
ktrace project mentioned on the ideas page. I've attached a patch,
made against 6.1-RC (and should work against -CURRENT). The patch
modifies kdump output to use strings instead of numbers for every(I
believe) relevant syscall.
For example, the output before:
32229 telnet CALL mmap(0,0x8000,0x3,0x1002,0xffffffff,0,0,0)
32229 telnet CALL open(0x2807bc28,0,0x1b6)
32229 telnet CALL socket(0x2,0x2,0)
is now:
32229 telnet CALL
mmap(0,0x8000,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,0xffffffff,0,0,0)
32229 telnet CALL open(0x2807bc28,O_RDONLY,<unused>0x1b6)
32229 telnet CALL socket(PF_INET,SOCK_DGRAM,0)
I'd appreciate any feedback you may have. This is just one half of the
project; the other half will involve updating the kernel to include
more data in the dump output. I'm thinking, specifically, adding
KTR_STAT for stat() results and KTR_SOCKADDR for connect(), bind()
arguments, and accept() results.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdump.20060419.patch
Type: text/x-patch
Size: 24698 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20060419/e816ee26/kdump.20060419.bin
More information about the freebsd-arch
mailing list