hda_intel_trace.h 994 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #undef TRACE_SYSTEM
  2. #define TRACE_SYSTEM hda_intel
  3. #define TRACE_INCLUDE_FILE hda_intel_trace
  4. #if !defined(_TRACE_HDA_INTEL_H) || defined(TRACE_HEADER_MULTI_READ)
  5. #define _TRACE_HDA_INTEL_H
  6. #include <linux/tracepoint.h>
  7. DECLARE_EVENT_CLASS(hda_pm,
  8. TP_PROTO(struct azx *chip),
  9. TP_ARGS(chip),
  10. TP_STRUCT__entry(
  11. __field(int, dev_index)
  12. ),
  13. TP_fast_assign(
  14. __entry->dev_index = (chip)->dev_index;
  15. ),
  16. TP_printk("card index: %d", __entry->dev_index)
  17. );
  18. DEFINE_EVENT(hda_pm, azx_suspend,
  19. TP_PROTO(struct azx *chip),
  20. TP_ARGS(chip)
  21. );
  22. DEFINE_EVENT(hda_pm, azx_resume,
  23. TP_PROTO(struct azx *chip),
  24. TP_ARGS(chip)
  25. );
  26. #ifdef CONFIG_PM
  27. DEFINE_EVENT(hda_pm, azx_runtime_suspend,
  28. TP_PROTO(struct azx *chip),
  29. TP_ARGS(chip)
  30. );
  31. DEFINE_EVENT(hda_pm, azx_runtime_resume,
  32. TP_PROTO(struct azx *chip),
  33. TP_ARGS(chip)
  34. );
  35. #endif
  36. #endif /* _TRACE_HDA_INTEL_H */
  37. /* This part must be outside protection */
  38. #undef TRACE_INCLUDE_PATH
  39. #define TRACE_INCLUDE_PATH .
  40. #include <trace/define_trace.h>