From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 22 01:01:58 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 C531716A4D3; Tue, 22 Jun 2004 01:01:58 +0000 (GMT) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id B188F43D1D; Tue, 22 Jun 2004 01:01:57 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (localhost [127.0.0.1]) (authenticated bits=0) by cain.gsoft.com.au (8.12.11/8.12.10) with ESMTP id i5M11qdq043359; Tue, 22 Jun 2004 10:31:52 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Tue, 22 Jun 2004 10:31:51 +0930 User-Agent: KMail/1.6.2 References: <20040620135924.GA606@grosbein.pp.ru> In-Reply-To: <20040620135924.GA606@grosbein.pp.ru> MIME-Version: 1.0 Content-Disposition: inline Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <200406221031.51655.doconnor@gsoft.com.au> X-Spam-Score: -4.9 () CARRIAGE_RETURNS,IN_REP_TO,PGP_SIGNATURE,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_02_03,USER_AGENT,USER_AGENT_KMAIL X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) cc: hackers@freebsd.org cc: Eugene Grosbein 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 01:01:59 -0000 =2D----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 t= o=20 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=20 PPP/SLIP :) (or PLIP if you have a parallel port) =2D --=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFA14T/5ZPcIHs/zowRAhaIAJ9oHNNtZ+XHgZpjKIt+cBSV1pyvLACgrG5q Qxd19+DAEB6xAcph0rSZ5KI=3D =3DWl8n =2D----END PGP SIGNATURE-----