DragonFly submit List (threaded) for 2007-06
DragonFly BSD
DragonFly submit List (threaded) for 2007-06
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: [patch] make ktrdump loop reading the ktr buffers


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Fri, 8 Jun 2007 11:34:12 -0700 (PDT)

    Committed!  Plus I did even more work on the code.  I made it work
    with -s, added a usleep() in the loop, revamped the indexing code
    even more, and made -a work better.

    When I wrote the code originally I tried to mask the start and end indices
    too early and that created a lot of confusion.  The kernel's write index
    is a full 32 bit integer... the variable is only masked when the kernel
    needs to look up an entry.  I made the ktrdump code do the same thing
    pretty much and that greatly improved its readability.

    (Now happily ktrdump -a -l'ing on my test box!)

					-Matt
					Matthew Dillon 
					<dillon@backplane.com>



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]