X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=liblttng-ust%2Flttng-filter.c;h=bd208dcf82b5933198698a723cc278c05c6bb30e;hb=f37201b3fa49bbbc7258affab90da44baf6f685b;hp=64576e88633178bf9f48386c2d9af79526a7831f;hpb=fb72494a0993e167b4736c3c655bc38a46c31d9d;p=lttng-ust.git diff --git a/liblttng-ust/lttng-filter.c b/liblttng-ust/lttng-filter.c index 64576e88..bd208dcf 100644 --- a/liblttng-ust/lttng-filter.c +++ b/liblttng-ust/lttng-filter.c @@ -536,7 +536,7 @@ int lttng_filter_interpret_bytecode(void *filter_data, /* If REG_R0 is 0, skip and evaluate to 0 */ if ((reg[REG_R0].type == REG_S64 && reg[REG_R0].v == 0) - || (reg[REG_R0].type == REG_DOUBLE && reg[REG_R0].d == 0.0)) { + || unlikely(reg[REG_R0].type == REG_DOUBLE && reg[REG_R0].d == 0.0)) { dbg_printf("Jumping to bytecode offset %u\n", (unsigned int) insn->skip_offset); next_pc = start_pc + insn->skip_offset; @@ -552,7 +552,7 @@ int lttng_filter_interpret_bytecode(void *filter_data, /* If REG_R0 is nonzero, skip and evaluate to 1 */ if ((reg[REG_R0].type == REG_S64 && reg[REG_R0].v != 0) - || (reg[REG_R0].type == REG_DOUBLE && reg[REG_R0].d != 0.0)) { + || unlikely(reg[REG_R0].type == REG_DOUBLE && reg[REG_R0].d != 0.0)) { reg[REG_R0].v = 1; dbg_printf("Jumping to bytecode offset %u\n", (unsigned int) insn->skip_offset);