From: franck.balazot@oneaccess-net.com (Franck Balazot)
Subject: [lttng-dev] Using tracepoint call inside a macro
Date: Tue, 21 Apr 2015 11:21:56 +0200 [thread overview]
Message-ID: <553616B4.4060706@oneaccess-net.com> (raw)
Hi all,
I wonder if it is possible to define a macro containing a tracepoint
(which is also a macro) call.
As a very simple example, using :
#define TRACE(subsystem, tracepoint, params...) tracepoint(subsystem,
tracepoint, params)
TRACE(provider, tp1, arg);
is not compiling (tracepoint macro seems not to be expanded), whereas
direct call
tracepoint(provider, tp1, arg);
is compiling.
Any idea ?
BR
Franck
reply other threads:[~2015-04-21 9:21 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=553616B4.4060706@oneaccess-net.com \
--to=franck.balazot@oneaccess-net.com \
/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