Re: KTR_SCHED broken ?

From: Ed Maste <emaste_at_phaedrus.sandvine.ca>
Date: Fri, 28 Jul 2006 08:40:00 -0400
On Thu, Jul 27, 2006 at 11:22:56PM +0200, Olivier Warin wrote:

> [FROM MY KERNCONF]
> options KTR
> options ALQ
> options KTR_ALQ
> options KTR_ENTRIES=32768
> options KTR_COMPILE=KTR_SCHED
> options KTR_MASK=KTR_SCHED
> [EOF]
> 
> While KTR_INTR works, it seems that KTR_SCHED does not or maybee  
> there is a magic sause ?

It seems that KTR_SCHED doesn't work with KTR_ALQ.  With that
combination ktr_tracepoint() requires that td->td_critnest == 0,
which won't be true in the code paths that use KTR_SCHED.  For
now your best bet is probably to use KTR without ALQ, but of
course you're limited to a fixed number of entries.

I've thought about adding to ktrdump the ability to loop on reading
the ring buffer, so that it would be possible to read an arbitrarily
long sequence of KTR events without ALQ.  It's quite easy to
implement, but I haven't yet tried it out.

- Ed Maste
Received on Fri Jul 28 2006 - 10:40:15 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:58 UTC