From c40208459d8e02bcd1914461957e076333944336 Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Fri, 24 Jan 2025 20:16:33 +0000 Subject: [PATCH] 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 --- include/instrumentation/events/compaction.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/instrumentation/events/compaction.h b/include/instrumentation/events/compaction.h index cc745388..c299e252 100644 --- a/include/instrumentation/events/compaction.h +++ b/include/instrumentation/events/compaction.h @@ -88,7 +88,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, -- 2.39.5