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. > BTW, Posix defines an optional CLOCK_THREAD_CPUTIME which is assumed to > provide > this measure ? > > Daniel > -- Philippe. _______________________________________________ Xenomai-core mailing list Xenomaifirstname.lastname@example.org https://mail.gna.org/listinfo/xenomai-core