summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/trace/hyperv.h
diff options
context:
space:
mode:
authorTianyu Lan <Tianyu.Lan@microsoft.com>2018-07-19 08:40:12 +0000
committerPaolo Bonzini <pbonzini@redhat.com>2018-08-06 17:59:05 +0200
commit60cfce4c4f6f6741882032ee6f895e835533a16b (patch)
treed3bb79673ab196b8dc071eb6f9e449918cd86753 /arch/x86/include/asm/trace/hyperv.h
parenteb914cfe72f4c948b2318b1381f6d2e08d43b63c (diff)
downloadlinux-0-day-60cfce4c4f6f6741882032ee6f895e835533a16b.tar.gz
linux-0-day-60cfce4c4f6f6741882032ee6f895e835533a16b.tar.xz
X86/Hyper-V: Add hyperv_nested_flush_guest_mapping ftrace support
This patch is to add hyperv_nested_flush_guest_mapping support to trace hvFlushGuestPhysicalAddressSpace hypercall. Signed-off-by: Lan Tianyu <Tianyu.Lan@microsoft.com> Acked-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/include/asm/trace/hyperv.h')
-rw-r--r--arch/x86/include/asm/trace/hyperv.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/x86/include/asm/trace/hyperv.h b/arch/x86/include/asm/trace/hyperv.h
index 4253bca999890..e1ffe61de8d6d 100644
--- a/arch/x86/include/asm/trace/hyperv.h
+++ b/arch/x86/include/asm/trace/hyperv.h
@@ -28,6 +28,20 @@ TRACE_EVENT(hyperv_mmu_flush_tlb_others,
__entry->addr, __entry->end)
);
+TRACE_EVENT(hyperv_nested_flush_guest_mapping,
+ TP_PROTO(u64 as, int ret),
+ TP_ARGS(as, ret),
+
+ TP_STRUCT__entry(
+ __field(u64, as)
+ __field(int, ret)
+ ),
+ TP_fast_assign(__entry->as = as;
+ __entry->ret = ret;
+ ),
+ TP_printk("address space %llx ret %d", __entry->as, __entry->ret)
+ );
+
#endif /* CONFIG_HYPERV */
#undef TRACE_INCLUDE_PATH