From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH 2/5] KVM: MMU: audit: replace mmu audit tracepoint with jump-lable Date: Tue, 29 Nov 2011 12:02:06 +0200 Message-ID: <4ED4AD9E.1010604@redhat.com> References: <4ED3811F.1070101@linux.vnet.ibm.com> <4ED3815C.9060901@linux.vnet.ibm.com> <20111128223305.GB2519@redhat.com> <4ED457D0.3010400@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Jason Baron , Marcelo Tosatti , LKML , KVM To: Xiao Guangrong Return-path: Received: from mx1.redhat.com ([209.132.183.28]:9900 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753188Ab1K2KCL (ORCPT ); Tue, 29 Nov 2011 05:02:11 -0500 In-Reply-To: <4ED457D0.3010400@linux.vnet.ibm.com> Sender: kvm-owner@vger.kernel.org List-ID: On 11/29/2011 05:56 AM, Xiao Guangrong wrote: > Subject: [PATCH v2 2/5] KVM: MMU: audit: replace mmu audit tracepoint with jump-lable > > The tracepoint is only used to audit mmu code, it should not be exposed to > user, let us replace it with jump-lable > > > static bool mmu_audit; > +static struct jump_label_key mmu_audit_key; > + > +#define kvm_mmu_audit(vcpu, point) \ > + if (static_branch((&mmu_audit_key))) { \ > + __kvm_mmu_audit(vcpu, point); \ > + } > > static inline function, please, and as an incremental against next. I'll fold it to the parent patch. -- error compiling committee.c: too many arguments to function