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 <ust/marker.h>

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:[email protected]]
Sent: August-23-11 6:50 AM
To: [email protected]
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
_______________________________________________
ltt-dev mailing list
[email protected]
http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev

Reply via email to