+
+bool bt_ctf_trace_is_static(struct bt_ctf_trace *trace)
+{
+ bool is_static = false;
+
+ if (!trace) {
+ goto end;
+ }
+
+ is_static = trace->is_static;
+
+end:
+ return is_static;
+}
+
+int bt_ctf_trace_set_is_static(struct bt_ctf_trace *trace)
+{
+ int ret = 0;
+
+ if (!trace) {
+ ret = -1;
+ goto end;
+ }
+
+ trace->is_static = true;
+ bt_ctf_trace_freeze(trace);
+
+end:
+ return ret;
+}