intel-sst.h 2.5 KB

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