X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttng-filter-interpreter.c;h=d9605cb2a068f4e3a187f27e56882e6d5256ada4;hb=6dd7c0f9af1f5bcc9e5a03a01a42fe80903abbb2;hp=8323fbbb2cfe01b6bb63d7d5baae9d734f572757;hpb=241ae9a8fb62c3ce467d244e280062c24e73eb7a;p=lttng-modules.git diff --git a/lttng-filter-interpreter.c b/lttng-filter-interpreter.c index 8323fbbb..d9605cb2 100644 --- a/lttng-filter-interpreter.c +++ b/lttng-filter-interpreter.c @@ -21,9 +21,12 @@ */ #include +#include #include +LTTNG_STACK_FRAME_NON_STANDARD(lttng_filter_interpret_bytecode); + /* * get_char should be called with page fault handler disabled if it is expected * to handle user-space read. @@ -119,21 +122,16 @@ int stack_strcmp(struct estack *stack, int top, const char *cmp_type) } } if (unlikely(char_ax == '\0')) { - if (char_bx == '\0') { - diff = 0; - break; - } else { - if (estack_bx(stack, top)->u.s.literal) { - ret = parse_char(estack_bx(stack, top), - &char_bx, &offset_bx); - if (ret == -1) { - diff = 0; - break; - } + if (estack_bx(stack, top)->u.s.literal) { + ret = parse_char(estack_bx(stack, top), + &char_bx, &offset_bx); + if (ret == -1) { + diff = 0; + break; } - diff = 1; - break; } + diff = 1; + break; } if (estack_bx(stack, top)->u.s.literal) { ret = parse_char(estack_bx(stack, top),