lttng-dev.lists.lttng.org archive mirror
 help / color / mirror / Atom feed
From: Maksim Khmelevskiy via lttng-dev <lttng-dev@lists.lttng.org>
To: lttng-dev@lists.lttng.org
Subject: [lttng-dev] C API message iterator example for libbabeltrace2
Date: Fri, 12 Aug 2022 15:19:04 +0200	[thread overview]
Message-ID: <CACXehJBBkAm-7U2fwOd-qaGE5OgbsAZEci5v57XkmUp=7vtKNA@mail.gmail.com> (raw)


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

Hi,

there is a nice py message iterator example
<https://babeltrace.org/docs/v2.0/python/bt2/examples.html> but for C API
only plugins are covered with examples,
do you think it would make sense to create an example of a standalone
application which simply uses `source.ctf.fs` as source and iterates over
all messages? It would be nice hint for those who want to see an example of
graph creation with all the code in one file.
I'm interested in that example because I want to transform CTF file into
list of C structures representing messages.

Thank you!

[-- Attachment #1.2: Type: text/html, Size: 665 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

             reply	other threads:[~2022-08-12 14:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-12 13:19 Maksim Khmelevskiy via lttng-dev [this message]
2022-08-19 15:00 ` [lttng-dev] C API message iterator example for libbabeltrace2 Simon Marchi via lttng-dev
2022-08-20 16:14   ` Maksim Khmelevskiy via lttng-dev
2022-08-24 15:56     ` Simon Marchi via lttng-dev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CACXehJBBkAm-7U2fwOd-qaGE5OgbsAZEci5v57XkmUp=7vtKNA@mail.gmail.com' \
    --to=lttng-dev@lists.lttng.org \
    --cc=mk.void.mail@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).