All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sedf get in XendClient API
@ 2005-10-13 23:03 David Isaac Wolinsky
  2005-10-19 12:36 ` Ewan Mellor
  0 siblings, 1 reply; 3+ messages in thread
From: David Isaac Wolinsky @ 2005-10-13 23:03 UTC (permalink / raw)
  To: xen-devel

Here are some patches I compiled to get sedf_get to the XendClient 
API... sadly, however, the current xc frontend is missing a variable 
(weight) and needed to be edited.

Below are my "homemade" patches (I did this since my code base is 
EXTREMELY old... however the code is still valid)

tools/python/xen/lowlevel/xc/xc.c
line 766

static PyObject *pyxc_sedf_domain_get(PyObject *self,
                                         PyObject *args,
                                         PyObject *kwds)

...

-    return Py_BuildValue("{s:i,s:L,s:L,s:L,s:i}",
-                         "domain",    domid,
-                         "period",    period,
-                         "slice",     slice,
-			 "latency",   latency,
-			 "extratime", extratime);

+    return Py_BuildValue("{s:i,s:L,s:L,s:L,s:i,s:i}",
+                         "domain",    domid,
+                         "period",    period,
+                         "slice",     slice,
+			 "latency",   latency,
+			 "extratime", extratime
+			 "weight", weight);

tools/python/xen/xend/XendClient.py
line 351

class URL:

...

+    def xend_domain_cpu_sedf_get(self, id):
+        return self.xendPost(self.domainurl(id),
+                             {'op'	: 'cpu_sedf_get'})

tools/python/xen/xend/server/SrvDomain.py

class SrvDomain(SrvDir):
line 212

...

+    def op_cpu_sedf_get(self, op, req):
+        fn = FormFn(self.xd.domain_cpu_sedf_get,
+                    [['dom', 'int']])
+        val = fn(req.args, {'dom': self.dom.id})
+        return val


If need be I'll supply the traditional patches....

Regards,
David Wolinsky

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] sedf get in XendClient API
       [not found] <E1EQFyX-0002xl-8X@host-192-168-0-1-bcn-london>
@ 2005-10-14 15:35 ` David Isaac Wolinsky
  0 siblings, 0 replies; 3+ messages in thread
From: David Isaac Wolinsky @ 2005-10-14 15:35 UTC (permalink / raw)
  To: xen-devel

There was an error in my return statement (left out a comma)....

tools/python/xen/lowlevel/xc/xc.c
line 766

static PyObject *pyxc_sedf_domain_get(PyObject *self,
                                         PyObject *args,
                                         PyObject *kwds)

...

-    return Py_BuildValue("{s:i,s:L,s:L,s:L,s:i}",
-                         "domain",    domid,
-                         "period",    period,
-                         "slice",     slice,
-			 "latency",   latency,
-			 "extratime", extratime);

+    return Py_BuildValue("{s:i,s:L,s:L,s:L,s:i,s:i}",
+                         "domain",    domid,
+                         "period",    period,
+                         "slice",     slice,
+			 "latency",   latency,
+			 "extratime", extratime,
+			 "weight", weight);

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] sedf get in XendClient API
  2005-10-13 23:03 David Isaac Wolinsky
@ 2005-10-19 12:36 ` Ewan Mellor
  0 siblings, 0 replies; 3+ messages in thread
From: Ewan Mellor @ 2005-10-19 12:36 UTC (permalink / raw)
  To: xen-devel

On Thu, Oct 13, 2005 at 07:03:11PM -0400, David Isaac Wolinsky wrote:

> Here are some patches I compiled to get sedf_get to the XendClient 
> API... sadly, however, the current xc frontend is missing a variable 
> (weight) and needed to be edited.

Applied, thank you.  Were you intending to stop at the XendClient level?  This
change does not push the sedf_get functionality all the way through to xm, and
I wonder whether you intended to do so.

Ewan.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-10-19 12:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <E1EQFyX-0002xl-8X@host-192-168-0-1-bcn-london>
2005-10-14 15:35 ` [PATCH] sedf get in XendClient API David Isaac Wolinsky
2005-10-13 23:03 David Isaac Wolinsky
2005-10-19 12:36 ` Ewan Mellor

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.