Fix exec instrumentation: only for kernels 3.4.0 and higher
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 12 Oct 2012 21:01:25 +0000 (17:01 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 12 Oct 2012 21:01:25 +0000 (17:01 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
instrumentation/events/lttng-module/sched.h

index 23e4955ac7b4bfb7a9c86b7e9f2eb5087708655d..ca46ed05cf7e4d4a52bff67b50fb1156e3e591f4 100644 (file)
@@ -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
This page took 0.027465 seconds and 4 git commands to generate.