This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Question about Instrumentation? Thanks
- From: Jonathan Larmour <jifl at eCosCentric dot com>
- To: Qiang Huang <jameshq at liverpool dot ac dot uk>
- Cc: Andrew Lunn <andrew dot lunn at ascom dot ch>,Ecos-Discuss <ecos-discuss at sources dot redhat dot com>
- Date: Wed, 26 Mar 2003 16:30:10 +0000
- Subject: Re: [ECOS] Question about Instrumentation? Thanks
- References: <BDEPKKELILOKGOAOMONOMEEJCCAA.jameshq@liv.ac.uk>
Qiang Huang wrote:
Thanks a lot. Now I tried to instrument the clock tick as well but I got
some problem. I configured the ecos with instrument support and used the
following program, but the output didn't contains the clock tick. shown in
below thanks a lot.
PROGRAM
void cyg_start(void)
{
Surely this means the scheduler hasn't started! The two events you list
are thread delay and thread sleep - since the kernel hasn't yet started it
operates only the thread available, the idle thread.
I'm amazed your program woke up at all after the delay without clock
interrupts.
int i;
diag_printf("Starting User Program!\n");
cyg_instrument_enable(CYG_INSTRUMENT_CLASS_CLOCK, 0);
cyg_instrument_enable(CYG_INSTRUMENT_CLASS_THREAD, 0);
Presumably you have CYGDBG_KERNEL_INSTRUMENT_FLAGS disabled in CDL
otherwise you wouldn't even get the output you are getting.
Jifl
--
eCosCentric http://www.eCosCentric.com/ The eCos and RedBoot experts
--[ "You can complain because roses have thorns, or you ]--
--[ can rejoice because thorns have roses." -Lincoln ]-- Opinions==mine
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss