Date: Tue, 22 Jun 2004 10:31:51 +0930 From: "Daniel O'Connor" <doconnor@gsoft.com.au> To: freebsd-hackers@freebsd.org Cc: Eugene Grosbein <eugen@grosbein.pp.ru> Subject: Re: writing ktrace output to serial port Message-ID: <200406221031.51655.doconnor@gsoft.com.au> In-Reply-To: <20040620135924.GA606@grosbein.pp.ru> References: <20040620135924.GA606@grosbein.pp.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
=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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200406221031.51655.doconnor>