]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: improve the usability of the 'kvm_pio' tracepoint
authorUlrich Obergfell <uobergfe@redhat.com>
Fri, 2 May 2014 15:57:47 +0000 (17:57 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 5 May 2014 20:42:05 +0000 (22:42 +0200)
commite9c12bf40ade529fbfa85ae407ebd677a6479785
treecdceb9525188eee17817b28b6eee5fc6f648cd32
parentd5f5ab9c5411919d1fc0c7e2855711b1864cb015
KVM: x86: improve the usability of the 'kvm_pio' tracepoint

This patch moves the 'kvm_pio' tracepoint to emulator_pio_in_emulated()
and emulator_pio_out_emulated(), and it adds an argument (a pointer to
the 'pio_data'). A single 8-bit or 16-bit or 32-bit data item is fetched
from 'pio_data' (depending on 'size'), and the value is included in the
trace record ('val'). If 'count' is greater than one, this is indicated
by the string "(...)" in the trace output.

Signed-off-by: Ulrich Obergfell <uobergfe@redhat.com>
Reviewed-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/trace.h
arch/x86/kvm/x86.c