From owner-freebsd-arch@FreeBSD.ORG Wed Apr 19 21:14:53 2006 Return-Path: X-Original-To: arch@freebsd.org Delivered-To: freebsd-arch@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 083DE16A408 for ; Wed, 19 Apr 2006 21:14:53 +0000 (UTC) (envelope-from julian@elischer.org) Received: from a50.ironport.com (a50.ironport.com [63.251.108.112]) by mx1.FreeBSD.org (Postfix) with ESMTP id BCB3B43D49 for ; Wed, 19 Apr 2006 21:14:52 +0000 (GMT) (envelope-from julian@elischer.org) Received: from unknown (HELO [10.251.19.131]) ([10.251.19.131]) by a50.ironport.com with ESMTP; 19 Apr 2006 14:14:53 -0700 Message-ID: <4446A84E.6060901@elischer.org> Date: Wed, 19 Apr 2006 14:14:54 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: en-us, en MIME-Version: 1.0 To: David Kirchner References: <35c231bf0604191339m598d9b7n6681421403d5d4e1@mail.gmail.com> In-Reply-To: <35c231bf0604191339m598d9b7n6681421403d5d4e1@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: arch@freebsd.org Subject: Re: Add some more information in the ktrace(1)/kdump(1) output X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Apr 2006 21:14:53 -0000 David Kirchner wrote: >Please Cc: me on replies as I am not a member of this list. > >I'm working with Alexander Leidinger 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,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 :-)