Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932381AbWHWLYi (ORCPT ); Wed, 23 Aug 2006 07:24:38 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932385AbWHWLYh (ORCPT ); Wed, 23 Aug 2006 07:24:37 -0400 Received: from cantor2.suse.de ([195.135.220.15]:47590 "EHLO mx2.suse.de") by vger.kernel.org with ESMTP id S932381AbWHWLYg (ORCPT ); Wed, 23 Aug 2006 07:24:36 -0400 From: Andi Kleen To: Zachary Amsden Subject: Re: [PATCH] paravirt.h Date: Wed, 23 Aug 2006 13:24:16 +0200 User-Agent: KMail/1.9.3 Cc: Arjan van de Ven , virtualization@lists.osdl.org, Jeremy Fitzhardinge , Andrew Morton , Chris Wright , Linux Kernel Mailing List References: <1155202505.18420.5.camel@localhost.localdomain> <200608231150.17650.ak@suse.de> <44EC27DF.2010204@vmware.com> In-Reply-To: <44EC27DF.2010204@vmware.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200608231324.16047.ak@suse.de> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1235 Lines: 30 On Wednesday 23 August 2006 12:03, Zachary Amsden wrote: > Andi Kleen wrote: > >> And the functions they call? > >> > > > > Yes. But you only really need it for the actual callback, not the bulk > > of stop_machine_run() (which calls scheduler and lots of other stuff) > > The actual callback should be pretty limited already so it shouldn't > > be a big limitation. > > > > -Andi > > > > Hmm. Seems dangerous to rely on this, because functions could change > from inline to out of line without people noticing that it affects this > very corner case for kprobes + paravirt + stop_machine. Is there a way > to cascade the __kprobes declaration to all called functions, perhaps > with a static checker, like sparse? Not that I know of. But that wasn't what I suggested: my point was that kprobes while stop machine is still doing setup or tear down is fine. You only don't want them in your new per CPU callback. So it should be enough to mark that callback __kprobes. -Andi - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/