From: Kienan Stewart Date: Fri, 24 Jan 2025 20:16:33 +0000 (+0000) Subject: Fix: migratepages removed from compaction_migratepages in SLE15 SP5 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=4cf82a2df09fab927d694025c2a2ddac6584585a;p=lttng-modules.git Fix: migratepages removed from compaction_migratepages in SLE15 SP5 See upstream SUSE commit: commit fefdc7d1ef5da10f35c8639660eaf2bf1ed40d3f Author: Mel Gorman Date: Fri Dec 2 17:36:26 2022 +0000 Delete patches.rt/locking-lockdep-Provide-lockdep_assert-_once-helpers.patch. Refresh patches.rt/powerpc-Add-support-for-lazy-preemption.patch. suse-commit: 9b6a19f03339b75aa60ccec7d10efe8d54e362d6 Change-Id: I8525fd3f91d6c1f1ca9d48ffa638af4e31656032 Signed-off-by: Kienan Stewart Signed-off-by: Mathieu Desnoyers --- diff --git a/include/instrumentation/events/compaction.h b/include/instrumentation/events/compaction.h index f9ed7d40..a219ece5 100644 --- a/include/instrumentation/events/compaction.h +++ b/include/instrumentation/events/compaction.h @@ -128,7 +128,8 @@ LTTNG_TRACEPOINT_EVENT_MAP(mm_compaction_migratepages, ctf_integer(unsigned long, nr_failed, cc->nr_migratepages - nr_succeeded) ) ) -#elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,17,0)) +#elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,17,0) \ + || LTTNG_SLE_VERSION_CODE >= LTTNG_SLE_VERSION(150500, 0, 0)) LTTNG_TRACEPOINT_EVENT_MAP(mm_compaction_migratepages, compaction_migratepages,