From: Mathieu Desnoyers Date: Thu, 26 Jan 2012 17:54:24 +0000 (-0500) Subject: Revert "Fix timestamps for slow-paced event rates" X-Git-Tag: v1.9.5~12 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=7c169cd8fd8de9d25557d89ce68a24b69fcb639c;p=lttng-ust.git Revert "Fix timestamps for slow-paced event rates" This reverts commit 9080554ff25b08f48762d2ee7cfa3981317e9c1d. Was assuming LTTng 0.x clock scheme. LTTng 2.0 does not require a timer. Signed-off-by: Mathieu Desnoyers --- diff --git a/liblttng-ust/ltt-events.c b/liblttng-ust/ltt-events.c index ee88b431..9751089c 100644 --- a/liblttng-ust/ltt-events.c +++ b/liblttng-ust/ltt-events.c @@ -309,20 +309,10 @@ 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;