X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=include%2Finstrumentation%2Fevents%2Fsched.h;h=f6f258ad5de2e91185b4baf1ddc55b1f31fc007a;hb=9f2d2694cf0655682a1f0c29a7f3b868680524a5;hp=a08495e81acfd14fa1174c7cb84d41225a0d7b99;hpb=63e36d2e65f91ddab7c12581e3bb9ebc14fbbdb2;p=lttng-modules.git diff --git a/include/instrumentation/events/sched.h b/include/instrumentation/events/sched.h index a08495e8..f6f258ad 100644 --- a/include/instrumentation/events/sched.h +++ b/include/instrumentation/events/sched.h @@ -17,7 +17,8 @@ #ifndef _TRACE_SCHED_DEF_ #define _TRACE_SCHED_DEF_ -#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,18,0)) +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,18,0) \ + || LTTNG_RHEL_KERNEL_RANGE(5,14,0,162,0,0, 5,15,0,0,0,0)) static inline long __trace_sched_switch_state(bool preempt, unsigned int prev_state, @@ -222,7 +223,8 @@ LTTNG_TRACEPOINT_EVENT_INSTANCE(sched_wakeup_template, sched_wakeup_new, * Tracepoint for task switches, performed by the scheduler: */ -#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,18,0)) +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,18,0) \ + || LTTNG_RHEL_KERNEL_RANGE(5,14,0,162,0,0, 5,15,0,0,0,0)) LTTNG_TRACEPOINT_EVENT(sched_switch, TP_PROTO(bool preempt,