From: Brian Hutchinson via lttng-dev <lttng-dev@lists.lttng.org>
To: Michael Jeanson <mjeanson@efficios.com>
Cc: lttng-dev@lists.lttng.org
Subject: Re: [lttng-dev] I'm still getting empty ust traces using tracef
Date: Thu, 11 May 2023 14:42:55 -0400 [thread overview]
Message-ID: <CAFZh4h9Kwf13j36HYEZbSJUggU3yUc+LKpW_f4jTArsfFJdBvw@mail.gmail.com> (raw)
In-Reply-To: <6ffecb5c-fa2f-9ace-bc50-5b5f49f36d42@efficios.com>
On Thu, May 11, 2023 at 2:14 PM Michael Jeanson <mjeanson@efficios.com> wrote:
>
> On 2023-05-11 12:36, Brian Hutchinson via lttng-dev wrote:
> > ... more background. I've always used ltt in the kernel so I don't
> > have much experience with the user side of it and especially
> > multi-threaded, multi-core so I'm probably missing some fundamental
> > concepts that I need to understand.
> >
> > Regards,
> >
> > Brian
>
> Hi,
>
> If you are static linking 'liblttng-ust' then the library constructor won't be
All of the final executable is a bunch of statically linked libs (all
.a's) but lttng-ust isn't statically linked (using .so.1, not .a).
I couldn't build/link without linking -llttng-ust and -ldl.
> executed and you'll get no traces. While this setup is untested and
> unsupported, you could call the UST constructor from your application early
> initialisation but that would require patching lttng-ust to export the
> 'lttng_ust_ctor' symbol.
>
> And the first thing to do to start diagnosing UST tracing issues is to run
> your application with hte LTTNG_UST_DEBUG environment variable set, see [1]
Thanks! I'll check that reference out.
Regards,
Brian
> for details.
>
> Cheers,
>
> Michael
>
> [1] https://lttng.org/man/3/lttng-ust/v2.13/#doc-_environment_variables
>
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
next prev parent reply other threads:[~2023-05-11 18:44 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-11 15:53 Brian Hutchinson via lttng-dev
2023-05-11 16:36 ` Brian Hutchinson via lttng-dev
2023-05-11 18:13 ` Mathieu Desnoyers via lttng-dev
2023-05-11 18:15 ` Mathieu Desnoyers via lttng-dev
[not found] ` <CAFZh4h9M0eA1SpHhfquoyrqtwRhHV54f0O4hCkkiojwUmPTC9Q@mail.gmail.com>
[not found] ` <fdbcfbd9-742d-dc61-3667-48a00130d6aa@efficios.com>
2023-05-12 13:34 ` Mathieu Desnoyers via lttng-dev
2023-05-12 14:52 ` Brian Hutchinson via lttng-dev
2023-05-12 14:57 ` Mathieu Desnoyers via lttng-dev
2023-06-20 22:02 ` Brian Hutchinson via lttng-dev
2023-06-21 20:21 ` Mathieu Desnoyers via lttng-dev
2023-06-21 22:02 ` Brian Hutchinson via lttng-dev
2023-06-28 22:02 ` Brian Hutchinson via lttng-dev
2023-05-11 18:38 ` Brian Hutchinson via lttng-dev
2023-05-11 18:14 ` Michael Jeanson via lttng-dev
2023-05-11 18:42 ` Brian Hutchinson via lttng-dev [this message]
2023-05-11 18:57 ` Brian Hutchinson 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=CAFZh4h9Kwf13j36HYEZbSJUggU3yUc+LKpW_f4jTArsfFJdBvw@mail.gmail.com \
--to=lttng-dev@lists.lttng.org \
--cc=b.hutchman@gmail.com \
--cc=mjeanson@efficios.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