* Frequency at trace start,
* used all along the trace.
*/
- uint32_t freq_scale; /* Frequency scaling */
+ uint32_t freq_scale; /* Frequency scaling (divide freq) */
uint32_t lost_size; /* Size unused at end of subbuffer */
uint32_t buf_size; /* Size of this subbuffer */
uint32_t events_lost; /*
t->start_time_from_tsc = ltt_time_from_uint64(
(double)t->start_tsc
- * (1000000000.0 / tf->trace->freq_scale)
+ * 1000000000.0 * tf->trace->freq_scale
/ (double)t->start_freq);
}
}
if(tsc > tf->trace->start_tsc) {
time = ltt_time_from_uint64(
(double)(tsc - tf->trace->start_tsc)
- * (1000000000.0 / tf->trace->freq_scale)
+ * 1000000000.0 * tf->trace->freq_scale
/ (double)tf->trace->start_freq);
time = ltt_time_add(tf->trace->start_time_from_tsc, time);
} else {
time = ltt_time_from_uint64(
(double)(tf->trace->start_tsc - tsc)
- * (1000000000.0 / tf->trace->freq_scale)
+ * 1000000000.0 * tf->trace->freq_scale
/ (double)tf->trace->start_freq);
time = ltt_time_sub(tf->trace->start_time_from_tsc, time);
}