* Whenever we add a trace to the trace collection, check that we can
/*
* 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)
*/
int trace_collection_add(struct trace_collection *tc,
struct trace_descriptor *td)
@@ -157,7+158,7 @@ int trace_collection_add(struct trace_collection *tc,
check_clock_match,
&clock_match);
if (!clock_match.clock_match) {
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;
}
}
goto error;
}
}
@@ -177,6+178,7 @@ int trace_collection_add(struct trace_collection *tc,
clock_add,
&clock_match);
}
clock_add,
&clock_match);
}
+
return 0;
error:
return -EPERM;
return 0;
error:
return -EPERM;
This page took 0.050134 seconds and 4 git commands to generate.