From mboxrd@z Thu Jan 1 00:00:00 1970 From: franck.balazot@oneaccess-net.com (Franck Balazot) Date: Tue, 21 Apr 2015 11:21:56 +0200 Subject: [lttng-dev] Using tracepoint call inside a macro Message-ID: <553616B4.4060706@oneaccess-net.com> 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