From: Michal Nazarewicz <mina86@mina86.com>
To: Joonsoo Kim <js1304@gmail.com>,
Andrew Morton <akpm@linux-foundation.org>
Cc: Sasha Levin <sasha.levin@oracle.com>,
Stefan Strogin <stefan.strogin@gmail.com>,
linux-kernel@vger.kernel.org, linux-mm@kvack.org,
Joonsoo Kim <iamjoonsoo.kim@lge.com>
Subject: Re: [PATCH 1/2] mm/cma_debug: fix debugging alloc/free interface
Date: Wed, 15 Jul 2015 14:03:20 +0200 [thread overview]
Message-ID: <xa1t4ml5fx13.fsf@mina86.com> (raw)
In-Reply-To: <1436942129-18020-1-git-send-email-iamjoonsoo.kim@lge.com>
On Wed, Jul 15 2015, Joonsoo Kim wrote:
> CMA has alloc/free interface for debugging. It is intended that alloc/free
> occurs in specific CMA region, but, currently, alloc/free interface is
> on root dir due to the bug so we can't select CMA region where alloc/free
> happens.
>
> This patch fixes this problem by making alloc/free interface per
> CMA region.
>
> Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
> ---
> mm/cma_debug.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/mm/cma_debug.c b/mm/cma_debug.c
> index 7621ee3..22190a7 100644
> --- a/mm/cma_debug.c
> +++ b/mm/cma_debug.c
> @@ -170,10 +170,10 @@ static void cma_debugfs_add_one(struct cma *cma, int idx)
>
> tmp = debugfs_create_dir(name, cma_debugfs_root);
>
> - debugfs_create_file("alloc", S_IWUSR, cma_debugfs_root, cma,
> + debugfs_create_file("alloc", S_IWUSR, tmp, cma,
> &cma_alloc_fops);
>
> - debugfs_create_file("free", S_IWUSR, cma_debugfs_root, cma,
> + debugfs_create_file("free", S_IWUSR, tmp, cma,
> &cma_free_fops);
>
> debugfs_create_file("base_pfn", S_IRUGO, tmp,
> --
> 1.9.1
>
--
Best regards, _ _
.o. | Liege of Serenely Enlightened Majesty of o' \,=./ `o
..o | Computer Science, Michał “mina86” Nazarewicz (o o)
ooo +--<mpn@google.com>--<xmpp:mina86@jabber.org>--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: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
WARNING: multiple messages have this Message-ID (diff)
From: Michal Nazarewicz <mina86@mina86.com>
To: Joonsoo Kim <js1304@gmail.com>,
Andrew Morton <akpm@linux-foundation.org>
Cc: Sasha Levin <sasha.levin@oracle.com>,
Stefan Strogin <stefan.strogin@gmail.com>,
linux-kernel@vger.kernel.org, linux-mm@kvack.org,
Joonsoo Kim <iamjoonsoo.kim@lge.com>
Subject: Re: [PATCH 1/2] mm/cma_debug: fix debugging alloc/free interface
Date: Wed, 15 Jul 2015 14:03:20 +0200 [thread overview]
Message-ID: <xa1t4ml5fx13.fsf@mina86.com> (raw)
In-Reply-To: <1436942129-18020-1-git-send-email-iamjoonsoo.kim@lge.com>
On Wed, Jul 15 2015, Joonsoo Kim wrote:
> CMA has alloc/free interface for debugging. It is intended that alloc/free
> occurs in specific CMA region, but, currently, alloc/free interface is
> on root dir due to the bug so we can't select CMA region where alloc/free
> happens.
>
> This patch fixes this problem by making alloc/free interface per
> CMA region.
>
> Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
> ---
> mm/cma_debug.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/mm/cma_debug.c b/mm/cma_debug.c
> index 7621ee3..22190a7 100644
> --- a/mm/cma_debug.c
> +++ b/mm/cma_debug.c
> @@ -170,10 +170,10 @@ static void cma_debugfs_add_one(struct cma *cma, int idx)
>
> tmp = debugfs_create_dir(name, cma_debugfs_root);
>
> - debugfs_create_file("alloc", S_IWUSR, cma_debugfs_root, cma,
> + debugfs_create_file("alloc", S_IWUSR, tmp, cma,
> &cma_alloc_fops);
>
> - debugfs_create_file("free", S_IWUSR, cma_debugfs_root, cma,
> + debugfs_create_file("free", S_IWUSR, tmp, cma,
> &cma_free_fops);
>
> debugfs_create_file("base_pfn", S_IRUGO, tmp,
> --
> 1.9.1
>
--
Best regards, _ _
.o. | Liege of Serenely Enlightened Majesty of o' \,=./ `o
..o | Computer Science, Michał “mina86” Nazarewicz (o o)
ooo +--<mpn@google.com>--<xmpp:mina86@jabber.org>--ooO--(_)--Ooo--
next prev parent reply other threads:[~2015-07-15 12:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-15 6:35 [PATCH 1/2] mm/cma_debug: fix debugging alloc/free interface Joonsoo Kim
2015-07-15 6:35 ` Joonsoo Kim
2015-07-15 6:35 ` [PATCH 2/2] mm/cma_debug: correct size input to bitmap function Joonsoo Kim
2015-07-15 6:35 ` Joonsoo Kim
2015-07-15 12:03 ` Michal Nazarewicz
2015-07-15 12:03 ` Michal Nazarewicz
2015-07-15 12:03 ` Michal Nazarewicz [this message]
2015-07-15 12:03 ` [PATCH 1/2] mm/cma_debug: fix debugging alloc/free interface Michal Nazarewicz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xa1t4ml5fx13.fsf@mina86.com \
--to=mina86@mina86.com \
--cc=akpm@linux-foundation.org \
--cc=iamjoonsoo.kim@lge.com \
--cc=js1304@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=sasha.levin@oracle.com \
--cc=stefan.strogin@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.