/*
* Whenever we add a trace to the trace collection, check that we can
- * correlate this trace with at least one other clock in the trace.
+ * correlate this trace with at least one other clock in the trace and
+ * convert the index from cycles to real time.
*/
int trace_collection_add(struct trace_collection *tc,
struct trace_descriptor *td)
check_clock_match,
&clock_match);
if (!clock_match.clock_match) {
- fprintf(stderr, "[error] No clocks can be correlated and multiple traces are added to the collection.\n");
+ fprintf(stderr, "[error] No clocks can be correlated and multiple traces are added to the collection. If you are certain those traces can be correlated, try using \"--clock-force-correlate\".\n");
goto error;
}
}
clock_add,
&clock_match);
}
+
return 0;
error:
return -EPERM;