From: Ian Campbell Subject: Re: [RFC PATCH] Adding support for coverage informations Date: Thu, 31 Jan 2013 08:51:45 +0000 Message-ID: <1359622305.12252.241.camel@zakaz.uk.xensource.com> References: <1359407799.32148.1.camel@nemesi> <1359457004.12252.103.camel@zakaz.uk.xensource.com> <7CE799CC0E4DE04B88D5FDF226E18AC201058D458342@LONPMAILBOX01.citrite.net> <20130130213418.GC1885@konrad-lan.dumpdata.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20130130213418.GC1885@konrad-lan.dumpdata.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Konrad Rzeszutek Wilk Cc: George Dunlap , Frediano Ziglio , "Keir (Xen.org)" , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org 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.