From: Mathieu Desnoyers Date: Fri, 12 Oct 2012 21:01:25 +0000 (-0400) Subject: Fix exec instrumentation: only for kernels 3.4.0 and higher X-Git-Tag: v2.1.0~6 X-Git-Url: http://git.lttng.org/?p=lttng-modules.git;a=commitdiff_plain;h=c94b2508a4ccaf89108b5ed4b282be01a2f597ac Fix exec instrumentation: only for kernels 3.4.0 and higher Signed-off-by: Mathieu Desnoyers --- diff --git a/instrumentation/events/lttng-module/sched.h b/instrumentation/events/lttng-module/sched.h index 23e4955a..ca46ed05 100644 --- a/instrumentation/events/lttng-module/sched.h +++ b/instrumentation/events/lttng-module/sched.h @@ -313,6 +313,7 @@ TRACE_EVENT(sched_process_fork, __entry->child_comm, __entry->child_tid) ) +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0)) /* * Tracepoint for exec: */ @@ -338,6 +339,7 @@ TRACE_EVENT(sched_process_exec, TP_printk("filename=%s pid=%d old_pid=%d", __get_str(filename), __entry->pid, __entry->old_pid) ) +#endif /* * XXX the below sched_stat tracepoints only apply to SCHED_OTHER/BATCH/IDLE