Steve Deiters wrote: >> Periodically setting the time is risky if timed jobs depend >> on Xenomai's real-time clock - it may jump in all directions... >> >>> Any other suggestions for providing timestamps to real time >> tasks in >>> this case? >> Do you just need precise timestamps from with real-time >> tasks, or do you have to synchronize timer events of the >> Xenomai core on an external clock? >> >> For the former case (precisely our scenario), we laid the >> ground to extend Xenomai 2.5 with RT-safe syscalls to obtain >> Linux's view on gettimeofday. It "just" needs some polishing >> to post this for upstream. >> Wolfgang (CC'ed) is working on this. > > I'm just looking to get timestamps in the real time task. At least in > my case being able to call gettimeofday from the real time thread would > be exactly what I need. then you might want to try the attached patches for Ipipe and Xenomai. For upstream submission, they still need a bit of cleaning up as Jan mentioned, and I'll also prepare a proper series then. Testing is very welcome, however. Best, Wolfgang