From: Konrad Rzeszutek Wilk <konrad@kernel.org>
To: Frediano Ziglio <frediano.ziglio@citrix.com>
Cc: George Dunlap <George.Dunlap@eu.citrix.com>,
"Keir (Xen.org)" <keir@xen.org>,
Ian Campbell <Ian.Campbell@citrix.com>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: [RFC PATCH] Adding support for coverage informations
Date: Fri, 1 Feb 2013 15:54:29 -0500 [thread overview]
Message-ID: <20130201205428.GA24013@konrad-lan.dumpdata.com> (raw)
In-Reply-To: <7CE799CC0E4DE04B88D5FDF226E18AC201058D458352@LONPMAILBOX01.citrite.net>
On Fri, Feb 01, 2013 at 03:05:23PM +0000, Frediano Ziglio wrote:
> On Fri, 2013-02-01 at 09:46 -0500, Konrad Rzeszutek Wilk wrote:
> > On Fri, Feb 01, 2013 at 02:29:04PM +0000, Frediano Ziglio wrote:
> > > On Thu, 2013-01-31 at 08:51 +0000, Ian Campbell wrote:
> > > > On Wed, 2013-01-30 at 21:34 +0000, Konrad Rzeszutek Wilk wrote:
> > > > > > The reason why adding a new hypercall instead of a new sysctl is simply
> > > > > > because is easier to have a zero cost if you disable coverage
> > > > > > informations. The best thing would be redirect do_coverage_op to
> > > > > > do_ni_hypercall using linker options but even two small stub would do
> > > > > > (these stubs will return ENOSYS instead).
> > > > >
> > > > > I am not sure I follow. Is the sysctl hypercall code path "longer" than
> > > > > the hypercall path you are introducing? What is the zero cost?
> > > >
> > > > I don't think we care a jot about the performance of this system call
> > > > when coverage is disabled, it's certainly not a hot path and in any case
> > > > if it is a NOP it doesn't really matter anyway.
> > > >
> > > > Ian.
> > > >
> > >
> > > It's not about the speed, it's about the bytes introduced in Xen binary.
> >
> > Not sure I follow. What bytes? Just that the code size is bigger b/c it
> > will go through the sysctl functions? How many bytes of extra code are
> > talking here?
>
> Probably less than 20...
>
> In do_sysctl something like
>
> case XEN_SYSCTL_coverage_op:
> ret = coverage_op(&op->u.coverage_op);
> break;
>
> where when disabled coverage_op should be declared as
>
> static inline long coverage_op(struct xen_sysvtl_coverage_op *op)
> {
> return -ENOSYS;
> }
Ok. Then it looks like XEN_SYSCTL_* it is the right place.
next prev parent reply other threads:[~2013-02-01 20:54 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-28 21:16 [RFC PATCH] Adding support for coverage informations Frediano Ziglio
2013-01-29 10:41 ` Jan Beulich
2013-01-29 12:58 ` Frediano Ziglio
2013-01-29 14:35 ` Jan Beulich
2013-01-29 10:56 ` Ian Campbell
2013-01-29 11:41 ` Jan Beulich
2013-01-29 11:47 ` Andrew Cooper
2013-01-29 11:51 ` Jan Beulich
2013-01-29 12:02 ` Frediano Ziglio
2013-01-30 9:59 ` Ian Campbell
2013-01-30 21:34 ` Konrad Rzeszutek Wilk
2013-01-31 8:51 ` Ian Campbell
2013-02-01 14:29 ` Frediano Ziglio
2013-02-01 14:46 ` Konrad Rzeszutek Wilk
2013-02-01 15:05 ` Frediano Ziglio
2013-02-01 20:54 ` Konrad Rzeszutek Wilk [this message]
2013-02-01 14:27 ` Frediano Ziglio
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=20130201205428.GA24013@konrad-lan.dumpdata.com \
--to=konrad@kernel.org \
--cc=George.Dunlap@eu.citrix.com \
--cc=Ian.Campbell@citrix.com \
--cc=frediano.ziglio@citrix.com \
--cc=keir@xen.org \
--cc=xen-devel@lists.xen.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.