#endif /* ONCE_LTTNG_RPC_H */
-#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,0,0))
+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,0,0) || \
+ LTTNG_RHEL_KERNEL_RANGE(4,18,0,193,0,0, 4,19,0,0,0,0))
LTTNG_TRACEPOINT_EVENT_CLASS(rpc_task_status,
TP_PROTO(const struct rpc_task *task),
)
#endif /* #else #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,2,0)) */
-#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,2,0))
+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,2,0) || \
+ LTTNG_RHEL_KERNEL_RANGE(4,18,0,193,0,0, 4,19,0,0,0,0))
/**
* timer_expire_entry - called immediately before the timer callback
* @timer: pointer to struct timer_list
LTTNG_KERNEL_RANGE(4,14,218, 4,15,0) || \
LTTNG_KERNEL_RANGE(4,19,172, 4,20,0) || \
LTTNG_KERNEL_RANGE(5,4,94, 5,5,0) || \
- LTTNG_UBUNTU_KERNEL_RANGE(4,15,18,141, 4,16,0,0))
+ LTTNG_UBUNTU_KERNEL_RANGE(4,15,18,141, 4,16,0,0) || \
+ LTTNG_RHEL_KERNEL_RANGE(4,18,0,240,0,0, 4,19,0,0,0,0))
#define show_inode_state(state) \
__print_flags(state, "|", \
{I_DIRTY_SYNC, "I_DIRTY_SYNC"}, \
LTTNG_KERNEL_RANGE(4,14,196, 4,15,0) || \
LTTNG_KERNEL_RANGE(4,9,235, 4,10,0) || \
LTTNG_KERNEL_RANGE(4,4,235, 4,5,0) || \
- LTTNG_UBUNTU_KERNEL_RANGE(4,15,18,119, 4,16,0,0))
+ LTTNG_UBUNTU_KERNEL_RANGE(4,15,18,119, 4,16,0,0) || \
+ LTTNG_RHEL_KERNEL_RANGE(4,18,0,240,0,0, 4,19,0,0,0,0))
LTTNG_TRACEPOINT_EVENT(writeback_queue_io,
TP_PROTO(struct bdi_writeback *wb,
struct wb_writeback_work *work,
/*
* fault() vm_op implementation for ring buffer file mapping.
*/
-#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,1,0))
+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,1,0) || \
+ LTTNG_RHEL_KERNEL_RANGE(4,18,0,193,0,0, 4,19,0,0,0,0))
static vm_fault_t lib_ring_buffer_fault_compat(struct vm_area_struct *vma, struct vm_fault *vmf)
#else
static int lib_ring_buffer_fault_compat(struct vm_area_struct *vma, struct vm_fault *vmf)
return 0;
}
-#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,1,0))
+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,1,0) || \
+ LTTNG_RHEL_KERNEL_RANGE(4,18,0,193,0,0, 4,19,0,0,0,0))
static vm_fault_t lib_ring_buffer_fault(struct vm_fault *vmf)
{
struct vm_area_struct *vma = vmf->vma;
void synchronize_trace(void)
{
-#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,1,0))
+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,1,0) || \
+ LTTNG_RHEL_KERNEL_RANGE(4,18,0,193,0,0, 4,19,0,0,0,0))
synchronize_rcu();
#else
synchronize_sched();
|| LTTNG_KERNEL_RANGE(4,19,113, 4,20,0) \
|| LTTNG_KERNEL_RANGE(4,14,175, 4,15,0) \
|| LTTNG_KERNEL_RANGE(4,9,218, 4,10,0) \
- || LTTNG_KERNEL_RANGE(4,4,218, 4,5,0)) \
+ || LTTNG_KERNEL_RANGE(4,4,218, 4,5,0) \
|| LTTNG_UBUNTU_KERNEL_RANGE(4,15,18,97, 4,16,0,0) \
|| LTTNG_UBUNTU_KERNEL_RANGE(5,0,21,48, 5,1,0,0) \
- || LTTNG_UBUNTU_KERNEL_RANGE(5,3,18,52, 5,4,0,0)
+ || LTTNG_UBUNTU_KERNEL_RANGE(5,3,18,52, 5,4,0,0) \
+ || LTTNG_RHEL_KERNEL_RANGE(4,18,0,240,0,0, 4,19,0,0,0,0))
static inline
void wrapper_vmalloc_sync_mappings(void)