From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 22 03:59:39 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 402BC16A4CE for ; Tue, 22 Jun 2004 03:59:39 +0000 (GMT) Received: from www.svzserv.kemerovo.su (www.svzserv.kemerovo.su [213.184.65.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id CA4E843D5A for ; Tue, 22 Jun 2004 03:59:37 +0000 (GMT) (envelope-from eugen@grosbein.pp.ru) Received: from grosbein.pp.ru (kost [213.184.65.82])i5M3xZ0h023263 for ; Tue, 22 Jun 2004 11:59:36 +0800 (KRAST) (envelope-from eugen@grosbein.pp.ru) Message-ID: <40D7AE92.46DC29F0@grosbein.pp.ru> Date: Tue, 22 Jun 2004 11:59:14 +0800 From: Eugene Grosbein Organization: SVZServ X-Mailer: Mozilla 4.8 [en] (Win98; U) X-Accept-Language: ru,en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Subject: Re: writing ktrace output to serial port X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jun 2004 03:59:39 -0000 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