KTR not working !!

Robert Watson rwatson at FreeBSD.org
Wed Jan 25 16:10:04 PST 2006


On Wed, 25 Jan 2006, Pranav Peshwe wrote:

> Hello,
>         I recompiled the kernel with KTR (4) support.But i could find the 
> logged messages nowhere ! When i use 'ktrdump' on the console ,the ouput is 
> :

You might take a glance at:

   http://www.watson.org/~robert/freebsd/netperf/ktr/

And make sure you didn't miss any steps.  In particulare, make sure that you 
have both compiled in support for the ktrace record types you want, and 
enabled them at runtime.

Robert N M Watson

>
> index  trace
> ------ -----
>
> When i try to view the logging from DDB by issuing 'show ktr', only a
> message saying  '--- End of trace buffer ---'  is displayed.
>
> I paste a portion (related to debugging options) of the config file i
> used, to recompile the kernel.
>
> #-----
> options 	KTR
> options 	KTR_ENTRIES=8192
> options 	KTR_VERBOSE
>
> options		INVARIANTS
> options 	INVARIANT_SUPPORT
> options 	WITNESS
> options 	WITNESS_KDB
>
> options         KDB
> options         KDB_TRACE
> options         DDB
> options         GDB
> options	BREAK_TO_DEBUGGER
> #-----
>
>   Am i missing something very important ? How can i view the
> information logged by the various CTR[0-5] macros used in the kernel
> source ?
>
> TIA.
>
> Regards,
> Pranav
>
> ---------------------------------------------------------------------------
> Heisenberg is out for a drive when he's stopped by a traffic cop.
> The cop says: "Do you know how fast you were going?"
> Heisenberg replies: "No,but I know where I am"
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
>


More information about the freebsd-hackers mailing list