From: Mathieu Desnoyers Date: Fri, 24 Jun 2011 02:13:37 +0000 (-0400) Subject: Add check for old tracepoint kernel X-Git-Tag: v2.0-pre1~41 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=ef200626172d529e42df4331f2abe92f875bc64a;p=lttng-modules.git Add check for old tracepoint kernel Signed-off-by: Mathieu Desnoyers --- diff --git a/ltt-events.h b/ltt-events.h index 32c87358..4d4eea93 100644 --- a/ltt-events.h +++ b/ltt-events.h @@ -359,4 +359,8 @@ void lttng_ftrace_destroy_private(struct ltt_event *event) extern const struct file_operations lttng_tracepoint_list_fops; +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35)) +#define TRACEPOINT_HAS_DATA_ARG +#endif + #endif /* _LTT_EVENTS_H */