On 6/29/07, Philippe Gerum <[EMAIL PROTECTED]> wrote: > On Fri, 2007-06-29 at 17:29 +0200, Daniel Simon wrote: > > On Fri, 29 Jun 2007 17:00:39 +0200 > > Jan Kiszka <[EMAIL PROTECTED]> wrote: > > > > > Exectime is only updated on task switches. So you are not obtaining the > > > true > > > value when requesting your own data. Use the same formula for both cases. > > > > yes, but like that the fraction of time spent in the current execution is > > not > > accounted, which might be sometimes useful (e.g. to integrate the cost of a > > feedback scheduler in the total control budget) > > > > another potentially useful feature would be also accounting the execution > > time > > spent in secondary mode... no idea on how to do that. > > Xenomai-wise, secondary mode starts for an emerging thread in > xnshadow_map(), then stops when exiting xnshadow_harden(), then resumes > when exiting xnshadow_relax(). All routines are defined in > nucleus/shadow.c.
Additionnaly when a task is suspended by Linux, the function do_schedule_event is triggered by Adeos. -- Gilles Chanteperdrix _______________________________________________ Xenomai-core mailing list Xenomai-core@gna.org https://mail.gna.org/listinfo/xenomai-core