All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: error in generation of trace files
       [not found] <CAB7sTjgY9OpaQG-Cs2gnHA6s3+hHuutkP=6wPPVq5TkfdY-hng@mail.gmail.com>
@ 2014-02-27 13:42 ` David Goulet
       [not found] ` <20140227134247.GA7407@thessa>
  2014-02-27 20:37 ` Suchakrapani Datt Sharma
  2 siblings, 0 replies; 5+ messages in thread
From: David Goulet @ 2014-02-27 13:42 UTC (permalink / raw)
  To: Mariya Rampurawala; +Cc: lttng-dev


[-- Attachment #1.1: Type: text/plain, Size: 1466 bytes --]

On 27 Feb (16:36:24), Mariya Rampurawala wrote:
> Hello,
>  I'm new to lttng. I use ubuntu 13.10. While performing basic operations,
> on command lttng view, i get the following error.
> [error] Cannot open any trace for reading.
> 
> [error] opening trace "/home/mariya/lttng-traces/mysession-20140227-163353"
> for reading.
> 
> [error] none of the specified trace paths could be opened.
> 
> 
> the o/p of the command "lttng-sessiond --verbose" is as follows
> 
> DEBUG3: Creating LTTng run directory: /home/mariya/.lttng [in
> create_lttng_rundir() at main.c:3692]
> DEBUG1: Client socket path /home/mariya/.lttng/client-lttng-sessiond [in
> main() at main.c:3995]
> DEBUG1: Application socket path /home/mariya/.lttng/apps-lttng-sessiond [in
> main() at main.c:3996]
> DEBUG1: LTTng run directory path: /home/mariya/.lttng [in main() at
> main.c:3997]
> Error: Already running daemon.
> 
> Could you please help me solve the error and proceed with my project?

Hi,

So like the error says, you have an already dunnring daemon but that
shouldn't stop you from tracing stuff.

Can you provide step by step the command you did and from there we can
help you out more easily. The -vvv to the session daemon are good
information to have also!

Thanks!
David

> _______________________________________________
> lttng-dev mailing list
> lttng-dev@lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev


[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 603 bytes --]

[-- Attachment #2: Type: text/plain, Size: 155 bytes --]

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: error in generation of trace files
       [not found]   ` <CAB7sTjjHMizJVJOYCpqED=rzt=+KJB_2Nxjf7X2C2y2+G=E_sA@mail.gmail.com>
@ 2014-02-27 13:57     ` David Goulet
       [not found]     ` <20140227135748.GB7407@thessa>
  1 sibling, 0 replies; 5+ messages in thread
From: David Goulet @ 2014-02-27 13:57 UTC (permalink / raw)
  To: Mariya Rampurawala; +Cc: lttng-dev


[-- Attachment #1.1: Type: text/plain, Size: 4036 bytes --]

On 27 Feb (19:22:35), Mariya Rampurawala wrote:
> Thank you for the reply.
> So the following commands i run on my terminal:
> 
> mariya@HP:~$ lttng create mysession
> Session mysession created.
> Traces will be written in
> /home/mariya/lttng-traces/mysession-20140227-191901
> mariya@HP:~$ lttng enable-event -a -u
> All UST events are enabled in channel channel0

CCing back lttng-dev ML. If you have this problem, others have! :)

Ok so this means that you enable all user space event for that session
so you need to have an application that is instrumented with LTTng
userspace tracer (lttng-ust) in order to collect data from that app.
There are multiple examples in the git repository.

For the kernel (-a -k), you need to install lttng-modules and start
lttng-sessiond as root (or set yourself in the "tracing" group).

Hope this help!

Cheers!
David

> mariya@HP:~$ lttng start
> Tracing started for session mysession
> mariya@HP:~$ lttng stop
> Waiting for data availability
> Tracing stopped for session mysession
> mariya@HP:~$ lttng view
> Trace directory: /home/mariya/lttng-traces/mysession-20140227-191901
> 
> [error] Cannot open any trace for reading.
> 
> [error] opening trace "/home/mariya/lttng-traces/mysession-20140227-191901"
> for reading.
> 
> [error] none of the specified trace paths could be opened.
> 
> mariya@HP:~$ lttng-sessiond -vvv
> DEBUG3: Creating LTTng run directory: /home/mariya/.lttng [in
> create_lttng_rundir() at main.c:3692]
> DEBUG1: Client socket path /home/mariya/.lttng/client-lttng-sessiond [in
> main() at main.c:3995]
> DEBUG1: Application socket path /home/mariya/.lttng/apps-lttng-sessiond [in
> main() at main.c:3996]
> DEBUG1: LTTng run directory path: /home/mariya/.lttng [in main() at
> main.c:3997]
> DEBUG2: UST consumer 32 bits err path:
> /home/mariya/.lttng/ustconsumerd32/error [in main() at main.c:4006]
> DEBUG2: UST consumer 32 bits cmd path:
> /home/mariya/.lttng/ustconsumerd32/command [in main() at main.c:4008]
> DEBUG2: UST consumer 64 bits err path:
> /home/mariya/.lttng/ustconsumerd64/error [in main() at main.c:4017]
> DEBUG2: UST consumer 64 bits cmd path:
> /home/mariya/.lttng/ustconsumerd64/command [in main() at main.c:4019]
> Error: Already running daemon.
> 
> 
> 
> On Thu, Feb 27, 2014 at 7:12 PM, David Goulet <dgoulet@efficios.com> wrote:
> 
> > On 27 Feb (16:36:24), Mariya Rampurawala wrote:
> > > Hello,
> > >  I'm new to lttng. I use ubuntu 13.10. While performing basic operations,
> > > on command lttng view, i get the following error.
> > > [error] Cannot open any trace for reading.
> > >
> > > [error] opening trace
> > "/home/mariya/lttng-traces/mysession-20140227-163353"
> > > for reading.
> > >
> > > [error] none of the specified trace paths could be opened.
> > >
> > >
> > > the o/p of the command "lttng-sessiond --verbose" is as follows
> > >
> > > DEBUG3: Creating LTTng run directory: /home/mariya/.lttng [in
> > > create_lttng_rundir() at main.c:3692]
> > > DEBUG1: Client socket path /home/mariya/.lttng/client-lttng-sessiond [in
> > > main() at main.c:3995]
> > > DEBUG1: Application socket path /home/mariya/.lttng/apps-lttng-sessiond
> > [in
> > > main() at main.c:3996]
> > > DEBUG1: LTTng run directory path: /home/mariya/.lttng [in main() at
> > > main.c:3997]
> > > Error: Already running daemon.
> > >
> > > Could you please help me solve the error and proceed with my project?
> >
> > Hi,
> >
> > So like the error says, you have an already dunnring daemon but that
> > shouldn't stop you from tracing stuff.
> >
> > Can you provide step by step the command you did and from there we can
> > help you out more easily. The -vvv to the session daemon are good
> > information to have also!
> >
> > Thanks!
> > David
> >
> > > _______________________________________________
> > > lttng-dev mailing list
> > > lttng-dev@lists.lttng.org
> > > http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
> >
> >

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 603 bytes --]

[-- Attachment #2: Type: text/plain, Size: 155 bytes --]

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: error in generation of trace files
       [not found] <CAB7sTjgY9OpaQG-Cs2gnHA6s3+hHuutkP=6wPPVq5TkfdY-hng@mail.gmail.com>
  2014-02-27 13:42 ` error in generation of trace files David Goulet
       [not found] ` <20140227134247.GA7407@thessa>
@ 2014-02-27 20:37 ` Suchakrapani Datt Sharma
  2 siblings, 0 replies; 5+ messages in thread
From: Suchakrapani Datt Sharma @ 2014-02-27 20:37 UTC (permalink / raw)
  To: Mariya Rampurawala; +Cc: lttng-dev

Hi,

>  I'm new to lttng. I use ubuntu 13.10. While performing basic operations,
> on command lttng view, i get the following error.
> [error] Cannot open any trace for reading.
>
> [error] opening trace "/home/mariya/lttng-traces/mysession-20140227-163353"
> for reading.
>
> [error] none of the specified trace paths could be opened.

Have a look at the directory and see if trace events have actually been written
or not. You should see something like
/home/mariya/lttng-traces/mysession-20140227-163353/kernel/metadata (if it was
a kernel tracing session)

> the o/p of the command "lttng-sessiond --verbose" is as follows
>
> DEBUG3: Creating LTTng run directory: /home/mariya/.lttng [in
> create_lttng_rundir() at main.c:3692]
> DEBUG1: Client socket path /home/mariya/.lttng/client-lttng-sessiond [in
> main() at main.c:3995]
> DEBUG1: Application socket path /home/mariya/.lttng/apps-lttng-sessiond [in
> main() at main.c:3996]
> DEBUG1: LTTng run directory path: /home/mariya/.lttng [in main() at
> main.c:3997]
> Error: Already running daemon.

You probably did this again while the previous instance of lttng-sessiond was
already running and hence the last error. Kill currently running sessiond and
then start afresh using the verbose mode. Then proceed with usual lttng
commands and observe the debug output (more lines of debug output would be
definitely better). Please show it on the list if you need help in that.

I would also recommend you to have a look at the lttng manual as well as at the
Quickstart doc at [1] for detailed info of what the commands are doing.

[1] https://bugs.lttng.org/projects/lttng-tools/wiki

--
Suchakra

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: error in generation of trace files
       [not found]     ` <20140227135748.GB7407@thessa>
@ 2014-02-27 20:44       ` Suchakrapani Datt Sharma
  0 siblings, 0 replies; 5+ messages in thread
From: Suchakrapani Datt Sharma @ 2014-02-27 20:44 UTC (permalink / raw)
  To: David Goulet; +Cc: lttng-dev, Mariya Rampurawala

Aah..someone is already replying. I should look at my inbox more carefully then
:-/

Ignore my previous message.

Quoting David Goulet <dgoulet@efficios.com>:

<SNIP>

> CCing back lttng-dev ML. If you have this problem, others have! :)
>
> Ok so this means that you enable all user space event for that session
> so you need to have an application that is instrumented with LTTng
> userspace tracer (lttng-ust) in order to collect data from that app.
> There are multiple examples in the git repository.
>
> For the kernel (-a -k), you need to install lttng-modules and start
> lttng-sessiond as root (or set yourself in the "tracing" group).
>
> Hope this help!

<SNIP>

--
Suchakra

^ permalink raw reply	[flat|nested] 5+ messages in thread

* error in generation of trace files
@ 2014-02-27 11:06 Mariya Rampurawala
  0 siblings, 0 replies; 5+ messages in thread
From: Mariya Rampurawala @ 2014-02-27 11:06 UTC (permalink / raw)
  To: lttng-dev


[-- Attachment #1.1: Type: text/plain, Size: 869 bytes --]

Hello,
 I'm new to lttng. I use ubuntu 13.10. While performing basic operations,
on command lttng view, i get the following error.
[error] Cannot open any trace for reading.

[error] opening trace "/home/mariya/lttng-traces/mysession-20140227-163353"
for reading.

[error] none of the specified trace paths could be opened.


the o/p of the command "lttng-sessiond --verbose" is as follows

DEBUG3: Creating LTTng run directory: /home/mariya/.lttng [in
create_lttng_rundir() at main.c:3692]
DEBUG1: Client socket path /home/mariya/.lttng/client-lttng-sessiond [in
main() at main.c:3995]
DEBUG1: Application socket path /home/mariya/.lttng/apps-lttng-sessiond [in
main() at main.c:3996]
DEBUG1: LTTng run directory path: /home/mariya/.lttng [in main() at
main.c:3997]
Error: Already running daemon.

Could you please help me solve the error and proceed with my project?

[-- Attachment #1.2: Type: text/html, Size: 1009 bytes --]

[-- Attachment #2: Type: text/plain, Size: 155 bytes --]

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-02-27 20:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CAB7sTjgY9OpaQG-Cs2gnHA6s3+hHuutkP=6wPPVq5TkfdY-hng@mail.gmail.com>
2014-02-27 13:42 ` error in generation of trace files David Goulet
     [not found] ` <20140227134247.GA7407@thessa>
     [not found]   ` <CAB7sTjjHMizJVJOYCpqED=rzt=+KJB_2Nxjf7X2C2y2+G=E_sA@mail.gmail.com>
2014-02-27 13:57     ` David Goulet
     [not found]     ` <20140227135748.GB7407@thessa>
2014-02-27 20:44       ` Suchakrapani Datt Sharma
2014-02-27 20:37 ` Suchakrapani Datt Sharma
2014-02-27 11:06 Mariya Rampurawala

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.