KVM: MMU: trace mmio page fault
Add tracepoints to trace mmio page fault Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com> Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:

committed by
Avi Kivity

parent
ce88decffd
commit
4f0226482d
@@ -698,6 +698,29 @@ TRACE_EVENT(kvm_emulate_insn,
|
||||
#define trace_kvm_emulate_insn_start(vcpu) trace_kvm_emulate_insn(vcpu, 0)
|
||||
#define trace_kvm_emulate_insn_failed(vcpu) trace_kvm_emulate_insn(vcpu, 1)
|
||||
|
||||
TRACE_EVENT(
|
||||
vcpu_match_mmio,
|
||||
TP_PROTO(gva_t gva, gpa_t gpa, bool write, bool gpa_match),
|
||||
TP_ARGS(gva, gpa, write, gpa_match),
|
||||
|
||||
TP_STRUCT__entry(
|
||||
__field(gva_t, gva)
|
||||
__field(gpa_t, gpa)
|
||||
__field(bool, write)
|
||||
__field(bool, gpa_match)
|
||||
),
|
||||
|
||||
TP_fast_assign(
|
||||
__entry->gva = gva;
|
||||
__entry->gpa = gpa;
|
||||
__entry->write = write;
|
||||
__entry->gpa_match = gpa_match
|
||||
),
|
||||
|
||||
TP_printk("gva %#lx gpa %#llx %s %s", __entry->gva, __entry->gpa,
|
||||
__entry->write ? "Write" : "Read",
|
||||
__entry->gpa_match ? "GPA" : "GVA")
|
||||
);
|
||||
#endif /* _TRACE_KVM_H */
|
||||
|
||||
#undef TRACE_INCLUDE_PATH
|
||||
|
Reference in New Issue
Block a user