All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Campbell <Ian.Campbell@citrix.com>
To: Wei Liu <wei.liu2@citrix.com>
Cc: keir@xen.org, stefano.stabellini@eu.citrix.com,
	George.Dunlap@eu.citrix.com, andrew.cooper3@citrix.com,
	Ian.Jackson@eu.citrix.com, xen-devel@lists.xen.org,
	JBeulich@suse.com, Chao Peng <chao.p.peng@linux.intel.com>,
	dgdegra@tycho.nsa.gov
Subject: Re: [PATCH v21] tools: CMDs and APIs for Cache Monitoring Technology
Date: Wed, 8 Oct 2014 13:26:57 +0100	[thread overview]
Message-ID: <1412771217.9247.29.camel@citrix.com> (raw)
In-Reply-To: <20141008083445.GA11730@zion.uk.xensource.com>

On Wed, 2014-10-08 at 09:34 +0100, Wei Liu wrote:
> On Wed, Oct 08, 2014 at 04:16:03PM +0800, Chao Peng wrote:
> > Introduced some new xl commands to enable/disable Cache Monitoring
> > Technology(CMT) feature.
> > 
> > The following two commands is to attach/detach the CMT feature
> > to/from a certain domain.
> > 
> > $ xl psr-cmt-attach domid
> > $ xl psr-cmt-detach domid
> > 
> > This command is to display the CMT information, such as L3 cache
> > occupancy.
> > 
> > $ xl psr-cmt-show cache_occupancy <domid>
> > 
> > Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
> > Signed-off-by: Chao Peng <chao.p.peng@linux.intel.com>
> 
> Acked-by: Wei Liu <wei.liu2@citrix.com>

Unfortunately this breaks when built on an ARM platform:
xl_cmdimpl.c: In function ‘psr_cmt_print_domain_cache_occupancy’:
xl_cmdimpl.c:7636:5: error: implicit declaration of function ‘libxl_psr_cmt_domain_attached’ [-Werror=implicit-function-declaration]
xl_cmdimpl.c:7644:9: error: implicit declaration of function ‘libxl_psr_cmt_get_cache_occupancy’ [-Werror=implicit-function-declaration]
xl_cmdimpl.c: In function ‘psr_cmt_show_cache_occupancy’:
xl_cmdimpl.c:7659:5: error: implicit declaration of function ‘libxl_psr_cmt_enabled’ [-Werror=implicit-function-declaration]
xl_cmdimpl.c:7674:5: error: implicit declaration of function ‘libxl_psr_cmt_get_total_rmid’ [-Werror=implicit-function-declaration]
xl_cmdimpl.c:7691:9: error: implicit declaration of function ‘libxl_psr_cmt_get_l3_cache_size’ [-Werror=implicit-function-declaration]
xl_cmdimpl.c: In function ‘main_psr_cmt_attach’:
xl_cmdimpl.c:7734:5: error: implicit declaration of function ‘libxl_psr_cmt_attach’ [-Werror=implicit-function-declaration]
xl_cmdimpl.c: In function ‘main_psr_cmt_detach’:
xl_cmdimpl.c:7749:5: error: implicit declaration of function ‘libxl_psr_cmt_detach’ [-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors

The xl side needs appropriate #ifdef's. Since LIBXL_HAVE_PSR_CMT is
already appropriately conditionally defined it seems that basing it on
that would be the correct approach.

Ian.


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

      parent reply	other threads:[~2014-10-08 12:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-08  8:16 [PATCH v21] enable Cache Monitoring Technology (CMT) feature(tools) Chao Peng
2014-10-08  8:16 ` [PATCH v21] tools: CMDs and APIs for Cache Monitoring Technology Chao Peng
2014-10-08  8:34   ` Wei Liu
2014-10-08  8:56     ` Chao Peng
2014-10-08 12:49       ` Konrad Rzeszutek Wilk
2014-10-08 12:26     ` Ian Campbell [this message]

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=1412771217.9247.29.camel@citrix.com \
    --to=ian.campbell@citrix.com \
    --cc=George.Dunlap@eu.citrix.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=JBeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=chao.p.peng@linux.intel.com \
    --cc=dgdegra@tycho.nsa.gov \
    --cc=keir@xen.org \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=wei.liu2@citrix.com \
    --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.