[PATCH v2] Comment added

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Jun 18 05:54:49 UTC 2019


On 17/06/2019 13:36, Sebastian Huber wrote:
>>
>>
>>      > +    offset_s = 1421703448;
>>
>>     What is this for an offset?
>>
>> This offset is a difference between the beginning of clock and the 
>> actual start of the clock. The event will be recorded just after the 
>> offset.
> 
> Sorry, I don't know what this means. What is the beginning of the clock 
> and what is the actual start?

 From the CTF specification we have:

"The offset_s and offset fields indicate the offset from POSIX.1 Epoch, 
1970-01-01 00:00:00 +0000 (UTC), to the zero of value of the clock. The 
offset_s field is in seconds. The offset field is in (1/freq) units."

https://diamon.org/ctf/#spec8

The CLOCK_MONOTONIC in RTEMS is based on the boot time. So, if you want 
to give an offset value you have to figure out the CLOCK_REALTIME value 
at boot time of the system. This is currently a secondary problem. I 
would just omit the offset for now.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the devel mailing list