X-Git-Url: http://git.lttng.org/?p=lttng-modules.git;a=blobdiff_plain;f=include%2Fwrapper%2Ftracepoint.h;h=41fcfad670e48a5ed2d2b0e3c7603eb5d7743901;hp=9f631abdbd30010e56523e95c5dff8b143c43b57;hb=0116245fd67c8cf8e63a63e6c964577f0d734e36;hpb=5e3317501af1b5d3474369f1ea8186ec3ebc628c diff --git a/include/wrapper/tracepoint.h b/include/wrapper/tracepoint.h index 9f631abd..41fcfad6 100644 --- a/include/wrapper/tracepoint.h +++ b/include/wrapper/tracepoint.h @@ -14,6 +14,14 @@ #include #include +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,10,0)) +#define LTTNG_DEFINE_TRACE(name, proto, args) \ + DEFINE_TRACE(name, PARAMS(proto), PARAMS(args)) +#else +#define LTTNG_DEFINE_TRACE(name, proto, args) \ + DEFINE_TRACE(name) +#endif + #ifndef HAVE_KABI_2635_TRACEPOINT #define kabi_2635_tracepoint_probe_register tracepoint_probe_register