This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: How to use the trace facilities
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Rob Duncan <rob dot duncan at designmagnitude dot com>
- Cc: eCos Disuss <ecos-discuss at ecos dot sourceware dot org>
- Date: Tue, 17 Apr 2007 08:12:52 +0200
- Subject: Re: [ECOS] How to use the trace facilities
- References: <be72a610704161718t323bbdbejbab736bf54d46ebc@mail.gmail.com>
On Mon, Apr 16, 2007 at 05:18:11PM -0700, Rob Duncan wrote:
> I'm having a bit of trouble understanding how to use the trace
> facilities. I have configured my system with CYGDBG_USE_TRACING
> enabled (and I also have CYGDBG_USE_ASSERTS enabled), and I am getting
> a lot of messages generated from the kernel. For example:
>
> TRACE: clock.cxx [ 706] void Cyg_Alarm::initialize()
> TRACE: clock.cxx [ 285] void Cyg_Counter::add_alarm()
> TRACE: clock.cxx [ 285] void Cyg_Counter::add_alarm()
> TRACE: clock.cxx [ 706] void Cyg_Alarm::initialize()
> TRACE: thread.cxx [ 337] static void Cyg_Thread::sleep()
> TRACE: mlqueue.cxx [ 276] void
> Cyg_Scheduler_Implementation::rem_thread()
> TRACE: mlqueue.cxx [ 276] void
> Cyg_Scheduler_Implementation::rem_thread()
> TRACE: mlqueue.cxx [ 330] void
> Cyg_Scheduler_Implementation::rem_thread()
> TRACE: thread.cxx [ 358] static void Cyg_Thread::sleep()
> TRACE: mlqueue.cxx [ 748] void
> Cyg_ThreadQueue_Implementation::enqueue()
> TRACE: mlqueue.cxx [ 748] void
> Cyg_ThreadQueue_Implementation::enqueue()
> TRACE: mlqueue.cxx [ 825] void
> Cyg_ThreadQueue_Implementation::enqueue()
> TRACE: mlqueue.cxx [ 119] Cyg_Thread*
> Cyg_Scheduler_Implementation::schedule()
>
> What is the recommended way of turning all of these off and
> restricting the tracing to the code I explicitly want enabled?
There are lots of comments in the header file
packages/infra/current/include/cyg_trace.h.
Basically you need to turn it on/off per compilation unit using
#defines.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss