[ltt-dev] usttrace: directory of output trace

Irina Guilman irina.guilman at ericsson.com
Thu Aug 25 10:16:14 EDT 2011


The data is usually in ust_0. The metadata as I understand contains the format information, for it to decode the ust_ files with the data.

________________________________
From: צהלול לא קיים [mailto:zahalul at walla.com]
Sent: August-25-11 5:12 AM
To: צהלול לא קיים; Irina Guilman; צהלול_לא_קיים; ltt-dev at lists.casi.polymtl.ca
Subject: Re: Re: RE: [ltt-dev] usttrace: directory of output trace


Hello,



Sorry, my mistake.



metadata_0 is not empty.



I will soon analyze it using lttv-gui.



Thanks,

Zvika.











שולח: צהלול לא קיים
נושא: Re: RE: [ltt-dev] usttrace: directory of output trace

Hello,



Following are the steps I did:



usttrace -o /home/root ./Hello.out &



In /home/root, 2 folders were created:



656_-518...

This directory contains 1 file: metadata_0



656_-523...
This directory contains 1 file: ust_0



My code is:



#include

int main (void)

{

      int v=1;

     char *st="trace";



     while (1)

    {

          ust_marker (myevent,"firstarg %d secondarg %s",v,st);

          sleep (1);

    }

}



When I ran:

ustctl list-markers 656



I got the following:

....

{PID 656, channel/marker: ust/myevent, state: 1, fmt: "firstarg %d secondarg %s (nil)}

{PID 656, channel/marker: ust/myevent, state: 1, fmt: "firstarg %d secondarg %s (nil)}





So I think "myevent" is enabled.



But where the markers are logged ?

Where is the  input file to lttv-gui ?



I'm running under busybox. Is it a problem ?



Thanks,

Zvika














שולח: Irina Guilman
נושא: RE: [ltt-dev] usttrace: directory of output trace
And it's not there under some hidden directory, i.e  /home/root/.usttrace?

Can you run the examples under tests? (there are hello, hello2, basic, fork examples there)

Another option is to run it manually, try with a verbose option.

Start the daemon

ust-consumerd -d

then start your process, then see the markers with ustctl, enable them with ustctl, start tracing though ustctl command



________________________________
From: צהלול לא קיים [mailto:zahalul at walla.com]
Sent: August-23-11 6:50 AM
To: ltt-dev at lists.casi.polymtl.ca
Subject: [ltt-dev] usttrace: directory of output trace


Hello,



I have a simple program that creates 2 threads.



Each thread calls to: ust_marker (myotherevent,MARK_NOARGS) every 1 second.



The thread also prints a message (using printf) every 1 second.



The main thread loops forever doing only "sleep (1)".



I ran the program using: usttrace MyProg.out -o /home/root &



After a few seconds I checked the folder /home/root. It does not contain a trace file.



Can you help ?



Thanks,

Zvika.






________________________________
Walla! Mail - Get your free unlimited mail today<http://www.walla.co.il/>

________________________________
Walla! Mail - Get your free unlimited mail today<http://www.walla.co.il/>
________________________________
Walla! Mail - Get your free unlimited mail today<http://www.walla.co.il>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.casi.polymtl.ca/pipermail/lttng-dev/attachments/20110825/20093329/attachment-0003.htm>


More information about the lttng-dev mailing list