From mboxrd@z Thu Jan 1 00:00:00 1970 From: staffan@eternaltraveller.com (Staffan Tjernstrom) Date: Thu, 6 Oct 2016 18:02:51 -0500 Subject: [lttng-dev] [error] at line 4295: token "(": syntax error, unexpected LPAREN, expecting SEMICOLON or COMMA In-Reply-To: <145401627.49176.1475787020543.JavaMail.zimbra@efficios.com> References: <18e9c2e74a3cf73ebf8e9f6e473de6c4@simark.ca> <4b4aa7c9cd3fc787af32c77c2e632a70.squirrel@email.powweb.com> <1660413456.49151.1475786868858.JavaMail.zimbra@efficios.com> <145401627.49176.1475787020543.JavaMail.zimbra@efficios.com> Message-ID: <2962f0556943a5ab5e0b6b3ea9e7baf4.squirrel@email.powweb.com> > ----- On Oct 6, 2016, at 4:47 PM, Mathieu Desnoyers > mathieu.desnoyers at 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.