X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=include%2Finstrumentation%2Fevents%2Fcompaction.h;h=ecae39a89e050aeee96156df503506e188f2602c;hb=4bc54914836f765470e487f832398072a6f1372b;hp=15964537a120ae2716a6b5c47d79156fbe754cfb;hpb=d7916cc4ea066bdcdfeb0d98964f9d6b39dd6c73;p=lttng-modules.git diff --git a/include/instrumentation/events/compaction.h b/include/instrumentation/events/compaction.h index 15964537..ecae39a8 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,17,0)) +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,18,0)) +LTTNG_TRACEPOINT_EVENT_MAP(mm_compaction_migratepages, + + compaction_migratepages, + + TP_PROTO(struct compact_control *cc, + unsigned int nr_succeeded), + + TP_ARGS(cc, nr_succeeded), + + TP_FIELDS( + ctf_integer(unsigned long, nr_migrated, nr_succeeded) + ctf_integer(unsigned long, nr_failed, cc->nr_migratepages - nr_succeeded) + ) +) +#elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,17,0)) LTTNG_TRACEPOINT_EVENT_MAP(mm_compaction_migratepages, compaction_migratepages,