Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jul 2003 17:40:12 -0400 (EDT)
From:      "Adam Migus" <adam@migus.org>
To:        "Terry Lambert" <tlambert2@mindspring.com>
Cc:        Robert Watson <rwatson@freebsd.org>
Subject:   Re: running 5.1-RELEASE with no procfs mounted (lockups?)
Message-ID:  <36373.204.254.155.100.1058910012.squirrel@mail.migus.org>
In-Reply-To: <3F18D263.1BFE6BE3@mindspring.com>
References:  <XFMail.20030718151512.jhb@FreeBSD.org> <3F18D263.1BFE6BE3@mindspring.com>

next in thread | previous in thread | raw e-mail | index | archive | help

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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?36373.204.254.155.100.1058910012.squirrel>