linux/arch/s390/kvm/gmap/trace_gmap.h
Steffen Eiden 1b09c13c90 KVM: s390: Move s390 kvm code into a subdirectory
Move all the code required to run s390 KVM guests on s390 to a s390
subdirectory. Move gmap related code into a gmap directory to later
share gmap code between KVM implementations.

Update S390 VFIO-PCI MAINTAINERS filepath.

No functional change.

Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@linux.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@linux.ibm.com>
2026-08-13 08:54:55 +02:00

48 lines
1.1 KiB
C

/* SPDX-License-Identifier: GPL-2.0 */
#if !defined(GMAP_TRACE_KVM_H) || defined(TRACE_HEADER_MULTI_READ)
#define GMAP_TRACE_KVM_H
#include <linux/tracepoint.h>
#undef TRACE_SYSTEM
#define TRACE_SYSTEM kvm
#undef TRACE_INCLUDE_PATH
#define TRACE_INCLUDE_PATH ../gmap
#undef TRACE_INCLUDE_FILE
#define TRACE_INCLUDE_FILE trace_gmap
#define __KVM_FIELDS \
__field(unsigned long, pswmask) \
__field(unsigned long, pswaddr)
#define __KVM_ASSIGN ({\
__entry->pswmask = vcpu->arch.sie_block->gpsw.mask; \
__entry->pswaddr = vcpu->arch.sie_block->gpsw.addr; \
})
#define __KVM_PRINT \
__entry->pswmask,\
__entry->pswaddr
TRACE_EVENT(kvm_s390_major_guest_pfault,
TP_PROTO(struct kvm_vcpu *vcpu),
TP_ARGS(vcpu),
TP_STRUCT__entry(
__field(int, id)
__KVM_FIELDS
),
TP_fast_assign(
__entry->id = vcpu->vcpu_id;
__KVM_ASSIGN
),
TP_printk("%02d[%016lx-%016lx]: major fault, maybe applicable for pfault",
__entry->id,
__KVM_PRINT
)
);
#endif /* GMAP_TRACE_KVM_H */
/* This part must be outside protection */
#include <trace/define_trace.h>