All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Isaac Wolinsky <davidiw@ufl.edu>
To: xen-devel@lists.xensource.com
Subject: [PATCH] sedf get in XendClient API
Date: Thu, 13 Oct 2005 19:03:11 -0400	[thread overview]
Message-ID: <434EE7AF.9010305@ufl.edu> (raw)

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

             reply	other threads:[~2005-10-13 23:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-13 23:03 David Isaac Wolinsky [this message]
2005-10-19 12:36 ` [PATCH] sedf get in XendClient API Ewan Mellor
     [not found] <E1EQFyX-0002xl-8X@host-192-168-0-1-bcn-london>
2005-10-14 15:35 ` David Isaac Wolinsky

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=434EE7AF.9010305@ufl.edu \
    --to=davidiw@ufl.edu \
    --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.