Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
From: Kienan Stewart via lttng-dev <lttng-dev@lists.lttng.org>
To: Norbert Lange <nolange79@gmail.com>,
	lttng-dev <lttng-dev@lists.lttng.org>
Subject: Re: Method to get LTTNG-UST version during runtime?
Date: Mon, 23 Jun 2025 10:21:05 -0400	[thread overview]
Message-ID: <df98623f-172e-4e71-9592-cb864e239000@efficios.com> (raw)
In-Reply-To: <CADYdroMBu0gocZXpeaMWqr3TG4p5FW71eeN1+y-XM_8bDxijzw@mail.gmail.com>

Hi Norbert,

If you link to liblttng-ust-ctl, you can use `lttng_ust_ctl_get_version`.

thanks,
kienan


On 6/18/25 11:22 AM, Norbert Lange via lttng-dev wrote:
> Hi,
> 
> there are some substantial changes in 2.14.0 that afffect how/if
> tracing is possible.
> For ex. c246521ddcba1d1d28cfa0482aa500b9122e7264 allows doing more work upfront
> by calling lttng_ust_init_thread().
> With 2.13.x the same code will instead do various syscalls or
> allocations during the first tracepoints, violating realtime
> constraints and possible abort the process.
> 
> I miss an easy method to inspect the Lttng UST Version for checks or
> workarounds.
> 
> There is the lttng_ust_loaded variable that could be abused to carry
> an packed version instead of 1. (Of course that could always cause
> fallout)
> 
> Regards, Norbert


  reply	other threads:[~2025-06-23 14:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-18 15:22 Norbert Lange via lttng-dev
2025-06-23 14:21 ` Kienan Stewart via lttng-dev [this message]
2025-06-23 19:04   ` Norbert Lange via lttng-dev
2025-06-25 21:15     ` Kienan Stewart 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=df98623f-172e-4e71-9592-cb864e239000@efficios.com \
    --to=lttng-dev@lists.lttng.org \
    --cc=kstewart@efficios.com \
    --cc=nolange79@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