This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: task switch hook
On Sat, Sep 18, 2004 at 11:54:47AM -0700, David Brennan wrote:
> Actually we are trying to calculate idle time. I know eCos has a
> mechanism for doing that but here is the way our setup functions.
> We run about 10 task most of which are time based (every 10ms to every
> 250ms). Our "idle" thread runs once they are all blocked and does
> various non-time critical functions. (It does a health check of various
> hardware, computes the CRC of the .text and .rodata spaces, walks
> through the heap checking for corruption, etc.) Since it runs
> "constantly" there is no way to let the eCos idle task run. (And the
> processor utilization of our idle thread should not be counted). So I
> would like to use a high speed timer to check the percentage of time the
> my idle task is running. The method I am trying to use is the same one
> we used for VxWorks. But I would be open to suggestions if you have any.
Nothing springs to mind. I think you will have to add new code.
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