This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: task switch hook


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]