2010-12-17 05:15:23 +07:00
|
|
|
#include <linux/ftrace.h>
|
2011-08-05 05:42:10 +07:00
|
|
|
#include <xen/interface/xen.h>
|
2015-01-21 14:49:24 +07:00
|
|
|
#include <xen/interface/xen-mca.h>
|
2010-12-17 05:15:23 +07:00
|
|
|
|
2015-01-21 14:49:24 +07:00
|
|
|
#define HYPERCALL(x) [__HYPERVISOR_##x] = "("#x")",
|
2010-12-17 05:33:27 +07:00
|
|
|
static const char *xen_hypercall_names[] = {
|
2015-01-21 14:49:24 +07:00
|
|
|
#include <asm/xen-hypercalls.h>
|
2010-12-17 05:33:27 +07:00
|
|
|
};
|
2015-01-21 14:49:24 +07:00
|
|
|
#undef HYPERCALL
|
2010-12-17 05:33:27 +07: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 05:15:23 +07:00
|
|
|
#define CREATE_TRACE_POINTS
|
|
|
|
#include <trace/events/xen.h>
|