diff mbox

[17/18] kvm: Provide config option for enabling KVM trace events

Message ID 1269304340-25372-18-git-send-email-jack@suse.cz (mailing list archive)
State New, archived
Headers show

Commit Message

Jan Kara March 23, 2010, 12:32 a.m. UTC
None
diff mbox

Patch

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 <linux/tracepoint.h>
 
 #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