Hi all, While testing the new filtering feature, some issues were discovered when generating large bytecode (more than 32768 bytes).
The first patch fix an issue with the buffer size not being a power of 2, thus leading to odd-looking alloc buffer size. The second patch is a typo fix. The third patch fix an issue when generating a bytecode longer than 32768 bytes. The alloc_len of the underlying bytecode buffer was artificially limiting the bytecode size to 32768 because its length was overflowing the range of 16-bits values. Thanks, Christian Babeux (3): Fix: Filter bytecode alloc buffer size must be a power of 2 Fix: Typo in LTTNG_FILTER_MAX_LEN Fix: Generation of bytecode longer than 32768 bytes fails src/bin/lttng-sessiond/main.c | 2 +- src/common/sessiond-comm/sessiond-comm.h | 2 +- src/lib/lttng-ctl/filter/filter-bytecode.h | 2 +- .../filter/filter-visitor-generate-bytecode.c | 46 ++++++++++++++++++++-- 4 files changed, 46 insertions(+), 6 deletions(-) -- 1.7.11.4 _______________________________________________ lttng-dev mailing list [email protected] http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
