[lttng-dev] Are arrays allowed in event payload?

Philippe Proulx eeppeliteloop at gmail.com
Mon Sep 25 19:56:21 UTC 2017


On Mon, Sep 25, 2017 at 3:41 PM, Nwafor, Ebelechukwu
<ebelechukwu.nwafor at bison.howard.edu> wrote:
> Hello All
>
> I am new to barectf. I am trying to define my yaml configuration and i keep
> getting an error whenever i try to compile my configuration. I was wondering
> if arrays are allowed in the event payload section and if yes how are they
> defined?

What is the error?

As per the project's README.md:

> CTF compound types (array, sequence, structure, variant) are not
> supported yet, except at some very specific locations in the metadata.

In fact, the only "very specific location" is the trace packet header's
`uuid` field which must be an array of 16 8-bit integers. This `uuid`
field is handled as a special case when generating the tracer:
<https://github.com/efficios/barectf/blob/v2.2.1/barectf/gen.py#L852>.
There's currently no generic way in barectf to generate C code which
writes an array of elements to the current packet buffer.

Supporting compound types is a feature request which often comes up (in
LTTng-UST too).

Phil

>
>
> Thanks.
>
>
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>


More information about the lttng-dev mailing list