Date: Wed, 19 Apr 2006 14:14:54 -0700 From: Julian Elischer <julian@elischer.org> To: David Kirchner <dpk@dpk.net> Cc: arch@freebsd.org Subject: Re: Add some more information in the ktrace(1)/kdump(1) output Message-ID: <4446A84E.6060901@elischer.org> In-Reply-To: <35c231bf0604191339m598d9b7n6681421403d5d4e1@mail.gmail.com> References: <35c231bf0604191339m598d9b7n6681421403d5d4e1@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
David Kirchner wrote: >Please Cc: me on replies as I am not a member of this list. > >I'm working with Alexander Leidinger <netchild@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. > > bind/connect would be particularly nice ;-) don't forget linux_kdump :-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4446A84E.6060901>