running 5.1-RELEASE with no procfs mounted (lockups?)

Adam Migus adam at migus.org
Tue Jul 22 14:40:19 PDT 2003


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)


More information about the freebsd-hackers mailing list