From owner-freebsd-current@FreeBSD.ORG Fri Sep 17 20:24:30 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 414181065674; Fri, 17 Sep 2010 20:24:30 +0000 (UTC) (envelope-from nlopes.ml@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id A1B5C8FC1C; Fri, 17 Sep 2010 20:24:29 +0000 (UTC) Received: by wwi17 with SMTP id 17so99147wwi.31 for ; Fri, 17 Sep 2010 13:24:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:content-type:subject :date:message-id:cc:to:mime-version:x-mailer; bh=WKsOaRx+wAt7+yPonQ8GHqOVeaowm2OviwOYq5knecc=; b=SZ3U9HpfQJYqLUgPgEaG4OfUWfMrC5WZtf+ojej5Zd5x9n9xbwcihTw8Vyy0maAMGu SZAK74JrtjwQdsGNvDC5Fr7BgcN5urnBOoHneWyRq6uYEHlRbyh0GIo/m7jczSBOz0vw mc9WlciiziCbojc5QgFu72RO7A8RfR91Rrrvk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:content-type:subject:date:message-id:cc:to:mime-version :x-mailer; b=pR79Foi/8P/ASFDJ+6SyRvbF70/icJJWj4b7M8a3FHqpuUTuGVojVHO3dYqo70sW66 IqicPzk+NPhNr1xgVWwTHXpMttQw8GJrbaLwUktl3fHlp2w7TJW+u3X2j8IRl5h5jOYN ys5vQxgn369k9y+ZIovHyUVV8z6o7szNUEBtE= Received: by 10.216.71.132 with SMTP id r4mr1208248wed.102.1284753329809; Fri, 17 Sep 2010 12:55:29 -0700 (PDT) Received: from [192.168.1.51] ([93.5.162.111]) by mx.google.com with ESMTPS id p45sm2967567weq.21.2010.09.17.12.55.27 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 17 Sep 2010 12:55:28 -0700 (PDT) From: Norberto Lopes Date: Fri, 17 Sep 2010 21:55:26 +0200 Message-Id: <8C5C36F5-A070-4CBA-8B8C-6751F8D636E1@gmail.com> To: freebsd-current@freebsd.org Mime-Version: 1.0 (Apple Message framework v1081) X-Mailer: Apple Mail (2.1081) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: netchild@freebsd.org Subject: Extend ktrace/kdump output X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Sep 2010 20:24:30 -0000 Hi. I've been taking a look at ktrace and kdump in order to get (1) familiar = with the sources and (2) to finally try to give back something to the = community. So far from what I've seen, and after reading this thread = http://lists.freebsd.org/pipermail/freebsd-arch/2006-April/005107.html = it seems that most of those points got done. To warm up I changed the output of the stat structure in order to = provide me with the device name (something I actually find useful for me = sometimes) Instead of: 22596 cat STRU struct stat {dev=3D89, ino=3D3320836, = mode=3D-r--r--r-- , nlink=3D1, uid=3D0, gid=3D0, atime=3D1284725358, = stime=3D1284485510, ctime=3D1284485510, birthtime=3D1284485509, = size=3D1172220, blksize=3D16384, blocks=3D2336, flags=3D0x20000 } I get this now (including major and minor): 22596 cat STRU struct stat {dev=3D = (/dev/ad4s1a), ino=3D3320836, mode=3D-r--r--r-- , nlink=3D1, uid=3D0, = gid=3D0, atime=3D1284725358, stime=3D1284485510, ctime=3D1284485510, = birthtime=3D1284485509, size=3D1172220, blksize=3D16384, blocks=3D2336, = flags=3D0x20000 } I wouldn't mind having someone help me whenever and if I get stuck on = the technical side (*wink* Alexander Leidinger *wink*) and also to give = me more insight on what the road to help in this should be. P.S.: I'm still going through "man style" hence no patch attached. If = anyone finds this one useful, I'll reply with the patch though.=20 -- Norberto=