Fix: disable array/sequence compile-time type check in C
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 17 Aug 2022 19:10:58 +0000 (15:10 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 17 Aug 2022 19:19:21 +0000 (15:19 -0400)
commit5542c10ea61f7bc7e6bc3b0f57b5ff3f02feb61e
tree40d11e0e61cacf3a459dcfdf936de8b8d43e58bd
parent74bf291987baaaf2a35ff2b0dc982422ecf4ff3c
Fix: disable array/sequence compile-time type check in C

Disable this compile-time check in C. Indeed, the C implementation of
lttng_ust_is_pointer_type does not support opaque pointer types, because
it relies on pointer arithmetic.

Therefore, remove this check to keep supporting opaque pointers as
array/sequence elements in probe providers.

The worse that could happen is that users providing an unsupported
type as array/sequence element will end up with a meaningless integer
field.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I0fa170f7af7fc016027685e48076ebaf0366cc5b
include/lttng/ust-tracepoint-event.h
include/lttng/ust-utils.h
This page took 0.024399 seconds and 4 git commands to generate.