All of lore.kernel.org
 help / color / mirror / Atom feed
* Are arrays allowed in event payload?
@ 2017-09-25 19:41 Nwafor, Ebelechukwu
  0 siblings, 0 replies; 2+ messages in thread
From: Nwafor, Ebelechukwu @ 2017-09-25 19:41 UTC (permalink / raw)
  To: lttng-dev


[-- Attachment #1.1: Type: text/plain, Size: 258 bytes --]

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?


Thanks.

[-- Attachment #1.2: Type: text/html, Size: 532 bytes --]

[-- Attachment #2: Type: text/plain, Size: 156 bytes --]

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Are arrays allowed in event payload?
       [not found] <CAAuy2ASF_rf1a9iuo=XKKPriVgEPGues-sQ-HyMOdg7F+VjC7g@mail.gmail.com>
@ 2017-09-25 19:56 ` Philippe Proulx
  0 siblings, 0 replies; 2+ messages in thread
From: Philippe Proulx @ 2017-09-25 19:56 UTC (permalink / raw)
  To: Nwafor, Ebelechukwu; +Cc: lttng-dev

On Mon, Sep 25, 2017 at 3:41 PM, Nwafor, Ebelechukwu
<ebelechukwu.nwafor@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@lists.lttng.org
> https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-09-25 19:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-25 19:41 Are arrays allowed in event payload? Nwafor, Ebelechukwu
     [not found] <CAAuy2ASF_rf1a9iuo=XKKPriVgEPGues-sQ-HyMOdg7F+VjC7g@mail.gmail.com>
2017-09-25 19:56 ` Philippe Proulx

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.