From owner-freebsd-hackers@FreeBSD.ORG Sun Jun 20 14:00:10 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 B06F916A4CE for ; Sun, 20 Jun 2004 14:00:10 +0000 (GMT) Received: from grosbein.pp.ru (grgw.svzserv.kemerovo.su [213.184.64.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D86443D49 for ; Sun, 20 Jun 2004 14:00:04 +0000 (GMT) (envelope-from eugen@grosbein.pp.ru) Received: from grosbein.pp.ru (eugen@localhost [127.0.0.1]) by grosbein.pp.ru (8.12.11/8.12.11) with ESMTP id i5KDxPpr000648 for ; Sun, 20 Jun 2004 21:59:25 +0800 (KRAST) (envelope-from eugen@grosbein.pp.ru) Received: (from eugen@localhost) by grosbein.pp.ru (8.12.11/8.12.11/Submit) id i5KDxOtR000647 for hackers@freebsd.org; Sun, 20 Jun 2004 21:59:24 +0800 (KRAST) (envelope-from eugen) Date: Sun, 20 Jun 2004 21:59:24 +0800 From: Eugene Grosbein To: hackers@freebsd.org Message-ID: <20040620135924.GA606@grosbein.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Mailman-Approved-At: Mon, 21 Jun 2004 12:01:28 +0000 Subject: 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: Sun, 20 Jun 2004 14:00:10 -0000 Hi! I'm trying to debug kernel panic in 4.10-STABLE. It is 100% repeatable in my environment but this environment is very customized and it would be hard for others to reproduce it in my way (this includes non-standard build of libvgl and mplayer and his libs). 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? Eugene Grosbein P.S. Please CC: me as I'm not in a list.