2010-12-17 01:15:23 +03:00
|
|
|
#include <linux/ftrace.h>
|
2011-08-05 02:42:10 +04:00
|
|
|
#include <xen/interface/xen.h>
|
2015-01-21 10:49:24 +03:00
|
|
|
#include <xen/interface/xen-mca.h>
|
2010-12-17 01:15:23 +03:00
|
|
|
|
2015-01-21 10:49:24 +03:00
|
|
|
#define HYPERCALL(x) [__HYPERVISOR_##x] = "("#x")",
|
2010-12-17 01:33:27 +03:00
|
|
|
static const char *xen_hypercall_names[] = {
|
2015-01-21 10:49:24 +03:00
|
|
|
#include <asm/xen-hypercalls.h>
|
2010-12-17 01:33:27 +03:00
|
|
|
};
|
2015-01-21 10:49:24 +03:00
|
|
|
#undef HYPERCALL
|
2010-12-17 01:33:27 +03:00
|
|
|
|
|
|
|
static const char *xen_hypercall_name(unsigned op)
|
|
|
|
{
|
|
|
|
if (op < ARRAY_SIZE(xen_hypercall_names) && xen_hypercall_names[op] != NULL)
|
|
|
|
return xen_hypercall_names[op];
|
|
|
|
|
|
|
|
return "";
|
|
|
|
}
|
|
|
|
|
2010-12-17 01:15:23 +03:00
|
|
|
#define CREATE_TRACE_POINTS
|
|
|
|
#include <trace/events/xen.h>
|