Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
From: david.goulet@polymtl.ca (David Goulet)
Subject: [ltt-dev] No trace data inside the trace folders
Date: Tue, 15 Feb 2011 15:19:19 -0500	[thread overview]
Message-ID: <4D5ADFC7.7080408@polymtl.ca> (raw)
In-Reply-To: <135603.92097.qm@web113114.mail.gq1.yahoo.com>

Hi Srivatsan,

If usttrace give you no trace directory it's because their was no data 
recorded by the tracer. It's like tracing an application that does not 
contain UST instrumentation. For example :

$ usttrace ls

will output only app.log and ust-consumerd.log and no data.

However, I saw that you are using a very simple test case :

#include <ust/marker.h>
int main(int argc, char **argv)
{
trace_mark(main,myevent,"%d", getpid());
}

This should actually work fine with the latest UST release (0.11). 
However, using the channel "main" will not produce data for you. At this 
point, only the channel "ust" is supported.

If you still don't get the directory containing data, maybe try the 
latest git head of UST.

Thanks!
David


On 11-02-15 03:06 PM, Srivatsan Vijayaraghavan wrote:
> I am very sorry to have misled all of you. I used the ellipsis to mean
> some path name and my host name and date string are indeed fine. It's
> really the trace folder which is missing even when I specify it
> explicitly using the -o option, it stops after creating app.log and
> ust-consumerd.log, there is no trace folder inside my trace directory.
>
> pwd - /usr/local/bin
> usttrace -o /usr/local/bin/traceapp ./testust
> - Waiting for ust-consumerd to shutdown...
> - Trace was output in /usr/local/bin/traceapp
>
> Then i went to inspect the trace output only to find app.log and
> ust-consumerd.log inside /usr/local/bin/traceapp.
>
> ls /usr/local/bin/traceap showed me only app.log and ust-consumerd.log
>
> Thanks,
> Srivatsan V
>
> --- On *Tue, 2/15/11, Mathieu Desnoyers /<compudj at krystal.dyndns.org>/*
> wrote:
>
>
>     From: Mathieu Desnoyers <compudj@krystal.dyndns.org>
>     Subject: Re: [ltt-dev] No trace data inside the trace folders
>     To: "Srivatsan Vijayaraghavan" <srivatsanvijayaraghavan at yahoo.com>
>     Cc: ltt-dev at lists.casi.polymtl.ca
>     Date: Tuesday, February 15, 2011, 7:06 PM
>
>     * Srivatsan Vijayaraghavan (srivatsanvijayaraghavan at yahoo.com
>     </mc/compose?to=srivatsanvijayaraghavan at yahoo.com>) wrote:
>      > case 1 - usttrace ./testust
>      > no -o option switch to specify trace directory and I get
>      > /root/.usttracers/.../ust-consumerd.log - No such file or directory
>
>     Ah, "..." is the problem. It's not a valid path name.
>
>     The following usttrace code seems problemstic on your system:
>
>     # Create directory for trace output
>     if [ -n "$OUTPUT_DIR" ]; then
>     OUTDIR=$OUTPUT_DIR
>     else
>     DATESTRING="$(hostname)-$(date +%Y%m%d%H%M%S%N)"
>     OUTDIR="$BASE_TRACE_DIR/$DATESTRING"
>     fi
>
>     So your commands "hostname" and "date" are missing.
>
>     Mathieu
>
>      >
>      > case 2 - usttrace -o ./trace ./testust
>      > I specified the output directory for the trace and the two files
>     app.log, ust-consumerd.log are now created in ./tracedir, but when I
>     tried to inspect the folder for the actual trace, there was no
>     tracing done or the folder where the trace data is kept was not
>     there inside ./tracedir
>      >
>      > On the console-
>      > > Waiting for ust-consumerd to shutdown...
>      > > Trace was output in: ./tracedir
>      > sh-2.05b# cd tracedir
>      > -sh-2.05b# ls
>      > > app.log ust-consumerd.log
>      >
>      > Thanks,
>      > Srivatsan
>      > --- On Tue, 2/15/11, Mathieu Desnoyers
>     <compudj at krystal.dyndns.org
>     </mc/compose?to=compudj at krystal.dyndns.org>> wrote:
>      >
>      > From: Mathieu Desnoyers <compudj@krystal.dyndns.org
>     </mc/compose?to=compudj at krystal.dyndns.org>>
>      > Subject: Re: [ltt-dev] No trace data inside the trace folders
>      > To: "Srivatsan Vijayaraghavan" <srivatsanvijayaraghavan at yahoo.com
>     </mc/compose?to=srivatsanvijayaraghavan at yahoo.com>>
>      > Cc: ltt-dev at lists.casi.polymtl.ca
>     </mc/compose?to=ltt-dev at lists.casi.polymtl.ca>
>      > Date: Tuesday, February 15, 2011, 2:00 PM
>      >
>      > what is the "the same /root/.usttracers/..../ust-consumerd.log -
>     No such
>      > file or directory" exactly ? Which path is it unable to create ? Have
>      > you tried creating it by hand ?
>      >
>      > Thanks,
>      >
>      > Mathieu
>      >
>      > * Srivatsan Vijayaraghavan (srivatsanvijayaraghavan at yahoo.com
>     </mc/compose?to=srivatsanvijayaraghavan at yahoo.com>) wrote:
>      > > -sh-2.05b# usttrace -o ./tracedir ./testUST
>      > > ./tracedir
>      > > Waiting for ust-consumerd to shutdown...
>      > > Trace was output in: ./tracedir
>      > > -sh-2.05b# pwd
>      > > /usr/local/bin
>      > > -sh-2.05b# cd tracedir
>      > > -sh-2.05b# ls
>      > > app.log ust-consumerd.log
>      > >
>      > > If I dont give the trace directory, the it fails to create the
>     ust-consumerd.log file.
>      > >
>      > > Thanks,
>      > > Srivatsan
>      > > --- On Tue, 2/15/11, Mathieu Desnoyers
>     <compudj at krystal.dyndns.org
>     </mc/compose?to=compudj at krystal.dyndns.org>> wrote:
>      > >
>      > > From: Mathieu Desnoyers <compudj@krystal.dyndns.org
>     </mc/compose?to=compudj at krystal.dyndns.org>>
>      > > Subject: Re: [ltt-dev] Trouble tracing my application for
>     PowerPC board
>      > > To: "Srivatsan Vijayaraghavan"
>     <srivatsanvijayaraghavan at yahoo.com
>     </mc/compose?to=srivatsanvijayaraghavan at yahoo.com>>
>      > > Cc:
>      > > ltt-dev at lists.casi.polymtl.ca
>     </mc/compose?to=ltt-dev at lists.casi.polymtl.ca>
>      > > Date: Tuesday, February 15, 2011, 4:34 AM
>      > >
>      > > * Srivatsan Vijayaraghavan (srivatsanvijayaraghavan at yahoo.com
>     </mc/compose?to=srivatsanvijayaraghavan at yahoo.com>) wrote:
>      > > > I used ltib to cross compile and build liburcu and libust on
>     my target board (for powerpc). Everything went smooth with few
>     glitches which were sorted out, but when I tried to trace my
>     application by invoking it from usttrace (usttrace ./testust), I
>     wasn't able to get beyond this message
>      > > > /root/.usttracers/...../ust-consumerd.log - No such file or
>     directory
>      > > >
>      > > > I tried recording the trace manually when ust-consumerd
>     failed in epoll_create().
>      > > > So I built the kernel with CONFIG_EPOLL support, but that did
>     not help. I still get the same
>     /root/.usttracers/..../ust-consumerd.log - No such file or directory
>      > > >
>      > >
>      > > > ---testust.cpp---
>      > > > #include <ust.marker.h>
>      > > > int main(..)
>      > > > {
>      > > > trace_mark(main,myevent,"%d", getpid());
>      > > > }
>      > >
>      > > which user ID are your running your application as ?
>      > >
>      > > What's the value of your $HOME ?
>      > >
>      > > It looks like ust is unable to create the directories/files
>     needed to
>      > > write the log file. It looks like an access right problem
>      > >
>      > > Mathieu
>      > >
>      > > >
>      > > > Thanks,
>      > > > Srivatsan V
>      > > >
>      > > >
>      > > >
>      > > >
>      > > >
>      > > >
>     ____________________________________________________________________________________
>      > > > Food fight? Enjoy some healthy debate
>      > > > in the Yahoo! Answers Food & Drink Q&A.
>      > > > http://answers.yahoo.com/dir/?link=list&sid=396545367
>     <http://answers.yahoo.com/dir/?link=list&sid=396545367>
>      > > > _______________________________________________
>      > > > ltt-dev mailing list
>      > > > ltt-dev at lists.casi.polymtl.ca
>     </mc/compose?to=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
>      > >
>      > >
>      > >
>      > >
>      > >
>     ____________________________________________________________________________________
>      > > Expecting? Get great news right away with email Auto-Check.
>      > > Try the Yahoo! Mail Beta.
>      > > http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html
>      > > _______________________________________________
>      > > ltt-dev mailing list
>      > > ltt-dev at lists.casi.polymtl.ca
>     </mc/compose?to=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
>      >
>      >
>      >
>      >
>      >
>     ____________________________________________________________________________________
>      > Get your own web address.
>      > Have a HUGE year through Yahoo! Small Business.
>      > http://smallbusiness.yahoo.com/domains/?p=BESTDEAL
>     --
>     Mathieu Desnoyers
>     Operating System Efficiency R&D Consultant
>     EfficiOS Inc.
>     http://www.efficios.com
>
>
> ------------------------------------------------------------------------
> Get your own web address.
> <http://us.rd.yahoo.com/evt=49678/*http://smallbusiness.yahoo.com/domains/?p=BESTDEAL>
> Have a HUGE year through Yahoo! Small Business. <
> http://us.rd.yahoo.com/evt=49678/*http://smallbusiness.yahoo.com/domains/?p=BESTDEAL>
>
>
>
>
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev

-- 
David Goulet
LTTng project, DORSAL Lab.

PGP/GPG : 1024D/16BD8563
BE3C 672B 9331 9796 291A  14C6 4AF7 C14B 16BD 8563



  parent reply	other threads:[~2011-02-15 20:19 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <BLU0-SMTP21FFAF4F2A241CCBFFD19D96D30@phx.gbl>
2011-02-15 20:06 ` Srivatsan Vijayaraghavan
2011-02-15 20:06   ` Srivatsan Vijayaraghavan
2011-02-15 20:06   ` Srivatsan Vijayaraghavan
2011-02-15 20:19   ` David Goulet [this message]
     [not found] <BLU0-SMTP970FB19FCD55BF5195A9EF96D30@phx.gbl>
2011-02-15 17:31 ` Srivatsan Vijayaraghavan
2011-02-15 17:31   ` Srivatsan Vijayaraghavan
2011-02-15 17:31   ` Srivatsan Vijayaraghavan
2011-02-15 19:06   ` Mathieu Desnoyers
2011-02-15  6:09 Srivatsan Vijayaraghavan
2011-02-15  6:09 ` Srivatsan Vijayaraghavan
2011-02-15  6:09 ` Srivatsan Vijayaraghavan
2011-02-15 14:00 ` Mathieu Desnoyers

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=4D5ADFC7.7080408@polymtl.ca \
    --to=david.goulet@polymtl.ca \
    /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