X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=lttng-filter.c;h=12c22644f26989f942c6f20f9527ade9c3a3a0a9;hb=4f47ccf08dfac3d5db7553eb8b40bdab19764727;hp=45319d6f0ef7a0ccd60270d21e50d77a77cc1d71;hpb=ceabb767180e064629b5a9ab4ed14449da864763;p=lttng-modules.git diff --git a/lttng-filter.c b/lttng-filter.c index 45319d6f..12c22644 100644 --- a/lttng-filter.c +++ b/lttng-filter.c @@ -10,7 +10,7 @@ #include #include -#include +#include static const char *opnames[] = { [ FILTER_OP_UNKNOWN ] = "UNKNOWN", @@ -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;