[ltt-dev] Crash recovery of traces and final TSC
Mathieu Desnoyers
compudj at krystal.dyndns.org
Tue Jul 21 22:16:29 EDT 2009
* Pierre-Marc Fournier (pierre-marc.fournier at polymtl.ca) wrote:
> Mathieu,
>
> When the system crashes, the end timestamp is not written in the
> subbuffer header. Instead, the value 0 is written. This tends to make
> LTTV crash.
>
> What do you think should be done to fix this?
>
> - write the timestamp in the header after writing each event?
Too costly.
> - "repair" the trace a posteriori, writing in the header the timestamp
> of the last event found in the subbuffer?
Yep, seems like an appropriate solution.
> - change lttv not to not need the "end timestamp" header field?
Hrm, it needs it for quickly seeking to specific sub-buffers. I think
it's better to leave it and fix the last subbuffer's end timestamp with
its last event, as you propose.
Mathieu
>
> Thanks.
>
> pmf
>
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
>
--
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68
More information about the lttng-dev
mailing list