Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 #include <linux/ftrace.h>
0003 #include <xen/interface/xen.h>
0004 #include <xen/interface/xen-mca.h>
0005 
0006 #define HYPERCALL(x)    [__HYPERVISOR_##x] = "("#x")",
0007 static const char *xen_hypercall_names[] = {
0008 #include <asm/xen-hypercalls.h>
0009 };
0010 #undef HYPERCALL
0011 
0012 static const char *xen_hypercall_name(unsigned op)
0013 {
0014     if (op < ARRAY_SIZE(xen_hypercall_names) && xen_hypercall_names[op] != NULL)
0015         return xen_hypercall_names[op];
0016 
0017     return "";
0018 }
0019 
0020 #define CREATE_TRACE_POINTS
0021 #include <trace/events/xen.h>