X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=wrapper%2Ftracepoint.h;h=758038b68f08c7f3920d90be155b95b217ceae24;hb=c6b31b349fe901a8f586a66064f9e9b15449ac1c;hp=3883e11ab13b82065dd88504ada80260c4a28373;hpb=14bbccffa579f4d66e2900843d6afae1294ce7c8;p=lttng-modules.git diff --git a/wrapper/tracepoint.h b/wrapper/tracepoint.h index 3883e11a..758038b6 100644 --- a/wrapper/tracepoint.h +++ b/wrapper/tracepoint.h @@ -20,6 +20,14 @@ #endif +#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