From owner-cvs-all Sun Sep 22 0:24:25 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 944CB37B401; Sun, 22 Sep 2002 00:24:24 -0700 (PDT) Received: from mail.chesapeake.net (chesapeake.net [205.130.220.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id EDCD243E6A; Sun, 22 Sep 2002 00:24:23 -0700 (PDT) (envelope-from jroberson@chesapeake.net) Received: from localhost (jroberson@localhost) by mail.chesapeake.net (8.11.6/8.11.6) with ESMTP id g8M7ONr92274; Sun, 22 Sep 2002 03:24:23 -0400 (EDT) (envelope-from jroberson@chesapeake.net) Date: Sun, 22 Sep 2002 03:24:23 -0400 (EDT) From: Jeff Roberson Cc: cvs-committers@FreeBSD.org, Subject: Re: cvs commit: src/sys/sys ktr.h src/sys/kern kern_ktr.c In-Reply-To: <200209220713.g8M7Dj49045903@freefall.freebsd.org> Message-ID: <20020922032016.I43954-100000@mail.chesapeake.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, 22 Sep 2002, Jeff Roberson wrote: > jeff 2002/09/22 00:13:45 PDT > > Modified files: > sys/sys ktr.h > sys/kern kern_ktr.c > Log: > - Add support for logging KTR via ALQ. This is optional and enabled by the > KTR_ALQ config option. > > Revision Changes Path > 1.32 +92 -3 src/sys/kern/kern_ktr.c > 1.20 +3 -0 src/sys/sys/ktr.h > Expect a man page update for this shortly. If you'd like to use it just set ktr up as you normally would, and look at options in debug.ktr. To start logging do sysctl debug.ktr.alq_enable=1. It actually kept up with my mask set to -1 on a mostly idle machine without missing any ktr events. Of course the output file was over 50MB after 30 seconds or so. This is mostly intended for tracing long term events. I'm especially interested in logging all vnode operations over a long period. It could also be used to track network or disk io with the appropriate trace points. I hope you all find this useful. Thanks, Jeff To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message