Mark Brown | a4b1299 | 2014-03-12 23:04:35 +0000 | [diff] [blame] | 1 | #undef TRACE_SYSTEM |
| 2 | #define TRACE_SYSTEM intel-sst |
| 3 | |
Steven Rostedt (Red Hat) | 882156e | 2015-04-01 14:14:53 -0400 | [diff] [blame] | 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 | |
Mark Brown | a4b1299 | 2014-03-12 23:04:35 +0000 | [diff] [blame] | 11 | #if !defined(_TRACE_INTEL_SST_H) || defined(TRACE_HEADER_MULTI_READ) |
| 12 | #define _TRACE_INTEL_SST_H |
| 13 | |
| 14 | #include <linux/types.h> |
| 15 | #include <linux/ktime.h> |
| 16 | #include <linux/tracepoint.h> |
| 17 | |
| 18 | DECLARE_EVENT_CLASS(sst_ipc_msg, |
| 19 | |
| 20 | TP_PROTO(unsigned int val), |
| 21 | |
| 22 | TP_ARGS(val), |
| 23 | |
| 24 | TP_STRUCT__entry( |
| 25 | __field( unsigned int, val ) |
| 26 | ), |
| 27 | |
| 28 | TP_fast_assign( |
| 29 | __entry->val = val; |
| 30 | ), |
| 31 | |
| 32 | TP_printk("0x%8.8x", (unsigned int)__entry->val) |
| 33 | ); |
| 34 | |
| 35 | DEFINE_EVENT(sst_ipc_msg, sst_ipc_msg_tx, |
| 36 | |
| 37 | TP_PROTO(unsigned int val), |
| 38 | |
| 39 | TP_ARGS(val) |
| 40 | |
| 41 | ); |
| 42 | |
| 43 | DEFINE_EVENT(sst_ipc_msg, sst_ipc_msg_rx, |
| 44 | |
| 45 | TP_PROTO(unsigned int val), |
| 46 | |
| 47 | TP_ARGS(val) |
| 48 | |
| 49 | ); |
| 50 | |
| 51 | DECLARE_EVENT_CLASS(sst_ipc_mailbox, |
| 52 | |
| 53 | TP_PROTO(unsigned int offset, unsigned int val), |
| 54 | |
| 55 | TP_ARGS(offset, val), |
| 56 | |
| 57 | TP_STRUCT__entry( |
| 58 | __field( unsigned int, offset ) |
| 59 | __field( unsigned int, val ) |
| 60 | ), |
| 61 | |
| 62 | TP_fast_assign( |
| 63 | __entry->offset = offset; |
| 64 | __entry->val = val; |
| 65 | ), |
| 66 | |
| 67 | TP_printk(" 0x%4.4x = 0x%8.8x", |
| 68 | (unsigned int)__entry->offset, (unsigned int)__entry->val) |
| 69 | ); |
| 70 | |
| 71 | DEFINE_EVENT(sst_ipc_mailbox, sst_ipc_inbox_rdata, |
| 72 | |
| 73 | TP_PROTO(unsigned int offset, unsigned int val), |
| 74 | |
| 75 | TP_ARGS(offset, val) |
| 76 | |
| 77 | ); |
| 78 | |
| 79 | DEFINE_EVENT(sst_ipc_mailbox, sst_ipc_inbox_wdata, |
| 80 | |
| 81 | TP_PROTO(unsigned int offset, unsigned int val), |
| 82 | |
| 83 | TP_ARGS(offset, val) |
| 84 | |
| 85 | ); |
| 86 | |
| 87 | DEFINE_EVENT(sst_ipc_mailbox, sst_ipc_outbox_rdata, |
| 88 | |
| 89 | TP_PROTO(unsigned int offset, unsigned int val), |
| 90 | |
| 91 | TP_ARGS(offset, val) |
| 92 | |
| 93 | ); |
| 94 | |
| 95 | DEFINE_EVENT(sst_ipc_mailbox, sst_ipc_outbox_wdata, |
| 96 | |
| 97 | TP_PROTO(unsigned int offset, unsigned int val), |
| 98 | |
| 99 | TP_ARGS(offset, val) |
| 100 | |
| 101 | ); |
| 102 | |
| 103 | DECLARE_EVENT_CLASS(sst_ipc_mailbox_info, |
| 104 | |
| 105 | TP_PROTO(unsigned int size), |
| 106 | |
| 107 | TP_ARGS(size), |
| 108 | |
| 109 | TP_STRUCT__entry( |
| 110 | __field( unsigned int, size ) |
| 111 | ), |
| 112 | |
| 113 | TP_fast_assign( |
| 114 | __entry->size = size; |
| 115 | ), |
| 116 | |
| 117 | TP_printk("Mailbox bytes 0x%8.8x", (unsigned int)__entry->size) |
| 118 | ); |
| 119 | |
| 120 | DEFINE_EVENT(sst_ipc_mailbox_info, sst_ipc_inbox_read, |
| 121 | |
| 122 | TP_PROTO(unsigned int size), |
| 123 | |
| 124 | TP_ARGS(size) |
| 125 | |
| 126 | ); |
| 127 | |
| 128 | DEFINE_EVENT(sst_ipc_mailbox_info, sst_ipc_inbox_write, |
| 129 | |
| 130 | TP_PROTO(unsigned int size), |
| 131 | |
| 132 | TP_ARGS(size) |
| 133 | |
| 134 | ); |
| 135 | |
| 136 | DEFINE_EVENT(sst_ipc_mailbox_info, sst_ipc_outbox_read, |
| 137 | |
| 138 | TP_PROTO(unsigned int size), |
| 139 | |
| 140 | TP_ARGS(size) |
| 141 | |
| 142 | ); |
| 143 | |
| 144 | DEFINE_EVENT(sst_ipc_mailbox_info, sst_ipc_outbox_write, |
| 145 | |
| 146 | TP_PROTO(unsigned int size), |
| 147 | |
| 148 | TP_ARGS(size) |
| 149 | |
| 150 | ); |
| 151 | |
| 152 | #endif /* _TRACE_SST_H */ |
| 153 | |
| 154 | /* This part must be outside protection */ |
| 155 | #include <trace/define_trace.h> |