blob: a702ec2f59317f7b9ee98f1cec876a07f99b7b28 [file] [log] [blame]
Jeremy Fitzhardingef04e2ee2010-12-16 14:15:23 -08001#include <linux/ftrace.h>
Konrad Rzeszutek Wilkc00c8aa2011-08-04 18:42:10 -04002#include <xen/interface/xen.h>
Juergen Grossfc903f82015-01-21 08:49:24 +01003#include <xen/interface/xen-mca.h>
Jeremy Fitzhardingef04e2ee2010-12-16 14:15:23 -08004
Juergen Grossfc903f82015-01-21 08:49:24 +01005#define HYPERCALL(x) [__HYPERVISOR_##x] = "("#x")",
Jeremy Fitzhardingec796f212010-12-16 14:33:27 -08006static const char *xen_hypercall_names[] = {
Juergen Grossfc903f82015-01-21 08:49:24 +01007#include <asm/xen-hypercalls.h>
Jeremy Fitzhardingec796f212010-12-16 14:33:27 -08008};
Juergen Grossfc903f82015-01-21 08:49:24 +01009#undef HYPERCALL
Jeremy Fitzhardingec796f212010-12-16 14:33:27 -080010
11static 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
Jeremy Fitzhardingef04e2ee2010-12-16 14:15:23 -080019#define CREATE_TRACE_POINTS
20#include <trace/events/xen.h>