X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Flib%2Flttng-ctl%2Ffilter-bytecode.h;h=af0733076a473201edd6ca94d032342ffe71b9ad;hp=fc2d6c8d4c5cf78f8e9965673040b112c6d5bbc8;hb=53a80697a772bc2e260e3dff006f910be6709f04;hpb=953192ba6eb2118c22bcfcb4bcd813f141b407e7;ds=sidebyside diff --git a/src/lib/lttng-ctl/filter-bytecode.h b/src/lib/lttng-ctl/filter-bytecode.h index fc2d6c8d4..af0733076 100644 --- a/src/lib/lttng-ctl/filter-bytecode.h +++ b/src/lib/lttng-ctl/filter-bytecode.h @@ -23,6 +23,7 @@ */ #include "filter-ast.h" +#include "../../common/sessiond-comm/sessiond-comm.h" /* * offsets are absolute from start of bytecode. @@ -123,24 +124,13 @@ struct return_op { filter_opcode_t op; } __attribute__((packed)); -/* - * The reloc table is located at the end of the bytecode. It is made of - * tuples: (uint16_t, var. len. string). It starts at - * reloc_table_offset. - */ -struct filter_bytecode { - uint16_t len; - uint16_t reloc_table_offset; - char data[0]; -}; - -struct filter_bytecode_alloc { +struct lttng_filter_bytecode_alloc { uint16_t alloc_len; - struct filter_bytecode b; + struct lttng_filter_bytecode b; }; static inline -unsigned int bytecode_get_len(struct filter_bytecode *bytecode) +unsigned int bytecode_get_len(struct lttng_filter_bytecode *bytecode) { return bytecode->len; }