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)
commit1171903d899b1930f502b4c10a2a3565d6603c71
treecdceb9525188eee17817b28b6eee5fc6f648cd32
parent719d93cd5f5c5c8775b7a38192069e8e1d1ac46e
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