From: Yi Sun <yi.y.sun@linux.intel.com>
To: xen-devel@lists.xenproject.org
Cc: ian.jackson@eu.citrix.com, wei.liu2@citrix.com,
Yi Sun <yi.y.sun@linux.intel.com>,
roger.pau@citrix.com
Subject: [PATCH 2/2] tools: remove unnecessary PSR macros
Date: Thu, 31 Aug 2017 16:08:06 +0800 [thread overview]
Message-ID: <1504166886-3912-1-git-send-email-yi.y.sun@linux.intel.com> (raw)
Per Roger Pau's coment, the libxl interfaces and related functions are not
necessary to be included by 'LIBXL_HAVE_PSR_CMT' and 'LIBXL_HAVE_PSR_CAT'.
So remove them.
Signed-off-by: Yi Sun <yi.y.sun@linux.intel.com>
---
tools/libxl/libxl.h | 6 ------
tools/xl/xl_cmdtable.c | 5 -----
tools/xl/xl_psr.c | 5 -----
3 files changed, 16 deletions(-)
diff --git a/tools/libxl/libxl.h b/tools/libxl/libxl.h
index 229e289..a0185b9 100644
--- a/tools/libxl/libxl.h
+++ b/tools/libxl/libxl.h
@@ -2166,7 +2166,6 @@ bool libxl_ms_vm_genid_is_zero(const libxl_ms_vm_genid *id);
void libxl_ms_vm_genid_copy(libxl_ctx *ctx, libxl_ms_vm_genid *dst,
const libxl_ms_vm_genid *src);
-#ifdef LIBXL_HAVE_PSR_CMT
int libxl_psr_cmt_attach(libxl_ctx *ctx, uint32_t domid);
int libxl_psr_cmt_detach(libxl_ctx *ctx, uint32_t domid);
int libxl_psr_cmt_domain_attached(libxl_ctx *ctx, uint32_t domid);
@@ -2179,9 +2178,7 @@ int libxl_psr_cmt_get_cache_occupancy(libxl_ctx *ctx,
uint32_t domid,
uint32_t socketid,
uint32_t *l3_cache_occupancy);
-#endif
-#ifdef LIBXL_HAVE_PSR_MBM
int libxl_psr_cmt_type_supported(libxl_ctx *ctx, libxl_psr_cmt_type type);
int libxl_psr_cmt_get_sample(libxl_ctx *ctx,
uint32_t domid,
@@ -2189,9 +2186,7 @@ int libxl_psr_cmt_get_sample(libxl_ctx *ctx,
uint64_t scope,
uint64_t *sample_r,
uint64_t *tsc_r);
-#endif
-#ifdef LIBXL_HAVE_PSR_CAT
/*
* Function to set a domain's cbm. It operates on a single or multiple
* target(s) defined in 'target_map'. The definition of 'target_map' is
@@ -2219,7 +2214,6 @@ int libxl_psr_cat_get_info(libxl_ctx *ctx, libxl_psr_cat_info **info,
int libxl_psr_cat_get_l3_info(libxl_ctx *ctx, libxl_psr_cat_info **info,
int *nr);
void libxl_psr_cat_info_list_free(libxl_psr_cat_info *list, int nr);
-#endif
/* misc */
diff --git a/tools/xl/xl_cmdtable.c b/tools/xl/xl_cmdtable.c
index 2c71a9f..045f640 100644
--- a/tools/xl/xl_cmdtable.c
+++ b/tools/xl/xl_cmdtable.c
@@ -517,7 +517,6 @@ struct cmd_spec cmd_table[] = {
"-F Run in the foreground.\n"
"-p, --pidfile [FILE] Write PID to pidfile when daemonizing.",
},
-#ifdef LIBXL_HAVE_PSR_CMT
{ "psr-hwinfo",
&main_psr_hwinfo, 0, 1,
"Show hardware information for Platform Shared Resource",
@@ -544,8 +543,6 @@ struct cmd_spec cmd_table[] = {
"\"total-mem-bandwidth\": Show total memory bandwidth(KB/s)\n"
"\"local-mem-bandwidth\": Show local memory bandwidth(KB/s)\n",
},
-#endif
-#ifdef LIBXL_HAVE_PSR_CAT
{ "psr-cat-set",
&main_psr_cat_cbm_set, 0, 1,
"Set cache capacity bitmasks(CBM) for a domain",
@@ -561,8 +558,6 @@ struct cmd_spec cmd_table[] = {
"[options] <Domain>",
"-l <level> Specify the cache level to process, otherwise L3 cache is processed\n"
},
-
-#endif
{ "usbctrl-attach",
&main_usbctrl_attach, 0, 1,
"Create a virtual USB controller for a domain",
diff --git a/tools/xl/xl_psr.c b/tools/xl/xl_psr.c
index 7309d4f..544f6f0 100644
--- a/tools/xl/xl_psr.c
+++ b/tools/xl/xl_psr.c
@@ -25,7 +25,6 @@
#include "xl_utils.h"
#include "xl_parse.h"
-#ifdef LIBXL_HAVE_PSR_CMT
static int psr_cmt_hwinfo(void)
{
int rc;
@@ -292,9 +291,7 @@ int main_psr_cmt_show(int argc, char **argv)
return ret;
}
-#endif
-#if defined(LIBXL_HAVE_PSR_CAT) || defined(LIBXL_HAVE_PSR_L2_CAT)
static int psr_l3_cat_hwinfo(void)
{
int rc, nr;
@@ -626,8 +623,6 @@ int main_psr_hwinfo(int argc, char **argv)
return ret;
}
-#endif
-
/*
* Local variables:
* mode: C
--
1.9.1
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next reply other threads:[~2017-08-31 8:26 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-31 8:08 Yi Sun [this message]
2017-08-31 9:07 ` [PATCH 2/2] tools: remove unnecessary PSR macros Roger Pau Monné
2017-09-01 6:59 ` [PATCH] tools: change the type of '*nr' in 'libxl_psr_cat_get_info' Yi Sun
2017-09-01 9:07 ` Roger Pau Monné
2017-09-01 15:43 ` Wei Liu
2017-09-01 12:15 ` [PATCH v2] " Yi Sun
2017-09-01 14:33 ` Roger Pau Monné
2017-09-01 15:50 ` Wei Liu
2017-09-02 15:01 ` Yi Sun
2017-09-04 9:08 ` Wei Liu
2017-09-01 15:42 ` [PATCH 2/2] tools: remove unnecessary PSR macros Wei Liu
2017-09-04 3:25 ` Yi Sun
2017-09-04 3:08 ` [PATCH v2] " Yi Sun
2017-09-04 8:49 ` Wei Liu
2017-09-04 9:10 ` Yi Sun
2017-09-04 9:13 ` Wei Liu
2017-09-04 9:14 ` Roger Pau Monné
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=1504166886-3912-1-git-send-email-yi.y.sun@linux.intel.com \
--to=yi.y.sun@linux.intel.com \
--cc=ian.jackson@eu.citrix.com \
--cc=roger.pau@citrix.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xenproject.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.