]>
Commit | Line | Data |
---|---|---|
f04e2ee4 | 1 | #include <linux/ftrace.h> |
c00c8aa2 | 2 | #include <xen/interface/xen.h> |
fc903f87 | 3 | #include <xen/interface/xen-mca.h> |
f04e2ee4 | 4 | |
fc903f87 | 5 | #define HYPERCALL(x) [__HYPERVISOR_##x] = "("#x")", |
c796f213 | 6 | static const char *xen_hypercall_names[] = { |
fc903f87 | 7 | #include <asm/xen-hypercalls.h> |
c796f213 | 8 | }; |
fc903f87 | 9 | #undef HYPERCALL |
c796f213 JF |
10 | |
11 | static const char *xen_hypercall_name(unsigned op) | |
12 | { | |
13 | if (op < ARRAY_SIZE(xen_hypercall_names) && xen_hypercall_names[op] != NULL) | |
14 | return xen_hypercall_names[op]; | |
15 | ||
16 | return ""; | |
17 | } | |
18 | ||
f04e2ee4 JF |
19 | #define CREATE_TRACE_POINTS |
20 | #include <trace/events/xen.h> |