Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jun 2004 11:59:14 +0800
From:      Eugene Grosbein <eugen@grosbein.pp.ru>
To:        freebsd-hackers@freebsd.org
Subject:   Re: writing ktrace output to serial port
Message-ID:  <40D7AE92.46DC29F0@grosbein.pp.ru>
References:  <Pine.BSF.4.21.0406211828470.39567-100000@InterJet.elischer.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Julian Elischer wrote:

> > > 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?

> > 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 :-)

Thank you, people, for your time.
But my question was not how to solve my problem. (I do no rely on NFS
when sender system is going to crash and is not so familiar with netgraph.)

I just removed check from kernel source and now ktrace successfully writes
to /dev/cuaa0 in test cases (I've not tried to reproduce the crash yet).
So the question is: why is the check for regilar file there?

Eugene



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40D7AE92.46DC29F0>