fsi_master_ast_cf.h 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. #undef TRACE_SYSTEM
  2. #define TRACE_SYSTEM fsi_master_ast_cf
  3. #if !defined(_TRACE_FSI_MASTER_ACF_H) || defined(TRACE_HEADER_MULTI_READ)
  4. #define _TRACE_FSI_MASTER_ACF_H
  5. #include <linux/tracepoint.h>
  6. TRACE_EVENT(fsi_master_acf_copro_command,
  7. TP_PROTO(const struct fsi_master_acf *master, uint32_t op),
  8. TP_ARGS(master, op),
  9. TP_STRUCT__entry(
  10. __field(int, master_idx)
  11. __field(uint32_t, op)
  12. ),
  13. TP_fast_assign(
  14. __entry->master_idx = master->master.idx;
  15. __entry->op = op;
  16. ),
  17. TP_printk("fsi-acf%d command %08x",
  18. __entry->master_idx, __entry->op
  19. )
  20. );
  21. TRACE_EVENT(fsi_master_acf_send_request,
  22. TP_PROTO(const struct fsi_master_acf *master, const struct fsi_msg *cmd, u8 rbits),
  23. TP_ARGS(master, cmd, rbits),
  24. TP_STRUCT__entry(
  25. __field(int, master_idx)
  26. __field(uint64_t, msg)
  27. __field(u8, bits)
  28. __field(u8, rbits)
  29. ),
  30. TP_fast_assign(
  31. __entry->master_idx = master->master.idx;
  32. __entry->msg = cmd->msg;
  33. __entry->bits = cmd->bits;
  34. __entry->rbits = rbits;
  35. ),
  36. TP_printk("fsi-acf%d cmd: %016llx/%d/%d",
  37. __entry->master_idx, (unsigned long long)__entry->msg,
  38. __entry->bits, __entry->rbits
  39. )
  40. );
  41. TRACE_EVENT(fsi_master_acf_copro_response,
  42. TP_PROTO(const struct fsi_master_acf *master, u8 rtag, u8 rcrc, __be32 rdata, bool crc_ok),
  43. TP_ARGS(master, rtag, rcrc, rdata, crc_ok),
  44. TP_STRUCT__entry(
  45. __field(int, master_idx)
  46. __field(u8, rtag)
  47. __field(u8, rcrc)
  48. __field(u32, rdata)
  49. __field(bool, crc_ok)
  50. ),
  51. TP_fast_assign(
  52. __entry->master_idx = master->master.idx;
  53. __entry->rtag = rtag;
  54. __entry->rcrc = rcrc;
  55. __entry->rdata = be32_to_cpu(rdata);
  56. __entry->crc_ok = crc_ok;
  57. ),
  58. TP_printk("fsi-acf%d rsp: tag=%04x crc=%04x data=%08x %c\n",
  59. __entry->master_idx, __entry->rtag, __entry->rcrc,
  60. __entry->rdata, __entry->crc_ok ? ' ' : '!'
  61. )
  62. );
  63. TRACE_EVENT(fsi_master_acf_crc_rsp_error,
  64. TP_PROTO(const struct fsi_master_acf *master, int retries),
  65. TP_ARGS(master, retries),
  66. TP_STRUCT__entry(
  67. __field(int, master_idx)
  68. __field(int, retries)
  69. ),
  70. TP_fast_assign(
  71. __entry->master_idx = master->master.idx;
  72. __entry->retries = retries;
  73. ),
  74. TP_printk("fsi-acf%d CRC error in response retry %d",
  75. __entry->master_idx, __entry->retries
  76. )
  77. );
  78. TRACE_EVENT(fsi_master_acf_poll_response_busy,
  79. TP_PROTO(const struct fsi_master_acf *master, int busy_count),
  80. TP_ARGS(master, busy_count),
  81. TP_STRUCT__entry(
  82. __field(int, master_idx)
  83. __field(int, busy_count)
  84. ),
  85. TP_fast_assign(
  86. __entry->master_idx = master->master.idx;
  87. __entry->busy_count = busy_count;
  88. ),
  89. TP_printk("fsi-acf%d: device reported busy %d times",
  90. __entry->master_idx, __entry->busy_count
  91. )
  92. );
  93. TRACE_EVENT(fsi_master_acf_cmd_abs_addr,
  94. TP_PROTO(const struct fsi_master_acf *master, u32 addr),
  95. TP_ARGS(master, addr),
  96. TP_STRUCT__entry(
  97. __field(int, master_idx)
  98. __field(u32, addr)
  99. ),
  100. TP_fast_assign(
  101. __entry->master_idx = master->master.idx;
  102. __entry->addr = addr;
  103. ),
  104. TP_printk("fsi-acf%d: Sending ABS_ADR %06x",
  105. __entry->master_idx, __entry->addr
  106. )
  107. );
  108. TRACE_EVENT(fsi_master_acf_cmd_rel_addr,
  109. TP_PROTO(const struct fsi_master_acf *master, u32 rel_addr),
  110. TP_ARGS(master, rel_addr),
  111. TP_STRUCT__entry(
  112. __field(int, master_idx)
  113. __field(u32, rel_addr)
  114. ),
  115. TP_fast_assign(
  116. __entry->master_idx = master->master.idx;
  117. __entry->rel_addr = rel_addr;
  118. ),
  119. TP_printk("fsi-acf%d: Sending REL_ADR %03x",
  120. __entry->master_idx, __entry->rel_addr
  121. )
  122. );
  123. TRACE_EVENT(fsi_master_acf_cmd_same_addr,
  124. TP_PROTO(const struct fsi_master_acf *master),
  125. TP_ARGS(master),
  126. TP_STRUCT__entry(
  127. __field(int, master_idx)
  128. ),
  129. TP_fast_assign(
  130. __entry->master_idx = master->master.idx;
  131. ),
  132. TP_printk("fsi-acf%d: Sending SAME_ADR",
  133. __entry->master_idx
  134. )
  135. );
  136. #endif /* _TRACE_FSI_MASTER_ACF_H */
  137. #include <trace/define_trace.h>