[lttng-dev] [PATCH lttng-tools 0/3] Filter allocation and large bytecode fixes

Christian Babeux christian.babeux at efficios.com
Mon Aug 27 14:48:18 EDT 2012


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




More information about the lttng-dev mailing list