a good way to measure latency of interuptions
Julien Michel
julien.michel at etu.univ-orleans.fr
Thu Aug 24 11:57:15 CEST 2006
Hi all,
I am running a v24.1.11 RTAI version on an embedded system.
I would like to measure the latency time to start an interruption routine.
By latency time, I mean the delay between the time a hardware interruption
appears and the time its corresponding routine starts.
I heard the average maximum latency time is about 10-20 us, depending on the
system load, the runtime frequency etc...
Is there any way to accurately do such a measurement ?
Btw, I try to measure the delay to execute a routine.
I use the do_gettimeofday function, one at the beginning, one at the end, of the
routine and get the difference.
I wonder if it is a good way. Indeed, an interruption of a higher priority may
occur between the do_gettimeofday functions, so the measures would be wrong ...
Thanks to all
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
More information about the Rtai
mailing list