Skip to contentSkip to conversation

lib-test_free_pages-add-basic-progress-indicators.patch removed from -mm tree

merged [email protected] 1 participant 1 message Dec 16, 2020

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: lib/test_free_pages.c: add basic progress indicators
has been removed from the -mm tree. Its filename was
lib-test_free_pages-add-basic-progress-indicators.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Geert Uytterhoeven <[email protected]>
Subject: lib/test_free_pages.c: add basic progress indicators

The test module to check that free_pages() does not leak memory does not provide any feedback whatsoever its state or progress, but may take some time on slow machines. Add the printing of messages upon starting each phase of the test, and upon completion.

---

 lib/test_free_pages.c |    5 +++++
 1 file changed, 5 insertions(+)
lib/test_free_pages.c renamed from lib/test_free_pages.c~lib-test_free_pages-add-basic-progress-indicators +5 -0
@@ -5,6 +5,8 @@
  * Author: Matthew Wilcox <[email protected]>
  */
 
+#define pr_fmt(fmt)	KBUILD_MODNAME ": " fmt
+
 #include <linux/gfp.h>
 #include <linux/mm.h>
 #include <linux/module.h>
@@ -26,8 +28,11 @@ static void test_free_pages(gfp_t gfp)
 
 static int m_in(void)
 {
+	pr_info("Testing with GFP_KERNEL\n");
 	test_free_pages(GFP_KERNEL);
+	pr_info("Testing with GFP_KERNEL | __GFP_COMP\n");
 	test_free_pages(GFP_KERNEL | __GFP_COMP);
+	pr_info("Test completed\n");
 
 	return 0;
 }

_

Patches currently in -mm which might be from [email protected] are