X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=wrapper%2Ftracepoint.h;h=bc19d8c123139cd27aceea1c579b9f962e7e044f;hb=bb346792c2cb6995ffc08d2084121935c6384865;hp=c4ba01231766dd21e546d2ba90cd71d895590f5a;hpb=2cb535ad4e8430a222cc408bd7ae9a2f55e80850;p=lttng-modules.git diff --git a/wrapper/tracepoint.h b/wrapper/tracepoint.h index c4ba0123..bc19d8c1 100644 --- a/wrapper/tracepoint.h +++ b/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