trace.c 482 B

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