ctf_metadata_decoder_borrow_ctf_trace_class(metadata->decoder.get());
trace->trace_class = ctf_metadata_decoder_get_ir_trace_class(metadata->decoder.get());
- trace->trace = bt_trace_create(trace->trace_class->libObjPtr());
+ trace->trace = trace->trace_class->instantiate();
if (!trace->trace) {
BT_CPPLOGE_APPEND_CAUSE_SPEC(metadata->logger, "Failed to create bt_trace");
goto error;
}
- if (ctf_trace_class_configure_ir_trace(tc, trace->trace)) {
+ if (ctf_trace_class_configure_ir_trace(tc, trace->trace->libObjPtr())) {
BT_CPPLOGE_APPEND_CAUSE_SPEC(metadata->logger,
"Failed to configure ctf trace class");
goto error;