s390x/kvm: add tracepoint to ioeventfd interface
Trace when assigning/unassigning. Message-Id: <20190212153025.25425-1-cohuck@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Cornelia Huck <cohuck@redhat.com>
This commit is contained in:
parent
f2a7d15771
commit
747c432f1e
|
@ -1886,6 +1886,8 @@ int kvm_s390_assign_subch_ioeventfd(EventNotifier *notifier, uint32_t sch,
|
||||||
.addr = sch,
|
.addr = sch,
|
||||||
.len = 8,
|
.len = 8,
|
||||||
};
|
};
|
||||||
|
trace_kvm_assign_subch_ioeventfd(kick.fd, kick.addr, assign,
|
||||||
|
kick.datamatch);
|
||||||
if (!kvm_check_extension(kvm_state, KVM_CAP_IOEVENTFD)) {
|
if (!kvm_check_extension(kvm_state, KVM_CAP_IOEVENTFD)) {
|
||||||
return -ENOSYS;
|
return -ENOSYS;
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,6 +14,7 @@ ioinst_chsc_cmd(uint16_t cmd, uint16_t len) "IOINST: chsc command 0x%04x, len 0x
|
||||||
kvm_enable_cmma(int rc) "CMMA: enabling with result code %d"
|
kvm_enable_cmma(int rc) "CMMA: enabling with result code %d"
|
||||||
kvm_clear_cmma(int rc) "CMMA: clearing with result code %d"
|
kvm_clear_cmma(int rc) "CMMA: clearing with result code %d"
|
||||||
kvm_failed_cpu_state_set(int cpu_index, uint8_t state, const char *msg) "Warning: Unable to set cpu %d state %" PRIu8 " to KVM: %s"
|
kvm_failed_cpu_state_set(int cpu_index, uint8_t state, const char *msg) "Warning: Unable to set cpu %d state %" PRIu8 " to KVM: %s"
|
||||||
|
kvm_assign_subch_ioeventfd(int fd, uint32_t addr, bool assign, int datamatch) "fd: %d sch: @0x%x assign: %d vq: %d"
|
||||||
|
|
||||||
# target/s390x/cpu.c
|
# target/s390x/cpu.c
|
||||||
cpu_set_state(int cpu_index, uint8_t state) "setting cpu %d state to %" PRIu8
|
cpu_set_state(int cpu_index, uint8_t state) "setting cpu %d state to %" PRIu8
|
||||||
|
|
Loading…
Reference in New Issue