Re: [PATCH 2/5] KVM: MMU: audit: replace mmu audit tracepoint withjump-lable

From: Avi Kivity
Date: Tue Nov 29 2011 - 05:02:13 EST


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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/