Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
From: Ji.Zhai@ca.flextronics.com (Ji Zhai)
Subject: [ltt-dev] no metadata tracefile
Date: Thu, 15 Sep 2011 12:27:53 -0700	[thread overview]
Message-ID: <BC65C03AE25C1D4596B4AD414367C10F04C0EFE8@AMSACEX2.americas.ad.flextronics.com> (raw)
In-Reply-To: <BLU0-SMTP10DC664C76B1F77D7B84BC96070@phx.gbl>

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>


WARNING: multiple messages have this Message-ID
From: Ji.Zhai@ca.flextronics.com (Ji Zhai)
Subject: [ltt-dev] no metadata tracefile
Date: Thu, 15 Sep 2011 12:27:53 -0700	[thread overview]
Message-ID: <BC65C03AE25C1D4596B4AD414367C10F04C0EFE8@AMSACEX2.americas.ad.flextronics.com> (raw)
Message-ID: <20110915192753.dgnDQGFG4OPQRCsPeU323AGHqQ21IkJY_NQdWQbbDls@z> (raw)
In-Reply-To: <BLU0-SMTP10DC664C76B1F77D7B84BC96070@phx.gbl>

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>


  parent reply	other threads:[~2011-09-15 19:27 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-31 20:47 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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BC65C03AE25C1D4596B4AD414367C10F04C0EFE8@AMSACEX2.americas.ad.flextronics.com \
    --to=ji.zhai@ca.flextronics.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox