Refactoring: remove struct_size from struct lttng_ust_ctx_value
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 17 Mar 2021 02:12:13 +0000 (22:12 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 17 Mar 2021 02:12:13 +0000 (22:12 -0400)
commit35c1f459092b630dd2825450014e27c84b31ddee
tree3964cc14497ca24c0b44cb4977dc20947b78fe46
parenta880bae51b3d8e927f68ceae2804636976bd62d8
Refactoring: remove struct_size from struct lttng_ust_ctx_value

The struct_size scheme is not appropriate to extend struct
lttng_ust_ctx_value because its type selector and union already
act as a mean to extend it. When new entries are added to the union,
the size of that union may increase, thus shifting the offset of
fields following that union. It is therefore not possible to extend
it by adding fields after the union, thus making the struct_size
scheme irrelevant.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I9e80e0ea87c3df3fe76863ed5343de733210045e
include/ust-context-provider.h
liblttng-ust/lttng-bytecode-interpreter.c
This page took 0.024638 seconds and 4 git commands to generate.