X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=liblttng-ust%2Fltt-events.c;h=ee88b43142d6e39c57f974102ba45328a7aef210;hb=31c12beac8ce45308a787227d1d03217523ac219;hp=9751089c564f6830cb449eceb084200593dab2ae;hpb=d9a9a33b2cb4e152573fcd0da3eb82ac56a4bb81;p=lttng-ust.git diff --git a/liblttng-ust/ltt-events.c b/liblttng-ust/ltt-events.c index 9751089c..ee88b431 100644 --- a/liblttng-ust/ltt-events.c +++ b/liblttng-ust/ltt-events.c @@ -309,10 +309,20 @@ int ltt_session_enable(struct ltt_session *session) cds_list_for_each_entry(chan, &session->chan, list) { if (chan->header_type) continue; /* don't change it if session stop/restart */ + /* + * Because we don't use any timer in the application, we + * currently cannot guarantee that we have frequent + * events that let us detect 27-bit overflows. + * Therefore, for now, we force large event headers, + * which contain 64-bit timestamps. + */ + chan->header_type = 2; /* large */ +#if 0 if (chan->free_event_id < 31) chan->header_type = 1; /* compact */ else chan->header_type = 2; /* large */ +#endif //0 } CMM_ACCESS_ONCE(session->active) = 1;