All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julien Grall <julien.grall@linaro.org>
To: Karim Raslan <karim.allah.ahmed@gmail.com>,
	xen-devel@lists.xen.org, Keir Fraser <keir@xen.org>
Subject: Re: [PATCH] dump available order allocations in each zone while dumping heap information
Date: Sun, 05 Jan 2014 20:44:31 +0000	[thread overview]
Message-ID: <52C9C42F.1060705@linaro.org> (raw)
In-Reply-To: <1388947531-26583-1-git-send-email-karim.allah.ahmed@gmail.com>

Hi Karim,

(+ adding maintainers) Don't forget the maintainers, you can use 
scripts/get_maintainers.pl.

On 01/05/2014 06:45 PM, Karim Raslan wrote:
> Signed-off-by: Karim Raslan <karim.allah.ahmed@gmail.com>
> ---
>   xen/common/page_alloc.c |   11 ++++++++++-
>   1 file changed, 10 insertions(+), 1 deletion(-)
>
> diff --git a/xen/common/page_alloc.c b/xen/common/page_alloc.c
> index 5f484a2..5419b3f 100644
> --- a/xen/common/page_alloc.c
> +++ b/xen/common/page_alloc.c
> @@ -1673,7 +1673,7 @@ void scrub_one_page(struct page_info *pg)
>   static void dump_heap(unsigned char key)
>   {
>       s_time_t      now = NOW();
> -    int           i, j;
> +    int           i, j, k;
>
>       printk("'%c' pressed -> dumping heap info (now-0x%X:%08X)\n", key,
>              (u32)(now>>32), (u32)now);
> @@ -1683,8 +1683,17 @@ static void dump_heap(unsigned char key)
>           if ( !avail[i] )
>               continue;
>           for ( j = 0; j < NR_ZONES; j++ )
> +        {
>               printk("heap[node=%d][zone=%d] -> %lu pages\n",
>                      i, j, avail[i][j]);
> +            if(avail[i][j]) {

if ( .. )
{

You are using Linux coding style, not Xen. See CODING_STYLE in the root 
of the repository.

> +            	printk("\t(In:\n");

We don't use tabulations on Xen, please use spaces (same for the next 4 
lines).

> +				for ( k = 0; k < MAX_ORDER; k++)
> +					if(!page_list_empty(&heap(i, j, k)))

if ( .. )

> +						printk("  \t[order=%d]\n",k);
> +				printk(")\n");
> +            }
> +        }
>       }
>   }
>
>

Sincerely yours,

-- 
Julien Grall

  reply	other threads:[~2014-01-05 20:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-05 18:45 [PATCH] dump available order allocations in each zone while dumping heap information Karim Raslan
2014-01-05 20:44 ` Julien Grall [this message]
2014-01-05 22:10   ` karim.allah.ahmed

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=52C9C42F.1060705@linaro.org \
    --to=julien.grall@linaro.org \
    --cc=karim.allah.ahmed@gmail.com \
    --cc=keir@xen.org \
    --cc=xen-devel@lists.xen.org \
    /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.