Loading arch/powerpc/kvm/book3s_mmu_hpte.c +3 −0 Original line number Diff line number Diff line Loading @@ -21,6 +21,7 @@ #include <linux/kvm_host.h> #include <linux/hash.h> #include <linux/slab.h> #include "trace.h" #include <asm/kvm_ppc.h> #include <asm/kvm_book3s.h> Loading Loading @@ -66,6 +67,8 @@ void kvmppc_mmu_hpte_cache_map(struct kvm_vcpu *vcpu, struct hpte_cache *pte) { u64 index; trace_kvm_book3s_mmu_map(pte); spin_lock(&vcpu->arch.mmu_lock); /* Add to ePTE list */ Loading arch/powerpc/kvm/trace.h +29 −0 Original line number Diff line number Diff line Loading @@ -181,6 +181,35 @@ TRACE_EVENT(kvm_book3s_64_mmu_map, #endif /* CONFIG_PPC_BOOK3S_64 */ TRACE_EVENT(kvm_book3s_mmu_map, TP_PROTO(struct hpte_cache *pte), TP_ARGS(pte), TP_STRUCT__entry( __field( u64, host_va ) __field( u64, pfn ) __field( ulong, eaddr ) __field( u64, vpage ) __field( ulong, raddr ) __field( int, flags ) ), TP_fast_assign( __entry->host_va = pte->host_va; __entry->pfn = pte->pfn; __entry->eaddr = pte->pte.eaddr; __entry->vpage = pte->pte.vpage; __entry->raddr = pte->pte.raddr; __entry->flags = (pte->pte.may_read ? 0x4 : 0) | (pte->pte.may_write ? 0x2 : 0) | (pte->pte.may_execute ? 0x1 : 0); ), TP_printk("Map: hva=%llx pfn=%llx ea=%lx vp=%llx ra=%lx [%x]", __entry->host_va, __entry->pfn, __entry->eaddr, __entry->vpage, __entry->raddr, __entry->flags) ); #endif /* CONFIG_PPC_BOOK3S */ #endif /* _TRACE_KVM_H */ Loading Loading
arch/powerpc/kvm/book3s_mmu_hpte.c +3 −0 Original line number Diff line number Diff line Loading @@ -21,6 +21,7 @@ #include <linux/kvm_host.h> #include <linux/hash.h> #include <linux/slab.h> #include "trace.h" #include <asm/kvm_ppc.h> #include <asm/kvm_book3s.h> Loading Loading @@ -66,6 +67,8 @@ void kvmppc_mmu_hpte_cache_map(struct kvm_vcpu *vcpu, struct hpte_cache *pte) { u64 index; trace_kvm_book3s_mmu_map(pte); spin_lock(&vcpu->arch.mmu_lock); /* Add to ePTE list */ Loading
arch/powerpc/kvm/trace.h +29 −0 Original line number Diff line number Diff line Loading @@ -181,6 +181,35 @@ TRACE_EVENT(kvm_book3s_64_mmu_map, #endif /* CONFIG_PPC_BOOK3S_64 */ TRACE_EVENT(kvm_book3s_mmu_map, TP_PROTO(struct hpte_cache *pte), TP_ARGS(pte), TP_STRUCT__entry( __field( u64, host_va ) __field( u64, pfn ) __field( ulong, eaddr ) __field( u64, vpage ) __field( ulong, raddr ) __field( int, flags ) ), TP_fast_assign( __entry->host_va = pte->host_va; __entry->pfn = pte->pfn; __entry->eaddr = pte->pte.eaddr; __entry->vpage = pte->pte.vpage; __entry->raddr = pte->pte.raddr; __entry->flags = (pte->pte.may_read ? 0x4 : 0) | (pte->pte.may_write ? 0x2 : 0) | (pte->pte.may_execute ? 0x1 : 0); ), TP_printk("Map: hva=%llx pfn=%llx ea=%lx vp=%llx ra=%lx [%x]", __entry->host_va, __entry->pfn, __entry->eaddr, __entry->vpage, __entry->raddr, __entry->flags) ); #endif /* CONFIG_PPC_BOOK3S */ #endif /* _TRACE_KVM_H */ Loading