add options to set subbuf size and cnt
[ust.git] / libust / tracer.c
index d5ec43e8356c2e527bc5642cc301fe1edb273770..52928b836ba290c9d67d1ce45cc63377b32ba693 100644 (file)
@@ -630,6 +630,11 @@ int ltt_trace_alloc(const char *trace_name)
 
        ltt_lock_traces();
 
+       if (_ltt_trace_find(trace_name)) { /* Trace already allocated */
+               err = 1;
+               goto traces_error;
+       }
+
        trace = _ltt_trace_find_setup(trace_name);
        if (!trace) {
                ERR("Trace not found %s", trace_name);
This page took 0.022011 seconds and 4 git commands to generate.