This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: task switch hook
- From: Andrew Lunn <andrew at lunn dot ch>
- To: David Brennan <eCos at brennanhome dot com>
- Cc: eCos Discuss <ecos-discuss at sources dot redhat dot com>
- Date: Fri, 17 Sep 2004 09:26:06 +0200
- Subject: Re: [ECOS] task switch hook
- References: <414A5B9F.6090602@brennanhome.com>
On Thu, Sep 16, 2004 at 08:35:59PM -0700, David Brennan wrote:
> Within our application we have a desire to run a small piece of code on
> every task switch. Is there any mechanism built in to eCos to allow a
> user written routine to run on task switch? The application we are
> porting is from VxWorks and they provided one. I know we have access to
> the eCos source, and could potentially put it in the kernel itself. But
> we would like to try and use a built in feature if it exists.
I don't remember seeing such a huck in the documentation or the code
itself, but its admitedly not me area of expertise. I think you will
need to modify the code.
What are you trying to do? Some sort of process accounting or tracking
threads for debugging purposes. eCos does have a tracing mechanism.
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