From: sylvain.geneves@inrialpes.fr (Sylvain Geneves)
Subject: [ltt-dev] compiling tracepoints in UST
Date: Mon, 10 May 2010 11:18:49 +0200 [thread overview]
Message-ID: <4BE7CF79.3000609@inrialpes.fr> (raw)
Hi,
I tried to use tracepoints with UST but i have a problem when it comes
to compile my code...
for a better understanding, i gave it a try with the tracepoint exemple
from the UST manual, replacing my_channel with ust and it gives the same
thing.
Here is the content of the problematic file :
1 #include <ust/tracepoint.h>
2
3 DECLARE_TRACE(ust_myevent, TPPROTO(int v, char *st), TPARGS(v, st));
Here is the error :
tp.h:3: error: expected ?)? before ?(? token
tp.h:3: error: expected ?)? before ?(? token
tp.h:3: error: expected ?)? before ?(? token
tp.h: In function ?register_trace_ust_myevent?:
tp.h:3: error: ?probe? undeclared (first use in this function)
tp.h:3: error: (Each undeclared identifier is reported only once
tp.h:3: error: for each function it appears in.)
tp.h: At top level:
tp.h:3: error: expected ?)? before ?(? token
tp.h: In function ?unregister_trace_ust_myevent?:
tp.h:3: error: ?probe? undeclared (first use in this function)
I've got some difficulties understanding the nested macros behind
DECLARE_TRACE, and i can't see why such an error is triggered, so if
anyone has a clue i'd really appreciate it.
I'm using the git version of UST, and here's my output of gcc --version:
gcc (Debian 4.4.4-1) 4.4.4
Thanks in advance
Regards
Sylvain
next reply other threads:[~2010-05-10 9:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-10 9:18 Sylvain Geneves [this message]
2010-06-19 16:23 ` Mathieu Desnoyers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4BE7CF79.3000609@inrialpes.fr \
--to=sylvain.geneves@inrialpes.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox