From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 18 11:31:38 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A9FD537B401; Fri, 18 Jul 2003 11:31:38 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id CD76E43F75; Fri, 18 Jul 2003 11:31:37 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.9/8.12.9) id h6IIVaoE067752; Fri, 18 Jul 2003 13:31:36 -0500 (CDT) (envelope-from dan) Date: Fri, 18 Jul 2003 13:31:36 -0500 From: Dan Nelson To: Pawel Jakub Dawidek Message-ID: <20030718183135.GB91152@dan.emsphone.com> References: <20030715223653.Y36933-100000@mail.econolodgetulsa.com> <20030718080659.GA26490@garage.freebsd.pl> <3F17B3AE.1FD5CAC6@mindspring.com> <20030718182115.GD84740@prioris.mini.pw.edu.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030718182115.GD84740@prioris.mini.pw.edu.pl> X-OS: FreeBSD 5.1-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.4i cc: freebsd-hackers@freebsd.org cc: Robert Watson Subject: Re: running 5.1-RELEASE with no procfs mounted (lockups?) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jul 2003 18:31:39 -0000 In the last episode (Jul 18), Pawel Jakub Dawidek said: > On Fri, Jul 18, 2003 at 01:45:34AM -0700, Terry Lambert wrote: > +> > +> truss Relies on the event model of procfs; there have been > +> > +> some initial patches and discussion of migrating truss > +> > +> to ptrace() but I don't think we have anything very > +> > +> usable yet. I'd be happy to be corrected on this. :-) > +> > > +> > Hmm, why to change this behaviour? Is there any functionality > +> > that ktrace(1) doesn't provide? > +> > +> It can interactively run in another window, giving you realtime > +> updates on what's happening up to the point of a kernel crash. > +> With ktrace, you are relatively screwed. > > Hmm, you're talking about: > > # ktrace -p > # kdump -l Neat! I didn't know about -l. One thing truss/strace can do that ktrace doesn't (can't?) is dereference pointers to print things like select/poll arrays, stat structures, etc (see pr bin/52190, which is waiting patiently for a committer). -- Dan Nelson dnelson@allantgroup.com