From owner-freebsd-current@FreeBSD.ORG Thu Jun 17 02:40:34 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4A0C516A4CE; Thu, 17 Jun 2004 02:40:34 +0000 (GMT) Received: from ylpvm15.prodigy.net (ylpvm15-ext.prodigy.net [207.115.57.46]) by mx1.FreeBSD.org (Postfix) with ESMTP id 09C9A43D58; Thu, 17 Jun 2004 02:40:34 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (adsl-63-207-60-35.dsl.lsan03.pacbell.net [63.207.60.35])i5H2eN2M008199; Wed, 16 Jun 2004 22:40:23 -0400 Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 4AAF153085; Wed, 16 Jun 2004 19:40:21 -0700 (PDT) Date: Wed, 16 Jun 2004 19:40:21 -0700 From: Kris Kennaway To: jake@FreeBSD.org, bmilekic@FreeBSD.org, jeff@FreeBSD.org Message-ID: <20040617024020.GA59702@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7JfCtLOvnd9MIVvH" Content-Disposition: inline User-Agent: Mutt/1.4.2.1i cc: current@FreeBSD.org Subject: ktr/ktrdump bugs X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jun 2004 02:40:34 -0000 --7JfCtLOvnd9MIVvH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline * The manpage says: Event Masking Event levels can be enabled or disabled to trim excessive and overly ver- bose logging. First, a mask of events is specified at compile time via the KTR_COMPILE option to limit which events are actually compiled into the kernel. The default value for this option is for all events to be enabled. But this appears not to be true. I have to set KTR_COMPILE=KTR_ALL in the kernel config in order to get anything at all out of ktr (i.e. even setting KTR_MASK=KTR_ALL doesn't register any events). * ktrdump -i is undocumented in the manpage (but is listed in usage) * ktrdump -i doesn't appear to work: dosirak# sysctl debug.ktr debug.ktr.cpumask: -1 debug.ktr.mask: 8388608 debug.ktr.entries: 1024 debug.ktr.version: 1 debug.ktr.verbose: 0 debug.ktr.alq_max: 0 debug.ktr.alq_cnt: 3596 debug.ktr.alq_failed: 0 debug.ktr.alq_depth: 1024 debug.ktr.alq_file: /c/ktr.out debug.ktr.alq_enable: 1 dosirak# ktrdump -i /c/ktr.out index trace ------ ----- Segmentation fault (core dumped) Kris --7JfCtLOvnd9MIVvH Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFA0QSUWry0BWjoQKURArd7AJ4vZYJzKwqb5VC7xtDP2zLgsIn7hwCg/Zv6 h332b4ZS9pHe8Lp6Bzlg7NU= =+VzQ -----END PGP SIGNATURE----- --7JfCtLOvnd9MIVvH--