2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
6 * Copyright (C) 2012 MIPS Technologies, Inc. All rights reserved.
10 #if !defined(_TRACE_KVM_H) || defined(TRACE_HEADER_MULTI_READ)
13 #include <linux/tracepoint.h>
16 #define TRACE_SYSTEM kvm
17 #define TRACE_INCLUDE_PATH .
18 #define TRACE_INCLUDE_FILE trace
21 * Tracepoints for VM eists
23 extern char *kvm_mips_exit_types_str[MAX_KVM_MIPS_EXIT_TYPES];
26 TP_PROTO(struct kvm_vcpu *vcpu, unsigned int reason),
27 TP_ARGS(vcpu, reason),
29 __field(struct kvm_vcpu *, vcpu)
30 __field(unsigned int, reason)
35 __entry->reason = reason;
38 TP_printk("[%s]PC: 0x%08lx",
39 kvm_mips_exit_types_str[__entry->reason],
40 __entry->vcpu->arch.pc)
43 #endif /* _TRACE_KVM_H */
45 /* This part must be outside protection */
46 #include <trace/define_trace.h>