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)

Yeah, true, I applied the inverse logic. However, this interface is
inconsistent, one should expects the same algorithm applied on both
local as well as remote task queries. Why do you differentiate?

> 
> another potentially useful feature would be also accounting the execution time
> spent in secondary mode... no idea on how to do that. 
> BTW, Posix defines an optional CLOCK_THREAD_CPUTIME which is assumed to 
> provide
> this measure ?

This should work for shadow threads to retrieve their secondary-mode
runtime. Give it a try.

Jan

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core

Reply via email to