X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=instrumentation%2Fevents%2Flttng-module%2Fprintk.h;h=b01ac59b22dcaf8a32b9a65020041f8ec6b2b0cd;hb=2d0428212cbfa3f8428feee160b095f48c2ac974;hp=077fc45c0d614ba2f7ba70f8d0d40c8a4bebe01a;hpb=6ec43db836429730c1431809049197a4fbe820fa;p=lttng-modules.git diff --git a/instrumentation/events/lttng-module/printk.h b/instrumentation/events/lttng-module/printk.h index 077fc45c..b01ac59b 100644 --- a/instrumentation/events/lttng-module/printk.h +++ b/instrumentation/events/lttng-module/printk.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #undef TRACE_SYSTEM #define TRACE_SYSTEM printk @@ -5,9 +6,9 @@ #define LTTNG_TRACE_PRINTK_H #include -#include +#include -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0)) +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,10,0)) LTTNG_TRACEPOINT_EVENT_MAP(console, @@ -22,7 +23,7 @@ LTTNG_TRACEPOINT_EVENT_MAP(console, ) ) -#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0)) +#elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,5,0)) LTTNG_TRACEPOINT_EVENT_MAP(console, @@ -39,7 +40,7 @@ LTTNG_TRACEPOINT_EVENT_MAP(console, ) ) -#else /* (LINUX_VERSION_CODE < KERNEL_VERSION(3,5,0)) */ +#else /* (LTTNG_LINUX_VERSION_CODE < LTTNG_KERNEL_VERSION(3,5,0)) */ LTTNG_TRACEPOINT_EVENT_MAP(console,