<div dir="ltr">Hi,                                                           <br>                                                            <br>I'm working on an program that is to receive CTF stream packets                             <br>and convert the contained events to a different format.                                 <br>After reading through the babeltrace2 C API docs, I'm not                                <br>sure if it's possible to access the internal AST and parser                               <br>utilities used by the internal plugins, either manually                                 <br>or through a source component plugin.                                          <br>                                                            <br>With a metadata text file at hand, is there a way to parse                                <br>CTF stream packet sitting in memory?                                           <br>                                                            <br>I'm trying to avoid having to write the in-memory packets to disk                            <br>first, and then use the source.ctf.fs component class to read them                            <br>back in as babeltrace2 API types.                                            <br>                                                            <br>For context, I have a few micros instrumented with barectf.                               <br>Depending on the deployment mode, I'm either sending CTF stream                             <br>packets out over serial or reading a ring buffer of packets via JTAG.                          <br>                                                            <br>I can see this also being useful in a couple other dimensions I'd eventually like to consider too:            <br>* Implementing something lttng-relayd friendly for live viewer support (parsing some of the packet header fields)<br>* Stream clock overflow bookkeeping (it'd let me reduce the probe effect of have to manage a 32 or 64 bit clock on a 16 bit MCU)<br><br>Best,<div>Jon</div></div>