From c94b2508a4ccaf89108b5ed4b282be01a2f597ac Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Fri, 12 Oct 2012 17:01:25 -0400 Subject: [PATCH] Fix exec instrumentation: only for kernels 3.4.0 and higher Signed-off-by: Mathieu Desnoyers --- instrumentation/events/lttng-module/sched.h | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.34.1