trace.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. #if !defined(_TRACE_KVM_H) || defined(TRACE_HEADER_MULTI_READ)
  2. #define _TRACE_KVM_H
  3. #include <linux/tracepoint.h>
  4. #undef TRACE_SYSTEM
  5. #define TRACE_SYSTEM kvm
  6. /*
  7. * Tracepoints for vgic
  8. */
  9. TRACE_EVENT(vgic_update_irq_pending,
  10. TP_PROTO(unsigned long vcpu_id, __u32 irq, bool level),
  11. TP_ARGS(vcpu_id, irq, level),
  12. TP_STRUCT__entry(
  13. __field( unsigned long, vcpu_id )
  14. __field( __u32, irq )
  15. __field( bool, level )
  16. ),
  17. TP_fast_assign(
  18. __entry->vcpu_id = vcpu_id;
  19. __entry->irq = irq;
  20. __entry->level = level;
  21. ),
  22. TP_printk("VCPU: %ld, IRQ %d, level: %d",
  23. __entry->vcpu_id, __entry->irq, __entry->level)
  24. );
  25. /*
  26. * Tracepoints for arch_timer
  27. */
  28. TRACE_EVENT(kvm_timer_update_irq,
  29. TP_PROTO(unsigned long vcpu_id, __u32 irq, int level),
  30. TP_ARGS(vcpu_id, irq, level),
  31. TP_STRUCT__entry(
  32. __field( unsigned long, vcpu_id )
  33. __field( __u32, irq )
  34. __field( int, level )
  35. ),
  36. TP_fast_assign(
  37. __entry->vcpu_id = vcpu_id;
  38. __entry->irq = irq;
  39. __entry->level = level;
  40. ),
  41. TP_printk("VCPU: %ld, IRQ %d, level %d",
  42. __entry->vcpu_id, __entry->irq, __entry->level)
  43. );
  44. #endif /* _TRACE_KVM_H */
  45. #undef TRACE_INCLUDE_PATH
  46. #define TRACE_INCLUDE_PATH ../../../virt/kvm/arm
  47. #undef TRACE_INCLUDE_FILE
  48. #define TRACE_INCLUDE_FILE trace
  49. /* This part must be outside protection */
  50. #include <trace/define_trace.h>