From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f47.google.com (mail-wg0-f47.google.com [74.125.82.47]) by kanga.kvack.org (Postfix) with ESMTP id 0DC396B0038 for ; Tue, 30 Dec 2014 09:41:11 -0500 (EST) Received: by mail-wg0-f47.google.com with SMTP id n12so20550302wgh.6 for ; Tue, 30 Dec 2014 06:41:10 -0800 (PST) Received: from mail-wi0-x22b.google.com (mail-wi0-x22b.google.com. [2a00:1450:400c:c05::22b]) by mx.google.com with ESMTPS id o10si23495439wjf.33.2014.12.30.06.41.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 30 Dec 2014 06:41:10 -0800 (PST) Received: by mail-wi0-f171.google.com with SMTP id bs8so24133643wib.4 for ; Tue, 30 Dec 2014 06:41:10 -0800 (PST) From: Michal Nazarewicz Subject: Re: [PATCH 3/3] cma: add functions to get region pages counters In-Reply-To: <20141230022625.GA4588@js1304-P5Q-DELUXE> References: <20141230022625.GA4588@js1304-P5Q-DELUXE> Date: Tue, 30 Dec 2014 15:41:05 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Sender: owner-linux-mm@kvack.org List-ID: To: Joonsoo Kim , "Stefan I. Strogin" Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Dmitry Safonov , Andrew Morton , Marek Szyprowski , aneesh.kumar@linux.vnet.ibm.com, Laurent Pinchart , Pintu Kumar , Weijie Yang , Laura Abbott , SeongJae Park , Hui Zhu , Minchan Kim , Dyasly Sergey , Vyacheslav Tyrtov > On Fri, Dec 26, 2014 at 05:39:04PM +0300, Stefan I. Strogin wrote: >> From: Dmitry Safonov >> @@ -591,6 +621,10 @@ static int s_show(struct seq_file *m, void *p) >> struct cma_buffer *cmabuf; >> struct stack_trace trace; >>=20=20 >> + seq_printf(m, "CMARegion stat: %8lu kB total, %8lu kB used, %8lu kB ma= x contiguous chunk\n\n", >> + cma_get_size(cma) >> 10, >> + cma_get_used(cma) >> 10, >> + cma_get_maxchunk(cma) >> 10); >> mutex_lock(&cma->list_lock); >>=20=20 >> list_for_each_entry(cmabuf, &cma->buffers_list, list) { On Tue, Dec 30 2014, Joonsoo Kim wrote: > How about changing printing format like as meminfo or zoneinfo? > > CMARegion # > Total: XXX > Used: YYY > MaxContig: ZZZ +1. I was also thinking about this actually. --=20 Best regards, _ _ .o. | Liege of Serenely Enlightened Majesty of o' \,=3D./ `o ..o | Computer Science, Micha=C5=82 =E2=80=9Cmina86=E2=80=9D Nazarewicz = (o o) ooo +------ooO--(_)--Ooo-- -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org