[lttng-dev] [barectf] no nested types?

RADERMACHER Ansgar Ansgar.RADERMACHER at cea.fr
Mon Feb 8 05:27:33 EST 2021


Dear all,

having thought a bit more about it, I can see now that nested types are problematic in general: some types in the language need to be mapped to types that match but are not identical, i.e. have likely a different memory layout. This would be problematic for nested types.
Thus, I'm opting for flattening data (with the exception of lists).

Best regards

Ansgar


________________________________
From: lttng-dev [lttng-dev-bounces at lists.lttng.org] on behalf of RADERMACHER Ansgar via lttng-dev [lttng-dev at lists.lttng.org]
Sent: Friday, February 05, 2021 22:58
To: lttng-dev at lists.lttng.org
Subject: [lttng-dev] [barectf] no nested types?

Hello,

I've generated a config.yaml from type definitions in UML. If the type of a payload field is a UML DataType, the generator produces an associated type alias file with "class = structure" and the contained members.

When I tried to compile the configuration file, I get an error message from barectf:
`field-type` property: Nested structure field types are not supported

It this really not supported or are there other mechanisms that enable the use of nested types? If not supported, it would be an important restriction which seems to be not prominently documented (in [1], there is a parenthesis "except a structure field type object" but it's easy to miss)

Best regards

Ansgar


[1] https://barectf.org/docs/barectf/3.0/yaml/struct-ft-obj.html


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.lttng.org/pipermail/lttng-dev/attachments/20210208/e8a46953/attachment.htm>


More information about the lttng-dev mailing list