From: Mathieu Desnoyers Date: Fri, 29 Oct 2010 16:24:55 +0000 (-0400) Subject: newer get_trace_clock may fail on arm X-Git-Tag: v0.19.2 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=b46ea6e89811af37043965c998770e570dc9b441;p=lttng-modules.git newer get_trace_clock may fail on arm Signed-off-by: Mathieu Desnoyers --- diff --git a/ltt-tracer.c b/ltt-tracer.c index 8eae966e..24a3a92e 100644 --- a/ltt-tracer.c +++ b/ltt-tracer.c @@ -782,7 +782,9 @@ int ltt_trace_alloc(const char *trace_name) kref_init(&trace->kref); init_waitqueue_head(&trace->kref_wq); trace->active = 0; - get_trace_clock(); + err = get_trace_clock(); + if (err) + goto traces_error; trace->freq_scale = trace_clock_freq_scale(); if (!trace->transport) {