From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ig0-f182.google.com (mail-ig0-f182.google.com [209.85.213.182]) by kanga.kvack.org (Postfix) with ESMTP id 2E00A6B0038 for ; Mon, 29 Dec 2014 16:11:29 -0500 (EST) Received: by mail-ig0-f182.google.com with SMTP id hn15so11846377igb.15 for ; Mon, 29 Dec 2014 13:11:29 -0800 (PST) Received: from smtp.codeaurora.org (smtp.codeaurora.org. [198.145.11.231]) by mx.google.com with ESMTPS id w6si6619607icy.84.2014.12.29.13.11.27 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Dec 2014 13:11:28 -0800 (PST) Message-ID: <54A1C37D.5000106@codeaurora.org> Date: Mon, 29 Dec 2014 13:11:25 -0800 From: Laura Abbott MIME-Version: 1.0 Subject: Re: [PATCH 2/3] mm: cma: introduce /proc/cmainfo References: <264ce8ad192124f2afec9a71a2fc28779d453ba7.1419602920.git.s.strogin@partner.samsung.com> In-Reply-To: <264ce8ad192124f2afec9a71a2fc28779d453ba7.1419602920.git.s.strogin@partner.samsung.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: "Stefan I. Strogin" , linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: Joonsoo Kim , Andrew Morton , Marek Szyprowski , Michal Nazarewicz , aneesh.kumar@linux.vnet.ibm.com, Laurent Pinchart , Dmitry Safonov , Pintu Kumar , Weijie Yang , SeongJae Park , Hui Zhu , Minchan Kim , Dyasly Sergey , Vyacheslav Tyrtov On 12/26/2014 6:39 AM, Stefan I. Strogin wrote: > /proc/cmainfo contains a list of currently allocated CMA buffers for every > CMA area when CONFIG_CMA_DEBUG is enabled. > > Format is: > > - ( kB), allocated by \ > (), latency us > > > Signed-off-by: Stefan I. Strogin > --- ... > +static int __init proc_cmainfo_init(void) > +{ > + proc_create("cmainfo", S_IRUSR, NULL, &proc_cmainfo_operations); > + return 0; > +} > + > +module_init(proc_cmainfo_init); > +#endif /* CONFIG_CMA_DEBUG */ > This seems better suited to debugfs over procfs, especially since the option can be turned off. It would be helpful to break it down by cma region as well to make it easier on systems with a lot of regions. Thanks, Laura -- Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project -- 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