aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/kvm_host.h
diff options
context:
space:
mode:
authorHollis Blanchard <hollisb@us.ibm.com>2008-07-01 17:23:49 -0400
committerAvi Kivity <avi@qumranet.com>2008-10-15 04:15:12 -0400
commitd98e6346350ac909f095768beb28b82368bd126f (patch)
treee0d1c78c08f0305f514ad69011a7b8701faf6f12 /include/linux/kvm_host.h
parent5fdbf9765b7ba6a45100851154768de703d51e76 (diff)
KVM: Move KVM TRACE DEFINITIONS to common header
Move KVM trace definitions from x86 specific kvm headers to common kvm headers to create a cross-architecture numbering scheme for trace events. This means the kvmtrace_format userspace tool won't need to know which architecture produced the log file being processed. Signed-off-by: Jerone Young <jyoung5@us.ibm.com> Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com> Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'include/linux/kvm_host.h')
-rw-r--r--include/linux/kvm_host.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
index 8525afc53107..a18aaad2ab79 100644
--- a/include/linux/kvm_host.h
+++ b/include/linux/kvm_host.h
@@ -326,6 +326,25 @@ struct kvm_stats_debugfs_item {
326extern struct kvm_stats_debugfs_item debugfs_entries[]; 326extern struct kvm_stats_debugfs_item debugfs_entries[];
327extern struct dentry *kvm_debugfs_dir; 327extern struct dentry *kvm_debugfs_dir;
328 328
329#define KVMTRACE_5D(evt, vcpu, d1, d2, d3, d4, d5, name) \
330 trace_mark(kvm_trace_##name, "%u %p %u %u %u %u %u %u", KVM_TRC_##evt, \
331 vcpu, 5, d1, d2, d3, d4, d5)
332#define KVMTRACE_4D(evt, vcpu, d1, d2, d3, d4, name) \
333 trace_mark(kvm_trace_##name, "%u %p %u %u %u %u %u %u", KVM_TRC_##evt, \
334 vcpu, 4, d1, d2, d3, d4, 0)
335#define KVMTRACE_3D(evt, vcpu, d1, d2, d3, name) \
336 trace_mark(kvm_trace_##name, "%u %p %u %u %u %u %u %u", KVM_TRC_##evt, \
337 vcpu, 3, d1, d2, d3, 0, 0)
338#define KVMTRACE_2D(evt, vcpu, d1, d2, name) \
339 trace_mark(kvm_trace_##name, "%u %p %u %u %u %u %u %u", KVM_TRC_##evt, \
340 vcpu, 2, d1, d2, 0, 0, 0)
341#define KVMTRACE_1D(evt, vcpu, d1, name) \
342 trace_mark(kvm_trace_##name, "%u %p %u %u %u %u %u %u", KVM_TRC_##evt, \
343 vcpu, 1, d1, 0, 0, 0, 0)
344#define KVMTRACE_0D(evt, vcpu, name) \
345 trace_mark(kvm_trace_##name, "%u %p %u %u %u %u %u %u", KVM_TRC_##evt, \
346 vcpu, 0, 0, 0, 0, 0, 0)
347
329#ifdef CONFIG_KVM_TRACE 348#ifdef CONFIG_KVM_TRACE
330int kvm_trace_ioctl(unsigned int ioctl, unsigned long arg); 349int kvm_trace_ioctl(unsigned int ioctl, unsigned long arg);
331void kvm_trace_cleanup(void); 350void kvm_trace_cleanup(void);