X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Fltt%2Fltt-private.h;h=afbb515d89ec809cb8d2b92f2f8e38304c2bd4d8;hb=d37b2aaa99c55ac67b036c7ed99fd7378df6b926;hp=ae7cc7e8b5f47dc38686f122afed2d6ffa91a84c;hpb=8d1e6362a5e8b3086942948c0d5c79c0433dadcd;p=lttv.git diff --git a/ltt/branches/poly/ltt/ltt-private.h b/ltt/branches/poly/ltt/ltt-private.h index ae7cc7e8..afbb515d 100644 --- a/ltt/branches/poly/ltt/ltt-private.h +++ b/ltt/branches/poly/ltt/ltt-private.h @@ -99,6 +99,7 @@ struct _LttEvent{ LttTime prev_event_time; //the time of the previous event LttCycleCount pre_cycle_count; //previous cycle count of the event int count; //the number of overflow of cycle count + gint64 overflow_nsec; //precalculated nsec for overflows /* end of workaround */ }; @@ -160,7 +161,14 @@ struct _LttTracefile{ BlockEnd * a_block_end; //block end of the block void * cur_event_pos; //the position of the current event void * buffer; //the buffer containing the block - double cycle_per_nsec; //Cycles per nsec + double nsec_per_cycle; //Nsec per cycle + guint64 one_overflow_nsec; //nsec for one overflow + gint64 overflow_nsec; //precalculated nsec for overflows + //can be negative to include value + //of block start cycle count. + //incremented at each overflow while + //reading. + //LttCycleCount cycles_per_nsec_reciprocal; // Optimisation for speed unsigned cur_heart_beat_number; //current number of heart beat in the buf LttCycleCount cur_cycle_count; //current cycle count of the event void * last_event_pos; @@ -202,6 +210,7 @@ struct _LttEventPosition{ LttTime prev_event_time; //the time of the previous event LttCycleCount pre_cycle_count; //previous cycle count of the event int count; //the number of overflow of cycle count + gint64 overflow_nsec; //precalculated nsec for overflows /* end of workaround */ };