* [ltt-dev] no metadata tracefile
@ 2011-08-31 20:47 Ji Zhai
2011-09-13 18:47 ` Ji Zhai
0 siblings, 1 reply; 23+ messages in thread
From: Ji Zhai @ 2011-08-31 20:47 UTC (permalink / raw)
Hi All,
As the restriction of the hardware and development environment, I am
trying to use UST as the following combination:
1. PowerPC 44x platform
2. Linux kernel 2.6.31.12
3. LTTng v0.170
4. userspace RCU 0.4.6
5. UST 0.6
6. LTTV 0.12.20
I can get the kernel traces and use LTTV 0.12.20 to review them.
However, when I use the sample code from the "Section 3 Quick Start" of
UST manual,
#include <ust/marker.h>
int main(int argc <http://en.wikipedia.org/wiki/Main_function> ,
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;
}
I got the errors by using LTTV 0.12.20:
** (process:18957): WARNING **: Unsupported trace version : 2.6
** (process:18957): WARNING **: parse_trace_header error
** (process:18957): WARNING **: Unsupported trace version : 2.6
** (process:18957): WARNING **: parse_trace_header error
** (process:18957): WARNING **: Trace
/nas/LTTng/mytrace/24407_5647013710766707006 has no metadata tracefile
** (process:18957): CRITICAL **: cannot open trace .
/usr/local/bin/lttv: line 15: 18957 Segmentation fault $0.real $*
From the mailing list, some guys said to use LTTV 0.12.30 or higher may
solve this problem.
After run LTTV 0.12.32, I got:
** ERROR **: Undescribed event 0 in channel ust
aborting...
/home/LTTng/bin/lttv: line 15: 19600 Aborted $0.real $*
So, I doubt that I may miss some key steps to configure the kernel for
powerpc. The "UST" does not create the trace for me.
I'd like to get your suggestions. Thanks in advance!
Regards,
Ji
Legal Disclaimer:
The information contained in this message may be privileged and confidential. It is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete or destroy any copy of this message
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.casi.polymtl.ca/pipermail/lttng-dev/attachments/20110831/d9f09894/attachment-0003.htm>
^ permalink raw reply [flat|nested] 23+ messages in thread
* [ltt-dev] no metadata tracefile
2011-08-31 20:47 [ltt-dev] no metadata tracefile Ji Zhai
@ 2011-09-13 18:47 ` Ji Zhai
2011-09-13 18:47 ` Ji Zhai
` (2 more replies)
0 siblings, 3 replies; 23+ messages in thread
From: Ji Zhai @ 2011-09-13 18:47 UTC (permalink / raw)
Hi All,
Could you please give me any suggestions or hints?
Thanks in advance!
Ji
________________________________
From: Ji Zhai [mailto:Ji.Zhai@ca.flextronics.com]
Sent: Wednesday, August 31, 2011 4:47 PM
To: ltt-dev at lists.casi.polymtl.ca
Subject: [ltt-dev] no metadata tracefile
Hi All,
As the restriction of the hardware and development environment, I am
trying to use UST as the following combination:
1. PowerPC 44x platform
2. Linux kernel 2.6.31.12
3. LTTng v0.170
4. userspace RCU 0.4.6
5. UST 0.6
6. LTTV 0.12.20
I can get the kernel traces and use LTTV 0.12.20 to review them.
However, when I use the sample code from the "Section 3 Quick Start" of
UST manual,
#include <ust/marker.h>
int main(int argc <http://en.wikipedia.org/wiki/Main_function> ,
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;
}
I got the errors by using LTTV 0.12.20:
** (process:18957): WARNING **: Unsupported trace version : 2.6
** (process:18957): WARNING **: parse_trace_header error
** (process:18957): WARNING **: Unsupported trace version : 2.6
** (process:18957): WARNING **: parse_trace_header error
** (process:18957): WARNING **: Trace
/nas/LTTng/mytrace/24407_5647013710766707006 has no metadata tracefile
** (process:18957): CRITICAL **: cannot open trace .
/usr/local/bin/lttv: line 15: 18957 Segmentation fault $0.real $*
From the mailing list, some guys said to use LTTV 0.12.30 or higher may
solve this problem.
After run LTTV 0.12.32, I got:
** ERROR **: Undescribed event 0 in channel ust
aborting...
/home/LTTng/bin/lttv: line 15: 19600 Aborted $0.real $*
So, I doubt that I may miss some key steps to configure the kernel for
powerpc. The "UST" does not create the trace for me.
I'd like to get your suggestions. Thanks in advance!
Regards,
Ji
Legal Disclaimer: The information contained in this message may be
privileged and confidential. It is intended to be read only by the
individual or entity to whom it is addressed or by their designee. If
the reader of this message is not the intended recipient, you are on
notice that any distribution of this message, in any form, is strictly
prohibited. If you have received this message in error, please
immediately notify the sender and delete or destroy any copy of this
message
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.casi.polymtl.ca/pipermail/lttng-dev/attachments/20110913/6fa68e63/attachment-0002.htm>
^ permalink raw reply [flat|nested] 23+ messages in thread
* [ltt-dev] no metadata tracefile
2011-09-13 18:47 ` Ji Zhai
@ 2011-09-13 18:47 ` Ji Zhai
2011-09-13 18:57 ` Mathieu Desnoyers
[not found] ` <BLU0-SMTP70493DBB789A80AE9E466A96050@phx.gbl>
2 siblings, 0 replies; 23+ messages in thread
From: Ji Zhai @ 2011-09-13 18:47 UTC (permalink / raw)
Hi All,
Could you please give me any suggestions or hints?
Thanks in advance!
Ji
________________________________
From: Ji Zhai [mailto:Ji.Zhai@ca.flextronics.com]
Sent: Wednesday, August 31, 2011 4:47 PM
To: ltt-dev at lists.casi.polymtl.ca
Subject: [ltt-dev] no metadata tracefile
Hi All,
As the restriction of the hardware and development environment, I am
trying to use UST as the following combination:
1. PowerPC 44x platform
2. Linux kernel 2.6.31.12
3. LTTng v0.170
4. userspace RCU 0.4.6
5. UST 0.6
6. LTTV 0.12.20
I can get the kernel traces and use LTTV 0.12.20 to review them.
However, when I use the sample code from the "Section 3 Quick Start" of
UST manual,
#include <ust/marker.h>
int main(int argc <http://en.wikipedia.org/wiki/Main_function> ,
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;
}
I got the errors by using LTTV 0.12.20:
** (process:18957): WARNING **: Unsupported trace version : 2.6
** (process:18957): WARNING **: parse_trace_header error
** (process:18957): WARNING **: Unsupported trace version : 2.6
** (process:18957): WARNING **: parse_trace_header error
** (process:18957): WARNING **: Trace
/nas/LTTng/mytrace/24407_5647013710766707006 has no metadata tracefile
** (process:18957): CRITICAL **: cannot open trace .
/usr/local/bin/lttv: line 15: 18957 Segmentation fault $0.real $*
From the mailing list, some guys said to use LTTV 0.12.30 or higher may
solve this problem.
After run LTTV 0.12.32, I got:
** ERROR **: Undescribed event 0 in channel ust
aborting...
/home/LTTng/bin/lttv: line 15: 19600 Aborted $0.real $*
So, I doubt that I may miss some key steps to configure the kernel for
powerpc. The "UST" does not create the trace for me.
I'd like to get your suggestions. Thanks in advance!
Regards,
Ji
Legal Disclaimer: The information contained in this message may be
privileged and confidential. It is intended to be read only by the
individual or entity to whom it is addressed or by their designee. If
the reader of this message is not the intended recipient, you are on
notice that any distribution of this message, in any form, is strictly
prohibited. If you have received this message in error, please
immediately notify the sender and delete or destroy any copy of this
message
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.casi.polymtl.ca/pipermail/lttng-dev/attachments/20110913/6fa68e63/attachment-0003.htm>
^ permalink raw reply [flat|nested] 23+ messages in thread
* [ltt-dev] no metadata tracefile
2011-09-13 18:47 ` Ji Zhai
2011-09-13 18:47 ` Ji Zhai
@ 2011-09-13 18:57 ` Mathieu Desnoyers
[not found] ` <BLU0-SMTP70493DBB789A80AE9E466A96050@phx.gbl>
2 siblings, 0 replies; 23+ messages in thread
From: Mathieu Desnoyers @ 2011-09-13 18:57 UTC (permalink / raw)
* Ji Zhai (Ji.Zhai at ca.flextronics.com) wrote:
> Hi All,
>
>
>
> Could you please give me any suggestions or hints?
>
> Thanks in advance!
>
>
>
> Ji
>
>
>
> ________________________________
>
> From: Ji Zhai [mailto:Ji.Zhai@ca.flextronics.com]
> Sent: Wednesday, August 31, 2011 4:47 PM
> To: ltt-dev at lists.casi.polymtl.ca
> Subject: [ltt-dev] no metadata tracefile
>
>
>
> Hi All,
>
>
>
> As the restriction of the hardware and development environment, I am
> trying to use UST as the following combination:
>
> 1. PowerPC 44x platform
>
> 2. Linux kernel 2.6.31.12
>
> 3. LTTng v0.170
>
> 4. userspace RCU 0.4.6
>
> 5. UST 0.6
Hi,
UST 0.6 is not supported anymore. Please upgrade.
Best regards,
Mathieu
>
> 6. LTTV 0.12.20
>
>
>
> I can get the kernel traces and use LTTV 0.12.20 to review them.
>
> However, when I use the sample code from the "Section 3 Quick Start" of
> UST manual,
>
>
> #include <ust/marker.h>
>
> int main(int argc <http://en.wikipedia.org/wiki/Main_function> ,
> 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;
> }
>
>
>
> I got the errors by using LTTV 0.12.20:
>
>
>
> ** (process:18957): WARNING **: Unsupported trace version : 2.6
>
>
>
> ** (process:18957): WARNING **: parse_trace_header error
>
>
>
> ** (process:18957): WARNING **: Unsupported trace version : 2.6
>
>
>
> ** (process:18957): WARNING **: parse_trace_header error
>
>
>
> ** (process:18957): WARNING **: Trace
> /nas/LTTng/mytrace/24407_5647013710766707006 has no metadata tracefile
>
>
>
> ** (process:18957): CRITICAL **: cannot open trace .
>
> /usr/local/bin/lttv: line 15: 18957 Segmentation fault $0.real $*
>
>
>
> From the mailing list, some guys said to use LTTV 0.12.30 or higher may
> solve this problem.
>
>
>
> After run LTTV 0.12.32, I got:
>
>
>
> ** ERROR **: Undescribed event 0 in channel ust
>
> aborting...
>
> /home/LTTng/bin/lttv: line 15: 19600 Aborted $0.real $*
>
>
>
> So, I doubt that I may miss some key steps to configure the kernel for
> powerpc. The "UST" does not create the trace for me.
>
> I'd like to get your suggestions. Thanks in advance!
>
>
>
> Regards,
>
>
>
> Ji
>
> Legal Disclaimer: The information contained in this message may be
> privileged and confidential. It is intended to be read only by the
> individual or entity to whom it is addressed or by their designee. If
> the reader of this message is not the intended recipient, you are on
> notice that any distribution of this message, in any form, is strictly
> prohibited. If you have received this message in error, please
> immediately notify the sender and delete or destroy any copy of this
> message
>
> _______________________________________________
> 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] 23+ messages in thread
* [ltt-dev] no metadata tracefile
[not found] ` <BLU0-SMTP70493DBB789A80AE9E466A96050@phx.gbl>
@ 2011-09-13 19:22 ` Ji Zhai
2011-09-13 20:03 ` Alexandre Montplaisir
0 siblings, 1 reply; 23+ messages in thread
From: Ji Zhai @ 2011-09-13 19:22 UTC (permalink / raw)
Hi Mathieu,
Thanks for your reply!
I have tried many combinations, for example, userspace-rcu-0.6.4 and
ust-0.15, but still got the same kind of errors--no metadata trace
tracefile.
Any idea? Thanks again!
Regards,
Ji
-----Original Message-----
From: pdumas9@sympatico.ca [mailto:pdumas9@sympatico.ca] On Behalf Of
Mathieu Desnoyers
Sent: Tuesday, September 13, 2011 2:57 PM
To: Ji Zhai
Cc: ltt-dev at lists.casi.polymtl.ca
Subject: Re: [ltt-dev] no metadata tracefile
* Ji Zhai (Ji.Zhai at ca.flextronics.com) wrote:
> Hi All,
>
>
>
> Could you please give me any suggestions or hints?
>
> Thanks in advance!
>
>
>
> Ji
>
>
>
> ________________________________
>
> From: Ji Zhai [mailto:Ji.Zhai@ca.flextronics.com]
> Sent: Wednesday, August 31, 2011 4:47 PM
> To: ltt-dev at lists.casi.polymtl.ca
> Subject: [ltt-dev] no metadata tracefile
>
>
>
> Hi All,
>
>
>
> As the restriction of the hardware and development environment, I am
> trying to use UST as the following combination:
>
> 1. PowerPC 44x platform
>
> 2. Linux kernel 2.6.31.12
>
> 3. LTTng v0.170
>
> 4. userspace RCU 0.4.6
>
> 5. UST 0.6
Hi,
UST 0.6 is not supported anymore. Please upgrade.
Best regards,
Mathieu
>
> 6. LTTV 0.12.20
>
>
>
> I can get the kernel traces and use LTTV 0.12.20 to review them.
>
> However, when I use the sample code from the "Section 3 Quick Start"
of
> UST manual,
>
>
> #include <ust/marker.h>
>
> int main(int argc <http://en.wikipedia.org/wiki/Main_function> ,
> 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;
> }
>
>
>
> I got the errors by using LTTV 0.12.20:
>
>
>
> ** (process:18957): WARNING **: Unsupported trace version : 2.6
>
>
>
> ** (process:18957): WARNING **: parse_trace_header error
>
>
>
> ** (process:18957): WARNING **: Unsupported trace version : 2.6
>
>
>
> ** (process:18957): WARNING **: parse_trace_header error
>
>
>
> ** (process:18957): WARNING **: Trace
> /nas/LTTng/mytrace/24407_5647013710766707006 has no metadata tracefile
>
>
>
> ** (process:18957): CRITICAL **: cannot open trace .
>
> /usr/local/bin/lttv: line 15: 18957 Segmentation fault $0.real $*
>
>
>
> From the mailing list, some guys said to use LTTV 0.12.30 or higher
may
> solve this problem.
>
>
>
> After run LTTV 0.12.32, I got:
>
>
>
> ** ERROR **: Undescribed event 0 in channel ust
>
> aborting...
>
> /home/LTTng/bin/lttv: line 15: 19600 Aborted $0.real
$*
>
>
>
> So, I doubt that I may miss some key steps to configure the kernel for
> powerpc. The "UST" does not create the trace for me.
>
> I'd like to get your suggestions. Thanks in advance!
>
>
>
> Regards,
>
>
>
> Ji
>
> Legal Disclaimer: The information contained in this message may be
> privileged and confidential. It is intended to be read only by the
> individual or entity to whom it is addressed or by their designee. If
> the reader of this message is not the intended recipient, you are on
> notice that any distribution of this message, in any form, is strictly
> prohibited. If you have received this message in error, please
> immediately notify the sender and delete or destroy any copy of this
> message
>
> _______________________________________________
> 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] 23+ messages in thread
* [ltt-dev] no metadata tracefile
2011-09-13 19:22 ` Ji Zhai
@ 2011-09-13 20:03 ` Alexandre Montplaisir
2011-09-14 18:05 ` Ji Zhai
0 siblings, 1 reply; 23+ messages in thread
From: Alexandre Montplaisir @ 2011-09-13 20:03 UTC (permalink / raw)
On 11-09-13 03:22 PM, Ji Zhai wrote:
> Hi Mathieu,
>
> Thanks for your reply!
> I have tried many combinations, for example, userspace-rcu-0.6.4 and
> ust-0.15, but still got the same kind of errors--no metadata trace
> tracefile.
> Any idea? Thanks again!
>
> Regards,
>
> Ji
Hi Ji Zhai,
Can you take a really small UST trace (a couple MB's) and upload it
somewhere?
Also make sure you are really using the latest versions (urcu 0.6.4, UST
0.15 and LTTV 0.12.38). Sometimes old versions are still in the PATH
even if new versions got installed afterwards. On most distros, stuff in
/usr/local has priority over stuff in /usr.
Cheers,
--
Alexandre Montplaisir
DORSAL lab,
?cole Polytechnique de Montr?al
^ permalink raw reply [flat|nested] 23+ messages in thread
* [ltt-dev] no metadata tracefile
2011-09-13 20:03 ` Alexandre Montplaisir
@ 2011-09-14 18:05 ` Ji Zhai
2011-09-14 18:05 ` Ji Zhai
` (3 more replies)
0 siblings, 4 replies; 23+ messages in thread
From: Ji Zhai @ 2011-09-14 18:05 UTC (permalink / raw)
Hi Alexandre,
Thanks for your reply!
According to your suggestions, I did the followings:
1. I cleaned all related libs in /usr/local/lib and /usr/lib
2. Built/installed userspace-rcu-0.6.4
3. Built/installed UST-0.15 with debug enable
4. gcc -o foo lust foo.c
The foo.c are:
#include <ust/marker.h>
int main(int argc, char **argv)
{
int v;
char *st;
/* ... set values of v and st ... */
v = 110;
st = "hello, UST";
/* a marker: */
trace_mark(ust, myevent, "firstarg %d secondarg %s", v, st);
/* a marker without arguments: */
trace_mark(ust, myotherevent, MARK_NOARGS);
return 0;
}
5. usttrace ./foo
6. I got the log files in /home/root/.usttraces.
7. I used LTTV(0.12.36) to review the results:
lttv -m textDump -t mcb00-main-aaillax-20110914130558687771830
** (process:20623): WARNING **: Trace /nas/jizhai/LTTng/mytrace/mcb00-main-aaillax-20110914130558687771830 has no metadata tracefile
** (process:20623): CRITICAL **: cannot open trace mcb00-main-aaillax-20110914130558687771830
/home/jizhai/MyLocal/LTTng/bin/lttv: line 15: 20623 Segmentation fault $0.real $*
I have attached the tar ball (foo_ust.tar.gz) for the log files. Please see the attachment.
My co-worker did same test on his side and sent an email for help to the mailing list:
http://lists.casi.polymtl.ca/pipermail/ltt-dev/2011-September/005135.html
In his email, there are some debug information done by him.
I am looking forward to get your further help! Thanks!
Regards,
Ji
-----Original Message-----
From: Alexandre Montplaisir [mailto:alexandre.montplaisir@polymtl.ca]
Sent: Tuesday, September 13, 2011 4:03 PM
To: Ji Zhai
Cc: ltt-dev at lists.casi.polymtl.ca
Subject: Re: [ltt-dev] no metadata tracefile
On 11-09-13 03:22 PM, Ji Zhai wrote:
> Hi Mathieu,
>
> Thanks for your reply!
> I have tried many combinations, for example, userspace-rcu-0.6.4 and
> ust-0.15, but still got the same kind of errors--no metadata trace
> tracefile.
> Any idea? Thanks again!
>
> Regards,
>
> Ji
Hi Ji Zhai,
Can you take a really small UST trace (a couple MB's) and upload it
somewhere?
Also make sure you are really using the latest versions (urcu 0.6.4, UST
0.15 and LTTV 0.12.38). Sometimes old versions are still in the PATH
even if new versions got installed afterwards. On most distros, stuff in
/usr/local has priority over stuff in /usr.
Cheers,
--
Alexandre Montplaisir
DORSAL lab,
?cole Polytechnique de Montr?al
Legal Disclaimer:
The information contained in this message may be privileged and confidential. It is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete or destroy any copy of this message
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo_ust.tar.gz
Type: application/x-gzip
Size: 1772 bytes
Desc: foo_ust.tar.gz
URL: <http://lists.casi.polymtl.ca/pipermail/lttng-dev/attachments/20110914/1d246b46/attachment-0003.bin>
^ permalink raw reply [flat|nested] 23+ messages in thread
* [ltt-dev] no metadata tracefile
2011-09-14 18:05 ` Ji Zhai
@ 2011-09-14 18:05 ` Ji Zhai
2011-09-15 13:31 ` Alexandre Montplaisir
` (2 subsequent siblings)
3 siblings, 0 replies; 23+ messages in thread
From: Ji Zhai @ 2011-09-14 18:05 UTC (permalink / raw)
Hi Alexandre,
Thanks for your reply!
According to your suggestions, I did the followings:
1. I cleaned all related libs in /usr/local/lib and /usr/lib
2. Built/installed userspace-rcu-0.6.4
3. Built/installed UST-0.15 with debug enable
4. gcc -o foo lust foo.c
The foo.c are:
#include <ust/marker.h>
int main(int argc, char **argv)
{
int v;
char *st;
/* ... set values of v and st ... */
v = 110;
st = "hello, UST";
/* a marker: */
trace_mark(ust, myevent, "firstarg %d secondarg %s", v, st);
/* a marker without arguments: */
trace_mark(ust, myotherevent, MARK_NOARGS);
return 0;
}
5. usttrace ./foo
6. I got the log files in /home/root/.usttraces.
7. I used LTTV(0.12.36) to review the results:
lttv -m textDump -t mcb00-main-aaillax-20110914130558687771830
** (process:20623): WARNING **: Trace /nas/jizhai/LTTng/mytrace/mcb00-main-aaillax-20110914130558687771830 has no metadata tracefile
** (process:20623): CRITICAL **: cannot open trace mcb00-main-aaillax-20110914130558687771830
/home/jizhai/MyLocal/LTTng/bin/lttv: line 15: 20623 Segmentation fault $0.real $*
I have attached the tar ball (foo_ust.tar.gz) for the log files. Please see the attachment.
My co-worker did same test on his side and sent an email for help to the mailing list:
http://lists.casi.polymtl.ca/pipermail/ltt-dev/2011-September/005135.html
In his email, there are some debug information done by him.
I am looking forward to get your further help! Thanks!
Regards,
Ji
-----Original Message-----
From: Alexandre Montplaisir [mailto:alexandre.montplaisir@polymtl.ca]
Sent: Tuesday, September 13, 2011 4:03 PM
To: Ji Zhai
Cc: ltt-dev at lists.casi.polymtl.ca
Subject: Re: [ltt-dev] no metadata tracefile
On 11-09-13 03:22 PM, Ji Zhai wrote:
> Hi Mathieu,
>
> Thanks for your reply!
> I have tried many combinations, for example, userspace-rcu-0.6.4 and
> ust-0.15, but still got the same kind of errors--no metadata trace
> tracefile.
> Any idea? Thanks again!
>
> Regards,
>
> Ji
Hi Ji Zhai,
Can you take a really small UST trace (a couple MB's) and upload it
somewhere?
Also make sure you are really using the latest versions (urcu 0.6.4, UST
0.15 and LTTV 0.12.38). Sometimes old versions are still in the PATH
even if new versions got installed afterwards. On most distros, stuff in
/usr/local has priority over stuff in /usr.
Cheers,
--
Alexandre Montplaisir
DORSAL lab,
?cole Polytechnique de Montr?al
Legal Disclaimer:
The information contained in this message may be privileged and confidential. It is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete or destroy any copy of this message
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo_ust.tar.gz
Type: application/x-gzip
Size: 1772 bytes
Desc: foo_ust.tar.gz
URL: <http://lists.casi.polymtl.ca/pipermail/lttng-dev/attachments/20110914/1d246b46/attachment-0002.bin>
^ permalink raw reply [flat|nested] 23+ messages in thread
* [ltt-dev] no metadata tracefile
2011-09-14 18:05 ` Ji Zhai
2011-09-14 18:05 ` Ji Zhai
@ 2011-09-15 13:31 ` Alexandre Montplaisir
2011-09-15 15:03 ` Ji Zhai
2011-09-15 16:21 ` Mathieu Desnoyers
[not found] ` <BLU0-SMTP10DC664C76B1F77D7B84BC96070@phx.gbl>
3 siblings, 1 reply; 23+ messages in thread
From: Alexandre Montplaisir @ 2011-09-15 13:31 UTC (permalink / raw)
Hi again,
On 11-09-14 02:05 PM, Ji Zhai wrote:
> 7. I used LTTV(0.12.36) to review the results:
>
> lttv -m textDump -t mcb00-main-aaillax-20110914130558687771830
>
> ** (process:20623): WARNING **: Trace /nas/jizhai/LTTng/mytrace/mcb00-main-aaillax-20110914130558687771830 has no metadata tracefile
>
> ** (process:20623): CRITICAL **: cannot open trace mcb00-main-aaillax-20110914130558687771830
> /home/jizhai/MyLocal/LTTng/bin/lttv: line 15: 20623 Segmentation fault $0.real $*
This happens if you don't pass the right directory to "lttv -t". You
have to give it the one containing the metadata_* and ust_* files directly.
However from your tarball, your metadata_0 and ust_0 files are in
different subdirectories. Is this what you obtained from a single
invocation of usttrace? If so then it means your different channels end
up in separate traces, and this is definitely not normal behavior.
If you put both ust_0 and metadata_0 files in the same directory, and
open that directory with LTTv, what do you get? I couldn't open it from
here, but I think it has to do with different endianness.
Cheers,
--
Alexandre Montplaisir
DORSAL lab,
?cole Polytechnique de Montr?al
^ permalink raw reply [flat|nested] 23+ messages in thread
* [ltt-dev] no metadata tracefile
2011-09-15 13:31 ` Alexandre Montplaisir
@ 2011-09-15 15:03 ` Ji Zhai
2011-09-15 16:21 ` Alexandre Montplaisir
0 siblings, 1 reply; 23+ messages in thread
From: Ji Zhai @ 2011-09-15 15:03 UTC (permalink / raw)
Hi Alexandre,
I got the metadata_0 and ust_0, which are in different directories, from a single invocation of usttrace. After copying metadata_0 and ust_0 into same directory, I used LTTV to open that directory and got the following error:
lttv -m textDump -t 9341_5652200832964231168
** ERROR **: Undescribed event 1 in channel ust
aborting...
/home/jizhai/MyLocal/LTTng/bin/lttv: line 15: 14715 Aborted $0.real $*
As you mentioned, if there is endian problem, how to solve it?
Thanks!
Regards,
Ji
-----Original Message-----
From: Alexandre Montplaisir [mailto:alexandre.montplaisir@polymtl.ca]
Sent: Thursday, September 15, 2011 9:32 AM
To: Ji Zhai
Cc: ltt-dev at lists.casi.polymtl.ca
Subject: Re: [ltt-dev] no metadata tracefile
Hi again,
On 11-09-14 02:05 PM, Ji Zhai wrote:
> 7. I used LTTV(0.12.36) to review the results:
>
> lttv -m textDump -t mcb00-main-aaillax-20110914130558687771830
>
> ** (process:20623): WARNING **: Trace /nas/jizhai/LTTng/mytrace/mcb00-main-aaillax-20110914130558687771830 has no metadata tracefile
>
> ** (process:20623): CRITICAL **: cannot open trace mcb00-main-aaillax-20110914130558687771830
> /home/jizhai/MyLocal/LTTng/bin/lttv: line 15: 20623 Segmentation fault $0.real $*
This happens if you don't pass the right directory to "lttv -t". You
have to give it the one containing the metadata_* and ust_* files directly.
However from your tarball, your metadata_0 and ust_0 files are in
different subdirectories. Is this what you obtained from a single
invocation of usttrace? If so then it means your different channels end
up in separate traces, and this is definitely not normal behavior.
If you put both ust_0 and metadata_0 files in the same directory, and
open that directory with LTTv, what do you get? I couldn't open it from
here, but I think it has to do with different endianness.
Cheers,
--
Alexandre Montplaisir
DORSAL lab,
?cole Polytechnique de Montr?al
Legal Disclaimer:
The information contained in this message may be privileged and confidential. It is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete or destroy any copy of this message
^ permalink raw reply [flat|nested] 23+ messages in thread
* [ltt-dev] no metadata tracefile
2011-09-14 18:05 ` Ji Zhai
2011-09-14 18:05 ` Ji Zhai
2011-09-15 13:31 ` Alexandre Montplaisir
@ 2011-09-15 16:21 ` Mathieu Desnoyers
[not found] ` <BLU0-SMTP10DC664C76B1F77D7B84BC96070@phx.gbl>
3 siblings, 0 replies; 23+ messages in thread
From: Mathieu Desnoyers @ 2011-09-15 16:21 UTC (permalink / raw)
* Ji Zhai (Ji.Zhai at ca.flextronics.com) wrote:
> Hi Alexandre,
>
> Thanks for your reply!
> According to your suggestions, I did the followings:
> 1. I cleaned all related libs in /usr/local/lib and /usr/lib
> 2. Built/installed userspace-rcu-0.6.4
> 3. Built/installed UST-0.15 with debug enable
> 4. gcc -o foo lust foo.c
>
> The foo.c are:
>
> #include <ust/marker.h>
>
> int main(int argc, char **argv)
> {
> int v;
> char *st;
>
> /* ... set values of v and st ... */
> v = 110;
> st = "hello, UST";
> /* a marker: */
> trace_mark(ust, myevent, "firstarg %d secondarg %s", v, st);
>
> /* a marker without arguments: */
> trace_mark(ust, myotherevent, MARK_NOARGS);
Add a sleep(5) here, it will work.
This is a fundamental design bug in UST 0.x that we are fixing in UST
2.0. Short-lived applications don't let enough time for the consumer to
hook on them, and there is no rendez-vous point anywhere. See the
following comment in UST 0.15 sources:
tests/runtests:
# FIXME We disable the exit-fast test for the release. This is a known
# problem with the current UST design that we will be working on fixing
# in the upcoming rework for integration with the lttng-tools. We don't
# want to flood testers with known issues, hence the choice to disable
# the test.
#simple_harness_run exit-fast/exit-fast.sh
Best regards,
Mathieu
>
> return 0;
> }
>
> 5. usttrace ./foo
> 6. I got the log files in /home/root/.usttraces.
> 7. I used LTTV(0.12.36) to review the results:
>
> lttv -m textDump -t mcb00-main-aaillax-20110914130558687771830
>
> ** (process:20623): WARNING **: Trace /nas/jizhai/LTTng/mytrace/mcb00-main-aaillax-20110914130558687771830 has no metadata tracefile
>
> ** (process:20623): CRITICAL **: cannot open trace mcb00-main-aaillax-20110914130558687771830
> /home/jizhai/MyLocal/LTTng/bin/lttv: line 15: 20623 Segmentation fault $0.real $*
>
> I have attached the tar ball (foo_ust.tar.gz) for the log files. Please see the attachment.
>
> My co-worker did same test on his side and sent an email for help to the mailing list:
>
> http://lists.casi.polymtl.ca/pipermail/ltt-dev/2011-September/005135.html
>
> In his email, there are some debug information done by him.
>
> I am looking forward to get your further help! Thanks!
>
> Regards,
>
> Ji
>
>
> -----Original Message-----
> From: Alexandre Montplaisir [mailto:alexandre.montplaisir@polymtl.ca]
> Sent: Tuesday, September 13, 2011 4:03 PM
> To: Ji Zhai
> Cc: ltt-dev at lists.casi.polymtl.ca
> Subject: Re: [ltt-dev] no metadata tracefile
>
> On 11-09-13 03:22 PM, Ji Zhai wrote:
> > Hi Mathieu,
> >
> > Thanks for your reply!
> > I have tried many combinations, for example, userspace-rcu-0.6.4 and
> > ust-0.15, but still got the same kind of errors--no metadata trace
> > tracefile.
> > Any idea? Thanks again!
> >
> > Regards,
> >
> > Ji
>
> Hi Ji Zhai,
>
> Can you take a really small UST trace (a couple MB's) and upload it
> somewhere?
>
> Also make sure you are really using the latest versions (urcu 0.6.4, UST
> 0.15 and LTTV 0.12.38). Sometimes old versions are still in the PATH
> even if new versions got installed afterwards. On most distros, stuff in
> /usr/local has priority over stuff in /usr.
>
>
> Cheers,
>
> --
> Alexandre Montplaisir
> DORSAL lab,
> ?cole Polytechnique de Montr?al
>
>
>
> Legal Disclaimer:
> The information contained in this message may be privileged and confidential. It is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete or destroy any copy of this message
>
> _______________________________________________
> 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] 23+ messages in thread
* [ltt-dev] no metadata tracefile
2011-09-15 15:03 ` Ji Zhai
@ 2011-09-15 16:21 ` Alexandre Montplaisir
0 siblings, 0 replies; 23+ messages in thread
From: Alexandre Montplaisir @ 2011-09-15 16:21 UTC (permalink / raw)
On 11-09-15 11:03 AM, Ji Zhai wrote:
> Hi Alexandre,
>
> I got the metadata_0 and ust_0, which are in different directories, from a single invocation of usttrace. After copying metadata_0 and ust_0 into same directory, I used LTTV to open that directory and got the following error:
>
> lttv -m textDump -t 9341_5652200832964231168
>
> ** ERROR **: Undescribed event 1 in channel ust
> aborting...
> /home/jizhai/MyLocal/LTTng/bin/lttv: line 15: 14715 Aborted $0.real $*
>
> As you mentioned, if there is endian problem, how to solve it?
> Thanks!
>
Are you able to compile LTTV on your target (you can use ./configure
--without-lttv-gui to compile without the GUI) and try to run it from
there? The trace reading library should be able to deal with
cross-endianness, but maybe you're hitting something else.
This is all I can think of at the moment. Anyone else has an idea?
The problem of different channels in different trace directories is
definitely a bug. All of the development effort is currently going
towards UST 2.0, which will offer much more robust session handling.
It'll definitely be worth retrying it with the new version.
Cheers,
--
Alexandre Montplaisir
DORSAL lab,
?cole Polytechnique de Montr?al
^ permalink raw reply [flat|nested] 23+ messages in thread
* [ltt-dev] no metadata tracefile
[not found] ` <BLU0-SMTP10DC664C76B1F77D7B84BC96070@phx.gbl>
@ 2011-09-15 19:27 ` Ji Zhai
2011-09-15 19:27 ` Ji Zhai
` (2 more replies)
0 siblings, 3 replies; 23+ messages in thread
From: Ji Zhai @ 2011-09-15 19:27 UTC (permalink / raw)
Hi Mathieu,
After adding that sleep(5) and even sleep(10), I got some different logs (checked by using hexdump). However, I still got the following error by using the LTTV:
** ERROR **: Undescribed event 1 in channel ust
Aborting...
Lttv: line 15: 26701 Aborted $0.real $*
I have attached the tarball of the usttrace output with debug information.
I am not sure the error came from UST or LTTV. Can you please take a look? Thanks!
Regards,
Ji
-----Original Message-----
From: pdumas9@sympatico.ca [mailto:pdumas9@sympatico.ca] On Behalf Of Mathieu Desnoyers
Sent: Thursday, September 15, 2011 12:21 PM
To: Ji Zhai
Cc: Alexandre Montplaisir; ltt-dev at lists.casi.polymtl.ca
Subject: Re: [ltt-dev] no metadata tracefile
* Ji Zhai (Ji.Zhai at ca.flextronics.com) wrote:
> Hi Alexandre,
>
> Thanks for your reply!
> According to your suggestions, I did the followings:
> 1. I cleaned all related libs in /usr/local/lib and /usr/lib
> 2. Built/installed userspace-rcu-0.6.4
> 3. Built/installed UST-0.15 with debug enable
> 4. gcc -o foo lust foo.c
>
> The foo.c are:
>
> #include <ust/marker.h>
>
> int main(int argc, char **argv)
> {
> int v;
> char *st;
>
> /* ... set values of v and st ... */
> v = 110;
> st = "hello, UST";
> /* a marker: */
> trace_mark(ust, myevent, "firstarg %d secondarg %s", v, st);
>
> /* a marker without arguments: */
> trace_mark(ust, myotherevent, MARK_NOARGS);
Add a sleep(5) here, it will work.
This is a fundamental design bug in UST 0.x that we are fixing in UST
2.0. Short-lived applications don't let enough time for the consumer to
hook on them, and there is no rendez-vous point anywhere. See the
following comment in UST 0.15 sources:
tests/runtests:
# FIXME We disable the exit-fast test for the release. This is a known
# problem with the current UST design that we will be working on fixing
# in the upcoming rework for integration with the lttng-tools. We don't
# want to flood testers with known issues, hence the choice to disable
# the test.
#simple_harness_run exit-fast/exit-fast.sh
Best regards,
Mathieu
>
> return 0;
> }
>
> 5. usttrace ./foo
> 6. I got the log files in /home/root/.usttraces.
> 7. I used LTTV(0.12.36) to review the results:
>
> lttv -m textDump -t mcb00-main-aaillax-20110914130558687771830
>
> ** (process:20623): WARNING **: Trace /nas/jizhai/LTTng/mytrace/mcb00-main-aaillax-20110914130558687771830 has no metadata tracefile
>
> ** (process:20623): CRITICAL **: cannot open trace mcb00-main-aaillax-20110914130558687771830
> /home/jizhai/MyLocal/LTTng/bin/lttv: line 15: 20623 Segmentation fault $0.real $*
>
> I have attached the tar ball (foo_ust.tar.gz) for the log files. Please see the attachment.
>
> My co-worker did same test on his side and sent an email for help to the mailing list:
>
> http://lists.casi.polymtl.ca/pipermail/ltt-dev/2011-September/005135.html
>
> In his email, there are some debug information done by him.
>
> I am looking forward to get your further help! Thanks!
>
> Regards,
>
> Ji
>
>
> -----Original Message-----
> From: Alexandre Montplaisir [mailto:alexandre.montplaisir@polymtl.ca]
> Sent: Tuesday, September 13, 2011 4:03 PM
> To: Ji Zhai
> Cc: ltt-dev at lists.casi.polymtl.ca
> Subject: Re: [ltt-dev] no metadata tracefile
>
> On 11-09-13 03:22 PM, Ji Zhai wrote:
> > Hi Mathieu,
> >
> > Thanks for your reply!
> > I have tried many combinations, for example, userspace-rcu-0.6.4 and
> > ust-0.15, but still got the same kind of errors--no metadata trace
> > tracefile.
> > Any idea? Thanks again!
> >
> > Regards,
> >
> > Ji
>
> Hi Ji Zhai,
>
> Can you take a really small UST trace (a couple MB's) and upload it
> somewhere?
>
> Also make sure you are really using the latest versions (urcu 0.6.4, UST
> 0.15 and LTTV 0.12.38). Sometimes old versions are still in the PATH
> even if new versions got installed afterwards. On most distros, stuff in
> /usr/local has priority over stuff in /usr.
>
>
> Cheers,
>
> --
> Alexandre Montplaisir
> DORSAL lab,
> ?cole Polytechnique de Montr?al
>
>
>
> Legal Disclaimer:
> The information contained in this message may be privileged and confidential. It is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete or destroy any copy of this message
>
> _______________________________________________
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ustLog.tar.gz
Type: application/x-gzip
Size: 1712 bytes
Desc: ustLog.tar.gz
URL: <http://lists.casi.polymtl.ca/pipermail/lttng-dev/attachments/20110915/39b8be16/attachment-0003.bin>
^ permalink raw reply [flat|nested] 23+ messages in thread
* [ltt-dev] no metadata tracefile
2011-09-15 19:27 ` Ji Zhai
@ 2011-09-15 19:27 ` Ji Zhai
2011-09-18 22:23 ` Mathieu Desnoyers
[not found] ` <BLU0-SMTP44E853CF05E12EB77650D196080@phx.gbl>
2 siblings, 0 replies; 23+ messages in thread
From: Ji Zhai @ 2011-09-15 19:27 UTC (permalink / raw)
Hi Mathieu,
After adding that sleep(5) and even sleep(10), I got some different logs (checked by using hexdump). However, I still got the following error by using the LTTV:
** ERROR **: Undescribed event 1 in channel ust
Aborting...
Lttv: line 15: 26701 Aborted $0.real $*
I have attached the tarball of the usttrace output with debug information.
I am not sure the error came from UST or LTTV. Can you please take a look? Thanks!
Regards,
Ji
-----Original Message-----
From: pdumas9@sympatico.ca [mailto:pdumas9@sympatico.ca] On Behalf Of Mathieu Desnoyers
Sent: Thursday, September 15, 2011 12:21 PM
To: Ji Zhai
Cc: Alexandre Montplaisir; ltt-dev at lists.casi.polymtl.ca
Subject: Re: [ltt-dev] no metadata tracefile
* Ji Zhai (Ji.Zhai at ca.flextronics.com) wrote:
> Hi Alexandre,
>
> Thanks for your reply!
> According to your suggestions, I did the followings:
> 1. I cleaned all related libs in /usr/local/lib and /usr/lib
> 2. Built/installed userspace-rcu-0.6.4
> 3. Built/installed UST-0.15 with debug enable
> 4. gcc -o foo lust foo.c
>
> The foo.c are:
>
> #include <ust/marker.h>
>
> int main(int argc, char **argv)
> {
> int v;
> char *st;
>
> /* ... set values of v and st ... */
> v = 110;
> st = "hello, UST";
> /* a marker: */
> trace_mark(ust, myevent, "firstarg %d secondarg %s", v, st);
>
> /* a marker without arguments: */
> trace_mark(ust, myotherevent, MARK_NOARGS);
Add a sleep(5) here, it will work.
This is a fundamental design bug in UST 0.x that we are fixing in UST
2.0. Short-lived applications don't let enough time for the consumer to
hook on them, and there is no rendez-vous point anywhere. See the
following comment in UST 0.15 sources:
tests/runtests:
# FIXME We disable the exit-fast test for the release. This is a known
# problem with the current UST design that we will be working on fixing
# in the upcoming rework for integration with the lttng-tools. We don't
# want to flood testers with known issues, hence the choice to disable
# the test.
#simple_harness_run exit-fast/exit-fast.sh
Best regards,
Mathieu
>
> return 0;
> }
>
> 5. usttrace ./foo
> 6. I got the log files in /home/root/.usttraces.
> 7. I used LTTV(0.12.36) to review the results:
>
> lttv -m textDump -t mcb00-main-aaillax-20110914130558687771830
>
> ** (process:20623): WARNING **: Trace /nas/jizhai/LTTng/mytrace/mcb00-main-aaillax-20110914130558687771830 has no metadata tracefile
>
> ** (process:20623): CRITICAL **: cannot open trace mcb00-main-aaillax-20110914130558687771830
> /home/jizhai/MyLocal/LTTng/bin/lttv: line 15: 20623 Segmentation fault $0.real $*
>
> I have attached the tar ball (foo_ust.tar.gz) for the log files. Please see the attachment.
>
> My co-worker did same test on his side and sent an email for help to the mailing list:
>
> http://lists.casi.polymtl.ca/pipermail/ltt-dev/2011-September/005135.html
>
> In his email, there are some debug information done by him.
>
> I am looking forward to get your further help! Thanks!
>
> Regards,
>
> Ji
>
>
> -----Original Message-----
> From: Alexandre Montplaisir [mailto:alexandre.montplaisir@polymtl.ca]
> Sent: Tuesday, September 13, 2011 4:03 PM
> To: Ji Zhai
> Cc: ltt-dev at lists.casi.polymtl.ca
> Subject: Re: [ltt-dev] no metadata tracefile
>
> On 11-09-13 03:22 PM, Ji Zhai wrote:
> > Hi Mathieu,
> >
> > Thanks for your reply!
> > I have tried many combinations, for example, userspace-rcu-0.6.4 and
> > ust-0.15, but still got the same kind of errors--no metadata trace
> > tracefile.
> > Any idea? Thanks again!
> >
> > Regards,
> >
> > Ji
>
> Hi Ji Zhai,
>
> Can you take a really small UST trace (a couple MB's) and upload it
> somewhere?
>
> Also make sure you are really using the latest versions (urcu 0.6.4, UST
> 0.15 and LTTV 0.12.38). Sometimes old versions are still in the PATH
> even if new versions got installed afterwards. On most distros, stuff in
> /usr/local has priority over stuff in /usr.
>
>
> Cheers,
>
> --
> Alexandre Montplaisir
> DORSAL lab,
> ?cole Polytechnique de Montr?al
>
>
>
> Legal Disclaimer:
> The information contained in this message may be privileged and confidential. It is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete or destroy any copy of this message
>
> _______________________________________________
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ustLog.tar.gz
Type: application/x-gzip
Size: 1712 bytes
Desc: ustLog.tar.gz
URL: <http://lists.casi.polymtl.ca/pipermail/lttng-dev/attachments/20110915/39b8be16/attachment-0002.bin>
^ permalink raw reply [flat|nested] 23+ messages in thread
* [ltt-dev] no metadata tracefile
2011-09-15 19:27 ` Ji Zhai
2011-09-15 19:27 ` Ji Zhai
@ 2011-09-18 22:23 ` Mathieu Desnoyers
[not found] ` <BLU0-SMTP44E853CF05E12EB77650D196080@phx.gbl>
2 siblings, 0 replies; 23+ messages in thread
From: Mathieu Desnoyers @ 2011-09-18 22:23 UTC (permalink / raw)
* Ji Zhai (Ji.Zhai at ca.flextronics.com) wrote:
> Hi Mathieu,
>
> After adding that sleep(5) and even sleep(10), I got some different logs (checked by using hexdump). However, I still got the following error by using the LTTV:
>
> ** ERROR **: Undescribed event 1 in channel ust
> Aborting...
> Lttv: line 15: 26701 Aborted $0.real $*
>
> I have attached the tarball of the usttrace output with debug information.
> I am not sure the error came from UST or LTTV. Can you please take a look? Thanks!
Hi Zhai,
The metadata file in the trace you sent is unpopulated. What I mean by
this is that the file exists, a 4kB buffer with appropriate header is
there, but the metadata that describes the mapping between the markers
and their ID/format is missing. This therefore points to a linker
problem that causes marker.c to be unable to list the markers present in
the application. UST 0.x does require that you link your application
with libust-initializer.o in addition to libust. How did you build/link
your applications ? And what versions of compiler/linker do you use ?
Thanks,
Mathieu
>
> Regards,
>
> Ji
> -----Original Message-----
> From: pdumas9@sympatico.ca [mailto:pdumas9@sympatico.ca] On Behalf Of Mathieu Desnoyers
> Sent: Thursday, September 15, 2011 12:21 PM
> To: Ji Zhai
> Cc: Alexandre Montplaisir; ltt-dev at lists.casi.polymtl.ca
> Subject: Re: [ltt-dev] no metadata tracefile
>
> * Ji Zhai (Ji.Zhai at ca.flextronics.com) wrote:
> > Hi Alexandre,
> >
> > Thanks for your reply!
> > According to your suggestions, I did the followings:
> > 1. I cleaned all related libs in /usr/local/lib and /usr/lib
> > 2. Built/installed userspace-rcu-0.6.4
> > 3. Built/installed UST-0.15 with debug enable
> > 4. gcc -o foo lust foo.c
> >
> > The foo.c are:
> >
> > #include <ust/marker.h>
> >
> > int main(int argc, char **argv)
> > {
> > int v;
> > char *st;
> >
> > /* ... set values of v and st ... */
> > v = 110;
> > st = "hello, UST";
> > /* a marker: */
> > trace_mark(ust, myevent, "firstarg %d secondarg %s", v, st);
> >
> > /* a marker without arguments: */
> > trace_mark(ust, myotherevent, MARK_NOARGS);
>
> Add a sleep(5) here, it will work.
>
> This is a fundamental design bug in UST 0.x that we are fixing in UST
> 2.0. Short-lived applications don't let enough time for the consumer to
> hook on them, and there is no rendez-vous point anywhere. See the
> following comment in UST 0.15 sources:
>
> tests/runtests:
>
> # FIXME We disable the exit-fast test for the release. This is a known
> # problem with the current UST design that we will be working on fixing
> # in the upcoming rework for integration with the lttng-tools. We don't
> # want to flood testers with known issues, hence the choice to disable
> # the test.
> #simple_harness_run exit-fast/exit-fast.sh
>
> Best regards,
>
> Mathieu
>
> >
> > return 0;
> > }
> >
> > 5. usttrace ./foo
> > 6. I got the log files in /home/root/.usttraces.
> > 7. I used LTTV(0.12.36) to review the results:
> >
> > lttv -m textDump -t mcb00-main-aaillax-20110914130558687771830
> >
> > ** (process:20623): WARNING **: Trace /nas/jizhai/LTTng/mytrace/mcb00-main-aaillax-20110914130558687771830 has no metadata tracefile
> >
> > ** (process:20623): CRITICAL **: cannot open trace mcb00-main-aaillax-20110914130558687771830
> > /home/jizhai/MyLocal/LTTng/bin/lttv: line 15: 20623 Segmentation fault $0.real $*
> >
> > I have attached the tar ball (foo_ust.tar.gz) for the log files. Please see the attachment.
> >
> > My co-worker did same test on his side and sent an email for help to the mailing list:
> >
> > http://lists.casi.polymtl.ca/pipermail/ltt-dev/2011-September/005135.html
> >
> > In his email, there are some debug information done by him.
> >
> > I am looking forward to get your further help! Thanks!
> >
> > Regards,
> >
> > Ji
> >
> >
> > -----Original Message-----
> > From: Alexandre Montplaisir [mailto:alexandre.montplaisir@polymtl.ca]
> > Sent: Tuesday, September 13, 2011 4:03 PM
> > To: Ji Zhai
> > Cc: ltt-dev at lists.casi.polymtl.ca
> > Subject: Re: [ltt-dev] no metadata tracefile
> >
> > On 11-09-13 03:22 PM, Ji Zhai wrote:
> > > Hi Mathieu,
> > >
> > > Thanks for your reply!
> > > I have tried many combinations, for example, userspace-rcu-0.6.4 and
> > > ust-0.15, but still got the same kind of errors--no metadata trace
> > > tracefile.
> > > Any idea? Thanks again!
> > >
> > > Regards,
> > >
> > > Ji
> >
> > Hi Ji Zhai,
> >
> > Can you take a really small UST trace (a couple MB's) and upload it
> > somewhere?
> >
> > Also make sure you are really using the latest versions (urcu 0.6.4, UST
> > 0.15 and LTTV 0.12.38). Sometimes old versions are still in the PATH
> > even if new versions got installed afterwards. On most distros, stuff in
> > /usr/local has priority over stuff in /usr.
> >
> >
> > Cheers,
> >
> > --
> > Alexandre Montplaisir
> > DORSAL lab,
> > ?cole Polytechnique de Montr?al
> >
> >
> >
> > Legal Disclaimer:
> > The information contained in this message may be privileged and confidential. It is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete or destroy any copy of this message
> >
>
>
> > _______________________________________________
> > 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
--
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com
^ permalink raw reply [flat|nested] 23+ messages in thread
* [ltt-dev] no metadata tracefile
[not found] ` <BLU0-SMTP44E853CF05E12EB77650D196080@phx.gbl>
@ 2011-09-19 14:12 ` Ji Zhai
2011-09-19 15:02 ` Mathieu Desnoyers
[not found] ` <BLU0-SMTP423756B62AF3BC179695E8960B0@phx.gbl>
0 siblings, 2 replies; 23+ messages in thread
From: Ji Zhai @ 2011-09-19 14:12 UTC (permalink / raw)
Hi Mathieu,
Thanks for your help!
I use the following way to build my application:
gcc -o foo -lust foo.c
Compiler/linker information:
gcc version 4.2.4
GNU ld (Linux/GNU Binutils) 2.18.50.0.7.20080502
ld.so.1 (GLIBC_2.3)
glibc-extra-nss - 2.6.1-r35.0.1
glibc-utils - 2.6.1-r35.0.1
Linux kernel: 2.6.31.12
I used
CFLAGS="-m32 -g -O2" ./configure
make
make install
ldconfig
to force 32-bit build of userspace-rcu-0.6.4 and ust-0.15.
Thanks!
Ji
-----Original Message-----
From: pdumas9@sympatico.ca [mailto:pdumas9@sympatico.ca] On Behalf Of Mathieu Desnoyers
Sent: Sunday, September 18, 2011 6:23 PM
To: Ji Zhai
Cc: Alexandre Montplaisir; ltt-dev at lists.casi.polymtl.ca
Subject: Re: [ltt-dev] no metadata tracefile
* Ji Zhai (Ji.Zhai at ca.flextronics.com) wrote:
> Hi Mathieu,
>
> After adding that sleep(5) and even sleep(10), I got some different logs (checked by using hexdump). However, I still got the following error by using the LTTV:
>
> ** ERROR **: Undescribed event 1 in channel ust
> Aborting...
> Lttv: line 15: 26701 Aborted $0.real $*
>
> I have attached the tarball of the usttrace output with debug information.
> I am not sure the error came from UST or LTTV. Can you please take a look? Thanks!
Hi Zhai,
The metadata file in the trace you sent is unpopulated. What I mean by
this is that the file exists, a 4kB buffer with appropriate header is
there, but the metadata that describes the mapping between the markers
and their ID/format is missing. This therefore points to a linker
problem that causes marker.c to be unable to list the markers present in
the application. UST 0.x does require that you link your application
with libust-initializer.o in addition to libust. How did you build/link
your applications ? And what versions of compiler/linker do you use ?
Thanks,
Mathieu
>
> Regards,
>
> Ji
> -----Original Message-----
> From: pdumas9@sympatico.ca [mailto:pdumas9@sympatico.ca] On Behalf Of Mathieu Desnoyers
> Sent: Thursday, September 15, 2011 12:21 PM
> To: Ji Zhai
> Cc: Alexandre Montplaisir; ltt-dev at lists.casi.polymtl.ca
> Subject: Re: [ltt-dev] no metadata tracefile
>
> * Ji Zhai (Ji.Zhai at ca.flextronics.com) wrote:
> > Hi Alexandre,
> >
> > Thanks for your reply!
> > According to your suggestions, I did the followings:
> > 1. I cleaned all related libs in /usr/local/lib and /usr/lib
> > 2. Built/installed userspace-rcu-0.6.4
> > 3. Built/installed UST-0.15 with debug enable
> > 4. gcc -o foo lust foo.c
> >
> > The foo.c are:
> >
> > #include <ust/marker.h>
> >
> > int main(int argc, char **argv)
> > {
> > int v;
> > char *st;
> >
> > /* ... set values of v and st ... */
> > v = 110;
> > st = "hello, UST";
> > /* a marker: */
> > trace_mark(ust, myevent, "firstarg %d secondarg %s", v, st);
> >
> > /* a marker without arguments: */
> > trace_mark(ust, myotherevent, MARK_NOARGS);
>
> Add a sleep(5) here, it will work.
>
> This is a fundamental design bug in UST 0.x that we are fixing in UST
> 2.0. Short-lived applications don't let enough time for the consumer to
> hook on them, and there is no rendez-vous point anywhere. See the
> following comment in UST 0.15 sources:
>
> tests/runtests:
>
> # FIXME We disable the exit-fast test for the release. This is a known
> # problem with the current UST design that we will be working on fixing
> # in the upcoming rework for integration with the lttng-tools. We don't
> # want to flood testers with known issues, hence the choice to disable
> # the test.
> #simple_harness_run exit-fast/exit-fast.sh
>
> Best regards,
>
> Mathieu
>
> >
> > return 0;
> > }
> >
> > 5. usttrace ./foo
> > 6. I got the log files in /home/root/.usttraces.
> > 7. I used LTTV(0.12.36) to review the results:
> >
> > lttv -m textDump -t mcb00-main-aaillax-20110914130558687771830
> >
> > ** (process:20623): WARNING **: Trace /nas/jizhai/LTTng/mytrace/mcb00-main-aaillax-20110914130558687771830 has no metadata tracefile
> >
> > ** (process:20623): CRITICAL **: cannot open trace mcb00-main-aaillax-20110914130558687771830
> > /home/jizhai/MyLocal/LTTng/bin/lttv: line 15: 20623 Segmentation fault $0.real $*
> >
> > I have attached the tar ball (foo_ust.tar.gz) for the log files. Please see the attachment.
> >
> > My co-worker did same test on his side and sent an email for help to the mailing list:
> >
> > http://lists.casi.polymtl.ca/pipermail/ltt-dev/2011-September/005135.html
> >
> > In his email, there are some debug information done by him.
> >
> > I am looking forward to get your further help! Thanks!
> >
> > Regards,
> >
> > Ji
> >
> >
> > -----Original Message-----
> > From: Alexandre Montplaisir [mailto:alexandre.montplaisir@polymtl.ca]
> > Sent: Tuesday, September 13, 2011 4:03 PM
> > To: Ji Zhai
> > Cc: ltt-dev at lists.casi.polymtl.ca
> > Subject: Re: [ltt-dev] no metadata tracefile
> >
> > On 11-09-13 03:22 PM, Ji Zhai wrote:
> > > Hi Mathieu,
> > >
> > > Thanks for your reply!
> > > I have tried many combinations, for example, userspace-rcu-0.6.4 and
> > > ust-0.15, but still got the same kind of errors--no metadata trace
> > > tracefile.
> > > Any idea? Thanks again!
> > >
> > > Regards,
> > >
> > > Ji
> >
> > Hi Ji Zhai,
> >
> > Can you take a really small UST trace (a couple MB's) and upload it
> > somewhere?
> >
> > Also make sure you are really using the latest versions (urcu 0.6.4, UST
> > 0.15 and LTTV 0.12.38). Sometimes old versions are still in the PATH
> > even if new versions got installed afterwards. On most distros, stuff in
> > /usr/local has priority over stuff in /usr.
> >
> >
> > Cheers,
> >
> > --
> > Alexandre Montplaisir
> > DORSAL lab,
> > ?cole Polytechnique de Montr?al
> >
> >
> >
> > Legal Disclaimer:
> > The information contained in this message may be privileged and confidential. It is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete or destroy any copy of this message
> >
>
>
> > _______________________________________________
> > 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
--
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com
^ permalink raw reply [flat|nested] 23+ messages in thread
* [ltt-dev] no metadata tracefile
2011-09-19 14:12 ` Ji Zhai
@ 2011-09-19 15:02 ` Mathieu Desnoyers
[not found] ` <BLU0-SMTP423756B62AF3BC179695E8960B0@phx.gbl>
1 sibling, 0 replies; 23+ messages in thread
From: Mathieu Desnoyers @ 2011-09-19 15:02 UTC (permalink / raw)
* Ji Zhai (Ji.Zhai at ca.flextronics.com) wrote:
> Hi Mathieu,
>
> Thanks for your help!
> I use the following way to build my application:
> gcc -o foo -lust foo.c
OK. if you run
ldd foo
Where does it find its libust ?
Can you check the content of the libust .so file ? It is supposed to be
a linker script rather than a .so per se. Can you give us the result of
"file" and the first lines of the text output of this file ?
I suspect the build might have installed the .so binary object directly
without taking into account that it must do this linker trickery.
By the way, these hacks are going away in UST 2.0.
Thanks,
Mathieu
>
> Compiler/linker information:
> gcc version 4.2.4
> GNU ld (Linux/GNU Binutils) 2.18.50.0.7.20080502
> ld.so.1 (GLIBC_2.3)
> glibc-extra-nss - 2.6.1-r35.0.1
> glibc-utils - 2.6.1-r35.0.1
>
> Linux kernel: 2.6.31.12
>
> I used
> CFLAGS="-m32 -g -O2" ./configure
> make
> make install
> ldconfig
> to force 32-bit build of userspace-rcu-0.6.4 and ust-0.15.
>
> Thanks!
>
> Ji
>
> -----Original Message-----
> From: pdumas9@sympatico.ca [mailto:pdumas9@sympatico.ca] On Behalf Of Mathieu Desnoyers
> Sent: Sunday, September 18, 2011 6:23 PM
> To: Ji Zhai
> Cc: Alexandre Montplaisir; ltt-dev at lists.casi.polymtl.ca
> Subject: Re: [ltt-dev] no metadata tracefile
>
> * Ji Zhai (Ji.Zhai at ca.flextronics.com) wrote:
> > Hi Mathieu,
> >
> > After adding that sleep(5) and even sleep(10), I got some different logs (checked by using hexdump). However, I still got the following error by using the LTTV:
> >
> > ** ERROR **: Undescribed event 1 in channel ust
> > Aborting...
> > Lttv: line 15: 26701 Aborted $0.real $*
> >
> > I have attached the tarball of the usttrace output with debug information.
> > I am not sure the error came from UST or LTTV. Can you please take a look? Thanks!
>
> Hi Zhai,
>
> The metadata file in the trace you sent is unpopulated. What I mean by
> this is that the file exists, a 4kB buffer with appropriate header is
> there, but the metadata that describes the mapping between the markers
> and their ID/format is missing. This therefore points to a linker
> problem that causes marker.c to be unable to list the markers present in
> the application. UST 0.x does require that you link your application
> with libust-initializer.o in addition to libust. How did you build/link
> your applications ? And what versions of compiler/linker do you use ?
>
> Thanks,
>
> Mathieu
>
>
> >
> > Regards,
> >
> > Ji
> > -----Original Message-----
> > From: pdumas9@sympatico.ca [mailto:pdumas9@sympatico.ca] On Behalf Of Mathieu Desnoyers
> > Sent: Thursday, September 15, 2011 12:21 PM
> > To: Ji Zhai
> > Cc: Alexandre Montplaisir; ltt-dev at lists.casi.polymtl.ca
> > Subject: Re: [ltt-dev] no metadata tracefile
> >
> > * Ji Zhai (Ji.Zhai at ca.flextronics.com) wrote:
> > > Hi Alexandre,
> > >
> > > Thanks for your reply!
> > > According to your suggestions, I did the followings:
> > > 1. I cleaned all related libs in /usr/local/lib and /usr/lib
> > > 2. Built/installed userspace-rcu-0.6.4
> > > 3. Built/installed UST-0.15 with debug enable
> > > 4. gcc -o foo lust foo.c
> > >
> > > The foo.c are:
> > >
> > > #include <ust/marker.h>
> > >
> > > int main(int argc, char **argv)
> > > {
> > > int v;
> > > char *st;
> > >
> > > /* ... set values of v and st ... */
> > > v = 110;
> > > st = "hello, UST";
> > > /* a marker: */
> > > trace_mark(ust, myevent, "firstarg %d secondarg %s", v, st);
> > >
> > > /* a marker without arguments: */
> > > trace_mark(ust, myotherevent, MARK_NOARGS);
> >
> > Add a sleep(5) here, it will work.
> >
> > This is a fundamental design bug in UST 0.x that we are fixing in UST
> > 2.0. Short-lived applications don't let enough time for the consumer to
> > hook on them, and there is no rendez-vous point anywhere. See the
> > following comment in UST 0.15 sources:
> >
> > tests/runtests:
> >
> > # FIXME We disable the exit-fast test for the release. This is a known
> > # problem with the current UST design that we will be working on fixing
> > # in the upcoming rework for integration with the lttng-tools. We don't
> > # want to flood testers with known issues, hence the choice to disable
> > # the test.
> > #simple_harness_run exit-fast/exit-fast.sh
> >
> > Best regards,
> >
> > Mathieu
> >
> > >
> > > return 0;
> > > }
> > >
> > > 5. usttrace ./foo
> > > 6. I got the log files in /home/root/.usttraces.
> > > 7. I used LTTV(0.12.36) to review the results:
> > >
> > > lttv -m textDump -t mcb00-main-aaillax-20110914130558687771830
> > >
> > > ** (process:20623): WARNING **: Trace /nas/jizhai/LTTng/mytrace/mcb00-main-aaillax-20110914130558687771830 has no metadata tracefile
> > >
> > > ** (process:20623): CRITICAL **: cannot open trace mcb00-main-aaillax-20110914130558687771830
> > > /home/jizhai/MyLocal/LTTng/bin/lttv: line 15: 20623 Segmentation fault $0.real $*
> > >
> > > I have attached the tar ball (foo_ust.tar.gz) for the log files. Please see the attachment.
> > >
> > > My co-worker did same test on his side and sent an email for help to the mailing list:
> > >
> > > http://lists.casi.polymtl.ca/pipermail/ltt-dev/2011-September/005135.html
> > >
> > > In his email, there are some debug information done by him.
> > >
> > > I am looking forward to get your further help! Thanks!
> > >
> > > Regards,
> > >
> > > Ji
> > >
> > >
> > > -----Original Message-----
> > > From: Alexandre Montplaisir [mailto:alexandre.montplaisir@polymtl.ca]
> > > Sent: Tuesday, September 13, 2011 4:03 PM
> > > To: Ji Zhai
> > > Cc: ltt-dev at lists.casi.polymtl.ca
> > > Subject: Re: [ltt-dev] no metadata tracefile
> > >
> > > On 11-09-13 03:22 PM, Ji Zhai wrote:
> > > > Hi Mathieu,
> > > >
> > > > Thanks for your reply!
> > > > I have tried many combinations, for example, userspace-rcu-0.6.4 and
> > > > ust-0.15, but still got the same kind of errors--no metadata trace
> > > > tracefile.
> > > > Any idea? Thanks again!
> > > >
> > > > Regards,
> > > >
> > > > Ji
> > >
> > > Hi Ji Zhai,
> > >
> > > Can you take a really small UST trace (a couple MB's) and upload it
> > > somewhere?
> > >
> > > Also make sure you are really using the latest versions (urcu 0.6.4, UST
> > > 0.15 and LTTV 0.12.38). Sometimes old versions are still in the PATH
> > > even if new versions got installed afterwards. On most distros, stuff in
> > > /usr/local has priority over stuff in /usr.
> > >
> > >
> > > Cheers,
> > >
> > > --
> > > Alexandre Montplaisir
> > > DORSAL lab,
> > > ?cole Polytechnique de Montr?al
> > >
> > >
> > >
> > > Legal Disclaimer:
> > > The information contained in this message may be privileged and confidential. It is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete or destroy any copy of this message
> > >
> >
> >
> > > _______________________________________________
> > > 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
>
>
>
> --
> Mathieu Desnoyers
> Operating System Efficiency R&D Consultant
> EfficiOS Inc.
> http://www.efficios.com
>
--
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com
^ permalink raw reply [flat|nested] 23+ messages in thread
* [ltt-dev] no metadata tracefile
[not found] ` <BLU0-SMTP423756B62AF3BC179695E8960B0@phx.gbl>
@ 2011-09-19 15:18 ` Ji Zhai
2011-09-22 13:25 ` Ji Zhai
0 siblings, 1 reply; 23+ messages in thread
From: Ji Zhai @ 2011-09-19 15:18 UTC (permalink / raw)
Hi Mathieu,
The results for ldd foo:
root at mcb00-main-aaillax:/home/mvpapp/LTTng# ldd foo
linux-vdso32.so.1 => (0x00100000)
libust.so.0 => /usr/local/lib/libust.so.0 (0x0ff9a000)
libc.so.6 => /lib/libc.so.6 (0x0fe34000)
libpthread.so.0 => /lib/libpthread.so.0 (0x0fdfc000)
librt.so.1 => /lib/librt.so.1 (0x0fdd4000)
liburcu-bp.so.1 => /usr/local/lib/liburcu-bp.so.1 (0x0fdae000)
/lib/ld.so.1 (0x48000000)
liburcu-cds.so.1 => /usr/local/lib/liburcu-cds.so.1 (0x0fd8b000)
The libust is in /usr/local/lib
Yes, libust.so is a linker script:
root at mcb00-main-aaillax:/usr/local/lib# file libust.so
libust.so: ASCII C program text
root at mcb00-main-aaillax:/usr/local/lib# cat libust.so
/* GNU ld script
Use the shared library, but the link with initializer too */
OUTPUT_FORMAT(elf32-powerpc)
GROUP ( libust.so.0 libust-initializer.o )
Thanks!
Ji
-----Original Message-----
From: pdumas9@sympatico.ca [mailto:pdumas9@sympatico.ca] On Behalf Of Mathieu Desnoyers
Sent: Monday, September 19, 2011 11:02 AM
To: Ji Zhai
Cc: Alexandre Montplaisir; ltt-dev at lists.casi.polymtl.ca
Subject: Re: [ltt-dev] no metadata tracefile
* Ji Zhai (Ji.Zhai at ca.flextronics.com) wrote:
> Hi Mathieu,
>
> Thanks for your help!
> I use the following way to build my application:
> gcc -o foo -lust foo.c
OK. if you run
ldd foo
Where does it find its libust ?
Can you check the content of the libust .so file ? It is supposed to be
a linker script rather than a .so per se. Can you give us the result of
"file" and the first lines of the text output of this file ?
I suspect the build might have installed the .so binary object directly
without taking into account that it must do this linker trickery.
By the way, these hacks are going away in UST 2.0.
Thanks,
Mathieu
>
> Compiler/linker information:
> gcc version 4.2.4
> GNU ld (Linux/GNU Binutils) 2.18.50.0.7.20080502
> ld.so.1 (GLIBC_2.3)
> glibc-extra-nss - 2.6.1-r35.0.1
> glibc-utils - 2.6.1-r35.0.1
>
> Linux kernel: 2.6.31.12
>
> I used
> CFLAGS="-m32 -g -O2" ./configure
> make
> make install
> ldconfig
> to force 32-bit build of userspace-rcu-0.6.4 and ust-0.15.
>
> Thanks!
>
> Ji
>
> -----Original Message-----
> From: pdumas9@sympatico.ca [mailto:pdumas9@sympatico.ca] On Behalf Of Mathieu Desnoyers
> Sent: Sunday, September 18, 2011 6:23 PM
> To: Ji Zhai
> Cc: Alexandre Montplaisir; ltt-dev at lists.casi.polymtl.ca
> Subject: Re: [ltt-dev] no metadata tracefile
>
> * Ji Zhai (Ji.Zhai at ca.flextronics.com) wrote:
> > Hi Mathieu,
> >
> > After adding that sleep(5) and even sleep(10), I got some different logs (checked by using hexdump). However, I still got the following error by using the LTTV:
> >
> > ** ERROR **: Undescribed event 1 in channel ust
> > Aborting...
> > Lttv: line 15: 26701 Aborted $0.real $*
> >
> > I have attached the tarball of the usttrace output with debug information.
> > I am not sure the error came from UST or LTTV. Can you please take a look? Thanks!
>
> Hi Zhai,
>
> The metadata file in the trace you sent is unpopulated. What I mean by
> this is that the file exists, a 4kB buffer with appropriate header is
> there, but the metadata that describes the mapping between the markers
> and their ID/format is missing. This therefore points to a linker
> problem that causes marker.c to be unable to list the markers present in
> the application. UST 0.x does require that you link your application
> with libust-initializer.o in addition to libust. How did you build/link
> your applications ? And what versions of compiler/linker do you use ?
>
> Thanks,
>
> Mathieu
>
>
> >
> > Regards,
> >
> > Ji
> > -----Original Message-----
> > From: pdumas9@sympatico.ca [mailto:pdumas9@sympatico.ca] On Behalf Of Mathieu Desnoyers
> > Sent: Thursday, September 15, 2011 12:21 PM
> > To: Ji Zhai
> > Cc: Alexandre Montplaisir; ltt-dev at lists.casi.polymtl.ca
> > Subject: Re: [ltt-dev] no metadata tracefile
> >
> > * Ji Zhai (Ji.Zhai at ca.flextronics.com) wrote:
> > > Hi Alexandre,
> > >
> > > Thanks for your reply!
> > > According to your suggestions, I did the followings:
> > > 1. I cleaned all related libs in /usr/local/lib and /usr/lib
> > > 2. Built/installed userspace-rcu-0.6.4
> > > 3. Built/installed UST-0.15 with debug enable
> > > 4. gcc -o foo lust foo.c
> > >
> > > The foo.c are:
> > >
> > > #include <ust/marker.h>
> > >
> > > int main(int argc, char **argv)
> > > {
> > > int v;
> > > char *st;
> > >
> > > /* ... set values of v and st ... */
> > > v = 110;
> > > st = "hello, UST";
> > > /* a marker: */
> > > trace_mark(ust, myevent, "firstarg %d secondarg %s", v, st);
> > >
> > > /* a marker without arguments: */
> > > trace_mark(ust, myotherevent, MARK_NOARGS);
> >
> > Add a sleep(5) here, it will work.
> >
> > This is a fundamental design bug in UST 0.x that we are fixing in UST
> > 2.0. Short-lived applications don't let enough time for the consumer to
> > hook on them, and there is no rendez-vous point anywhere. See the
> > following comment in UST 0.15 sources:
> >
> > tests/runtests:
> >
> > # FIXME We disable the exit-fast test for the release. This is a known
> > # problem with the current UST design that we will be working on fixing
> > # in the upcoming rework for integration with the lttng-tools. We don't
> > # want to flood testers with known issues, hence the choice to disable
> > # the test.
> > #simple_harness_run exit-fast/exit-fast.sh
> >
> > Best regards,
> >
> > Mathieu
> >
> > >
> > > return 0;
> > > }
> > >
> > > 5. usttrace ./foo
> > > 6. I got the log files in /home/root/.usttraces.
> > > 7. I used LTTV(0.12.36) to review the results:
> > >
> > > lttv -m textDump -t mcb00-main-aaillax-20110914130558687771830
> > >
> > > ** (process:20623): WARNING **: Trace /nas/jizhai/LTTng/mytrace/mcb00-main-aaillax-20110914130558687771830 has no metadata tracefile
> > >
> > > ** (process:20623): CRITICAL **: cannot open trace mcb00-main-aaillax-20110914130558687771830
> > > /home/jizhai/MyLocal/LTTng/bin/lttv: line 15: 20623 Segmentation fault $0.real $*
> > >
> > > I have attached the tar ball (foo_ust.tar.gz) for the log files. Please see the attachment.
> > >
> > > My co-worker did same test on his side and sent an email for help to the mailing list:
> > >
> > > http://lists.casi.polymtl.ca/pipermail/ltt-dev/2011-September/005135.html
> > >
> > > In his email, there are some debug information done by him.
> > >
> > > I am looking forward to get your further help! Thanks!
> > >
> > > Regards,
> > >
> > > Ji
> > >
> > >
> > > -----Original Message-----
> > > From: Alexandre Montplaisir [mailto:alexandre.montplaisir@polymtl.ca]
> > > Sent: Tuesday, September 13, 2011 4:03 PM
> > > To: Ji Zhai
> > > Cc: ltt-dev at lists.casi.polymtl.ca
> > > Subject: Re: [ltt-dev] no metadata tracefile
> > >
> > > On 11-09-13 03:22 PM, Ji Zhai wrote:
> > > > Hi Mathieu,
> > > >
> > > > Thanks for your reply!
> > > > I have tried many combinations, for example, userspace-rcu-0.6.4 and
> > > > ust-0.15, but still got the same kind of errors--no metadata trace
> > > > tracefile.
> > > > Any idea? Thanks again!
> > > >
> > > > Regards,
> > > >
> > > > Ji
> > >
> > > Hi Ji Zhai,
> > >
> > > Can you take a really small UST trace (a couple MB's) and upload it
> > > somewhere?
> > >
> > > Also make sure you are really using the latest versions (urcu 0.6.4, UST
> > > 0.15 and LTTV 0.12.38). Sometimes old versions are still in the PATH
> > > even if new versions got installed afterwards. On most distros, stuff in
> > > /usr/local has priority over stuff in /usr.
> > >
> > >
> > > Cheers,
> > >
> > > --
> > > Alexandre Montplaisir
> > > DORSAL lab,
> > > ?cole Polytechnique de Montr?al
> > >
> > >
> > >
> > > Legal Disclaimer:
> > > The information contained in this message may be privileged and confidential. It is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete or destroy any copy of this message
> > >
> >
> >
> > > _______________________________________________
> > > 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
>
>
>
> --
> Mathieu Desnoyers
> Operating System Efficiency R&D Consultant
> EfficiOS Inc.
> http://www.efficios.com
>
--
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com
^ permalink raw reply [flat|nested] 23+ messages in thread
* [ltt-dev] no metadata tracefile
2011-09-19 15:18 ` Ji Zhai
@ 2011-09-22 13:25 ` Ji Zhai
2011-09-22 13:36 ` Mathieu Desnoyers
0 siblings, 1 reply; 23+ messages in thread
From: Ji Zhai @ 2011-09-22 13:25 UTC (permalink / raw)
Hi Mathieu,
I'd like to know if you have had time to review my question. If possible, can you please give me a guide/direction to debug this issure?
For UST-0.15, the epoll must be enabled?
Where I can get UST 2.0 to try?
Thanks!
Regards,
Ji
-----Original Message-----
From: Ji Zhai [mailto:Ji.Zhai@ca.flextronics.com]
Sent: Monday, September 19, 2011 11:19 AM
To: Mathieu Desnoyers
Cc: ltt-dev at lists.casi.polymtl.ca
Subject: Re: [ltt-dev] no metadata tracefile
Hi Mathieu,
The results for ldd foo:
root at mcb00-main-aaillax:/home/mvpapp/LTTng# ldd foo
linux-vdso32.so.1 => (0x00100000)
libust.so.0 => /usr/local/lib/libust.so.0 (0x0ff9a000)
libc.so.6 => /lib/libc.so.6 (0x0fe34000)
libpthread.so.0 => /lib/libpthread.so.0 (0x0fdfc000)
librt.so.1 => /lib/librt.so.1 (0x0fdd4000)
liburcu-bp.so.1 => /usr/local/lib/liburcu-bp.so.1 (0x0fdae000)
/lib/ld.so.1 (0x48000000)
liburcu-cds.so.1 => /usr/local/lib/liburcu-cds.so.1 (0x0fd8b000)
The libust is in /usr/local/lib
Yes, libust.so is a linker script:
root at mcb00-main-aaillax:/usr/local/lib# file libust.so
libust.so: ASCII C program text
root at mcb00-main-aaillax:/usr/local/lib# cat libust.so
/* GNU ld script
Use the shared library, but the link with initializer too */
OUTPUT_FORMAT(elf32-powerpc)
GROUP ( libust.so.0 libust-initializer.o )
Thanks!
Ji
-----Original Message-----
From: pdumas9@sympatico.ca [mailto:pdumas9@sympatico.ca] On Behalf Of Mathieu Desnoyers
Sent: Monday, September 19, 2011 11:02 AM
To: Ji Zhai
Cc: Alexandre Montplaisir; ltt-dev at lists.casi.polymtl.ca
Subject: Re: [ltt-dev] no metadata tracefile
* Ji Zhai (Ji.Zhai at ca.flextronics.com) wrote:
> Hi Mathieu,
>
> Thanks for your help!
> I use the following way to build my application:
> gcc -o foo -lust foo.c
OK. if you run
ldd foo
Where does it find its libust ?
Can you check the content of the libust .so file ? It is supposed to be
a linker script rather than a .so per se. Can you give us the result of
"file" and the first lines of the text output of this file ?
I suspect the build might have installed the .so binary object directly
without taking into account that it must do this linker trickery.
By the way, these hacks are going away in UST 2.0.
Thanks,
Mathieu
>
> Compiler/linker information:
> gcc version 4.2.4
> GNU ld (Linux/GNU Binutils) 2.18.50.0.7.20080502
> ld.so.1 (GLIBC_2.3)
> glibc-extra-nss - 2.6.1-r35.0.1
> glibc-utils - 2.6.1-r35.0.1
>
> Linux kernel: 2.6.31.12
>
> I used
> CFLAGS="-m32 -g -O2" ./configure
> make
> make install
> ldconfig
> to force 32-bit build of userspace-rcu-0.6.4 and ust-0.15.
>
> Thanks!
>
> Ji
>
> -----Original Message-----
> From: pdumas9@sympatico.ca [mailto:pdumas9@sympatico.ca] On Behalf Of Mathieu Desnoyers
> Sent: Sunday, September 18, 2011 6:23 PM
> To: Ji Zhai
> Cc: Alexandre Montplaisir; ltt-dev at lists.casi.polymtl.ca
> Subject: Re: [ltt-dev] no metadata tracefile
>
> * Ji Zhai (Ji.Zhai at ca.flextronics.com) wrote:
> > Hi Mathieu,
> >
> > After adding that sleep(5) and even sleep(10), I got some different logs (checked by using hexdump). However, I still got the following error by using the LTTV:
> >
> > ** ERROR **: Undescribed event 1 in channel ust
> > Aborting...
> > Lttv: line 15: 26701 Aborted $0.real $*
> >
> > I have attached the tarball of the usttrace output with debug information.
> > I am not sure the error came from UST or LTTV. Can you please take a look? Thanks!
>
> Hi Zhai,
>
> The metadata file in the trace you sent is unpopulated. What I mean by
> this is that the file exists, a 4kB buffer with appropriate header is
> there, but the metadata that describes the mapping between the markers
> and their ID/format is missing. This therefore points to a linker
> problem that causes marker.c to be unable to list the markers present in
> the application. UST 0.x does require that you link your application
> with libust-initializer.o in addition to libust. How did you build/link
> your applications ? And what versions of compiler/linker do you use ?
>
> Thanks,
>
> Mathieu
>
>
> >
> > Regards,
> >
> > Ji
> > -----Original Message-----
> > From: pdumas9@sympatico.ca [mailto:pdumas9@sympatico.ca] On Behalf Of Mathieu Desnoyers
> > Sent: Thursday, September 15, 2011 12:21 PM
> > To: Ji Zhai
> > Cc: Alexandre Montplaisir; ltt-dev at lists.casi.polymtl.ca
> > Subject: Re: [ltt-dev] no metadata tracefile
> >
> > * Ji Zhai (Ji.Zhai at ca.flextronics.com) wrote:
> > > Hi Alexandre,
> > >
> > > Thanks for your reply!
> > > According to your suggestions, I did the followings:
> > > 1. I cleaned all related libs in /usr/local/lib and /usr/lib
> > > 2. Built/installed userspace-rcu-0.6.4
> > > 3. Built/installed UST-0.15 with debug enable
> > > 4. gcc -o foo lust foo.c
> > >
> > > The foo.c are:
> > >
> > > #include <ust/marker.h>
> > >
> > > int main(int argc, char **argv)
> > > {
> > > int v;
> > > char *st;
> > >
> > > /* ... set values of v and st ... */
> > > v = 110;
> > > st = "hello, UST";
> > > /* a marker: */
> > > trace_mark(ust, myevent, "firstarg %d secondarg %s", v, st);
> > >
> > > /* a marker without arguments: */
> > > trace_mark(ust, myotherevent, MARK_NOARGS);
> >
> > Add a sleep(5) here, it will work.
> >
> > This is a fundamental design bug in UST 0.x that we are fixing in UST
> > 2.0. Short-lived applications don't let enough time for the consumer to
> > hook on them, and there is no rendez-vous point anywhere. See the
> > following comment in UST 0.15 sources:
> >
> > tests/runtests:
> >
> > # FIXME We disable the exit-fast test for the release. This is a known
> > # problem with the current UST design that we will be working on fixing
> > # in the upcoming rework for integration with the lttng-tools. We don't
> > # want to flood testers with known issues, hence the choice to disable
> > # the test.
> > #simple_harness_run exit-fast/exit-fast.sh
> >
> > Best regards,
> >
> > Mathieu
> >
> > >
> > > return 0;
> > > }
> > >
> > > 5. usttrace ./foo
> > > 6. I got the log files in /home/root/.usttraces.
> > > 7. I used LTTV(0.12.36) to review the results:
> > >
> > > lttv -m textDump -t mcb00-main-aaillax-20110914130558687771830
> > >
> > > ** (process:20623): WARNING **: Trace /nas/jizhai/LTTng/mytrace/mcb00-main-aaillax-20110914130558687771830 has no metadata tracefile
> > >
> > > ** (process:20623): CRITICAL **: cannot open trace mcb00-main-aaillax-20110914130558687771830
> > > /home/jizhai/MyLocal/LTTng/bin/lttv: line 15: 20623 Segmentation fault $0.real $*
> > >
> > > I have attached the tar ball (foo_ust.tar.gz) for the log files. Please see the attachment.
> > >
> > > My co-worker did same test on his side and sent an email for help to the mailing list:
> > >
> > > http://lists.casi.polymtl.ca/pipermail/ltt-dev/2011-September/005135.html
> > >
> > > In his email, there are some debug information done by him.
> > >
> > > I am looking forward to get your further help! Thanks!
> > >
> > > Regards,
> > >
> > > Ji
> > >
> > >
> > > -----Original Message-----
> > > From: Alexandre Montplaisir [mailto:alexandre.montplaisir@polymtl.ca]
> > > Sent: Tuesday, September 13, 2011 4:03 PM
> > > To: Ji Zhai
> > > Cc: ltt-dev at lists.casi.polymtl.ca
> > > Subject: Re: [ltt-dev] no metadata tracefile
> > >
> > > On 11-09-13 03:22 PM, Ji Zhai wrote:
> > > > Hi Mathieu,
> > > >
> > > > Thanks for your reply!
> > > > I have tried many combinations, for example, userspace-rcu-0.6.4 and
> > > > ust-0.15, but still got the same kind of errors--no metadata trace
> > > > tracefile.
> > > > Any idea? Thanks again!
> > > >
> > > > Regards,
> > > >
> > > > Ji
> > >
> > > Hi Ji Zhai,
> > >
> > > Can you take a really small UST trace (a couple MB's) and upload it
> > > somewhere?
> > >
> > > Also make sure you are really using the latest versions (urcu 0.6.4, UST
> > > 0.15 and LTTV 0.12.38). Sometimes old versions are still in the PATH
> > > even if new versions got installed afterwards. On most distros, stuff in
> > > /usr/local has priority over stuff in /usr.
> > >
> > >
> > > Cheers,
> > >
> > > --
> > > Alexandre Montplaisir
> > > DORSAL lab,
> > > ?cole Polytechnique de Montr?al
> > >
> > >
> > >
> > > Legal Disclaimer:
> > > The information contained in this message may be privileged and confidential. It is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete or destroy any copy of this message
> > >
> >
> >
> > > _______________________________________________
> > > 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
>
>
>
> --
> Mathieu Desnoyers
> Operating System Efficiency R&D Consultant
> EfficiOS Inc.
> http://www.efficios.com
>
--
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com
_______________________________________________
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] 23+ messages in thread
* [ltt-dev] no metadata tracefile
2011-09-22 13:25 ` Ji Zhai
@ 2011-09-22 13:36 ` Mathieu Desnoyers
2011-09-22 13:57 ` Alex Luccisano (luccisa)
0 siblings, 1 reply; 23+ messages in thread
From: Mathieu Desnoyers @ 2011-09-22 13:36 UTC (permalink / raw)
* Ji Zhai (Ji.Zhai at ca.flextronics.com) wrote:
> Hi Mathieu,
>
> I'd like to know if you have had time to review my question. If
> possible, can you please give me a guide/direction to debug this
> issure?
Hi Ji,
Sorry, I am pretty busy on UST 2.0 these days.
About your question you might want to try adding "printf" statements
within marker.c in UST, and also try compiling UST with -DUST_DEBUG=1 so
enable debugging output. I fear there is a linker issue on your system,
but unfortunately I don't have access to your setup.
Try comparing the outputs of a simple test program in your powerpc
target setup, in a native host x86 setup, and in a native host x86_64
setup. This way you should be able to identify what is missing.
Best regards,
Mathieu
>
> For UST-0.15, the epoll must be enabled?
>
> Where I can get UST 2.0 to try?
>
> Thanks!
>
> Regards,
>
> Ji
>
> -----Original Message-----
> From: Ji Zhai [mailto:Ji.Zhai@ca.flextronics.com]
> Sent: Monday, September 19, 2011 11:19 AM
> To: Mathieu Desnoyers
> Cc: ltt-dev at lists.casi.polymtl.ca
> Subject: Re: [ltt-dev] no metadata tracefile
>
> Hi Mathieu,
>
> The results for ldd foo:
> root at mcb00-main-aaillax:/home/mvpapp/LTTng# ldd foo
> linux-vdso32.so.1 => (0x00100000)
> libust.so.0 => /usr/local/lib/libust.so.0 (0x0ff9a000)
> libc.so.6 => /lib/libc.so.6 (0x0fe34000)
> libpthread.so.0 => /lib/libpthread.so.0 (0x0fdfc000)
> librt.so.1 => /lib/librt.so.1 (0x0fdd4000)
> liburcu-bp.so.1 => /usr/local/lib/liburcu-bp.so.1 (0x0fdae000)
> /lib/ld.so.1 (0x48000000)
> liburcu-cds.so.1 => /usr/local/lib/liburcu-cds.so.1 (0x0fd8b000)
>
> The libust is in /usr/local/lib
>
> Yes, libust.so is a linker script:
>
> root at mcb00-main-aaillax:/usr/local/lib# file libust.so
> libust.so: ASCII C program text
>
> root at mcb00-main-aaillax:/usr/local/lib# cat libust.so
> /* GNU ld script
> Use the shared library, but the link with initializer too */
> OUTPUT_FORMAT(elf32-powerpc)
> GROUP ( libust.so.0 libust-initializer.o )
>
> Thanks!
>
> Ji
>
> -----Original Message-----
> From: pdumas9@sympatico.ca [mailto:pdumas9@sympatico.ca] On Behalf Of Mathieu Desnoyers
> Sent: Monday, September 19, 2011 11:02 AM
> To: Ji Zhai
> Cc: Alexandre Montplaisir; ltt-dev at lists.casi.polymtl.ca
> Subject: Re: [ltt-dev] no metadata tracefile
>
> * Ji Zhai (Ji.Zhai at ca.flextronics.com) wrote:
> > Hi Mathieu,
> >
> > Thanks for your help!
> > I use the following way to build my application:
> > gcc -o foo -lust foo.c
>
> OK. if you run
>
> ldd foo
>
> Where does it find its libust ?
>
> Can you check the content of the libust .so file ? It is supposed to be
> a linker script rather than a .so per se. Can you give us the result of
> "file" and the first lines of the text output of this file ?
>
> I suspect the build might have installed the .so binary object directly
> without taking into account that it must do this linker trickery.
>
> By the way, these hacks are going away in UST 2.0.
>
> Thanks,
>
> Mathieu
>
> >
> > Compiler/linker information:
> > gcc version 4.2.4
> > GNU ld (Linux/GNU Binutils) 2.18.50.0.7.20080502
> > ld.so.1 (GLIBC_2.3)
> > glibc-extra-nss - 2.6.1-r35.0.1
> > glibc-utils - 2.6.1-r35.0.1
> >
> > Linux kernel: 2.6.31.12
> >
> > I used
> > CFLAGS="-m32 -g -O2" ./configure
> > make
> > make install
> > ldconfig
> > to force 32-bit build of userspace-rcu-0.6.4 and ust-0.15.
> >
> > Thanks!
> >
> > Ji
> >
> > -----Original Message-----
> > From: pdumas9@sympatico.ca [mailto:pdumas9@sympatico.ca] On Behalf Of Mathieu Desnoyers
> > Sent: Sunday, September 18, 2011 6:23 PM
> > To: Ji Zhai
> > Cc: Alexandre Montplaisir; ltt-dev at lists.casi.polymtl.ca
> > Subject: Re: [ltt-dev] no metadata tracefile
> >
> > * Ji Zhai (Ji.Zhai at ca.flextronics.com) wrote:
> > > Hi Mathieu,
> > >
> > > After adding that sleep(5) and even sleep(10), I got some different logs (checked by using hexdump). However, I still got the following error by using the LTTV:
> > >
> > > ** ERROR **: Undescribed event 1 in channel ust
> > > Aborting...
> > > Lttv: line 15: 26701 Aborted $0.real $*
> > >
> > > I have attached the tarball of the usttrace output with debug information.
> > > I am not sure the error came from UST or LTTV. Can you please take a look? Thanks!
> >
> > Hi Zhai,
> >
> > The metadata file in the trace you sent is unpopulated. What I mean by
> > this is that the file exists, a 4kB buffer with appropriate header is
> > there, but the metadata that describes the mapping between the markers
> > and their ID/format is missing. This therefore points to a linker
> > problem that causes marker.c to be unable to list the markers present in
> > the application. UST 0.x does require that you link your application
> > with libust-initializer.o in addition to libust. How did you build/link
> > your applications ? And what versions of compiler/linker do you use ?
> >
> > Thanks,
> >
> > Mathieu
> >
> >
> > >
> > > Regards,
> > >
> > > Ji
> > > -----Original Message-----
> > > From: pdumas9@sympatico.ca [mailto:pdumas9@sympatico.ca] On Behalf Of Mathieu Desnoyers
> > > Sent: Thursday, September 15, 2011 12:21 PM
> > > To: Ji Zhai
> > > Cc: Alexandre Montplaisir; ltt-dev at lists.casi.polymtl.ca
> > > Subject: Re: [ltt-dev] no metadata tracefile
> > >
> > > * Ji Zhai (Ji.Zhai at ca.flextronics.com) wrote:
> > > > Hi Alexandre,
> > > >
> > > > Thanks for your reply!
> > > > According to your suggestions, I did the followings:
> > > > 1. I cleaned all related libs in /usr/local/lib and /usr/lib
> > > > 2. Built/installed userspace-rcu-0.6.4
> > > > 3. Built/installed UST-0.15 with debug enable
> > > > 4. gcc -o foo lust foo.c
> > > >
> > > > The foo.c are:
> > > >
> > > > #include <ust/marker.h>
> > > >
> > > > int main(int argc, char **argv)
> > > > {
> > > > int v;
> > > > char *st;
> > > >
> > > > /* ... set values of v and st ... */
> > > > v = 110;
> > > > st = "hello, UST";
> > > > /* a marker: */
> > > > trace_mark(ust, myevent, "firstarg %d secondarg %s", v, st);
> > > >
> > > > /* a marker without arguments: */
> > > > trace_mark(ust, myotherevent, MARK_NOARGS);
> > >
> > > Add a sleep(5) here, it will work.
> > >
> > > This is a fundamental design bug in UST 0.x that we are fixing in UST
> > > 2.0. Short-lived applications don't let enough time for the consumer to
> > > hook on them, and there is no rendez-vous point anywhere. See the
> > > following comment in UST 0.15 sources:
> > >
> > > tests/runtests:
> > >
> > > # FIXME We disable the exit-fast test for the release. This is a known
> > > # problem with the current UST design that we will be working on fixing
> > > # in the upcoming rework for integration with the lttng-tools. We don't
> > > # want to flood testers with known issues, hence the choice to disable
> > > # the test.
> > > #simple_harness_run exit-fast/exit-fast.sh
> > >
> > > Best regards,
> > >
> > > Mathieu
> > >
> > > >
> > > > return 0;
> > > > }
> > > >
> > > > 5. usttrace ./foo
> > > > 6. I got the log files in /home/root/.usttraces.
> > > > 7. I used LTTV(0.12.36) to review the results:
> > > >
> > > > lttv -m textDump -t mcb00-main-aaillax-20110914130558687771830
> > > >
> > > > ** (process:20623): WARNING **: Trace /nas/jizhai/LTTng/mytrace/mcb00-main-aaillax-20110914130558687771830 has no metadata tracefile
> > > >
> > > > ** (process:20623): CRITICAL **: cannot open trace mcb00-main-aaillax-20110914130558687771830
> > > > /home/jizhai/MyLocal/LTTng/bin/lttv: line 15: 20623 Segmentation fault $0.real $*
> > > >
> > > > I have attached the tar ball (foo_ust.tar.gz) for the log files. Please see the attachment.
> > > >
> > > > My co-worker did same test on his side and sent an email for help to the mailing list:
> > > >
> > > > http://lists.casi.polymtl.ca/pipermail/ltt-dev/2011-September/005135.html
> > > >
> > > > In his email, there are some debug information done by him.
> > > >
> > > > I am looking forward to get your further help! Thanks!
> > > >
> > > > Regards,
> > > >
> > > > Ji
> > > >
> > > >
> > > > -----Original Message-----
> > > > From: Alexandre Montplaisir [mailto:alexandre.montplaisir@polymtl.ca]
> > > > Sent: Tuesday, September 13, 2011 4:03 PM
> > > > To: Ji Zhai
> > > > Cc: ltt-dev at lists.casi.polymtl.ca
> > > > Subject: Re: [ltt-dev] no metadata tracefile
> > > >
> > > > On 11-09-13 03:22 PM, Ji Zhai wrote:
> > > > > Hi Mathieu,
> > > > >
> > > > > Thanks for your reply!
> > > > > I have tried many combinations, for example, userspace-rcu-0.6.4 and
> > > > > ust-0.15, but still got the same kind of errors--no metadata trace
> > > > > tracefile.
> > > > > Any idea? Thanks again!
> > > > >
> > > > > Regards,
> > > > >
> > > > > Ji
> > > >
> > > > Hi Ji Zhai,
> > > >
> > > > Can you take a really small UST trace (a couple MB's) and upload it
> > > > somewhere?
> > > >
> > > > Also make sure you are really using the latest versions (urcu 0.6.4, UST
> > > > 0.15 and LTTV 0.12.38). Sometimes old versions are still in the PATH
> > > > even if new versions got installed afterwards. On most distros, stuff in
> > > > /usr/local has priority over stuff in /usr.
> > > >
> > > >
> > > > Cheers,
> > > >
> > > > --
> > > > Alexandre Montplaisir
> > > > DORSAL lab,
> > > > ?cole Polytechnique de Montr?al
> > > >
> > > >
> > > >
> > > > Legal Disclaimer:
> > > > The information contained in this message may be privileged and confidential. It is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete or destroy any copy of this message
> > > >
> > >
> > >
> > > > _______________________________________________
> > > > 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
> >
> >
> >
> > --
> > Mathieu Desnoyers
> > Operating System Efficiency R&D Consultant
> > EfficiOS Inc.
> > http://www.efficios.com
> >
>
> --
> Mathieu Desnoyers
> Operating System Efficiency R&D Consultant
> EfficiOS Inc.
> http://www.efficios.com
>
> _______________________________________________
> 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] 23+ messages in thread
* [ltt-dev] no metadata tracefile
2011-09-22 13:36 ` Mathieu Desnoyers
@ 2011-09-22 13:57 ` Alex Luccisano (luccisa)
2011-09-22 15:12 ` Mathieu Desnoyers
0 siblings, 1 reply; 23+ messages in thread
From: Alex Luccisano (luccisa) @ 2011-09-22 13:57 UTC (permalink / raw)
Hi Mathieu,
> -----Original Message-----
> From: Mathieu Desnoyers [mailto:compudj@krystal.dyndns.org]
> Sent: Thursday, September 22, 2011 09:36
> To: Ji Zhai
> Cc: ltt-dev at lists.casi.polymtl.ca
> Subject: Re: [ltt-dev] no metadata tracefile
>
> * Ji Zhai (Ji.Zhai at ca.flextronics.com) wrote:
> > Hi Mathieu,
> >
> > I'd like to know if you have had time to review my question. If
> > possible, can you please give me a guide/direction to debug this
> > issure?
>
> Hi Ji,
>
> Sorry, I am pretty busy on UST 2.0 these days.
>
> About your question you might want to try adding "printf" statements
> within marker.c in UST, and also try compiling UST with -DUST_DEBUG=1
so
> enable debugging output. I fear there is a linker issue on your
system,
> but unfortunately I don't have access to your setup.
>
> Try comparing the outputs of a simple test program in your powerpc
> target setup, in a native host x86 setup, and in a native host x86_64
> setup. This way you should be able to identify what is missing.
[AL:] I've been helping with this effort and what you describe above is
exactly what I did here:
http://lists.casi.polymtl.ca/pipermail/ltt-dev/2011-September/005135.htm
l
There seems to be some problem with __start__ust_marker_ptrs. How
should this be linked with the "foo" binary?
Regards,
Alex
>
> Best regards,
>
> Mathieu
^ permalink raw reply [flat|nested] 23+ messages in thread
* [ltt-dev] no metadata tracefile
2011-09-22 13:57 ` Alex Luccisano (luccisa)
@ 2011-09-22 15:12 ` Mathieu Desnoyers
0 siblings, 0 replies; 23+ messages in thread
From: Mathieu Desnoyers @ 2011-09-22 15:12 UTC (permalink / raw)
* Alex Luccisano (luccisa) (luccisa at cisco.com) wrote:
> Hi Mathieu,
>
> > -----Original Message-----
> > From: Mathieu Desnoyers [mailto:compudj@krystal.dyndns.org]
> > Sent: Thursday, September 22, 2011 09:36
> > To: Ji Zhai
> > Cc: ltt-dev at lists.casi.polymtl.ca
> > Subject: Re: [ltt-dev] no metadata tracefile
> >
> > * Ji Zhai (Ji.Zhai at ca.flextronics.com) wrote:
> > > Hi Mathieu,
> > >
> > > I'd like to know if you have had time to review my question. If
> > > possible, can you please give me a guide/direction to debug this
> > > issure?
> >
> > Hi Ji,
> >
> > Sorry, I am pretty busy on UST 2.0 these days.
> >
> > About your question you might want to try adding "printf" statements
> > within marker.c in UST, and also try compiling UST with -DUST_DEBUG=1
> so
> > enable debugging output. I fear there is a linker issue on your
> system,
> > but unfortunately I don't have access to your setup.
> >
> > Try comparing the outputs of a simple test program in your powerpc
> > target setup, in a native host x86 setup, and in a native host x86_64
> > setup. This way you should be able to identify what is missing.
>
> [AL:] I've been helping with this effort and what you describe above is
> exactly what I did here:
>
> http://lists.casi.polymtl.ca/pipermail/ltt-dev/2011-September/005135.htm
> l
>
> There seems to be some problem with __start__ust_marker_ptrs. How
> should this be linked with the "foo" binary?
In UST 0.x, linking libust-initializer.o with the executable is supposed
to take care of this. It uses the __start/__stop automatic linker
symbols for this.
Some info on this here:
http://www.airs.com/blog/archives/56
It would be interesting to find out why on powerpc this linking does not
seem to be done. Printing the values of those symbols in a constructor
might help understanding what is going on there. Maybe try removing
__attribute__((visibility("hidden"))) from the extern declarations at
the top of marker.c ? Also try adding:
UST_MARKER_LIB;
to your application C file (and don't link with libust-initializer.o
this time) to see if this helps.
Please note that this whole libust-initializer.o scheme is going away
for ust 2.0.
Thanks,
Mathieu
>
> Regards,
> Alex
>
> >
> > Best regards,
> >
> > Mathieu
>
--
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com
^ permalink raw reply [flat|nested] 23+ messages in thread
* [ltt-dev] no metadata tracefile
@ 2011-08-31 19:23 Ji Zhai
0 siblings, 0 replies; 23+ messages in thread
From: Ji Zhai @ 2011-08-31 19:23 UTC (permalink / raw)
Hi All,
As the restriction of the hardware and development environment, I am
trying to use UST as the following combination:
1. PowerPC 44x platform
2. Linux kernel 2.6.31.12
3. LTTng v0.170
4. userspace RCU 0.4.6
5. UST 0.6
6. LTTV 0.12.20
I can get the kernel traces and use LTTV 0.12.20 to review them.
However, when I use the sample code from the "Section 3 Quick Start" of
UST manual,
#include <ust/marker.h>
int main(int argc <http://en.wikipedia.org/wiki/Main_function> ,
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;
}
I got the errors by using LTTV 0.12.20:
** (process:18957): WARNING **: Unsupported trace version : 2.6
** (process:18957): WARNING **: parse_trace_header error
** (process:18957): WARNING **: Unsupported trace version : 2.6
** (process:18957): WARNING **: parse_trace_header error
** (process:18957): WARNING **: Trace
/nas/LTTng/mytrace/24407_5647013710766707006 has no metadata tracefile
** (process:18957): CRITICAL **: cannot open trace .
/usr/local/bin/lttv: line 15: 18957 Segmentation fault $0.real $*
From the mailing list, some guys said to use LTTV 0.12.30 or higher may
solve this problem.
After run LTTV 0.12.32, I got:
** ERROR **: Undescribed event 0 in channel ust
aborting...
/home/LTTng/bin/lttv: line 15: 19600 Aborted $0.real $*
So, I doubt that I may miss some key steps to configure the kernel for
powerpc. The "UST" does not create the trace for me.
I'd like to get your suggestions. Thanks in advance!
Regards,
Ji
Legal Disclaimer:
The information contained in this message may be privileged and confidential. It is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete or destroy any copy of this message
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.casi.polymtl.ca/pipermail/lttng-dev/attachments/20110831/0d6383bb/attachment-0003.htm>
^ permalink raw reply [flat|nested] 23+ messages in thread
end of thread, other threads:[~2011-09-22 15:12 UTC | newest]
Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-31 20:47 [ltt-dev] no metadata tracefile Ji Zhai
2011-09-13 18:47 ` Ji Zhai
2011-09-13 18:47 ` Ji Zhai
2011-09-13 18:57 ` Mathieu Desnoyers
[not found] ` <BLU0-SMTP70493DBB789A80AE9E466A96050@phx.gbl>
2011-09-13 19:22 ` Ji Zhai
2011-09-13 20:03 ` Alexandre Montplaisir
2011-09-14 18:05 ` Ji Zhai
2011-09-14 18:05 ` Ji Zhai
2011-09-15 13:31 ` Alexandre Montplaisir
2011-09-15 15:03 ` Ji Zhai
2011-09-15 16:21 ` Alexandre Montplaisir
2011-09-15 16:21 ` Mathieu Desnoyers
[not found] ` <BLU0-SMTP10DC664C76B1F77D7B84BC96070@phx.gbl>
2011-09-15 19:27 ` Ji Zhai
2011-09-15 19:27 ` Ji Zhai
2011-09-18 22:23 ` Mathieu Desnoyers
[not found] ` <BLU0-SMTP44E853CF05E12EB77650D196080@phx.gbl>
2011-09-19 14:12 ` Ji Zhai
2011-09-19 15:02 ` Mathieu Desnoyers
[not found] ` <BLU0-SMTP423756B62AF3BC179695E8960B0@phx.gbl>
2011-09-19 15:18 ` Ji Zhai
2011-09-22 13:25 ` Ji Zhai
2011-09-22 13:36 ` Mathieu Desnoyers
2011-09-22 13:57 ` Alex Luccisano (luccisa)
2011-09-22 15:12 ` Mathieu Desnoyers
-- strict thread matches above, loose matches on Subject: below --
2011-08-31 19:23 Ji Zhai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox