X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttng-filter.c;h=6ff6be8f2a6888b4ecd7a61bce8ef25ff9830738;hb=263b6c88138c3354d63dba3c70a965de94becd22;hp=45319d6f0ef7a0ccd60270d21e50d77a77cc1d71;hpb=ceabb767180e064629b5a9ab4ed14449da864763;p=lttng-modules.git diff --git a/lttng-filter.c b/lttng-filter.c index 45319d6f..6ff6be8f 100644 --- a/lttng-filter.c +++ b/lttng-filter.c @@ -510,11 +510,12 @@ void lttng_enabler_event_link_bytecode(struct lttng_event *event, /* * Insert at specified priority (seqnum) in increasing - * order. + * order. If there already is a bytecode of the same priority, + * insert the new bytecode right after it. */ list_for_each_entry_reverse(runtime, &event->bytecode_runtime_head, node) { - if (runtime->bc->bc.seqnum < bc->bc.seqnum) { + if (runtime->bc->bc.seqnum <= bc->bc.seqnum) { /* insert here */ insert_loc = &runtime->node; goto add_within;