All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
To: Diwaker Gupta <diwakergupta@gmail.com>
Cc: xen-devel@lists.sourceforge.net
Subject: Re: potential bug in "xm atropos" implementation
Date: Tue, 19 Oct 2004 00:00:34 +0100	[thread overview]
Message-ID: <20041018230034.GI17812@cl.cam.ac.uk> (raw)
In-Reply-To: <1b0b45570410181521117dc012@mail.gmail.com>

On Mon, Oct 18, 2004 at 03:21:38PM -0700, Diwaker Gupta wrote:
> From tools/libxc/xc_atropos.c:
> 
> int xc_atropos_domain_set(int xc_handle,
>                           u32 domid, u64 period, u64 slice, u64 latency,
>                           int xtratime)
> 
> which takes 6 arguments
> 
> From tools/python/xen/xm/main.py:
> class ProgAtropos(Prog):
> <snip>
>     def main(self, args):
>         if len(args) != 5: self.err("%s: Invalid argument(s)" % args[0])
>         dom = args[1]
>         v = map(int, args[2:5])
>         server.xend_domain_cpu_atropos_set(dom, *v)
> 
> Now if you specify all 6 arguments on the command line, xm atropos
> fails with "Invalid arguments" due to the above code. If you give 5
> arguments, ProgAtropos fails since the corresponding libxc function
> call takes 6 arguments.

No, the 6th argument you see in the xc_atropos_domain_set function
signature (i.e. the function's 1st argument -- xc_handle) is added
in the Pyhton<->xc interface function pyxc_atropos_domain_set
(in tools/python/xen/lowlevel/xc/xc.c).

    christian



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl

  reply	other threads:[~2004-10-18 23:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-18 22:21 potential bug in "xm atropos" implementation Diwaker Gupta
2004-10-18 23:00 ` Christian Limpach [this message]
2004-10-18 23:30   ` Diwaker Gupta
2004-10-18 23:56     ` Christian Limpach

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=20041018230034.GI17812@cl.cam.ac.uk \
    --to=christian.limpach@cl.cam.ac.uk \
    --cc=diwakergupta@gmail.com \
    --cc=xen-devel@lists.sourceforge.net \
    /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.