Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Jan 2006 00:11:22 +0000 (GMT)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Pranav Peshwe <pranavpeshwe@gmail.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: KTR not working !!
Message-ID:  <20060126001021.B89523@fledge.watson.org>
In-Reply-To: <cdfd7d6d0601250034n2e723f94j12f94cb2c82e1fb2@mail.gmail.com>
References:  <cdfd7d6d0601250034n2e723f94j12f94cb2c82e1fb2@mail.gmail.com>

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

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@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
>



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