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