From: George Dunlap <george.dunlap@eu.citrix.com>
To: xen-devel@lists.xensource.com
Cc: george.dunlap@eu.citrix.com
Subject: [PATCH 6 of 9] libxl: Rename libxl_sched_* to include _domain
Date: Wed, 22 Feb 2012 16:15:12 +0000 [thread overview]
Message-ID: <af02b1ea16dabf3d96f2.1329927312@kodo2> (raw)
In-Reply-To: <patchbomb.1329927306@kodo2>
In preparation for introducing a schedule parameter-based structure,
rename libxl_sched_{credit,credit2,sedf} to libxl_sched_{}_domain.
No functional changes.
v2: Wrap long lines while I'm at it
Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
diff -r b5d446a34508 -r af02b1ea16da tools/libxl/libxl.c
--- a/tools/libxl/libxl.c Wed Feb 22 16:08:28 2012 +0000
+++ b/tools/libxl/libxl.c Wed Feb 22 16:08:28 2012 +0000
@@ -2975,7 +2975,8 @@ int libxl_get_sched_id(libxl_ctx *ctx)
return sched;
}
-int libxl_sched_credit_domain_get(libxl_ctx *ctx, uint32_t domid, libxl_sched_credit *scinfo)
+int libxl_sched_credit_domain_get(libxl_ctx *ctx, uint32_t domid,
+ libxl_sched_credit_domain *scinfo)
{
struct xen_domctl_sched_credit sdom;
int rc;
@@ -2992,7 +2993,8 @@ int libxl_sched_credit_domain_get(libxl_
return 0;
}
-int libxl_sched_credit_domain_set(libxl_ctx *ctx, uint32_t domid, libxl_sched_credit *scinfo)
+int libxl_sched_credit_domain_set(libxl_ctx *ctx, uint32_t domid,
+ libxl_sched_credit_domain *scinfo)
{
struct xen_domctl_sched_credit sdom;
xc_domaininfo_t domaininfo;
@@ -3033,7 +3035,7 @@ int libxl_sched_credit_domain_set(libxl_
}
int libxl_sched_credit2_domain_get(libxl_ctx *ctx, uint32_t domid,
- libxl_sched_credit2 *scinfo)
+ libxl_sched_credit2_domain *scinfo)
{
struct xen_domctl_sched_credit2 sdom;
int rc;
@@ -3051,7 +3053,7 @@ int libxl_sched_credit2_domain_get(libxl
}
int libxl_sched_credit2_domain_set(libxl_ctx *ctx, uint32_t domid,
- libxl_sched_credit2 *scinfo)
+ libxl_sched_credit2_domain *scinfo)
{
struct xen_domctl_sched_credit2 sdom;
xc_domaininfo_t domaininfo;
@@ -3086,7 +3088,7 @@ int libxl_sched_credit2_domain_set(libxl
}
int libxl_sched_sedf_domain_get(libxl_ctx *ctx, uint32_t domid,
- libxl_sched_sedf *scinfo)
+ libxl_sched_sedf_domain *scinfo)
{
uint64_t period;
uint64_t slice;
@@ -3112,7 +3114,7 @@ int libxl_sched_sedf_domain_get(libxl_ct
}
int libxl_sched_sedf_domain_set(libxl_ctx *ctx, uint32_t domid,
- libxl_sched_sedf *scinfo)
+ libxl_sched_sedf_domain *scinfo)
{
xc_domaininfo_t domaininfo;
int rc;
diff -r b5d446a34508 -r af02b1ea16da tools/libxl/libxl.h
--- a/tools/libxl/libxl.h Wed Feb 22 16:08:28 2012 +0000
+++ b/tools/libxl/libxl.h Wed Feb 22 16:08:28 2012 +0000
@@ -588,17 +588,17 @@ int libxl_get_sched_id(libxl_ctx *ctx);
int libxl_sched_credit_domain_get(libxl_ctx *ctx, uint32_t domid,
- libxl_sched_credit *scinfo);
+ libxl_sched_credit_domain *scinfo);
int libxl_sched_credit_domain_set(libxl_ctx *ctx, uint32_t domid,
- libxl_sched_credit *scinfo);
+ libxl_sched_credit_domain *scinfo);
int libxl_sched_credit2_domain_get(libxl_ctx *ctx, uint32_t domid,
- libxl_sched_credit2 *scinfo);
+ libxl_sched_credit2_domain *scinfo);
int libxl_sched_credit2_domain_set(libxl_ctx *ctx, uint32_t domid,
- libxl_sched_credit2 *scinfo);
+ libxl_sched_credit2_domain *scinfo);
int libxl_sched_sedf_domain_get(libxl_ctx *ctx, uint32_t domid,
- libxl_sched_sedf *scinfo);
+ libxl_sched_sedf_domain *scinfo);
int libxl_sched_sedf_domain_set(libxl_ctx *ctx, uint32_t domid,
- libxl_sched_sedf *scinfo);
+ libxl_sched_sedf_domain *scinfo);
int libxl_send_trigger(libxl_ctx *ctx, uint32_t domid,
libxl_trigger trigger, uint32_t vcpuid);
int libxl_send_sysrq(libxl_ctx *ctx, uint32_t domid, char sysrq);
diff -r b5d446a34508 -r af02b1ea16da tools/libxl/libxl_types.idl
--- a/tools/libxl/libxl_types.idl Wed Feb 22 16:08:28 2012 +0000
+++ b/tools/libxl/libxl_types.idl Wed Feb 22 16:08:28 2012 +0000
@@ -390,16 +390,16 @@ libxl_cputopology = Struct("cputopology"
("node", uint32),
])
-libxl_sched_credit = Struct("sched_credit", [
+libxl_sched_credit_domain = Struct("sched_credit_domain", [
("weight", integer),
("cap", integer),
], dispose_fn=None)
-libxl_sched_credit2 = Struct("sched_credit2", [
+libxl_sched_credit2_domain = Struct("sched_credit2_domain", [
("weight", integer),
], dispose_fn=None)
-libxl_sched_sedf = Struct("sched_sedf", [
+libxl_sched_sedf_domain = Struct("sched_sedf_domain", [
("period", integer),
("slice", integer),
("latency", integer),
diff -r b5d446a34508 -r af02b1ea16da tools/libxl/xl_cmdimpl.c
--- a/tools/libxl/xl_cmdimpl.c Wed Feb 22 16:08:28 2012 +0000
+++ b/tools/libxl/xl_cmdimpl.c Wed Feb 22 16:08:28 2012 +0000
@@ -3913,7 +3913,7 @@ int main_sharing(int argc, char **argv)
}
static int sched_credit_domain_get(
- int domid, libxl_sched_credit *scinfo)
+ int domid, libxl_sched_credit_domain *scinfo)
{
int rc;
@@ -3925,7 +3925,7 @@ static int sched_credit_domain_get(
}
static int sched_credit_domain_set(
- int domid, libxl_sched_credit *scinfo)
+ int domid, libxl_sched_credit_domain *scinfo)
{
int rc;
@@ -3940,7 +3940,7 @@ static int sched_credit_domain_output(
int domid)
{
char *domname;
- libxl_sched_credit scinfo;
+ libxl_sched_credit_domain scinfo;
int rc;
if (domid < 0) {
@@ -3961,7 +3961,7 @@ static int sched_credit_domain_output(
}
static int sched_credit2_domain_get(
- int domid, libxl_sched_credit2 *scinfo)
+ int domid, libxl_sched_credit2_domain *scinfo)
{
int rc;
@@ -3973,7 +3973,7 @@ static int sched_credit2_domain_get(
}
static int sched_credit2_domain_set(
- int domid, libxl_sched_credit2 *scinfo)
+ int domid, libxl_sched_credit2_domain *scinfo)
{
int rc;
@@ -3988,7 +3988,7 @@ static int sched_credit2_domain_output(
int domid)
{
char *domname;
- libxl_sched_credit2 scinfo;
+ libxl_sched_credit2_domain scinfo;
int rc;
if (domid < 0) {
@@ -4008,7 +4008,7 @@ static int sched_credit2_domain_output(
}
static int sched_sedf_domain_get(
- int domid, libxl_sched_sedf *scinfo)
+ int domid, libxl_sched_sedf_domain *scinfo)
{
int rc;
@@ -4020,7 +4020,7 @@ static int sched_sedf_domain_get(
}
static int sched_sedf_domain_set(
- int domid, libxl_sched_sedf *scinfo)
+ int domid, libxl_sched_sedf_domain *scinfo)
{
int rc;
@@ -4035,7 +4035,7 @@ static int sched_sedf_domain_output(
int domid)
{
char *domname;
- libxl_sched_sedf scinfo;
+ libxl_sched_sedf_domain scinfo;
int rc;
if (domid < 0) {
@@ -4116,7 +4116,7 @@ static int sched_domain_output(
int main_sched_credit(int argc, char **argv)
{
- libxl_sched_credit scinfo;
+ libxl_sched_credit_domain scinfo;
const char *dom = NULL;
const char *cpupool = NULL;
int weight = 256, cap = 0, opt_w = 0, opt_c = 0;
@@ -4198,7 +4198,7 @@ int main_sched_credit(int argc, char **a
int main_sched_credit2(int argc, char **argv)
{
- libxl_sched_credit2 scinfo;
+ libxl_sched_credit2_domain scinfo;
const char *dom = NULL;
const char *cpupool = NULL;
int weight = 256, opt_w = 0;
@@ -4272,7 +4272,7 @@ int main_sched_credit2(int argc, char **
int main_sched_sedf(int argc, char **argv)
{
- libxl_sched_sedf scinfo;
+ libxl_sched_sedf_domain scinfo;
const char *dom = NULL;
const char *cpupool = NULL;
int period = 0, opt_p = 0;
diff -r b5d446a34508 -r af02b1ea16da tools/ocaml/libs/xl/xenlight_stubs.c
--- a/tools/ocaml/libs/xl/xenlight_stubs.c Wed Feb 22 16:08:28 2012 +0000
+++ b/tools/ocaml/libs/xl/xenlight_stubs.c Wed Feb 22 16:08:28 2012 +0000
@@ -473,7 +473,7 @@ value stub_xl_sched_credit_domain_get(va
{
CAMLparam1(domid);
CAMLlocal1(scinfo);
- libxl_sched_credit c_scinfo;
+ libxl_sched_credit_domain c_scinfo;
int ret;
INIT_STRUCT();
@@ -483,18 +483,18 @@ value stub_xl_sched_credit_domain_get(va
failwith_xl("sched_credit_domain_get", &lg);
FREE_CTX();
- scinfo = Val_sched_credit(&gc, &lg, &c_scinfo);
+ scinfo = Val_sched_credit_domain(&gc, &lg, &c_scinfo);
CAMLreturn(scinfo);
}
value stub_xl_sched_credit_domain_set(value domid, value scinfo)
{
CAMLparam2(domid, scinfo);
- libxl_sched_credit c_scinfo;
+ libxl_sched_credit_domain c_scinfo;
int ret;
INIT_STRUCT();
- sched_credit_val(&gc, &lg, &c_scinfo, scinfo);
+ sched_credit_domain_val(&gc, &lg, &c_scinfo, scinfo);
INIT_CTX();
ret = libxl_sched_credit_domain_set(ctx, Int_val(domid), &c_scinfo);
next prev parent reply other threads:[~2012-02-22 16:15 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-22 16:15 [PATCH 0 of 9] V2 Allow user to configure credit scheduler parameters George Dunlap
2012-02-22 16:15 ` [PATCH 1 of 9] cleanup: Remove dependency files in efi directory during a make clean George Dunlap
2012-02-22 16:15 ` [PATCH 2 of 9] xen: Add a #define for the default ratelimit George Dunlap
2012-02-22 16:15 ` [PATCH 3 of 9] xen: Print ratelimit in scheduler debugkey George Dunlap
2012-02-22 16:15 ` [PATCH 4 of 9] xen: Implement SCHEDOP sysctl for credit scheduler George Dunlap
2012-02-22 16:15 ` [PATCH 5 of 9] libxc: " George Dunlap
2012-02-22 16:15 ` George Dunlap [this message]
2012-02-23 10:20 ` [PATCH 6 of 9] libxl: Rename libxl_sched_* to include _domain Keir Fraser
2012-02-22 16:15 ` [PATCH 7 of 9] libxl: Implement libxl_sched_credit_param_[gs]et George Dunlap
2012-03-01 18:22 ` Ian Jackson
2012-02-22 16:15 ` [PATCH 8 of 9] xl: Refactor sched_domain_output to have a callback for pool information George Dunlap
2012-03-01 18:24 ` Ian Jackson
2012-02-22 16:15 ` [PATCH 9 of 9] xl: Implement sched-credit schedule parameter command-line interface George Dunlap
2012-02-23 14:51 ` George Dunlap
2012-03-01 18:24 ` Ian Jackson
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=af02b1ea16dabf3d96f2.1329927312@kodo2 \
--to=george.dunlap@eu.citrix.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).