diff options
author | Gleb Natapov <gleb@redhat.com> | 2010-10-24 10:49:08 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-01-12 04:28:44 -0500 |
commit | 64be5007066173d11a4635eedd57d41a3b3a7027 (patch) | |
tree | d2d7e085b63a1f2160b04d1b6fcd5994592e5c80 /virt/kvm | |
parent | 612819c3c6e67bac8fceaa7cc402f13b1b63f7e4 (diff) |
KVM: x86: trace "exit to userspace" event
Add tracepoint for userspace exit.
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'virt/kvm')
-rw-r--r-- | virt/kvm/kvm_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 2803b4db2a38..880370caf9ed 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c | |||
@@ -1562,6 +1562,7 @@ static long kvm_vcpu_ioctl(struct file *filp, | |||
1562 | if (arg) | 1562 | if (arg) |
1563 | goto out; | 1563 | goto out; |
1564 | r = kvm_arch_vcpu_ioctl_run(vcpu, vcpu->run); | 1564 | r = kvm_arch_vcpu_ioctl_run(vcpu, vcpu->run); |
1565 | trace_kvm_userspace_exit(vcpu->run->exit_reason, r); | ||
1565 | break; | 1566 | break; |
1566 | case KVM_GET_REGS: { | 1567 | case KVM_GET_REGS: { |
1567 | struct kvm_regs *kvm_regs; | 1568 | struct kvm_regs *kvm_regs; |