+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,8,0))
+
+LTTNG_TRACEPOINT_EVENT_CLASS(mm_vmscan_lru_isolate_template,
+
+ TP_PROTO(int classzone_idx,
+ int order,
+ unsigned long nr_requested,
+ unsigned long nr_scanned,
+ unsigned long nr_taken,
+ isolate_mode_t isolate_mode,
+ int file
+ ),
+
+ TP_ARGS(classzone_idx, order, nr_requested, nr_scanned, nr_taken,
+ isolate_mode, file
+ ),
+
+
+ TP_FIELDS(
+ ctf_integer(int, classzone_idx, classzone_idx)
+ ctf_integer(int, order, order)
+ ctf_integer(unsigned long, nr_requested, nr_requested)
+ ctf_integer(unsigned long, nr_scanned, nr_scanned)
+ ctf_integer(unsigned long, nr_taken, nr_taken)
+ ctf_integer(isolate_mode_t, isolate_mode, isolate_mode)
+ ctf_integer(int, file, file)
+ )
+)
+
+LTTNG_TRACEPOINT_EVENT_INSTANCE(mm_vmscan_lru_isolate_template, mm_vmscan_lru_isolate,
+
+ TP_PROTO(int classzone_idx,
+ int order,
+ unsigned long nr_requested,
+ unsigned long nr_scanned,
+ unsigned long nr_taken,
+ isolate_mode_t isolate_mode,
+ int file
+ ),
+
+ TP_ARGS(classzone_idx, order, nr_requested, nr_scanned, nr_taken,
+ isolate_mode, file
+ )
+
+)
+
+LTTNG_TRACEPOINT_EVENT_INSTANCE(mm_vmscan_lru_isolate_template, mm_vmscan_memcg_isolate,
+
+ TP_PROTO(int classzone_idx,
+ int order,
+ unsigned long nr_requested,
+ unsigned long nr_scanned,
+ unsigned long nr_taken,
+ isolate_mode_t isolate_mode,
+ int file
+ ),
+
+ TP_ARGS(classzone_idx, order, nr_requested, nr_scanned, nr_taken,
+ isolate_mode, file
+ )
+)
+
+#else
+