trace.h 884 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #if !defined(_TRACE_VGIC_H) || defined(TRACE_HEADER_MULTI_READ)
  3. #define _TRACE_VGIC_H
  4. #include <linux/tracepoint.h>
  5. #undef TRACE_SYSTEM
  6. #define TRACE_SYSTEM kvm
  7. TRACE_EVENT(vgic_update_irq_pending,
  8. TP_PROTO(unsigned long vcpu_id, __u32 irq, bool level),
  9. TP_ARGS(vcpu_id, irq, level),
  10. TP_STRUCT__entry(
  11. __field( unsigned long, vcpu_id )
  12. __field( __u32, irq )
  13. __field( bool, level )
  14. ),
  15. TP_fast_assign(
  16. __entry->vcpu_id = vcpu_id;
  17. __entry->irq = irq;
  18. __entry->level = level;
  19. ),
  20. TP_printk("VCPU: %ld, IRQ %d, level: %d",
  21. __entry->vcpu_id, __entry->irq, __entry->level)
  22. );
  23. #endif /* _TRACE_VGIC_H */
  24. #undef TRACE_INCLUDE_PATH
  25. #define TRACE_INCLUDE_PATH ../../../virt/kvm/arm/vgic
  26. #undef TRACE_INCLUDE_FILE
  27. #define TRACE_INCLUDE_FILE trace
  28. /* This part must be outside protection */
  29. #include <trace/define_trace.h>