From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: George Dunlap <George.Dunlap@eu.citrix.com>,
"dgdegra@tycho.nsa.gov" <dgdegra@tycho.nsa.gov>,
"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
Ian Jackson <Ian.Jackson@eu.citrix.com>
Subject: Re: [PATCH 4/5] libxl: claim: Print the values in 'xl info' unconditionally
Date: Mon, 13 May 2013 09:51:07 -0400 [thread overview]
Message-ID: <20130513135107.GP6811@phenom.dumpdata.com> (raw)
In-Reply-To: <1368440251.537.37.camel@zakaz.uk.xensource.com>
On Mon, May 13, 2013 at 11:17:31AM +0100, Ian Campbell wrote:
> On Fri, 2013-05-10 at 22:00 +0100, Konrad Rzeszutek Wilk wrote:
> > During the review of "libxl: Change claim_mode from bool to int."
> > Ian Campbell suggested that the xl info should print the
> > claim information irregardless of the global claim_mode value.
> >
> > Suggested-by: Ian Campbell <Ian.Campbell@citrix.com>
> > Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
> > ---
> > tools/libxl/xl_cmdimpl.c | 6 +-----
> > 1 file changed, 1 insertion(+), 5 deletions(-)
> >
> > diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c
> > index c3e1183..bb7a7af 100644
> > --- a/tools/libxl/xl_cmdimpl.c
> > +++ b/tools/libxl/xl_cmdimpl.c
> > @@ -4604,11 +4604,7 @@ static void output_physinfo(void)
> > printf("sharing_freed_memory : %"PRIu64"\n", info.sharing_freed_pages / i);
> > printf("sharing_used_memory : %"PRIu64"\n", info.sharing_used_frames / i);
> > }
> > - /*
> > - * Only if enabled (claim_mode=1) or there are outstanding claims.
> > - */
> > - if (claim_mode || info.outstanding_pages)
> > - printf("outstanding_claims : %ld\n", info.outstanding_pages / i);
> > + printf("outstanding_claims : %ld\n", info.outstanding_pages / i);
>
> I here is only initialised within the previous "if (vinfo)" (the tail of
> which is right above).
>
> This printf should probably therefore have always been inside that same
> block. (the horrible use of the variable i as something other than a
> loop iterator is probably at least partly to blame for the confusion)
>
> This patch isn't making this any worse so I'll Ack + apply but perhaps
> you could send a follow up to fix this?
Naturally!
>
> >
> > if (!libxl_get_freecpus(ctx, &cpumap)) {
> > libxl_for_each_bit(i, cpumap)
>
>
next prev parent reply other threads:[~2013-05-13 13:51 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-10 21:00 [PATCH/GIT PULL] Fixes for Xen v4.3 (v1) Konrad Rzeszutek Wilk
2013-05-10 21:00 ` [PATCH 1/5] MAINTAINERS: Change tmem maintainer Konrad Rzeszutek Wilk
2013-05-10 21:00 ` [PATCH 2/5] hypervisor/xen/tools: Remove the XENMEM_get_oustanding_pages and provide the data via xc_phys_info Konrad Rzeszutek Wilk
2013-05-10 21:00 ` [PATCH 3/5] libxl: Change claim_mode from bool to int Konrad Rzeszutek Wilk
2013-05-10 21:00 ` [PATCH 4/5] libxl: claim: Print the values in 'xl info' unconditionally Konrad Rzeszutek Wilk
2013-05-13 10:17 ` Ian Campbell
2013-05-13 10:22 ` Ian Campbell
2013-05-13 10:23 ` Ian Campbell
2013-05-13 10:24 ` Ian Campbell
2013-05-13 13:51 ` Konrad Rzeszutek Wilk [this message]
2013-05-10 21:00 ` [PATCH 5/5] libxl: Make 'xl vcpu-set' work properly on overcommited hosts with an override Konrad Rzeszutek Wilk
2013-05-13 10:25 ` Ian Campbell
-- strict thread matches above, loose matches on Subject: below --
2013-05-13 19:29 [PATCH/GIT PULL) Fixes for Xen 4.3 (v2) Konrad Rzeszutek Wilk
2013-05-13 19:29 ` [PATCH 4/5] libxl: claim: Print the values in 'xl info' unconditionally Konrad Rzeszutek Wilk
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=20130513135107.GP6811@phenom.dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=George.Dunlap@eu.citrix.com \
--cc=Ian.Campbell@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=dgdegra@tycho.nsa.gov \
--cc=xen-devel@lists.xensource.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.