lttng-dev.lists.lttng.org archive mirror
 help / color / mirror / Atom feed
From: Valentin Grigorev via lttng-dev <lttng-dev@lists.lttng.org>
To: lttng-dev <lttng-dev@lists.lttng.org>
Subject: [lttng-dev] LTTng event identification
Date: Thu, 13 Aug 2020 16:52:16 +0300	[thread overview]
Message-ID: <CABhb4uuzDD1srWvRbC915wGfpsWt9LAAue942-ppaKH3FJt6Gw@mail.gmail.com> (raw)


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

Hello!

I'm using LTTng live session and Babeltrace 2 C API to analyze events in
online mode.

I would like to route event processing statically (using IDs, without
parsing strings). And currently, I don't understand if it is possible with
LTTng.

Babeltrace 2 C API provides bt_event_class_get_id function, but the only
guarantee about IDs received from this function is "All the event classes
of a given stream class have unique numeric IDs
<https://babeltrace.org/docs/v2.0/libbabeltrace2/group__api-tir-ev-cls.html#api-tir-ev-cls-prop-id>".
And even more, it is mentioned further that stream class can automatically
assign event class IDs in some cases (q.v.
https://babeltrace.org/docs/v2.0/libbabeltrace2/group__api-tir-ev-cls.html).
If I understand correctly, it means, that these IDs are assigned by
Babeltrace library, not by LTTng itself or tracepoint provider, and as
result, the same tracepoints can produce events with different event class
IDs even within the same tracing session. Am I right?

At the same time, in ETW (Event Tracing for Windows) event type is fully
identified by 3 parameters: provider GUID, event id, event version. I would
like to have something like this. At least I need to know that ID for the
same tracepoint is constant, unique within a tracepoint provider, and not
depends on a session configuration, other providers, etc.

Summarizing, I'm interested in the following questions:
  * Do event class IDs depend on a session configuration (which events were
enabled)?
  * If so, maybe there are some other IDs satisfying the above requirements
in LTTng/Babeltrace?
  * Do any IDs for tracepoint providers exist in LTTng? Or parsing event
name is the only way to identify it?

Best regards,
Valentin Grigorev

[-- Attachment #1.2: Type: text/html, Size: 2482 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:[~2020-08-13 13:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-13 13:52 Valentin Grigorev via lttng-dev [this message]
2020-08-13 14:42 ` [lttng-dev] LTTng event identification Philippe Proulx 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=CABhb4uuzDD1srWvRbC915wGfpsWt9LAAue942-ppaKH3FJt6Gw@mail.gmail.com \
    --to=lttng-dev@lists.lttng.org \
    --cc=valentin.grigorev@jetbrains.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).