trace_arm.h (6bde8ef51c917a657476310728d6cb3de6bac9e4) | trace_arm.h (376426b1a953762b00df887e28d29e44ab4ff723) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2#if !defined(_TRACE_ARM_ARM64_KVM_H) || defined(TRACE_HEADER_MULTI_READ) 3#define _TRACE_ARM_ARM64_KVM_H 4 5#include <kvm/arm_arch_timer.h> 6#include <linux/tracepoint.h> 7 8#undef TRACE_SYSTEM --- 9 unchanged lines hidden (view full) --- 18 TP_STRUCT__entry( 19 __field( unsigned long, vcpu_pc ) 20 ), 21 22 TP_fast_assign( 23 __entry->vcpu_pc = vcpu_pc; 24 ), 25 | 1/* SPDX-License-Identifier: GPL-2.0 */ 2#if !defined(_TRACE_ARM_ARM64_KVM_H) || defined(TRACE_HEADER_MULTI_READ) 3#define _TRACE_ARM_ARM64_KVM_H 4 5#include <kvm/arm_arch_timer.h> 6#include <linux/tracepoint.h> 7 8#undef TRACE_SYSTEM --- 9 unchanged lines hidden (view full) --- 18 TP_STRUCT__entry( 19 __field( unsigned long, vcpu_pc ) 20 ), 21 22 TP_fast_assign( 23 __entry->vcpu_pc = vcpu_pc; 24 ), 25 |
26 TP_printk("PC: 0x%08lx", __entry->vcpu_pc) | 26 TP_printk("PC: 0x%016lx", __entry->vcpu_pc) |
27); 28 29TRACE_EVENT(kvm_exit, 30 TP_PROTO(int ret, unsigned int esr_ec, unsigned long vcpu_pc), 31 TP_ARGS(ret, esr_ec, vcpu_pc), 32 33 TP_STRUCT__entry( 34 __field( int, ret ) 35 __field( unsigned int, esr_ec ) 36 __field( unsigned long, vcpu_pc ) 37 ), 38 39 TP_fast_assign( 40 __entry->ret = ARM_EXCEPTION_CODE(ret); 41 __entry->esr_ec = ARM_EXCEPTION_IS_TRAP(ret) ? esr_ec : 0; 42 __entry->vcpu_pc = vcpu_pc; 43 ), 44 | 27); 28 29TRACE_EVENT(kvm_exit, 30 TP_PROTO(int ret, unsigned int esr_ec, unsigned long vcpu_pc), 31 TP_ARGS(ret, esr_ec, vcpu_pc), 32 33 TP_STRUCT__entry( 34 __field( int, ret ) 35 __field( unsigned int, esr_ec ) 36 __field( unsigned long, vcpu_pc ) 37 ), 38 39 TP_fast_assign( 40 __entry->ret = ARM_EXCEPTION_CODE(ret); 41 __entry->esr_ec = ARM_EXCEPTION_IS_TRAP(ret) ? esr_ec : 0; 42 __entry->vcpu_pc = vcpu_pc; 43 ), 44 |
45 TP_printk("%s: HSR_EC: 0x%04x (%s), PC: 0x%08lx", | 45 TP_printk("%s: HSR_EC: 0x%04x (%s), PC: 0x%016lx", |
46 __print_symbolic(__entry->ret, kvm_arm_exception_type), 47 __entry->esr_ec, 48 __print_symbolic(__entry->esr_ec, kvm_arm_exception_class), 49 __entry->vcpu_pc) 50); 51 52TRACE_EVENT(kvm_guest_fault, 53 TP_PROTO(unsigned long vcpu_pc, unsigned long hsr, --- 10 unchanged lines hidden (view full) --- 64 65 TP_fast_assign( 66 __entry->vcpu_pc = vcpu_pc; 67 __entry->hsr = hsr; 68 __entry->hxfar = hxfar; 69 __entry->ipa = ipa; 70 ), 71 | 46 __print_symbolic(__entry->ret, kvm_arm_exception_type), 47 __entry->esr_ec, 48 __print_symbolic(__entry->esr_ec, kvm_arm_exception_class), 49 __entry->vcpu_pc) 50); 51 52TRACE_EVENT(kvm_guest_fault, 53 TP_PROTO(unsigned long vcpu_pc, unsigned long hsr, --- 10 unchanged lines hidden (view full) --- 64 65 TP_fast_assign( 66 __entry->vcpu_pc = vcpu_pc; 67 __entry->hsr = hsr; 68 __entry->hxfar = hxfar; 69 __entry->ipa = ipa; 70 ), 71 |
72 TP_printk("ipa %#llx, hsr %#08lx, hxfar %#08lx, pc %#08lx", | 72 TP_printk("ipa %#llx, hsr %#08lx, hxfar %#08lx, pc %#016lx", |
73 __entry->ipa, __entry->hsr, 74 __entry->hxfar, __entry->vcpu_pc) 75); 76 77TRACE_EVENT(kvm_access_fault, 78 TP_PROTO(unsigned long ipa), 79 TP_ARGS(ipa), 80 --- 45 unchanged lines hidden (view full) --- 126 ), 127 128 TP_fast_assign( 129 __entry->vcpu_pc = vcpu_pc; 130 __entry->instr = instr; 131 __entry->cpsr = cpsr; 132 ), 133 | 73 __entry->ipa, __entry->hsr, 74 __entry->hxfar, __entry->vcpu_pc) 75); 76 77TRACE_EVENT(kvm_access_fault, 78 TP_PROTO(unsigned long ipa), 79 TP_ARGS(ipa), 80 --- 45 unchanged lines hidden (view full) --- 126 ), 127 128 TP_fast_assign( 129 __entry->vcpu_pc = vcpu_pc; 130 __entry->instr = instr; 131 __entry->cpsr = cpsr; 132 ), 133 |
134 TP_printk("Emulate MMIO at: 0x%08lx (instr: %08lx, cpsr: %08lx)", | 134 TP_printk("Emulate MMIO at: 0x%016lx (instr: %08lx, cpsr: %08lx)", |
135 __entry->vcpu_pc, __entry->instr, __entry->cpsr) 136); 137 138TRACE_EVENT(kvm_unmap_hva_range, 139 TP_PROTO(unsigned long start, unsigned long end), 140 TP_ARGS(start, end), 141 142 TP_STRUCT__entry( 143 __field( unsigned long, start ) 144 __field( unsigned long, end ) 145 ), 146 147 TP_fast_assign( 148 __entry->start = start; 149 __entry->end = end; 150 ), 151 | 135 __entry->vcpu_pc, __entry->instr, __entry->cpsr) 136); 137 138TRACE_EVENT(kvm_unmap_hva_range, 139 TP_PROTO(unsigned long start, unsigned long end), 140 TP_ARGS(start, end), 141 142 TP_STRUCT__entry( 143 __field( unsigned long, start ) 144 __field( unsigned long, end ) 145 ), 146 147 TP_fast_assign( 148 __entry->start = start; 149 __entry->end = end; 150 ), 151 |
152 TP_printk("mmu notifier unmap range: %#08lx -- %#08lx", | 152 TP_printk("mmu notifier unmap range: %#016lx -- %#016lx", |
153 __entry->start, __entry->end) 154); 155 156TRACE_EVENT(kvm_set_spte_hva, 157 TP_PROTO(unsigned long hva), 158 TP_ARGS(hva), 159 160 TP_STRUCT__entry( 161 __field( unsigned long, hva ) 162 ), 163 164 TP_fast_assign( 165 __entry->hva = hva; 166 ), 167 | 153 __entry->start, __entry->end) 154); 155 156TRACE_EVENT(kvm_set_spte_hva, 157 TP_PROTO(unsigned long hva), 158 TP_ARGS(hva), 159 160 TP_STRUCT__entry( 161 __field( unsigned long, hva ) 162 ), 163 164 TP_fast_assign( 165 __entry->hva = hva; 166 ), 167 |
168 TP_printk("mmu notifier set pte hva: %#08lx", __entry->hva) | 168 TP_printk("mmu notifier set pte hva: %#016lx", __entry->hva) |
169); 170 171TRACE_EVENT(kvm_age_hva, 172 TP_PROTO(unsigned long start, unsigned long end), 173 TP_ARGS(start, end), 174 175 TP_STRUCT__entry( 176 __field( unsigned long, start ) 177 __field( unsigned long, end ) 178 ), 179 180 TP_fast_assign( 181 __entry->start = start; 182 __entry->end = end; 183 ), 184 | 169); 170 171TRACE_EVENT(kvm_age_hva, 172 TP_PROTO(unsigned long start, unsigned long end), 173 TP_ARGS(start, end), 174 175 TP_STRUCT__entry( 176 __field( unsigned long, start ) 177 __field( unsigned long, end ) 178 ), 179 180 TP_fast_assign( 181 __entry->start = start; 182 __entry->end = end; 183 ), 184 |
185 TP_printk("mmu notifier age hva: %#08lx -- %#08lx", | 185 TP_printk("mmu notifier age hva: %#016lx -- %#016lx", |
186 __entry->start, __entry->end) 187); 188 189TRACE_EVENT(kvm_test_age_hva, 190 TP_PROTO(unsigned long hva), 191 TP_ARGS(hva), 192 193 TP_STRUCT__entry( 194 __field( unsigned long, hva ) 195 ), 196 197 TP_fast_assign( 198 __entry->hva = hva; 199 ), 200 | 186 __entry->start, __entry->end) 187); 188 189TRACE_EVENT(kvm_test_age_hva, 190 TP_PROTO(unsigned long hva), 191 TP_ARGS(hva), 192 193 TP_STRUCT__entry( 194 __field( unsigned long, hva ) 195 ), 196 197 TP_fast_assign( 198 __entry->hva = hva; 199 ), 200 |
201 TP_printk("mmu notifier test age hva: %#08lx", __entry->hva) | 201 TP_printk("mmu notifier test age hva: %#016lx", __entry->hva) |
202); 203 204TRACE_EVENT(kvm_set_way_flush, 205 TP_PROTO(unsigned long vcpu_pc, bool cache), 206 TP_ARGS(vcpu_pc, cache), 207 208 TP_STRUCT__entry( 209 __field( unsigned long, vcpu_pc ) --- 169 unchanged lines hidden --- | 202); 203 204TRACE_EVENT(kvm_set_way_flush, 205 TP_PROTO(unsigned long vcpu_pc, bool cache), 206 TP_ARGS(vcpu_pc, cache), 207 208 TP_STRUCT__entry( 209 __field( unsigned long, vcpu_pc ) --- 169 unchanged lines hidden --- |