common trace-chunk: introduce lttng_trace_chunk_get_name_overridden
[lttng-tools.git] / src / common / trace-chunk.c
index 8a450c547017ac3dd85bac29fde8a893db229d40..c549f46b33c855334814355ef8a6e37f6cacadf2 100644 (file)
@@ -483,6 +483,17 @@ end:
        return status;
 }
 
+LTTNG_HIDDEN
+bool lttng_trace_chunk_get_name_overridden(struct lttng_trace_chunk *chunk)
+{
+       bool name_overridden;
+
+       pthread_mutex_lock(&chunk->lock);
+       name_overridden = chunk->name_overridden;
+       pthread_mutex_unlock(&chunk->lock);
+       return name_overridden;
+}
+
 static
 bool is_valid_chunk_name(const char *name)
 {
This page took 0.033197 seconds and 5 git commands to generate.