X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=lttng-filter-interpreter.c;h=d9605cb2a068f4e3a187f27e56882e6d5256ada4;hb=refs%2Fheads%2Fstable-2.8;hp=713a9d7d406f9f9c08c9fcb6e61f3acd43a92d8a;hpb=5b4ad89f381e2c864395af2b762d75151c03fdb3;p=lttng-modules.git diff --git a/lttng-filter-interpreter.c b/lttng-filter-interpreter.c index 713a9d7d..d9605cb2 100644 --- a/lttng-filter-interpreter.c +++ b/lttng-filter-interpreter.c @@ -21,8 +21,11 @@ */ #include +#include -#include "lttng-filter.h" +#include + +LTTNG_STACK_FRAME_NON_STANDARD(lttng_filter_interpret_bytecode); /* * get_char should be called with page fault handler disabled if it is expected @@ -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),