From: Paul Woegerer Date: Mon, 7 Jul 2014 14:04:21 +0000 (+0200) Subject: Add lttng_ust_notrace to static inline functions X-Git-Tag: v2.4.2~2 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=8029811d7126f23d0a2cc796f8cb4b86474541bb;p=lttng-ust.git Add lttng_ust_notrace to static inline functions The static inline functions __tracepoint_provider_mismatch_ and __tracepoint_provider_check_ are missing the lttng_ust_notrace attribute to prevent them from getting instrumented with -finstrument-functions (if e.g. defined in CFLAGS). This patch is adding the attribute to those functions. Signed-off-by: Paul Woegerer Signed-off-by: Mathieu Desnoyers --- diff --git a/include/lttng/ust-tracepoint-event.h b/include/lttng/ust-tracepoint-event.h index d12e8bb7..88953108 100644 --- a/include/lttng/ust-tracepoint-event.h +++ b/include/lttng/ust-tracepoint-event.h @@ -75,6 +75,8 @@ /* Reset all macros within TRACEPOINT_EVENT */ #include +static inline lttng_ust_notrace +void _TP_COMBINE_TOKENS(__tracepoint_provider_mismatch_, TRACEPOINT_PROVIDER)(void); static inline void _TP_COMBINE_TOKENS(__tracepoint_provider_mismatch_, TRACEPOINT_PROVIDER)(void) { @@ -88,6 +90,8 @@ void _TP_COMBINE_TOKENS(__tracepoint_provider_mismatch_, TRACEPOINT_PROVIDER)(vo #define TRACEPOINT_EVENT_INSTANCE(_provider, _template, _name, _args) \ __tracepoint_provider_mismatch_##_provider(); +static inline lttng_ust_notrace +void _TP_COMBINE_TOKENS(__tracepoint_provider_check_, TRACEPOINT_PROVIDER)(void); static inline void _TP_COMBINE_TOKENS(__tracepoint_provider_check_, TRACEPOINT_PROVIDER)(void) {