Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
* [lttng-dev] Issue with UST tracing - unable to view CTF traces
@ 2014-03-28 16:06 Jonathan Haws
  2014-03-28 16:47 ` Jérémie Galarneau
  0 siblings, 1 reply; 5+ messages in thread
From: Jonathan Haws @ 2014-03-28 16:06 UTC (permalink / raw)


I am having a problem with UST tracing on my system.  My setup is as follows:

I have my development system running Xubuntu 12.04 LTS with the LTTng ppa enabled, so I am running the 2.4.0 tools.  I have my embedded target running manually compiled 2.4.0 tools (it's distro is Fedora 17 right now).

Last week things were working just fine, but I made some changes to my template file and something broke, but I can't figure out what is up.


When I try to import traces into the Eclipse tools, I get the following error:

org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException: MismatchedTokenException(LPAREN!=TERM) at metadata:204


When I try to open with babeltrace, I get the following:

jhaws at verde:~/trace$ babeltrace sms/SMS-20110922-130857/ust
[error] at line 199: token "(": syntax error, unexpected LPAREN, expecting SEMICOLON or COMMA

[error] Error creating AST
[warning] Unable to open trace metadata for path "sms/SMS-20110922-130857/ust/uid/0/64-bit".
[warning] [Context] Cannot open_trace of format ctf at path sms/SMS-20110922-130857/ust/uid/0/64-bit.
[warning] [Context] cannot open trace "sms/SMS-20110922-130857/ust/uid/0/64-bit" from sms/SMS-20110922-130857/ust for reading.
[error] Cannot open any trace for reading.

[error] opening trace "sms/SMS-20110922-130857/ust" for reading.

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


What am I doing wrong?  Things were working great before, but now something is up. What are the chances that there is a compatibility issue between the two installations?

Thanks!
Jon




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

* [lttng-dev] Issue with UST tracing - unable to view CTF traces
  2014-03-28 16:06 [lttng-dev] Issue with UST tracing - unable to view CTF traces Jonathan Haws
@ 2014-03-28 16:47 ` Jérémie Galarneau
  2014-03-28 16:58   ` Jonathan Haws
  0 siblings, 1 reply; 5+ messages in thread
From: Jérémie Galarneau @ 2014-03-28 16:47 UTC (permalink / raw)


On Fri, Mar 28, 2014 at 12:06 PM, Jonathan Haws
<Jonathan.Haws at sdl.usu.edu> wrote:
> I am having a problem with UST tracing on my system.  My setup is as follows:
>
> I have my development system running Xubuntu 12.04 LTS with the LTTng ppa enabled, so I am running the 2.4.0 tools.  I have my embedded target running manually compiled 2.4.0 tools (it's distro is Fedora 17 right now).
>
> Last week things were working just fine, but I made some changes to my template file and something broke, but I can't figure out what is up.
>

What do you mean by template file?

>
> When I try to import traces into the Eclipse tools, I get the following error:
>
> org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException: MismatchedTokenException(LPAREN!=TERM) at metadata:204
>
>
> When I try to open with babeltrace, I get the following:
>
> jhaws at verde:~/trace$ babeltrace sms/SMS-20110922-130857/ust
> [error] at line 199: token "(": syntax error, unexpected LPAREN, expecting SEMICOLON or COMMA
>
> [error] Error creating AST
> [warning] Unable to open trace metadata for path "sms/SMS-20110922-130857/ust/uid/0/64-bit".
> [warning] [Context] Cannot open_trace of format ctf at path sms/SMS-20110922-130857/ust/uid/0/64-bit.
> [warning] [Context] cannot open trace "sms/SMS-20110922-130857/ust/uid/0/64-bit" from sms/SMS-20110922-130857/ust for reading.
> [error] Cannot open any trace for reading.
>
> [error] opening trace "sms/SMS-20110922-130857/ust" for reading.
>
> [error] none of the specified trace paths could be opened.
>
>
> What am I doing wrong?  Things were working great before, but now something is up. What are the chances that there is a compatibility issue between the two installations?
>

Could you share the trace?

Thanks,
J?r?mie

> Thanks!
> Jon
>
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev



-- 
J?r?mie Galarneau
EfficiOS Inc.
http://www.efficios.com



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

* [lttng-dev] Issue with UST tracing - unable to view CTF traces
  2014-03-28 16:47 ` Jérémie Galarneau
@ 2014-03-28 16:58   ` Jonathan Haws
  2014-03-28 17:27     ` Jérémie Galarneau
  0 siblings, 1 reply; 5+ messages in thread
From: Jonathan Haws @ 2014-03-28 16:58 UTC (permalink / raw)



> > I am having a problem with UST tracing on my system.  My setup is as follows:
> >
> > I have my development system running Xubuntu 12.04 LTS with the LTTng ppa enabled, so I am running the 2.4.0 tools.  I have my embedded target running manually compiled 2.4.0 tools (it's distro is Fedora 17 right now).
> >
> > Last week things were working just fine, but I made some changes to my template file and something broke, but I can't figure out what is up.
> >
> 
> What do you mean by template file?

I mean the file used to generate the source using lttng-gen-tp.  That is attached.


> 
> >
> > When I try to import traces into the Eclipse tools, I get the following error:
> >
> > org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException: MismatchedTokenException(LPAREN!=TERM) at metadata:204
> >
> >
> > When I try to open with babeltrace, I get the following:
> >
> > jhaws at verde:~/trace$ babeltrace sms/SMS-20110922-130857/ust
> > [error] at line 199: token "(": syntax error, unexpected LPAREN, expecting SEMICOLON or COMMA
> >
> > [error] Error creating AST
> > [warning] Unable to open trace metadata for path "sms/SMS-20110922-130857/ust/uid/0/64-bit".
> > [warning] [Context] Cannot open_trace of format ctf at path sms/SMS-20110922-130857/ust/uid/0/64-bit.
> > [warning] [Context] cannot open trace "sms/SMS-20110922-130857/ust/uid/0/64-bit" from sms/SMS-20110922-130857/ust for reading.
> > [error] Cannot open any trace for reading.
> >
> > [error] opening trace "sms/SMS-20110922-130857/ust" for reading.
> >
> > [error] none of the specified trace paths could be opened.
> >
> >
> > What am I doing wrong?  Things were working great before, but now something is up. What are the chances that there is a compatibility issue between the two installations?
> >

> Could you share the trace?

Attached in zip format.  Thanks!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: problem-trace.zip
Type: application/zip
Size: 48393 bytes
Desc: problem-trace.zip
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20140328/f5aa05ae/attachment-0001.zip>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: am_tpp.tp
Type: application/octet-stream
Size: 10818 bytes
Desc: am_tpp.tp
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20140328/f5aa05ae/attachment-0001.obj>


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

* [lttng-dev] Issue with UST tracing - unable to view CTF traces
  2014-03-28 16:58   ` Jonathan Haws
@ 2014-03-28 17:27     ` Jérémie Galarneau
  2014-03-28 18:08       ` Jonathan Haws
  0 siblings, 1 reply; 5+ messages in thread
From: Jérémie Galarneau @ 2014-03-28 17:27 UTC (permalink / raw)


On Fri, Mar 28, 2014 at 12:58 PM, Jonathan Haws
<Jonathan.Haws at sdl.usu.edu> wrote:
>
>> > I am having a problem with UST tracing on my system.  My setup is as follows:
>> >
>> > I have my development system running Xubuntu 12.04 LTS with the LTTng ppa enabled, so I am running the 2.4.0 tools.  I have my embedded target running manually compiled 2.4.0 tools (it's distro is Fedora 17 right now).
>> >
>> > Last week things were working just fine, but I made some changes to my template file and something broke, but I can't figure out what is up.
>> >
>>
>> What do you mean by template file?
>
> I mean the file used to generate the source using lttng-gen-tp.  That is attached.
>
>
>>
>> >
>> > When I try to import traces into the Eclipse tools, I get the following error:
>> >
>> > org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException: MismatchedTokenException(LPAREN!=TERM) at metadata:204
>> >
>> >
>> > When I try to open with babeltrace, I get the following:
>> >
>> > jhaws at verde:~/trace$ babeltrace sms/SMS-20110922-130857/ust
>> > [error] at line 199: token "(": syntax error, unexpected LPAREN, expecting SEMICOLON or COMMA
>> >
>> > [error] Error creating AST
>> > [warning] Unable to open trace metadata for path "sms/SMS-20110922-130857/ust/uid/0/64-bit".
>> > [warning] [Context] Cannot open_trace of format ctf at path sms/SMS-20110922-130857/ust/uid/0/64-bit.
>> > [warning] [Context] cannot open trace "sms/SMS-20110922-130857/ust/uid/0/64-bit" from sms/SMS-20110922-130857/ust for reading.
>> > [error] Cannot open any trace for reading.
>> >
>> > [error] opening trace "sms/SMS-20110922-130857/ust" for reading.
>> >
>> > [error] none of the specified trace paths could be opened.
>> >
>> >
>> > What am I doing wrong?  Things were working great before, but now something is up. What are the chances that there is a compatibility issue between the two installations?
>> >
>
>> Could you share the trace?
>
> Attached in zip format.  Thanks!

Looking at the trace, line 199 in the metadata file immediatly stands out.

> integer { size = 32; align = 8; signed = 1; encoding = none; base = 10; } _(*__errno_location ());

The problem is that you use "errno" is your template, which is defined
by glibc as
#   define errno (*__errno_location ())

You'll have to use a different field name.

Regards,
J?r?mie

-- 
J?r?mie Galarneau
EfficiOS Inc.
http://www.efficios.com



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

* [lttng-dev] Issue with UST tracing - unable to view CTF traces
  2014-03-28 17:27     ` Jérémie Galarneau
@ 2014-03-28 18:08       ` Jonathan Haws
  0 siblings, 0 replies; 5+ messages in thread
From: Jonathan Haws @ 2014-03-28 18:08 UTC (permalink / raw)


> You'll have to use a different field name.

Ah yes.  I didn't even think about that.

Thanks for the help!


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

end of thread, other threads:[~2014-03-28 18:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-28 16:06 [lttng-dev] Issue with UST tracing - unable to view CTF traces Jonathan Haws
2014-03-28 16:47 ` Jérémie Galarneau
2014-03-28 16:58   ` Jonathan Haws
2014-03-28 17:27     ` Jérémie Galarneau
2014-03-28 18:08       ` Jonathan Haws

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox