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