* Visitor context (private).
*/
struct ctx {
+ bt_self_component_source *self_comp;
/* Trace IR trace class being filled (owned by this) */
bt_trace_class *trace_class;
BT_LOGE_STR("Cannot create empty trace class.");
goto error;
}
+ ctx->self_comp = self_comp;
}
ctx->ctf_tc = ctf_trace_class_create();
if (ctx->trace_class) {
/* Copy new CTF metadata -> new IR metadata */
- ret = ctf_trace_class_translate(ctx->trace_class, ctx->ctf_tc);
+ ret = ctf_trace_class_translate(ctx->self_comp,
+ ctx->trace_class, ctx->ctf_tc);
if (ret) {
ret = -EINVAL;
goto end;