X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=instrumentation%2Fevents%2Flttng-module%2Fsched.h;h=ca46ed05cf7e4d4a52bff67b50fb1156e3e591f4;hb=c94b2508a4ccaf89108b5ed4b282be01a2f597ac;hp=23e4955ac7b4bfb7a9c86b7e9f2eb5087708655d;hpb=46142a81c9c0cafd313852003df68048d199d0cc;p=lttng-modules.git 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