X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Fltt%2Ftracefile.c;h=67c0efe4174a29b875cdf7d1661cc33941ac4e9c;hb=9c57bb37bfa9d47503731824678c80b5938d1f4f;hp=48621ddc9c99dfa63bce3f13a054608247a73837;hpb=de738e2522710e9eb263107e351a66e1643d0326;p=lttv.git diff --git a/ltt/branches/poly/ltt/tracefile.c b/ltt/branches/poly/ltt/tracefile.c index 48621ddc..67c0efe4 100644 --- a/ltt/branches/poly/ltt/tracefile.c +++ b/ltt/branches/poly/ltt/tracefile.c @@ -1389,6 +1389,7 @@ int readBlock(LttTracefile * tf, int whichBlock) tf->a_block_start->time = getEventTime(tf); + { guint64 lEventNSec; LttTime lTimeOffset; @@ -1657,6 +1658,12 @@ static inline LttTime getEventTime(LttTracefile * tf) lEventNSec = ((double) (tf->a_block_end->cycle_count - tf->a_block_start->cycle_count) * tf->nsec_per_cycle); + g_printf("CYCLES COUNTED : %llu", + (gint64)((double)cycle_count * tf->nsec_per_cycle) + +tf->overflow_nsec + +tf->a_block_start->cycle_count); + + } /* heartbeat cycle counter is only numheartbeat<<32, not meaningful */