Fix: Filter ABI changes to support FILTER_BYTECODE_MAX_LEN (65536)
authorChristian Babeux <christian.babeux@efficios.com>
Thu, 6 Sep 2012 21:05:01 +0000 (17:05 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 6 Sep 2012 21:05:01 +0000 (17:05 -0400)
commit2734ca65d2fb2e63c11d61b9ee8821dd9292aa3c
tree6d9ef706dabde1bb7ef11eb9b125ceb8a98b18eb
parent38cb89917116813af9f12bfeb2c389628e2ac901
Fix: Filter ABI changes to support FILTER_BYTECODE_MAX_LEN (65536)

In order to support the filter bytecode maximum length (65536 bytes),
the lttng_ust_filter_bytecode len field type must be able to
hold more than a uint16_t. Change the field type to a uint32_t.

Also, since the relocation table is located at the end of the actual
bytecode, the reloc_table_offset (reloc_offset in ust-abi) field must
support offset values larger than 65535. Change the field type to a
uint32_t. This change will allow support of relocation table appended
to larger bytecode without breaking the ABI if the need arise in the
future.

Both changes currently breaks the filter ABI, but this should be a
reasonable compromise since the filtering feature has not been
released yet.

Signed-off-by: Christian Babeux <christian.babeux@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/lttng/ust-abi.h
include/ust-comm.h
liblttng-ust/lttng-ust-comm.c
This page took 0.024068 seconds and 4 git commands to generate.