aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/kvm_host.h
diff options
context:
space:
mode:
authorFeng(Eric) Liu <eric.e.liu@intel.com>2008-04-10 08:47:53 -0400
committerAvi Kivity <avi@qumranet.com>2008-04-27 05:01:22 -0400
commitd4c9ff2d1b78e385471b3f4d80c0596909926ef7 (patch)
tree5551c0f6c56439df39ca434115840f4e36cee2ea /include/linux/kvm_host.h
parent048354c8e6bf95e7347f623d8a0da5b89e216405 (diff)
KVM: Add kvm trace userspace interface
This interface allows user a space application to read the trace of kvm related events through relayfs. Signed-off-by: Feng (Eric) Liu <eric.e.liu@intel.com> Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'include/linux/kvm_host.h')
-rw-r--r--include/linux/kvm_host.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
index 578c3638bbba..bd0c2d2d840f 100644
--- a/include/linux/kvm_host.h
+++ b/include/linux/kvm_host.h
@@ -15,6 +15,7 @@
15#include <linux/sched.h> 15#include <linux/sched.h>
16#include <linux/mm.h> 16#include <linux/mm.h>
17#include <linux/preempt.h> 17#include <linux/preempt.h>
18#include <linux/marker.h>
18#include <asm/signal.h> 19#include <asm/signal.h>
19 20
20#include <linux/kvm.h> 21#include <linux/kvm.h>
@@ -309,5 +310,18 @@ struct kvm_stats_debugfs_item {
309 struct dentry *dentry; 310 struct dentry *dentry;
310}; 311};
311extern struct kvm_stats_debugfs_item debugfs_entries[]; 312extern struct kvm_stats_debugfs_item debugfs_entries[];
313extern struct dentry *debugfs_dir;
314
315#ifdef CONFIG_KVM_TRACE
316int kvm_trace_ioctl(unsigned int ioctl, unsigned long arg);
317void kvm_trace_cleanup(void);
318#else
319static inline
320int kvm_trace_ioctl(unsigned int ioctl, unsigned long arg)
321{
322 return -EINVAL;
323}
324#define kvm_trace_cleanup() ((void)0)
325#endif
312 326
313#endif 327#endif