All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [error] at line 4295: token "(": syntax error, unexpected LPAREN, expecting SEMICOLON or COMMA
       [not found] <afd5f63ed45e749ecfee26c42c6a9d6c.squirrel@email.powweb.com>
@ 2016-10-06 19:37 ` Mathieu Desnoyers
       [not found] ` <18e9c2e74a3cf73ebf8e9f6e473de6c4@simark.ca>
  1 sibling, 0 replies; 6+ messages in thread
From: Mathieu Desnoyers @ 2016-10-06 19:37 UTC (permalink / raw)
  To: stjernstrom; +Cc: lttng-dev

----- On Oct 6, 2016, at 2:14 PM, Staffan Tjernstrom staffan@eternaltraveller.com wrote:

> Having spent about a week moving some 1500 trace statements over to
> lttng, I figured it was time to try a test run. Unfortunately there
> seems to be a problem with the metadata.
> 
> Any clues as to what to try next?
> 
> stjernstrom@E7CH1SAPPHIRE23:~/sapphire> lttng create reg
> Spawning a session daemon
> Session reg created.
> Traces will be written in
> /home/stjernstrom/lttng-traces/reg-20161006-130344
> stjernstrom@E7CH1SAPPHIRE23:~/sapphire> lttng enable-channel -u reg
> --overwrite --buffers-pid -s reg --subbuf-size 1M
> UST channel reg enabled for session reg
> stjernstrom@E7CH1SAPPHIRE23:~/sapphire> lttng add-context -u -t
> pthread_id
> UST context pthread_id added to all channels
> stjernstrom@E7CH1SAPPHIRE23:~/sapphire> lttng enable-event -u -c reg -a
> All UST events are enabled in channel reg
> stjernstrom@E7CH1SAPPHIRE23:~/sapphire> lttng start
> Tracing started for session reg
> stjernstrom@E7CH1SAPPHIRE23:~/sapphire> ${my_app}
> stjernstrom@E7CH1SAPPHIRE23:~/sapphire> lttng stop reg
> Waiting for data availability
> Tracing stopped for session reg
> stjernstrom@E7CH1SAPPHIRE23:~/sapphire> lttng view reg
> Trace directory: /home/stjernstrom/lttng-traces/reg-20161006-130344

Can you provide the output of:

babeltrace -o ctf-metadata /home/stjernstrom/lttng-traces/reg-20161006-130344

?

If you can share the content of your tracepoint header files, it
would also be useful.

Thanks,

Mathieu

> 
> [error] at line 4295: token "(": syntax error, unexpected LPAREN,
> expecting SEMICOLON or COMMA
> 
> [error] Error creating AST
> [warning] Unable to open trace metadata for path
> "/home/stjernstrom/lttng-traces/reg-20161006-130344/ust/pid/cferouternode_a-2006-20161006-130611".
> [warning] [Context] Cannot open_trace of format ctf at path
> /home/stjernstrom/lttng-traces/reg-20161006-130344/ust/pid/cferouternode_a-2006-20161006-130611.
> [warning] [Context] cannot open trace
> "/home/stjernstrom/lttng-traces/reg-20161006-130344/ust/pid/cferouternode_a-2006-20161006-130611"
> from /home/stjernstrom/lttng-traces/reg-20161006-130344 for reading.
> [error] at line 4295: token "(": syntax error, unexpected LPAREN,
> expecting SEMICOLON or COMMA
> 
> [error] Error creating AST
> [warning] Unable to open trace metadata for path
> "/home/stjernstrom/lttng-traces/reg-20161006-130344/ust/pid/cmerouternode_a-2010-20161006-130611".
> [warning] [Context] Cannot open_trace of format ctf at path
> /home/stjernstrom/lttng-traces/reg-20161006-130344/ust/pid/cmerouternode_a-2010-20161006-130611.
> [warning] [Context] cannot open trace
> "/home/stjernstrom/lttng-traces/reg-20161006-130344/ust/pid/cmerouternode_a-2010-20161006-130611"
> from /home/stjernstrom/lttng-traces/reg-20161006-130344 for reading.
> [error] at line 4295: token "(": syntax error, unexpected LPAREN,
> expecting SEMICOLON or COMMA
> 
> [error] Error creating AST
> [warning] Unable to open trace metadata for path
> "/home/stjernstrom/lttng-traces/reg-20161006-130344/ust/pid/controller-2001-20161006-130602".
> [warning] [Context] Cannot open_trace of format ctf at path
> /home/stjernstrom/lttng-traces/reg-20161006-130344/ust/pid/controller-2001-20161006-130602.
> [warning] [Context] cannot open trace
> "/home/stjernstrom/lttng-traces/reg-20161006-130344/ust/pid/controller-2001-20161006-130602"
> from /home/stjernstrom/lttng-traces/reg-20161006-130344 for reading.
> [error] at line 4295: token "(": syntax error, unexpected LPAREN,
> expecting SEMICOLON or COMMA
> 
> [error] Error creating AST
> [warning] Unable to open trace metadata for path
> "/home/stjernstrom/lttng-traces/reg-20161006-130344/ust/pid/cmefeedernode_a-2013-20161006-130613".
> [warning] [Context] Cannot open_trace of format ctf at path
> /home/stjernstrom/lttng-traces/reg-20161006-130344/ust/pid/cmefeedernode_a-2013-20161006-130613.
> [warning] [Context] cannot open trace
> "/home/stjernstrom/lttng-traces/reg-20161006-130344/ust/pid/cmefeedernode_a-2013-20161006-130613"
> from /home/stjernstrom/lttng-traces/reg-20161006-130344 for reading.
> [error] Cannot open any trace for reading.
> 
> [error] opening trace
> "/home/stjernstrom/lttng-traces/reg-20161006-130344" for reading.
> 
> [error] none of the specified trace paths could be opened.
> 
> stjernstrom@E7CH1SAPPHIRE23:~/sapphire> lttng destroy
> Session reg destroyed
> stjernstrom@E7CH1SAPPHIRE23:~/sapphire> lttng --version
> lttng (LTTng Trace Control) 2.7.4 - Herbe à Détourne
> stjernstrom@E7CH1SAPPHIRE23:~/sapphire> uname -a
> Linux E7CH1SAPPHIRE23.faction.local 4.1.13-100.fc21.x86_64 #1 SMP Tue
> Nov 10 13:13:20 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
> 
> 
> _______________________________________________
> lttng-dev mailing list
> lttng-dev@lists.lttng.org
> https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

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

* Re: [error] at line 4295: token "(": syntax error, unexpected LPAREN, expecting SEMICOLON or COMMA
       [not found] ` <18e9c2e74a3cf73ebf8e9f6e473de6c4@simark.ca>
@ 2016-10-06 20:14   ` Staffan Tjernstrom
       [not found]   ` <4b4aa7c9cd3fc787af32c77c2e632a70.squirrel@email.powweb.com>
  1 sibling, 0 replies; 6+ messages in thread
From: Staffan Tjernstrom @ 2016-10-06 20:14 UTC (permalink / raw)
  To: Simon Marchi; +Cc: lttng-dev

[-- Attachment #1: Type: text/plain, Size: 490 bytes --]

> On 2016-10-06 14:14, Staffan Tjernstrom wrote:
> Hi Staffan,
>
> Are you able to provide the metadata file?  Even better, would you be
> able to share your tracepoint definition file?
>
> Simon
>
Hi Simon,

Here's one of the pid's metadata files, it does look a bit suspicious
to my untrained eye. I've also enclosed the three tracepoint
definition files that are in play.

One thing to be aware of is that our application suite is in C++, so
we have mangled symbols in the definitions.


[-- Attachment #2: definitions.tar.bz2 --]
[-- Type: application/x-bzip, Size: 8673 bytes --]

[-- Attachment #3: metadata.bz2 --]
[-- Type: application/x-bzip, Size: 6088 bytes --]

[-- Attachment #4: Type: text/plain, Size: 156 bytes --]

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

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

* Re: [error] at line 4295: token "(": syntax error, unexpected LPAREN, expecting SEMICOLON or COMMA
       [not found]   ` <4b4aa7c9cd3fc787af32c77c2e632a70.squirrel@email.powweb.com>
@ 2016-10-06 20:47     ` Mathieu Desnoyers
       [not found]     ` <1660413456.49151.1475786868858.JavaMail.zimbra@efficios.com>
  1 sibling, 0 replies; 6+ messages in thread
From: Mathieu Desnoyers @ 2016-10-06 20:47 UTC (permalink / raw)
  To: stjernstrom; +Cc: Simon Marchi, lttng-dev

----- On Oct 6, 2016, at 4:14 PM, Staffan Tjernstrom staffan@eternaltraveller.com wrote:

>> On 2016-10-06 14:14, Staffan Tjernstrom wrote:
>> Hi Staffan,
>>
>> Are you able to provide the metadata file?  Even better, would you be
>> able to share your tracepoint definition file?
>>
>> Simon
>>
> Hi Simon,
> 
> Here's one of the pid's metadata files, it does look a bit suspicious
> to my untrained eye. I've also enclosed the three tracepoint
> definition files that are in play.
> 
> One thing to be aware of is that our application suite is in C++, so
> we have mangled symbols in the definitions.

See

TRACEPOINT_EVENT(
   sapphire,
   ip_error,
   TP_ARGS(
      int, lineno_arg,
      int, socket_arg,
      int, errno_arg
     ),
   TP_FIELDS(
ctf_integer( int, source_line, lineno_arg )
      ctf_integer( int, socket, socket_arg )
      ctf_integer( int, errno, errno_arg )
      ctf_string( error_text, strerror( errno_arg ) )
      )
   )
TRACEPOINT_LOGLEVEL( sapphire, ip_error, TRACE_ERR )

It maps to this in the metadata at line 4295:
event {
        name = "sapphire:ip_error3";
        id = 349;
        stream_id = 0;
        loglevel = 13;
        fields := struct {
                integer { size = 32; align = 8; signed = 1; encoding = none; base = 10; } _source_line;
                string _address;
                integer { size = 32; align = 8; signed = 1; encoding = none; base = 10; } _port;
                integer { size = 32; align = 8; signed = 1; encoding = none; base = 10; } _(*__errno_location ());
                string _error_text;
        };
};

I suspect that "error_text" is actually a C++ macro that maps to "(*__errno_location ())",
which is unexpected.

Thanks,

Mathieu

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

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

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

* Re: [error] at line 4295: token "(": syntax error, unexpected LPAREN, expecting SEMICOLON or COMMA
       [not found]     ` <1660413456.49151.1475786868858.JavaMail.zimbra@efficios.com>
@ 2016-10-06 20:50       ` Mathieu Desnoyers
       [not found]       ` <145401627.49176.1475787020543.JavaMail.zimbra@efficios.com>
  1 sibling, 0 replies; 6+ messages in thread
From: Mathieu Desnoyers @ 2016-10-06 20:50 UTC (permalink / raw)
  To: stjernstrom; +Cc: Simon Marchi, lttng-dev

----- On Oct 6, 2016, at 4:47 PM, Mathieu Desnoyers mathieu.desnoyers@efficios.com wrote:

> ----- On Oct 6, 2016, at 4:14 PM, Staffan Tjernstrom
> staffan@eternaltraveller.com wrote:
> 
>>> On 2016-10-06 14:14, Staffan Tjernstrom wrote:
>>> Hi Staffan,
>>>
>>> Are you able to provide the metadata file?  Even better, would you be
>>> able to share your tracepoint definition file?
>>>
>>> Simon
>>>
>> Hi Simon,
>> 
>> Here's one of the pid's metadata files, it does look a bit suspicious
>> to my untrained eye. I've also enclosed the three tracepoint
>> definition files that are in play.
>> 
>> One thing to be aware of is that our application suite is in C++, so
>> we have mangled symbols in the definitions.
> 
> See
> 
> TRACEPOINT_EVENT(
>   sapphire,
>   ip_error,
>   TP_ARGS(
>      int, lineno_arg,
>      int, socket_arg,
>      int, errno_arg
>     ),
>   TP_FIELDS(
> ctf_integer( int, source_line, lineno_arg )
>      ctf_integer( int, socket, socket_arg )
>      ctf_integer( int, errno, errno_arg )
>      ctf_string( error_text, strerror( errno_arg ) )
>      )
>   )
> TRACEPOINT_LOGLEVEL( sapphire, ip_error, TRACE_ERR )
> 
> It maps to this in the metadata at line 4295:
> event {
>        name = "sapphire:ip_error3";
>        id = 349;
>        stream_id = 0;
>        loglevel = 13;
>        fields := struct {
>                integer { size = 32; align = 8; signed = 1; encoding = none; base = 10; }
>                _source_line;
>                string _address;
>                integer { size = 32; align = 8; signed = 1; encoding = none; base = 10; } _port;
>                integer { size = 32; align = 8; signed = 1; encoding = none; base = 10; }
>                _(*__errno_location ());
>                string _error_text;
>        };
> };
> 
> I suspect that "error_text" is actually a C++ macro that maps to
> "(*__errno_location ())",
> which is unexpected.

Sorry, I meant that "error" maps to "(*__errno_location ())", in the
line "ctf_integer( int, errno, errno_arg )".

Thanks,

Mathieu

> 
> Thanks,
> 
> Mathieu
> 
>> 
>> 
>> _______________________________________________
>> lttng-dev mailing list
>> lttng-dev@lists.lttng.org
>> https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
> 
> --
> Mathieu Desnoyers
> EfficiOS Inc.
> http://www.efficios.com
> _______________________________________________
> lttng-dev mailing list
> lttng-dev@lists.lttng.org
> https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

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

* Re: [error] at line 4295: token "(": syntax error, unexpected LPAREN, expecting SEMICOLON or COMMA
       [not found]       ` <145401627.49176.1475787020543.JavaMail.zimbra@efficios.com>
@ 2016-10-06 23:02         ` Staffan Tjernstrom
  0 siblings, 0 replies; 6+ messages in thread
From: Staffan Tjernstrom @ 2016-10-06 23:02 UTC (permalink / raw)
  To: Mathieu Desnoyers; +Cc: Simon Marchi, lttng-dev

> ----- On Oct 6, 2016, at 4:47 PM, Mathieu Desnoyers
> mathieu.desnoyers@efficios.com wrote:
>
>>
>> TRACEPOINT_EVENT(
>>   sapphire,
>>   ip_error,
>>   TP_ARGS(
>>      int, lineno_arg,
>>      int, socket_arg,
>>      int, errno_arg
>>     ),
>>   TP_FIELDS(
>> ctf_integer( int, source_line, lineno_arg )
>>      ctf_integer( int, socket, socket_arg )
>>      ctf_integer( int, errno, errno_arg )
>>      ctf_string( error_text, strerror( errno_arg ) )
>>      )
>>   )
>> TRACEPOINT_LOGLEVEL( sapphire, ip_error, TRACE_ERR )
>>
>> It maps to this in the metadata at line 4295:
>> event {
>>        name = "sapphire:ip_error3";
>>        id = 349;
>>        stream_id = 0;
>>        loglevel = 13;
>>        fields := struct {
>>                integer { size = 32; align = 8; signed = 1; encoding
>> = none; base = 10; }
>>                _source_line;
>>                string _address;
>>                integer { size = 32; align = 8; signed = 1; encoding
>> = none; base = 10; } _port;
>>                integer { size = 32; align = 8; signed = 1; encoding
>> = none; base = 10; }
>>                _(*__errno_location ());
>>                string _error_text;
>>        };
>> };
>>
>> I suspect that "error_text" is actually a C++ macro that maps to
>> "(*__errno_location ())",
>> which is unexpected.
>
> Sorry, I meant that "error" maps to "(*__errno_location ())", in the
> line "ctf_integer( int, errno, errno_arg )".
>
> Thanks,
>
> Mathieu
>
Doh, have I got egg on my face :)

errno is about as global a symbol as they come - oh well, easy fix.

Many thanks all for the prompt help.

Staffan Tj.

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

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

* [error] at line 4295: token "(": syntax error, unexpected LPAREN, expecting SEMICOLON or COMMA
@ 2016-10-06 18:14 Staffan Tjernstrom
  0 siblings, 0 replies; 6+ messages in thread
From: Staffan Tjernstrom @ 2016-10-06 18:14 UTC (permalink / raw)
  To: lttng-dev

Having spent about a week moving some 1500 trace statements over to
lttng, I figured it was time to try a test run. Unfortunately there
seems to be a problem with the metadata.

Any clues as to what to try next?

stjernstrom@E7CH1SAPPHIRE23:~/sapphire> lttng create reg
Spawning a session daemon
Session reg created.
Traces will be written in
/home/stjernstrom/lttng-traces/reg-20161006-130344
stjernstrom@E7CH1SAPPHIRE23:~/sapphire> lttng enable-channel -u reg
--overwrite --buffers-pid -s reg --subbuf-size 1M
UST channel reg enabled for session reg
stjernstrom@E7CH1SAPPHIRE23:~/sapphire> lttng add-context -u -t
pthread_id
UST context pthread_id added to all channels
stjernstrom@E7CH1SAPPHIRE23:~/sapphire> lttng enable-event -u -c reg -a
All UST events are enabled in channel reg
stjernstrom@E7CH1SAPPHIRE23:~/sapphire> lttng start
Tracing started for session reg
stjernstrom@E7CH1SAPPHIRE23:~/sapphire> ${my_app}
stjernstrom@E7CH1SAPPHIRE23:~/sapphire> lttng stop reg
Waiting for data availability
Tracing stopped for session reg
stjernstrom@E7CH1SAPPHIRE23:~/sapphire> lttng view reg
Trace directory: /home/stjernstrom/lttng-traces/reg-20161006-130344

[error] at line 4295: token "(": syntax error, unexpected LPAREN,
expecting SEMICOLON or COMMA

[error] Error creating AST
[warning] Unable to open trace metadata for path
"/home/stjernstrom/lttng-traces/reg-20161006-130344/ust/pid/cferouternode_a-2006-20161006-130611".
[warning] [Context] Cannot open_trace of format ctf at path
/home/stjernstrom/lttng-traces/reg-20161006-130344/ust/pid/cferouternode_a-2006-20161006-130611.
[warning] [Context] cannot open trace
"/home/stjernstrom/lttng-traces/reg-20161006-130344/ust/pid/cferouternode_a-2006-20161006-130611"
from /home/stjernstrom/lttng-traces/reg-20161006-130344 for reading.
[error] at line 4295: token "(": syntax error, unexpected LPAREN,
expecting SEMICOLON or COMMA

[error] Error creating AST
[warning] Unable to open trace metadata for path
"/home/stjernstrom/lttng-traces/reg-20161006-130344/ust/pid/cmerouternode_a-2010-20161006-130611".
[warning] [Context] Cannot open_trace of format ctf at path
/home/stjernstrom/lttng-traces/reg-20161006-130344/ust/pid/cmerouternode_a-2010-20161006-130611.
[warning] [Context] cannot open trace
"/home/stjernstrom/lttng-traces/reg-20161006-130344/ust/pid/cmerouternode_a-2010-20161006-130611"
from /home/stjernstrom/lttng-traces/reg-20161006-130344 for reading.
[error] at line 4295: token "(": syntax error, unexpected LPAREN,
expecting SEMICOLON or COMMA

[error] Error creating AST
[warning] Unable to open trace metadata for path
"/home/stjernstrom/lttng-traces/reg-20161006-130344/ust/pid/controller-2001-20161006-130602".
[warning] [Context] Cannot open_trace of format ctf at path
/home/stjernstrom/lttng-traces/reg-20161006-130344/ust/pid/controller-2001-20161006-130602.
[warning] [Context] cannot open trace
"/home/stjernstrom/lttng-traces/reg-20161006-130344/ust/pid/controller-2001-20161006-130602"
from /home/stjernstrom/lttng-traces/reg-20161006-130344 for reading.
[error] at line 4295: token "(": syntax error, unexpected LPAREN,
expecting SEMICOLON or COMMA

[error] Error creating AST
[warning] Unable to open trace metadata for path
"/home/stjernstrom/lttng-traces/reg-20161006-130344/ust/pid/cmefeedernode_a-2013-20161006-130613".
[warning] [Context] Cannot open_trace of format ctf at path
/home/stjernstrom/lttng-traces/reg-20161006-130344/ust/pid/cmefeedernode_a-2013-20161006-130613.
[warning] [Context] cannot open trace
"/home/stjernstrom/lttng-traces/reg-20161006-130344/ust/pid/cmefeedernode_a-2013-20161006-130613"
from /home/stjernstrom/lttng-traces/reg-20161006-130344 for reading.
[error] Cannot open any trace for reading.

[error] opening trace
"/home/stjernstrom/lttng-traces/reg-20161006-130344" for reading.

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

stjernstrom@E7CH1SAPPHIRE23:~/sapphire> lttng destroy
Session reg destroyed
stjernstrom@E7CH1SAPPHIRE23:~/sapphire> lttng --version
lttng (LTTng Trace Control) 2.7.4 - Herbe à Détourne
stjernstrom@E7CH1SAPPHIRE23:~/sapphire> uname -a
Linux E7CH1SAPPHIRE23.faction.local 4.1.13-100.fc21.x86_64 #1 SMP Tue
Nov 10 13:13:20 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux


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

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

end of thread, other threads:[~2016-10-06 23:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <afd5f63ed45e749ecfee26c42c6a9d6c.squirrel@email.powweb.com>
2016-10-06 19:37 ` [error] at line 4295: token "(": syntax error, unexpected LPAREN, expecting SEMICOLON or COMMA Mathieu Desnoyers
     [not found] ` <18e9c2e74a3cf73ebf8e9f6e473de6c4@simark.ca>
2016-10-06 20:14   ` Staffan Tjernstrom
     [not found]   ` <4b4aa7c9cd3fc787af32c77c2e632a70.squirrel@email.powweb.com>
2016-10-06 20:47     ` Mathieu Desnoyers
     [not found]     ` <1660413456.49151.1475786868858.JavaMail.zimbra@efficios.com>
2016-10-06 20:50       ` Mathieu Desnoyers
     [not found]       ` <145401627.49176.1475787020543.JavaMail.zimbra@efficios.com>
2016-10-06 23:02         ` Staffan Tjernstrom
2016-10-06 18:14 Staffan Tjernstrom

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.