Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Jun 2004 19:40:21 -0700
From:      Kris Kennaway <kris@obsecurity.org>
To:        jake@FreeBSD.org, bmilekic@FreeBSD.org, jeff@FreeBSD.org
Cc:        current@FreeBSD.org
Subject:   ktr/ktrdump bugs
Message-ID:  <20040617024020.GA59702@xor.obsecurity.org>

next in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040617024020.GA59702>