Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
* [lttng-dev] Using tracepoint call inside a macro
@ 2015-04-21  9:21 Franck Balazot
  0 siblings, 0 replies; only message in thread
From: Franck Balazot @ 2015-04-21  9:21 UTC (permalink / 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





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-04-21  9:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-21  9:21 [lttng-dev] Using tracepoint call inside a macro Franck Balazot

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