Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
* [ltt-dev] Problem using UST 0.13
@ 2011-06-08 16:01 Bernd Hufmann
  2011-06-08 16:31 ` Irina Guilman
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Bernd Hufmann @ 2011-06-08 16:01 UTC (permalink / raw)


Hello

I've just installed UST 0.13 on my laptop (Ubuntu) and I trying to use it. I took the example (see [1]) from the UST user manual. When I compile and link (see [2])  then I get some error print-outs (see [3]).
I don't know what is missing. Could someone please help me so that I can use UST 0.13? By the way, with UST 0.12 it works fine.

Best Regards
Bernd


[1] Example program in file ustexample.c
#include <ust/marker.h>

int main(int argc, char **argv)
{
   int v;
   char *st;

   /* ... set values of v and st ... */

   /* a marker: */
   trace_mark(ust, myevent, "firstarg %d secondarg %s", v, st);

   /* a marker without arguments: */
   trace_mark(ust, myotherevent, MARK_NOARGS);

   return 0;
}

[2] Compilation
gcc  -o ustexample -lust ustexample.c

[3] Error
//usr/local/lib/libust-initializer.o: In function `__ust_marker__destroy':
/home/eedbhu/git/ust/libust-initializer.c:14: undefined reference to `ust_marker_unregister_lib'
//usr/local/lib/libust-initializer.o: In function `__ust_marker__init':
/home/eedbhu/git/ust/libust-initializer.c:14: undefined reference to `ust_marker_register_lib'
/tmp/ccCco0tC.o:(__ust_markers+0x14): undefined reference to `ust_marker_probe_cb'
/tmp/ccCco0tC.o:(__ust_markers+0x18): undefined reference to `__ust_marker_empty_function'
/tmp/ccCco0tC.o:(__ust_markers+0x54): undefined reference to `ust_marker_probe_cb'
/tmp/ccCco0tC.o:(__ust_markers+0x58): undefined reference to `__ust_marker_empty_function'
collect2: ld returned 1 exit status








^ permalink raw reply	[flat|nested] 12+ messages in thread

* [ltt-dev] Problem using UST 0.13
  2011-06-08 16:01 [ltt-dev] Problem using UST 0.13 Bernd Hufmann
@ 2011-06-08 16:31 ` Irina Guilman
  2011-06-08 19:32   ` Mathieu Desnoyers
  2011-06-08 17:30 ` Yannick Brosseau
  2011-06-08 18:20 ` Nils Carlson
  2 siblings, 1 reply; 12+ messages in thread
From: Irina Guilman @ 2011-06-08 16:31 UTC (permalink / raw)


 My guess is trace_mark() has been replaced by ust_marker() and made deprecated. Look in the examples (tests dir) on how the sample apps (hello/basic/fork and etc.) are instrumented. 

-----Original Message-----
From: Bernd Hufmann [mailto:bernd.hufmann@ericsson.com] 
Sent: June 8, 2011 12:02 PM
To: ltt-dev at lists.casi.polymtl.ca
Subject: [ltt-dev] Problem using UST 0.13

Hello

I've just installed UST 0.13 on my laptop (Ubuntu) and I trying to use it. I took the example (see [1]) from the UST user manual. When I compile and link (see [2])  then I get some error print-outs (see [3]).
I don't know what is missing. Could someone please help me so that I can use UST 0.13? By the way, with UST 0.12 it works fine.

Best Regards
Bernd


[1] Example program in file ustexample.c #include <ust/marker.h>

int main(int argc, char **argv)
{
   int v;
   char *st;

   /* ... set values of v and st ... */

   /* a marker: */
   trace_mark(ust, myevent, "firstarg %d secondarg %s", v, st);

   /* a marker without arguments: */
   trace_mark(ust, myotherevent, MARK_NOARGS);

   return 0;
}

[2] Compilation
gcc  -o ustexample -lust ustexample.c

[3] Error
//usr/local/lib/libust-initializer.o: In function `__ust_marker__destroy':
/home/eedbhu/git/ust/libust-initializer.c:14: undefined reference to `ust_marker_unregister_lib'
//usr/local/lib/libust-initializer.o: In function `__ust_marker__init':
/home/eedbhu/git/ust/libust-initializer.c:14: undefined reference to `ust_marker_register_lib'
/tmp/ccCco0tC.o:(__ust_markers+0x14): undefined reference to `ust_marker_probe_cb'
/tmp/ccCco0tC.o:(__ust_markers+0x18): undefined reference to `__ust_marker_empty_function'
/tmp/ccCco0tC.o:(__ust_markers+0x54): undefined reference to `ust_marker_probe_cb'
/tmp/ccCco0tC.o:(__ust_markers+0x58): undefined reference to `__ust_marker_empty_function'
collect2: ld returned 1 exit status






_______________________________________________
ltt-dev mailing list
ltt-dev at lists.casi.polymtl.ca
http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev




^ permalink raw reply	[flat|nested] 12+ messages in thread

* [ltt-dev] Problem using UST 0.13
  2011-06-08 16:01 [ltt-dev] Problem using UST 0.13 Bernd Hufmann
  2011-06-08 16:31 ` Irina Guilman
@ 2011-06-08 17:30 ` Yannick Brosseau
  2011-06-08 17:33   ` Irina Guilman
  2011-06-08 18:20 ` Nils Carlson
  2 siblings, 1 reply; 12+ messages in thread
From: Yannick Brosseau @ 2011-06-08 17:30 UTC (permalink / raw)


Hi,

Did you uninstall UST 0.12 before trying 0.13?

On 2011-06-08 12:01, Bernd Hufmann wrote:
> Hello
>
> I've just installed UST 0.13 on my laptop (Ubuntu) and I trying to use it. I took the example (see [1]) from the UST user manual. When I compile and link (see [2])  then I get some error print-outs (see [3]).
> I don't know what is missing. Could someone please help me so that I can use UST 0.13? By the way, with UST 0.12 it works fine.
>
> Best Regards
> Bernd
>
>
> [1] Example program in file ustexample.c
> #include <ust/marker.h>
>
> int main(int argc, char **argv)
> {
>    int v;
>    char *st;
>
>    /* ... set values of v and st ... */
>
>    /* a marker: */
>    trace_mark(ust, myevent, "firstarg %d secondarg %s", v, st);
>
>    /* a marker without arguments: */
>    trace_mark(ust, myotherevent, MARK_NOARGS);
>
>    return 0;
> }
>
> [2] Compilation
> gcc  -o ustexample -lust ustexample.c
>
> [3] Error
> //usr/local/lib/libust-initializer.o: In function `__ust_marker__destroy':
> /home/eedbhu/git/ust/libust-initializer.c:14: undefined reference to `ust_marker_unregister_lib'
> //usr/local/lib/libust-initializer.o: In function `__ust_marker__init':
> /home/eedbhu/git/ust/libust-initializer.c:14: undefined reference to `ust_marker_register_lib'
> /tmp/ccCco0tC.o:(__ust_markers+0x14): undefined reference to `ust_marker_probe_cb'
> /tmp/ccCco0tC.o:(__ust_markers+0x18): undefined reference to `__ust_marker_empty_function'
> /tmp/ccCco0tC.o:(__ust_markers+0x54): undefined reference to `ust_marker_probe_cb'
> /tmp/ccCco0tC.o:(__ust_markers+0x58): undefined reference to `__ust_marker_empty_function'
> collect2: ld returned 1 exit status
>
>
>
>
>
>
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev





^ permalink raw reply	[flat|nested] 12+ messages in thread

* [ltt-dev] Problem using UST 0.13
  2011-06-08 17:30 ` Yannick Brosseau
@ 2011-06-08 17:33   ` Irina Guilman
  2011-06-08 17:52     ` Bernd Hufmann
  0 siblings, 1 reply; 12+ messages in thread
From: Irina Guilman @ 2011-06-08 17:33 UTC (permalink / raw)


If you still have version 12, make sure LDFLAGS points to version 13 libraries. 

-----Original Message-----
From: Yannick Brosseau [mailto:yannick.brosseau@gmail.com] 
Sent: June 8, 2011 1:30 PM
To: ltt-dev at lists.casi.polymtl.ca
Subject: Re: [ltt-dev] Problem using UST 0.13

Hi,

Did you uninstall UST 0.12 before trying 0.13?

On 2011-06-08 12:01, Bernd Hufmann wrote:
> Hello
>
> I've just installed UST 0.13 on my laptop (Ubuntu) and I trying to use it. I took the example (see [1]) from the UST user manual. When I compile and link (see [2])  then I get some error print-outs (see [3]).
> I don't know what is missing. Could someone please help me so that I can use UST 0.13? By the way, with UST 0.12 it works fine.
>
> Best Regards
> Bernd
>
>
> [1] Example program in file ustexample.c #include <ust/marker.h>
>
> int main(int argc, char **argv)
> {
>    int v;
>    char *st;
>
>    /* ... set values of v and st ... */
>
>    /* a marker: */
>    trace_mark(ust, myevent, "firstarg %d secondarg %s", v, st);
>
>    /* a marker without arguments: */
>    trace_mark(ust, myotherevent, MARK_NOARGS);
>
>    return 0;
> }
>
> [2] Compilation
> gcc  -o ustexample -lust ustexample.c
>
> [3] Error
> //usr/local/lib/libust-initializer.o: In function `__ust_marker__destroy':
> /home/eedbhu/git/ust/libust-initializer.c:14: undefined reference to `ust_marker_unregister_lib'
> //usr/local/lib/libust-initializer.o: In function `__ust_marker__init':
> /home/eedbhu/git/ust/libust-initializer.c:14: undefined reference to `ust_marker_register_lib'
> /tmp/ccCco0tC.o:(__ust_markers+0x14): undefined reference to `ust_marker_probe_cb'
> /tmp/ccCco0tC.o:(__ust_markers+0x18): undefined reference to `__ust_marker_empty_function'
> /tmp/ccCco0tC.o:(__ust_markers+0x54): undefined reference to `ust_marker_probe_cb'
> /tmp/ccCco0tC.o:(__ust_markers+0x58): undefined reference to `__ust_marker_empty_function'
> collect2: ld returned 1 exit status
>
>
>
>
>
>
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev


_______________________________________________
ltt-dev mailing list
ltt-dev at lists.casi.polymtl.ca
http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev




^ permalink raw reply	[flat|nested] 12+ messages in thread

* [ltt-dev] Problem using UST 0.13
  2011-06-08 17:33   ` Irina Guilman
@ 2011-06-08 17:52     ` Bernd Hufmann
  2011-06-08 17:52       ` Bernd Hufmann
                         ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Bernd Hufmann @ 2011-06-08 17:52 UTC (permalink / raw)


Hello

I did uninstall UST 0.12 before. (sudo make uninstall)

Bernd



On Wed, Jun 8, 2011 at 1:33 PM, Irina Guilman <irina.guilman at ericsson.com>wrote:

> If you still have version 12, make sure LDFLAGS points to version 13
> libraries.
>
> -----Original Message-----
> From: Yannick Brosseau [mailto:yannick.brosseau@gmail.com]
> Sent: June 8, 2011 1:30 PM
> To: ltt-dev at lists.casi.polymtl.ca
> Subject: Re: [ltt-dev] Problem using UST 0.13
>
> Hi,
>
> Did you uninstall UST 0.12 before trying 0.13?
>
> On 2011-06-08 12:01, Bernd Hufmann wrote:
> > Hello
> >
> > I've just installed UST 0.13 on my laptop (Ubuntu) and I trying to use
> it. I took the example (see [1]) from the UST user manual. When I compile
> and link (see [2])  then I get some error print-outs (see [3]).
> > I don't know what is missing. Could someone please help me so that I can
> use UST 0.13? By the way, with UST 0.12 it works fine.
> >
> > Best Regards
> > Bernd
> >
> >
> > [1] Example program in file ustexample.c #include <ust/marker.h>
> >
> > int main(int argc, char **argv)
> > {
> >    int v;
> >    char *st;
> >
> >    /* ... set values of v and st ... */
> >
> >    /* a marker: */
> >    trace_mark(ust, myevent, "firstarg %d secondarg %s", v, st);
> >
> >    /* a marker without arguments: */
> >    trace_mark(ust, myotherevent, MARK_NOARGS);
> >
> >    return 0;
> > }
> >
> > [2] Compilation
> > gcc  -o ustexample -lust ustexample.c
> >
> > [3] Error
> > //usr/local/lib/libust-initializer.o: In function
> `__ust_marker__destroy':
> > /home/eedbhu/git/ust/libust-initializer.c:14: undefined reference to
> `ust_marker_unregister_lib'
> > //usr/local/lib/libust-initializer.o: In function `__ust_marker__init':
> > /home/eedbhu/git/ust/libust-initializer.c:14: undefined reference to
> `ust_marker_register_lib'
> > /tmp/ccCco0tC.o:(__ust_markers+0x14): undefined reference to
> `ust_marker_probe_cb'
> > /tmp/ccCco0tC.o:(__ust_markers+0x18): undefined reference to
> `__ust_marker_empty_function'
> > /tmp/ccCco0tC.o:(__ust_markers+0x54): undefined reference to
> `ust_marker_probe_cb'
> > /tmp/ccCco0tC.o:(__ust_markers+0x58): undefined reference to
> `__ust_marker_empty_function'
> > collect2: ld returned 1 exit status
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> > ltt-dev mailing list
> > ltt-dev at lists.casi.polymtl.ca
> > http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
>
>
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
>
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.casi.polymtl.ca/pipermail/lttng-dev/attachments/20110608/312d7959/attachment-0002.htm>


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [ltt-dev] Problem using UST 0.13
  2011-06-08 17:52     ` Bernd Hufmann
@ 2011-06-08 17:52       ` Bernd Hufmann
  2011-06-08 17:52       ` Bernd Hufmann
  2011-06-08 17:59       ` Bernd Hufmann
  2 siblings, 0 replies; 12+ messages in thread
From: Bernd Hufmann @ 2011-06-08 17:52 UTC (permalink / raw)


Hello

I did uninstall UST 0.12 before. (sudo make uninstall)

Bernd



On Wed, Jun 8, 2011 at 1:33 PM, Irina Guilman <irina.guilman at ericsson.com>wrote:

> If you still have version 12, make sure LDFLAGS points to version 13
> libraries.
>
> -----Original Message-----
> From: Yannick Brosseau [mailto:yannick.brosseau@gmail.com]
> Sent: June 8, 2011 1:30 PM
> To: ltt-dev at lists.casi.polymtl.ca
> Subject: Re: [ltt-dev] Problem using UST 0.13
>
> Hi,
>
> Did you uninstall UST 0.12 before trying 0.13?
>
> On 2011-06-08 12:01, Bernd Hufmann wrote:
> > Hello
> >
> > I've just installed UST 0.13 on my laptop (Ubuntu) and I trying to use
> it. I took the example (see [1]) from the UST user manual. When I compile
> and link (see [2])  then I get some error print-outs (see [3]).
> > I don't know what is missing. Could someone please help me so that I can
> use UST 0.13? By the way, with UST 0.12 it works fine.
> >
> > Best Regards
> > Bernd
> >
> >
> > [1] Example program in file ustexample.c #include <ust/marker.h>
> >
> > int main(int argc, char **argv)
> > {
> >    int v;
> >    char *st;
> >
> >    /* ... set values of v and st ... */
> >
> >    /* a marker: */
> >    trace_mark(ust, myevent, "firstarg %d secondarg %s", v, st);
> >
> >    /* a marker without arguments: */
> >    trace_mark(ust, myotherevent, MARK_NOARGS);
> >
> >    return 0;
> > }
> >
> > [2] Compilation
> > gcc  -o ustexample -lust ustexample.c
> >
> > [3] Error
> > //usr/local/lib/libust-initializer.o: In function
> `__ust_marker__destroy':
> > /home/eedbhu/git/ust/libust-initializer.c:14: undefined reference to
> `ust_marker_unregister_lib'
> > //usr/local/lib/libust-initializer.o: In function `__ust_marker__init':
> > /home/eedbhu/git/ust/libust-initializer.c:14: undefined reference to
> `ust_marker_register_lib'
> > /tmp/ccCco0tC.o:(__ust_markers+0x14): undefined reference to
> `ust_marker_probe_cb'
> > /tmp/ccCco0tC.o:(__ust_markers+0x18): undefined reference to
> `__ust_marker_empty_function'
> > /tmp/ccCco0tC.o:(__ust_markers+0x54): undefined reference to
> `ust_marker_probe_cb'
> > /tmp/ccCco0tC.o:(__ust_markers+0x58): undefined reference to
> `__ust_marker_empty_function'
> > collect2: ld returned 1 exit status
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> > ltt-dev mailing list
> > ltt-dev at lists.casi.polymtl.ca
> > http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
>
>
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
>
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.casi.polymtl.ca/pipermail/ltt-dev/attachments/20110608/312d7959/attachment.htm>


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [ltt-dev] Problem using UST 0.13
  2011-06-08 17:52     ` Bernd Hufmann
  2011-06-08 17:52       ` Bernd Hufmann
@ 2011-06-08 17:52       ` Bernd Hufmann
  2011-06-08 17:59       ` Bernd Hufmann
  2 siblings, 0 replies; 12+ messages in thread
From: Bernd Hufmann @ 2011-06-08 17:52 UTC (permalink / raw)


Hello

I did uninstall UST 0.12 before. (sudo make uninstall)

Bernd



On Wed, Jun 8, 2011 at 1:33 PM, Irina Guilman <irina.guilman at ericsson.com>wrote:

> If you still have version 12, make sure LDFLAGS points to version 13
> libraries.
>
> -----Original Message-----
> From: Yannick Brosseau [mailto:yannick.brosseau@gmail.com]
> Sent: June 8, 2011 1:30 PM
> To: ltt-dev at lists.casi.polymtl.ca
> Subject: Re: [ltt-dev] Problem using UST 0.13
>
> Hi,
>
> Did you uninstall UST 0.12 before trying 0.13?
>
> On 2011-06-08 12:01, Bernd Hufmann wrote:
> > Hello
> >
> > I've just installed UST 0.13 on my laptop (Ubuntu) and I trying to use
> it. I took the example (see [1]) from the UST user manual. When I compile
> and link (see [2])  then I get some error print-outs (see [3]).
> > I don't know what is missing. Could someone please help me so that I can
> use UST 0.13? By the way, with UST 0.12 it works fine.
> >
> > Best Regards
> > Bernd
> >
> >
> > [1] Example program in file ustexample.c #include <ust/marker.h>
> >
> > int main(int argc, char **argv)
> > {
> >    int v;
> >    char *st;
> >
> >    /* ... set values of v and st ... */
> >
> >    /* a marker: */
> >    trace_mark(ust, myevent, "firstarg %d secondarg %s", v, st);
> >
> >    /* a marker without arguments: */
> >    trace_mark(ust, myotherevent, MARK_NOARGS);
> >
> >    return 0;
> > }
> >
> > [2] Compilation
> > gcc  -o ustexample -lust ustexample.c
> >
> > [3] Error
> > //usr/local/lib/libust-initializer.o: In function
> `__ust_marker__destroy':
> > /home/eedbhu/git/ust/libust-initializer.c:14: undefined reference to
> `ust_marker_unregister_lib'
> > //usr/local/lib/libust-initializer.o: In function `__ust_marker__init':
> > /home/eedbhu/git/ust/libust-initializer.c:14: undefined reference to
> `ust_marker_register_lib'
> > /tmp/ccCco0tC.o:(__ust_markers+0x14): undefined reference to
> `ust_marker_probe_cb'
> > /tmp/ccCco0tC.o:(__ust_markers+0x18): undefined reference to
> `__ust_marker_empty_function'
> > /tmp/ccCco0tC.o:(__ust_markers+0x54): undefined reference to
> `ust_marker_probe_cb'
> > /tmp/ccCco0tC.o:(__ust_markers+0x58): undefined reference to
> `__ust_marker_empty_function'
> > collect2: ld returned 1 exit status
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> > ltt-dev mailing list
> > ltt-dev at lists.casi.polymtl.ca
> > http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
>
>
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
>
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.casi.polymtl.ca/pipermail/lttng-dev/attachments/20110608/312d7959/attachment-0003.htm>


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [ltt-dev] Problem using UST 0.13
  2011-06-08 17:52     ` Bernd Hufmann
  2011-06-08 17:52       ` Bernd Hufmann
  2011-06-08 17:52       ` Bernd Hufmann
@ 2011-06-08 17:59       ` Bernd Hufmann
  2011-06-08 17:59         ` Bernd Hufmann
  2011-06-08 17:59         ` Bernd Hufmann
  2 siblings, 2 replies; 12+ messages in thread
From: Bernd Hufmann @ 2011-06-08 17:59 UTC (permalink / raw)


Ok,

there was another installation of UST in my environment. I must have
installed UST from PPA package at one point, which stored the lib in
/usr/lib. When I install it from source code it is installed in
/usr/local/lib. After uninstalling UST using the synaptic package manager
the compilation using UST 0.13 works fine.

Thanks Irina and Yannick for you support.

Best Regards
Bernd

On Wed, Jun 8, 2011 at 1:52 PM, Bernd Hufmann <bhufmann at gmail.com> wrote:

> Hello
>
> I did uninstall UST 0.12 before. (sudo make uninstall)
>
> Bernd
>
>
>
> On Wed, Jun 8, 2011 at 1:33 PM, Irina Guilman <irina.guilman at ericsson.com>wrote:
>
>> If you still have version 12, make sure LDFLAGS points to version 13
>> libraries.
>>
>> -----Original Message-----
>> From: Yannick Brosseau [mailto:yannick.brosseau@gmail.com]
>> Sent: June 8, 2011 1:30 PM
>> To: ltt-dev at lists.casi.polymtl.ca
>> Subject: Re: [ltt-dev] Problem using UST 0.13
>>
>> Hi,
>>
>> Did you uninstall UST 0.12 before trying 0.13?
>>
>> On 2011-06-08 12:01, Bernd Hufmann wrote:
>> > Hello
>> >
>> > I've just installed UST 0.13 on my laptop (Ubuntu) and I trying to use
>> it. I took the example (see [1]) from the UST user manual. When I compile
>> and link (see [2])  then I get some error print-outs (see [3]).
>> > I don't know what is missing. Could someone please help me so that I can
>> use UST 0.13? By the way, with UST 0.12 it works fine.
>> >
>> > Best Regards
>> > Bernd
>> >
>> >
>> > [1] Example program in file ustexample.c #include <ust/marker.h>
>> >
>> > int main(int argc, char **argv)
>> > {
>> >    int v;
>> >    char *st;
>> >
>> >    /* ... set values of v and st ... */
>> >
>> >    /* a marker: */
>> >    trace_mark(ust, myevent, "firstarg %d secondarg %s", v, st);
>> >
>> >    /* a marker without arguments: */
>> >    trace_mark(ust, myotherevent, MARK_NOARGS);
>> >
>> >    return 0;
>> > }
>> >
>> > [2] Compilation
>> > gcc  -o ustexample -lust ustexample.c
>> >
>> > [3] Error
>> > //usr/local/lib/libust-initializer.o: In function
>> `__ust_marker__destroy':
>> > /home/eedbhu/git/ust/libust-initializer.c:14: undefined reference to
>> `ust_marker_unregister_lib'
>> > //usr/local/lib/libust-initializer.o: In function `__ust_marker__init':
>> > /home/eedbhu/git/ust/libust-initializer.c:14: undefined reference to
>> `ust_marker_register_lib'
>> > /tmp/ccCco0tC.o:(__ust_markers+0x14): undefined reference to
>> `ust_marker_probe_cb'
>> > /tmp/ccCco0tC.o:(__ust_markers+0x18): undefined reference to
>> `__ust_marker_empty_function'
>> > /tmp/ccCco0tC.o:(__ust_markers+0x54): undefined reference to
>> `ust_marker_probe_cb'
>> > /tmp/ccCco0tC.o:(__ust_markers+0x58): undefined reference to
>> `__ust_marker_empty_function'
>> > collect2: ld returned 1 exit status
>> >
>> >
>> >
>> >
>> >
>> >
>> > _______________________________________________
>> > ltt-dev mailing list
>> > ltt-dev at lists.casi.polymtl.ca
>> > http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
>>
>>
>> _______________________________________________
>> ltt-dev mailing list
>> ltt-dev at lists.casi.polymtl.ca
>> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
>>
>> _______________________________________________
>> ltt-dev mailing list
>> ltt-dev at lists.casi.polymtl.ca
>> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.casi.polymtl.ca/pipermail/lttng-dev/attachments/20110608/3542d464/attachment-0003.htm>


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [ltt-dev] Problem using UST 0.13
  2011-06-08 17:59       ` Bernd Hufmann
  2011-06-08 17:59         ` Bernd Hufmann
@ 2011-06-08 17:59         ` Bernd Hufmann
  1 sibling, 0 replies; 12+ messages in thread
From: Bernd Hufmann @ 2011-06-08 17:59 UTC (permalink / raw)


Ok,

there was another installation of UST in my environment. I must have
installed UST from PPA package at one point, which stored the lib in
/usr/lib. When I install it from source code it is installed in
/usr/local/lib. After uninstalling UST using the synaptic package manager
the compilation using UST 0.13 works fine.

Thanks Irina and Yannick for you support.

Best Regards
Bernd

On Wed, Jun 8, 2011 at 1:52 PM, Bernd Hufmann <bhufmann at gmail.com> wrote:

> Hello
>
> I did uninstall UST 0.12 before. (sudo make uninstall)
>
> Bernd
>
>
>
> On Wed, Jun 8, 2011 at 1:33 PM, Irina Guilman <irina.guilman at ericsson.com>wrote:
>
>> If you still have version 12, make sure LDFLAGS points to version 13
>> libraries.
>>
>> -----Original Message-----
>> From: Yannick Brosseau [mailto:yannick.brosseau@gmail.com]
>> Sent: June 8, 2011 1:30 PM
>> To: ltt-dev at lists.casi.polymtl.ca
>> Subject: Re: [ltt-dev] Problem using UST 0.13
>>
>> Hi,
>>
>> Did you uninstall UST 0.12 before trying 0.13?
>>
>> On 2011-06-08 12:01, Bernd Hufmann wrote:
>> > Hello
>> >
>> > I've just installed UST 0.13 on my laptop (Ubuntu) and I trying to use
>> it. I took the example (see [1]) from the UST user manual. When I compile
>> and link (see [2])  then I get some error print-outs (see [3]).
>> > I don't know what is missing. Could someone please help me so that I can
>> use UST 0.13? By the way, with UST 0.12 it works fine.
>> >
>> > Best Regards
>> > Bernd
>> >
>> >
>> > [1] Example program in file ustexample.c #include <ust/marker.h>
>> >
>> > int main(int argc, char **argv)
>> > {
>> >    int v;
>> >    char *st;
>> >
>> >    /* ... set values of v and st ... */
>> >
>> >    /* a marker: */
>> >    trace_mark(ust, myevent, "firstarg %d secondarg %s", v, st);
>> >
>> >    /* a marker without arguments: */
>> >    trace_mark(ust, myotherevent, MARK_NOARGS);
>> >
>> >    return 0;
>> > }
>> >
>> > [2] Compilation
>> > gcc  -o ustexample -lust ustexample.c
>> >
>> > [3] Error
>> > //usr/local/lib/libust-initializer.o: In function
>> `__ust_marker__destroy':
>> > /home/eedbhu/git/ust/libust-initializer.c:14: undefined reference to
>> `ust_marker_unregister_lib'
>> > //usr/local/lib/libust-initializer.o: In function `__ust_marker__init':
>> > /home/eedbhu/git/ust/libust-initializer.c:14: undefined reference to
>> `ust_marker_register_lib'
>> > /tmp/ccCco0tC.o:(__ust_markers+0x14): undefined reference to
>> `ust_marker_probe_cb'
>> > /tmp/ccCco0tC.o:(__ust_markers+0x18): undefined reference to
>> `__ust_marker_empty_function'
>> > /tmp/ccCco0tC.o:(__ust_markers+0x54): undefined reference to
>> `ust_marker_probe_cb'
>> > /tmp/ccCco0tC.o:(__ust_markers+0x58): undefined reference to
>> `__ust_marker_empty_function'
>> > collect2: ld returned 1 exit status
>> >
>> >
>> >
>> >
>> >
>> >
>> > _______________________________________________
>> > ltt-dev mailing list
>> > ltt-dev at lists.casi.polymtl.ca
>> > http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
>>
>>
>> _______________________________________________
>> ltt-dev mailing list
>> ltt-dev at lists.casi.polymtl.ca
>> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
>>
>> _______________________________________________
>> ltt-dev mailing list
>> ltt-dev at lists.casi.polymtl.ca
>> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.casi.polymtl.ca/pipermail/lttng-dev/attachments/20110608/3542d464/attachment-0002.htm>


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [ltt-dev] Problem using UST 0.13
  2011-06-08 17:59       ` Bernd Hufmann
@ 2011-06-08 17:59         ` Bernd Hufmann
  2011-06-08 17:59         ` Bernd Hufmann
  1 sibling, 0 replies; 12+ messages in thread
From: Bernd Hufmann @ 2011-06-08 17:59 UTC (permalink / raw)


Ok,

there was another installation of UST in my environment. I must have
installed UST from PPA package at one point, which stored the lib in
/usr/lib. When I install it from source code it is installed in
/usr/local/lib. After uninstalling UST using the synaptic package manager
the compilation using UST 0.13 works fine.

Thanks Irina and Yannick for you support.

Best Regards
Bernd

On Wed, Jun 8, 2011 at 1:52 PM, Bernd Hufmann <bhufmann at gmail.com> wrote:

> Hello
>
> I did uninstall UST 0.12 before. (sudo make uninstall)
>
> Bernd
>
>
>
> On Wed, Jun 8, 2011 at 1:33 PM, Irina Guilman <irina.guilman at ericsson.com>wrote:
>
>> If you still have version 12, make sure LDFLAGS points to version 13
>> libraries.
>>
>> -----Original Message-----
>> From: Yannick Brosseau [mailto:yannick.brosseau@gmail.com]
>> Sent: June 8, 2011 1:30 PM
>> To: ltt-dev at lists.casi.polymtl.ca
>> Subject: Re: [ltt-dev] Problem using UST 0.13
>>
>> Hi,
>>
>> Did you uninstall UST 0.12 before trying 0.13?
>>
>> On 2011-06-08 12:01, Bernd Hufmann wrote:
>> > Hello
>> >
>> > I've just installed UST 0.13 on my laptop (Ubuntu) and I trying to use
>> it. I took the example (see [1]) from the UST user manual. When I compile
>> and link (see [2])  then I get some error print-outs (see [3]).
>> > I don't know what is missing. Could someone please help me so that I can
>> use UST 0.13? By the way, with UST 0.12 it works fine.
>> >
>> > Best Regards
>> > Bernd
>> >
>> >
>> > [1] Example program in file ustexample.c #include <ust/marker.h>
>> >
>> > int main(int argc, char **argv)
>> > {
>> >    int v;
>> >    char *st;
>> >
>> >    /* ... set values of v and st ... */
>> >
>> >    /* a marker: */
>> >    trace_mark(ust, myevent, "firstarg %d secondarg %s", v, st);
>> >
>> >    /* a marker without arguments: */
>> >    trace_mark(ust, myotherevent, MARK_NOARGS);
>> >
>> >    return 0;
>> > }
>> >
>> > [2] Compilation
>> > gcc  -o ustexample -lust ustexample.c
>> >
>> > [3] Error
>> > //usr/local/lib/libust-initializer.o: In function
>> `__ust_marker__destroy':
>> > /home/eedbhu/git/ust/libust-initializer.c:14: undefined reference to
>> `ust_marker_unregister_lib'
>> > //usr/local/lib/libust-initializer.o: In function `__ust_marker__init':
>> > /home/eedbhu/git/ust/libust-initializer.c:14: undefined reference to
>> `ust_marker_register_lib'
>> > /tmp/ccCco0tC.o:(__ust_markers+0x14): undefined reference to
>> `ust_marker_probe_cb'
>> > /tmp/ccCco0tC.o:(__ust_markers+0x18): undefined reference to
>> `__ust_marker_empty_function'
>> > /tmp/ccCco0tC.o:(__ust_markers+0x54): undefined reference to
>> `ust_marker_probe_cb'
>> > /tmp/ccCco0tC.o:(__ust_markers+0x58): undefined reference to
>> `__ust_marker_empty_function'
>> > collect2: ld returned 1 exit status
>> >
>> >
>> >
>> >
>> >
>> >
>> > _______________________________________________
>> > ltt-dev mailing list
>> > ltt-dev at lists.casi.polymtl.ca
>> > http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
>>
>>
>> _______________________________________________
>> ltt-dev mailing list
>> ltt-dev at lists.casi.polymtl.ca
>> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
>>
>> _______________________________________________
>> ltt-dev mailing list
>> ltt-dev at lists.casi.polymtl.ca
>> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.casi.polymtl.ca/pipermail/ltt-dev/attachments/20110608/3542d464/attachment-0001.htm>


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [ltt-dev] Problem using UST 0.13
  2011-06-08 16:01 [ltt-dev] Problem using UST 0.13 Bernd Hufmann
  2011-06-08 16:31 ` Irina Guilman
  2011-06-08 17:30 ` Yannick Brosseau
@ 2011-06-08 18:20 ` Nils Carlson
  2 siblings, 0 replies; 12+ messages in thread
From: Nils Carlson @ 2011-06-08 18:20 UTC (permalink / raw)



On Jun 8, 2011, at 6:01 PM, Bernd Hufmann wrote:

> Hello
>
> I've just installed UST 0.13 on my laptop (Ubuntu) and I trying to  
> use it. I took the example (see [1]) from the UST user manual. When  
> I compile and link (see [2])  then I get some error print-outs (see  
> [3]).
> I don't know what is missing. Could someone please help me so that I  
> can use UST 0.13? By the way, with UST 0.12 it works fine.
>
> Best Regards
> Bernd
> <snip>
> [3] Error
> //usr/local/lib/libust-initializer.o: In function  
> `__ust_marker__destroy':
> /home/eedbhu/git/ust/libust-initializer.c:14: undefined reference to  
> `ust_marker_unregister_lib'
> //usr/local/lib/libust-initializer.o: In function  
> `__ust_marker__init':
> /home/eedbhu/git/ust/libust-initializer.c:14: undefined reference to  
> `ust_marker_register_lib'
> /tmp/ccCco0tC.o:(__ust_markers+0x14): undefined reference to  
> `ust_marker_probe_cb'
> /tmp/ccCco0tC.o:(__ust_markers+0x18): undefined reference to  
> `__ust_marker_empty_function'
> /tmp/ccCco0tC.o:(__ust_markers+0x54): undefined reference to  
> `ust_marker_probe_cb'
> /tmp/ccCco0tC.o:(__ust_markers+0x58): undefined reference to  
> `__ust_marker_empty_function'
> collect2: ld returned 1 exit status

Did you run ldconfig?

/Nils

>
>
>
>
>
>
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev





^ permalink raw reply	[flat|nested] 12+ messages in thread

* [ltt-dev] Problem using UST 0.13
  2011-06-08 16:31 ` Irina Guilman
@ 2011-06-08 19:32   ` Mathieu Desnoyers
  0 siblings, 0 replies; 12+ messages in thread
From: Mathieu Desnoyers @ 2011-06-08 19:32 UTC (permalink / raw)


* Irina Guilman (irina.guilman at ericsson.com) wrote:
>  My guess is trace_mark() has been replaced by ust_marker() and made
>  deprecated. Look in the examples (tests dir) on how the sample apps
>  (hello/basic/fork and etc.) are instrumented. 

FYI, trace_mark() are still present in UST 0.13 (I am deprecating them
slowly, I might enable compiler "deprecated" warnings in 0.14). So
trace_mark() still works, but you are right in that the instrumented
code should be moved to ust_marker().

Thanks,

Mathieu

> 
> -----Original Message-----
> From: Bernd Hufmann [mailto:bernd.hufmann@ericsson.com] 
> Sent: June 8, 2011 12:02 PM
> To: ltt-dev at lists.casi.polymtl.ca
> Subject: [ltt-dev] Problem using UST 0.13
> 
> Hello
> 
> I've just installed UST 0.13 on my laptop (Ubuntu) and I trying to use it. I took the example (see [1]) from the UST user manual. When I compile and link (see [2])  then I get some error print-outs (see [3]).
> I don't know what is missing. Could someone please help me so that I can use UST 0.13? By the way, with UST 0.12 it works fine.
> 
> Best Regards
> Bernd
> 
> 
> [1] Example program in file ustexample.c #include <ust/marker.h>
> 
> int main(int argc, char **argv)
> {
>    int v;
>    char *st;
> 
>    /* ... set values of v and st ... */
> 
>    /* a marker: */
>    trace_mark(ust, myevent, "firstarg %d secondarg %s", v, st);
> 
>    /* a marker without arguments: */
>    trace_mark(ust, myotherevent, MARK_NOARGS);
> 
>    return 0;
> }
> 
> [2] Compilation
> gcc  -o ustexample -lust ustexample.c
> 
> [3] Error
> //usr/local/lib/libust-initializer.o: In function `__ust_marker__destroy':
> /home/eedbhu/git/ust/libust-initializer.c:14: undefined reference to `ust_marker_unregister_lib'
> //usr/local/lib/libust-initializer.o: In function `__ust_marker__init':
> /home/eedbhu/git/ust/libust-initializer.c:14: undefined reference to `ust_marker_register_lib'
> /tmp/ccCco0tC.o:(__ust_markers+0x14): undefined reference to `ust_marker_probe_cb'
> /tmp/ccCco0tC.o:(__ust_markers+0x18): undefined reference to `__ust_marker_empty_function'
> /tmp/ccCco0tC.o:(__ust_markers+0x54): undefined reference to `ust_marker_probe_cb'
> /tmp/ccCco0tC.o:(__ust_markers+0x58): undefined reference to `__ust_marker_empty_function'
> collect2: ld returned 1 exit status
> 
> 
> 
> 
> 
> 
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
> 
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
> 

-- 
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com




^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-06-08 19:32 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-08 16:01 [ltt-dev] Problem using UST 0.13 Bernd Hufmann
2011-06-08 16:31 ` Irina Guilman
2011-06-08 19:32   ` Mathieu Desnoyers
2011-06-08 17:30 ` Yannick Brosseau
2011-06-08 17:33   ` Irina Guilman
2011-06-08 17:52     ` Bernd Hufmann
2011-06-08 17:52       ` Bernd Hufmann
2011-06-08 17:52       ` Bernd Hufmann
2011-06-08 17:59       ` Bernd Hufmann
2011-06-08 17:59         ` Bernd Hufmann
2011-06-08 17:59         ` Bernd Hufmann
2011-06-08 18:20 ` Nils Carlson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox