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

Dan Nelson dnelson at allantgroup.com
Fri Jul 18 11:31:39 PDT 2003


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 <PID>
> 	# 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 at allantgroup.com


More information about the freebsd-hackers mailing list