linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm: cma: print cma name as well in cma_alloc debug
@ 2023-07-06 18:27 Pintu Kumar
  2023-07-06 18:33 ` [PATCH v2] " Pintu Kumar
  0 siblings, 1 reply; 11+ messages in thread
From: Pintu Kumar @ 2023-07-06 18:27 UTC (permalink / raw)
  To: linux-kernel, akpm, linux-mm; +Cc: quic_pintu, pintu.ping

CMA allocation can happen either from global cma or from
dedicated cma region.

Thus it is helpful to print cma name as well during initial
debugging to confirm cma regions were getting initialized or not.

Signed-off-by: Pintu Kumar <quic_pintu@quicinc.com>
Signed-off-by: Pintu Agarwal <pintu.ping@gmail.com>
---
 mm/cma.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mm/cma.c b/mm/cma.c
index a4cfe99..96718b53 100644
--- a/mm/cma.c
+++ b/mm/cma.c
@@ -436,8 +436,8 @@ struct page *cma_alloc(struct cma *cma, unsigned long count,
 	if (!cma || !cma->count || !cma->bitmap)
 		goto out;
 
-	pr_debug("%s(cma %p, count %lu, align %d)\n", __func__, (void *)cma,
-		 count, align);
+	pr_info("%s(cma %p, name: %s, count %lu, align %d)\n", __func__,
+		(void *)cma, cma->name, count, align);
 
 	if (!count)
 		goto out;
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-07-12 14:05 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-06 18:27 [PATCH] mm: cma: print cma name as well in cma_alloc debug Pintu Kumar
2023-07-06 18:33 ` [PATCH v2] " Pintu Kumar
2023-07-07 10:27   ` Anshuman Khandual
2023-07-07 12:46     ` Matthew Wilcox
2023-07-07 14:06       ` Pintu Agarwal
2023-07-07 14:09         ` Matthew Wilcox
2023-07-07 14:16           ` Pintu Agarwal
2023-07-07 14:22             ` Matthew Wilcox
2023-07-07 14:33               ` Pintu Agarwal
2023-07-08  6:52                 ` Pintu Agarwal
2023-07-12 14:02                   ` Pintu Agarwal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).