X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Finstrumentation%2Fevents%2Fcompaction.h;fp=include%2Finstrumentation%2Fevents%2Fcompaction.h;h=f9ed7d4078bab96b2d791638bb5e4b5d3241a611;hb=175fe77cf8b3812b4a7bf0a6457b0ffaa4f606de;hp=677221416d9537d8c552ab65b2274f349e39ba71;hpb=303434ab80e94caead73bc2102b7e68cb1ff4d27;p=lttng-modules.git diff --git a/include/instrumentation/events/compaction.h b/include/instrumentation/events/compaction.h index 67722141..f9ed7d40 100644 --- a/include/instrumentation/events/compaction.h +++ b/include/instrumentation/events/compaction.h @@ -97,7 +97,22 @@ LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(compaction_isolate_template, #endif /* #else #if LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,0,0) */ -#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,18,0) || \ +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(6,9,0)) +LTTNG_TRACEPOINT_EVENT_MAP(mm_compaction_migratepages, + + compaction_migratepages, + + TP_PROTO(unsigned int nr_migratepages, + unsigned int nr_succeeded), + + TP_ARGS(nr_migratepages, nr_succeeded), + + TP_FIELDS( + ctf_integer(unsigned long, nr_migrated, nr_succeeded) + ctf_integer(unsigned long, nr_failed, nr_migratepages - nr_succeeded) + ) +) +#elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,18,0) || \ LTTNG_RHEL_KERNEL_RANGE(5,14,0,163,0,0, 5,15,0,0,0,0)) LTTNG_TRACEPOINT_EVENT_MAP(mm_compaction_migratepages,