X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=wrapper%2Ftracepoint.h;h=f930a5a0dfdca2f1c81ef8eca06e4c09a5f57429;hb=858618467cf7b7cb9f83ca283b45187ecb13c8cf;hp=780f9a86607adf55848a72f4b5c2c7fef3d2e9c4;hpb=a9799a5121562e2e5fa8f31b01151f195efc92fc;p=lttng-modules.git diff --git a/wrapper/tracepoint.h b/wrapper/tracepoint.h index 780f9a86..f930a5a0 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 * const *p) +{ + return *p; +} +#endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,19,0)) */ + #endif /* _LTTNG_WRAPPER_TRACEPOINT_H */