X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=wrapper%2Ftracepoint.h;h=a860cb82a888d24d10d9d2f9621e6d6a20c7f911;hb=f083002c25bb222c2e07bbffb17f77afab96b765;hp=780f9a86607adf55848a72f4b5c2c7fef3d2e9c4;hpb=b1ddb9416fae4adb1e74d5218cecc4d152e36468;p=lttng-modules.git diff --git a/wrapper/tracepoint.h b/wrapper/tracepoint.h index 780f9a86..a860cb82 100644 --- a/wrapper/tracepoint.h +++ b/wrapper/tracepoint.h @@ -120,4 +120,16 @@ int wrapper_lttng_fixup_sig(struct module *mod) #endif /*#else #if defined(CONFIG_MODULE_SIG) && defined(MODULE) */ +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,19,0)) +static inline struct tracepoint *lttng_tracepoint_ptr_deref(tracepoint_ptr_t *p) +{ + return tracepoint_ptr_deref(p); +} +#else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,19,0)) */ +static inline struct tracepoint *lttng_tracepoint_ptr_deref(struct tracepoint **p) +{ + return *p; +} +#endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,19,0)) */ + #endif /* _LTTNG_WRAPPER_TRACEPOINT_H */