int link_bytecode(const struct lttng_event_desc *event_desc,
struct lttng_ctx *ctx,
struct lttng_bytecode_node *bytecode,
+ struct list_head *bytecode_runtime_head,
struct list_head *insert_loc)
{
int ret, offset, next_offset;
if (!bytecode)
return 0;
/* Bytecode already linked */
- if (bytecode_is_linked(bytecode, insert_loc))
+ if (bytecode_is_linked(bytecode, bytecode_runtime_head))
return 0;
dbg_printk("Linking...\n");
insert_loc = instance_bytecode_head;
add_within:
dbg_printk("linking bytecode\n");
- ret = link_bytecode(event_desc, ctx, enabler_bc, insert_loc);
+ ret = link_bytecode(event_desc, ctx, enabler_bc, instance_bytecode_head, insert_loc);
if (ret) {
dbg_printk("[lttng filter] warning: cannot link event bytecode\n");
}