#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,0,0)
-LTTNG_TRACEPOINT_EVENT_CLASS(mm_compaction_isolate_template,
+LTTNG_TRACEPOINT_EVENT_CLASS(compaction_isolate_template,
TP_PROTO(unsigned long start_pfn,
unsigned long end_pfn,
__entry->nr_taken)
)
-LTTNG_TRACEPOINT_EVENT_INSTANCE(mm_compaction_isolate_template, mm_compaction_isolate_migratepages,
+LTTNG_TRACEPOINT_EVENT_INSTANCE(compaction_isolate_template, mm_compaction_isolate_migratepages,
TP_PROTO(unsigned long start_pfn,
unsigned long end_pfn,
TP_ARGS(start_pfn, end_pfn, nr_scanned, nr_taken)
)
-LTTNG_TRACEPOINT_EVENT_INSTANCE(mm_compaction_isolate_template, mm_compaction_isolate_freepages,
+LTTNG_TRACEPOINT_EVENT_INSTANCE(compaction_isolate_template, mm_compaction_isolate_freepages,
TP_PROTO(unsigned long start_pfn,
unsigned long end_pfn,
#else /* #if LINUX_VERSION_CODE >= KERNEL_VERSION(4,0,0) */
-LTTNG_TRACEPOINT_EVENT_CLASS(mm_compaction_isolate_template,
+LTTNG_TRACEPOINT_EVENT_CLASS(compaction_isolate_template,
TP_PROTO(unsigned long nr_scanned,
unsigned long nr_taken),
__entry->nr_taken)
)
-LTTNG_TRACEPOINT_EVENT_INSTANCE(mm_compaction_isolate_template, mm_compaction_isolate_migratepages,
+LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(compaction_isolate_template,
+
+ mm_compaction_isolate_migratepages,
+
+ compaction_isolate_migratepages,
TP_PROTO(unsigned long nr_scanned,
unsigned long nr_taken),
TP_ARGS(nr_scanned, nr_taken)
)
-LTTNG_TRACEPOINT_EVENT_INSTANCE(mm_compaction_isolate_template, mm_compaction_isolate_freepages,
+LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(compaction_isolate_template,
+
+ mm_compaction_isolate_freepages,
+
+ compaction_isolate_freepages,
+
TP_PROTO(unsigned long nr_scanned,
unsigned long nr_taken),
#if LTTNG_KERNEL_RANGE(3,12,30, 3,13,0) || \
LTTNG_KERNEL_RANGE(3,14,25, 3,15,0) || \
(LINUX_VERSION_CODE >= KERNEL_VERSION(3,16,0))
-LTTNG_TRACEPOINT_EVENT(mm_compaction_migratepages,
+LTTNG_TRACEPOINT_EVENT_MAP(mm_compaction_migratepages,
+
+ compaction_migratepages,
TP_PROTO(unsigned long nr_all,
int migrate_rc,
__entry->nr_failed)
)
#else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,16,0)) */
-LTTNG_TRACEPOINT_EVENT(mm_compaction_migratepages,
+LTTNG_TRACEPOINT_EVENT_MAP(mm_compaction_migratepages,
+
+ compaction_migratepages,
TP_PROTO(unsigned long nr_migrated,
unsigned long nr_failed),