[lttng-dev] Issues on basic LTTng trace userspace (tutorial)

MONTET Julien julien.montet at reseau.eseo.fr
Wed Mar 24 15:08:27 EDT 2021


Hi Jonathan,

Thank you so much, it is 100% working.

Let's enjoy LTTng !!!

Have a nice day,

________________________________
De : Jonathan Rajotte-Julien <jonathan.rajotte-julien at efficios.com>
Envoyé : mercredi 24 mars 2021 20:00
À : MONTET Julien <julien.montet at reseau.eseo.fr>
Cc : lttng-dev <lttng-dev at lists.lttng.org>
Objet : Re: [lttng-dev] Issues on basic LTTng trace userspace (tutorial)

On Wed, Mar 24, 2021 at 06:55:37PM +0000, MONTET Julien wrote:
> Hi Jonathan,
>
> You are absolutely right !
> I have two different lttng :   find /usr -name "*liblttng-ust*" Ubuntu Pastebin<https://paste.ubuntu.com/p/NVtXPhj4fW/>

Glad to know that we are making progress.

>
> According to you, what would be the best solution to solve this issue ?
> I have indeed a folder named lttng-ust where I have made the (wrong) configure / make.

Go into the lttng folder and do:
  sudo make uninstall
  sudo ldconfig

>
>
> I tried to (temporary) remove all the libttng* /usr/local/lib/, but I face this problem :

That should works also.

> /usr/bin/ld: hello-tp.o: in function `__lttng_events_init__hello_world':
> hello-tp.c:(.text+0xe56): undefined reference to `lttng_ust_probe_register'
> /usr/bin/ld: hello-tp.o: in function `__lttng_events_exit__hello_world':
> hello-tp.c:(.text+0xeb2): undefined reference to `lttng_ust_probe_unregister'
> collect2: error: ld returned 1 exit status

Did you remove the -L/usr/local/bin flag? There should be no reason to keep it
at this point.

>
> In the worst case scenario I am able to get my last clean snapchot.

That is also a good bet :).

--
Jonathan Rajotte-Julien
EfficiOS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.lttng.org/pipermail/lttng-dev/attachments/20210324/cdec798a/attachment.htm>


More information about the lttng-dev mailing list