On 14/11/16 16:50, Vincent Guittot wrote:
On 11 November 2016 at 10:17, Juri Lelli juri.lelli@arm.com wrote:
[...]
if (data->ind == 0) {
clock_gettime(CLOCK_MONOTONIC, &t_zero);
if (opts.ftrace)
log_ftrace(ft_data.marker_fd,
"[%d] sets zero time",
data->ind);
}
Only the 1st thread (data->ind == 0) is going to set t_zero. It's worth adding a comment explaining the mecanism that 1st thread set t_zero and other thread sync with this timestamp
Done.
Thanks,
- Juri