intel-sst.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. #undef TRACE_SYSTEM
  2. #define TRACE_SYSTEM intel-sst
  3. /*
  4. * The TRACE_SYSTEM_VAR defaults to TRACE_SYSTEM, but must be a
  5. * legitimate C variable. It is not exported to user space.
  6. */
  7. #undef TRACE_SYSTEM_VAR
  8. #define TRACE_SYSTEM_VAR intel_sst
  9. #if !defined(_TRACE_INTEL_SST_H) || defined(TRACE_HEADER_MULTI_READ)
  10. #define _TRACE_INTEL_SST_H
  11. #include <linux/types.h>
  12. #include <linux/ktime.h>
  13. #include <linux/tracepoint.h>
  14. DECLARE_EVENT_CLASS(sst_ipc_msg,
  15. TP_PROTO(unsigned int val),
  16. TP_ARGS(val),
  17. TP_STRUCT__entry(
  18. __field( unsigned int, val )
  19. ),
  20. TP_fast_assign(
  21. __entry->val = val;
  22. ),
  23. TP_printk("0x%8.8x", (unsigned int)__entry->val)
  24. );
  25. DEFINE_EVENT(sst_ipc_msg, sst_ipc_msg_tx,
  26. TP_PROTO(unsigned int val),
  27. TP_ARGS(val)
  28. );
  29. DEFINE_EVENT(sst_ipc_msg, sst_ipc_msg_rx,
  30. TP_PROTO(unsigned int val),
  31. TP_ARGS(val)
  32. );
  33. DECLARE_EVENT_CLASS(sst_ipc_mailbox,
  34. TP_PROTO(unsigned int offset, unsigned int val),
  35. TP_ARGS(offset, val),
  36. TP_STRUCT__entry(
  37. __field( unsigned int, offset )
  38. __field( unsigned int, val )
  39. ),
  40. TP_fast_assign(
  41. __entry->offset = offset;
  42. __entry->val = val;
  43. ),
  44. TP_printk(" 0x%4.4x = 0x%8.8x",
  45. (unsigned int)__entry->offset, (unsigned int)__entry->val)
  46. );
  47. DEFINE_EVENT(sst_ipc_mailbox, sst_ipc_inbox_rdata,
  48. TP_PROTO(unsigned int offset, unsigned int val),
  49. TP_ARGS(offset, val)
  50. );
  51. DEFINE_EVENT(sst_ipc_mailbox, sst_ipc_inbox_wdata,
  52. TP_PROTO(unsigned int offset, unsigned int val),
  53. TP_ARGS(offset, val)
  54. );
  55. DEFINE_EVENT(sst_ipc_mailbox, sst_ipc_outbox_rdata,
  56. TP_PROTO(unsigned int offset, unsigned int val),
  57. TP_ARGS(offset, val)
  58. );
  59. DEFINE_EVENT(sst_ipc_mailbox, sst_ipc_outbox_wdata,
  60. TP_PROTO(unsigned int offset, unsigned int val),
  61. TP_ARGS(offset, val)
  62. );
  63. DECLARE_EVENT_CLASS(sst_ipc_mailbox_info,
  64. TP_PROTO(unsigned int size),
  65. TP_ARGS(size),
  66. TP_STRUCT__entry(
  67. __field( unsigned int, size )
  68. ),
  69. TP_fast_assign(
  70. __entry->size = size;
  71. ),
  72. TP_printk("Mailbox bytes 0x%8.8x", (unsigned int)__entry->size)
  73. );
  74. DEFINE_EVENT(sst_ipc_mailbox_info, sst_ipc_inbox_read,
  75. TP_PROTO(unsigned int size),
  76. TP_ARGS(size)
  77. );
  78. DEFINE_EVENT(sst_ipc_mailbox_info, sst_ipc_inbox_write,
  79. TP_PROTO(unsigned int size),
  80. TP_ARGS(size)
  81. );
  82. DEFINE_EVENT(sst_ipc_mailbox_info, sst_ipc_outbox_read,
  83. TP_PROTO(unsigned int size),
  84. TP_ARGS(size)
  85. );
  86. DEFINE_EVENT(sst_ipc_mailbox_info, sst_ipc_outbox_write,
  87. TP_PROTO(unsigned int size),
  88. TP_ARGS(size)
  89. );
  90. #endif /* _TRACE_SST_H */
  91. /* This part must be outside protection */
  92. #include <trace/define_trace.h>