Fix: Accept bytecode of length 65536 bytes
authorChristian Babeux <christian.babeux@efficios.com>
Thu, 6 Sep 2012 17:40:19 +0000 (13:40 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Fri, 7 Sep 2012 17:35:59 +0000 (13:35 -0400)
commitd93c4f1ffcffa73102e3299276f2f83951a68c36
tree2c2d55fcdeee157856e3b28456e58524e0be60f7
parent5ddb0a08c5c3ca917b025032b864d78e53c7c68a
Fix: Accept bytecode of length 65536 bytes

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.

Acked-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Christian Babeux <christian.babeux@efficios.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-sessiond/lttng-ust-abi.h
src/bin/lttng-sessiond/main.c
src/common/sessiond-comm/sessiond-comm.h
src/lib/lttng-ctl/filter/filter-visitor-generate-bytecode.c
This page took 0.028521 seconds and 4 git commands to generate.