Re: [PATCH 3/3] cma: add functions to get region pages counters

2014-12-30 Thread Safonov Dmitry
On 12/30/2014 05:41 PM, Michal Nazarewicz wrote: 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; + seq_printf(m, "

Re: [PATCH 3/3] cma: add functions to get region pages counters

2014-12-30 Thread Michal Nazarewicz
> 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; >> >> +seq_printf(m, "CMARegion stat: %8lu kB total, %8lu k

Re: [PATCH 3/3] cma: add functions to get region pages counters

2014-12-29 Thread Joonsoo Kim
On Fri, Dec 26, 2014 at 05:39:04PM +0300, Stefan I. Strogin wrote: > From: Dmitry Safonov > > Here are two functions that provide interface to compute/get used size > and size of biggest free chunk in cma region. > Added that information in cmainfo. > > Signed-off-by: Dmitry Safonov > --- > in

Re: [PATCH 3/3] cma: add functions to get region pages counters

2014-12-29 Thread Stefan Strogin
29.12.2014 06:56, Safonov Dmitry пишет: On 12/27/2014 10:18 AM, SeongJae Park wrote: Hello, How about 'CMA Region' rather than 'CMARegion'? Sure. I would like "CMA area..." :) Or rather "CMA area #%u: base 0x%llx...", cma - &cma_areas[0], (unsigned lon

Re: [PATCH 3/3] cma: add functions to get region pages counters

2014-12-28 Thread Safonov Dmitry
On 12/27/2014 10:18 AM, SeongJae Park wrote: Hello, How about 'CMA Region' rather than 'CMARegion'? Sure. -- Best regards, Safonov Dmitry. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: [PATCH 3/3] cma: add functions to get region pages counters

2014-12-26 Thread SeongJae Park
Hello, On Fri, 26 Dec 2014, Stefan I. Strogin wrote: From: Dmitry Safonov Here are two functions that provide interface to compute/get used size and size of biggest free chunk in cma region. Added that information in cmainfo. Signed-off-by: Dmitry Safonov --- include/linux/cma.h | 2 ++ mm/

Re: [PATCH 3/3] cma: add functions to get region pages counters

2014-12-26 Thread Michal Nazarewicz
On Fri, Dec 26 2014, "Stefan I. Strogin" wrote: > From: Dmitry Safonov > > Here are two functions that provide interface to compute/get used size > and size of biggest free chunk in cma region. > Added that information in cmainfo. > > Signed-off-by: Dmitry Safonov Acked-by: Michal Nazarewicz