From patchwork Tue Mar 23 00:32:19 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kara X-Patchwork-Id: 87553 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o2N0aZvT015353 for ; Tue, 23 Mar 2010 00:36:35 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756198Ab0CWAcj (ORCPT ); Mon, 22 Mar 2010 20:32:39 -0400 Received: from cantor2.suse.de ([195.135.220.15]:40689 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755996Ab0CWAcP (ORCPT ); Mon, 22 Mar 2010 20:32:15 -0400 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.221.2]) by mx2.suse.de (Postfix) with ESMTP id 08E1D8655F; Tue, 23 Mar 2010 01:32:15 +0100 (CET) Received: by quack.suse.cz (Postfix, from userid 10005) id 4B6D22B1778; Tue, 23 Mar 2010 01:32:29 +0100 (CET) From: Jan Kara To: LKML Cc: Jan Kara , kvm@vger.kernel.org Subject: [PATCH 17/18] kvm: Provide config option for enabling KVM trace events Date: Tue, 23 Mar 2010 01:32:19 +0100 Message-Id: <1269304340-25372-18-git-send-email-jack@suse.cz> X-Mailer: git-send-email 1.6.4.2 In-Reply-To: <1269304340-25372-1-git-send-email-jack@suse.cz> References: <1269304340-25372-1-git-send-email-jack@suse.cz> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 23 Mar 2010 00:36:35 +0000 (UTC) diff --git a/include/trace/events/kvm.h b/include/trace/events/kvm.h index b17d49d..c85908c 100644 --- a/include/trace/events/kvm.h +++ b/include/trace/events/kvm.h @@ -1,6 +1,8 @@ #if !defined(_TRACE_KVM_MAIN_H) || defined(TRACE_HEADER_MULTI_READ) #define _TRACE_KVM_MAIN_H +#undef TRACE_CONFIG +#define TRACE_CONFIG CONFIG_KVM_TRACER #include #undef TRACE_SYSTEM diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig index 88b556c..abcd529 100644 --- a/kernel/trace/Kconfig +++ b/kernel/trace/Kconfig @@ -517,6 +517,15 @@ config NAPI_TRACER If unsure, say N. +config KVM_TRACER + bool "KVM tracing" + depends on KVM + select GENERIC_TRACER + help + Trace lots of various events inside KVM. + + If unsure, say N. + config KPROBE_EVENT depends on KPROBES depends on HAVE_REGS_AND_STACK_ACCESS_API