Date: Mon, 21 Jun 2004 18:29:38 -0700 (PDT) From: Julian Elischer <julian@elischer.org> To: "Daniel O'Connor" <doconnor@gsoft.com.au> Cc: Eugene Grosbein <eugen@grosbein.pp.ru> Subject: Re: writing ktrace output to serial port Message-ID: <Pine.BSF.4.21.0406211828470.39567-100000@InterJet.elischer.org> In-Reply-To: <200406221031.51655.doconnor@gsoft.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 22 Jun 2004, Daniel O'Connor wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Sun, 20 Jun 2004 23:29, Eugene Grosbein wrote: > > So I want to see what is happening just before my mplayer crashes the > > kernel. The problem is that ktracing mplayer does not help as filesystem > > can't keep ktrace.out being written just before crash. I tried 'sync' > > mount, > > it does not help too. > > > > I decided to divert ktrace.out to /dev/cuaa0 so another FreeBSD will keep > > it. However, ktrace() in src/sys/kern/kern_trace.c does not permit writing > > to non-regular file. Why? > > The actual syscall passes a filename, not a file descriptor so you'd have to > change that (or make a new syscall) if you wanted to change it at all :( > > It would be nice to be able to ktrace() to an fd (eg socket or pipe) though :) > > See ktrace() in /usr/src/sys/kern/kern_ktrace.c:494 > > As for your problem.. > Can you NFS mount? If you have no ethernet you could NFS mount over > PPP/SLIP :) > (or PLIP if you have a parallel port) > it would be relatively easy to sent it to a netgraph ng_ksocket node and have the record sent out as a udp packet :-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0406211828470.39567-100000>