From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 22 14:40:19 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 4AE4E37B401; Tue, 22 Jul 2003 14:40:19 -0700 (PDT) Received: from garple.migus.org (pcp243383pcs.howard01.md.comcast.net [68.55.83.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id 57AAA43F93; Tue, 22 Jul 2003 14:40:18 -0700 (PDT) (envelope-from adam@migus.org) Received: from garple.migus.org (localhost [127.0.0.1]) by garple.migus.org (8.12.9/8.12.9) with ESMTP id h6MLeC6a025859; Tue, 22 Jul 2003 17:40:13 -0400 (EDT) (envelope-from adam@migus.org) Received: (from www@localhost) by garple.migus.org (8.12.9/8.12.9/Submit) id h6MLeCwT025858; Tue, 22 Jul 2003 17:40:12 -0400 (EDT) X-Authentication-Warning: garple.migus.org: www set sender to adam@migus.org using -f Received: from 204.254.155.100 (SquirrelMail authenticated user adam) by mail.migus.org with HTTP; Tue, 22 Jul 2003 17:40:12 -0400 (EDT) Message-ID: <36373.204.254.155.100.1058910012.squirrel@mail.migus.org> In-Reply-To: <3F18D263.1BFE6BE3@mindspring.com> References: <3F18D263.1BFE6BE3@mindspring.com> Date: Tue, 22 Jul 2003 17:40:12 -0400 (EDT) From: "Adam Migus" To: "Terry Lambert" User-Agent: SquirrelMail/1.4.1 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal X-Spam-Status: No, hits=-0.9 required=5.0 tests=IN_REP_TO,PRIORITY_NO_NAME,REFERENCES,USER_AGENT, X_AUTH_WARNING version=2.55 X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) 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: Tue, 22 Jul 2003 21:40:19 -0000 Terry Lambert said: > The problem is that ktrace/kdump rendesvous at a file; > truss does > not, so it has some capabilities that ktrace does not. > In some > circumstances (e.g. a system crash, where kdump doesn't > get a > chance to get at the file, because it's "cleaned up" > and not > even fully written, when it's not "cleaned up") ktrace > loses > utterly. > Would something like: live_ktrace() { local _kf="`mktemp -t ktrace.$$`"; ktrace -p $1 -f $_kf; kdump -lf $_kf; rm -f $_kf; } do what you want? -- Adam Migus - Research Scientist Network Associates Laboratories (http://www.nailabs.com)