From owner-cvs-all Mon Dec 11 17: 2:42 2000 From owner-cvs-all@FreeBSD.ORG Mon Dec 11 17:02:38 2000 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from pike.osd.bsdi.com (pike.osd.bsdi.com [204.216.28.222]) by hub.freebsd.org (Postfix) with ESMTP id 60EF937B402; Mon, 11 Dec 2000 17:02:38 -0800 (PST) Received: from foo.osd.bsdi.com (root@foo.osd.bsdi.com [204.216.28.137]) by pike.osd.bsdi.com (8.11.1/8.9.3) with ESMTP id eBC12aE64832; Mon, 11 Dec 2000 17:02:36 -0800 (PST) (envelope-from jhb@foo.osd.bsdi.com) Received: (from jhb@localhost) by foo.osd.bsdi.com (8.11.1/8.11.0) id eBC11pL10612; Mon, 11 Dec 2000 17:01:51 -0800 (PST) (envelope-from jhb) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200012120043.eBC0hqx94479@freefall.freebsd.org> Date: Mon, 11 Dec 2000 17:01:50 -0800 (PST) Organization: BSD, Inc. From: John Baldwin To: John Baldwin Subject: RE: cvs commit: src/sys/kern kern_ktr.c Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org Sender: jhb@foo.osd.bsdi.com Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 12-Dec-00 John Baldwin wrote: > jhb 2000/12/11 16:43:50 PST > > Modified files: > sys/kern kern_ktr.c > Log: > - Don't bother taking a trace message if we have panic'd since doing so > can lead to further panics. > - Call getnanotime() instead of nanotime() for the timestamp. nanotime() > is more precise, but it also calls into the timer code, which results > in mutex operations on the i386 arch. If KTR_LOCK is turned on, then > ktr_tracepoint() recurses on itself until it exhausts the kernel stack. > Eventually this should change to use get_cyclecount() instead, but that > can't happen if get_cyclecount() is calling nanotime() instead of > getnanotime(). If you have been suffering from double faults when enabling KTR_LOCK, this should fix that. -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.Baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message