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)
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to