|
36 | 36 | #define QUADLET_SIZE 4 |
37 | 37 |
|
38 | 38 | DECLARE_EVENT_CLASS(async_outbound_initiate_template, |
39 | | - TP_PROTO(u64 transaction, unsigned int generation, unsigned int scode, const u32 *header, const u32 *data, unsigned int data_count), |
40 | | - TP_ARGS(transaction, generation, scode, header, data, data_count), |
| 39 | + TP_PROTO(u64 transaction, unsigned int card_index, unsigned int generation, unsigned int scode, const u32 *header, const u32 *data, unsigned int data_count), |
| 40 | + TP_ARGS(transaction, card_index, generation, scode, header, data, data_count), |
41 | 41 | TP_STRUCT__entry( |
42 | 42 | __field(u64, transaction) |
| 43 | + __field(u8, card_index) |
43 | 44 | __field(u8, generation) |
44 | 45 | __field(u8, scode) |
45 | 46 | __array(u32, header, ASYNC_HEADER_QUADLET_COUNT) |
46 | 47 | __dynamic_array(u32, data, data_count) |
47 | 48 | ), |
48 | 49 | TP_fast_assign( |
49 | 50 | __entry->transaction = transaction; |
| 51 | + __entry->card_index = card_index; |
50 | 52 | __entry->generation = generation; |
51 | 53 | __entry->scode = scode; |
52 | 54 | memcpy(__entry->header, header, QUADLET_SIZE * ASYNC_HEADER_QUADLET_COUNT); |
53 | 55 | memcpy(__get_dynamic_array(data), data, __get_dynamic_array_len(data)); |
54 | 56 | ), |
55 | 57 | // This format is for the request subaction. |
56 | 58 | TP_printk( |
57 | | - "transaction=0x%llx generation=%u scode=%u dst_id=0x%04x tlabel=%u tcode=%u src_id=0x%04x offset=0x%012llx header=%s data=%s", |
| 59 | + "transaction=0x%llx card_index=%u generation=%u scode=%u dst_id=0x%04x tlabel=%u tcode=%u src_id=0x%04x offset=0x%012llx header=%s data=%s", |
58 | 60 | __entry->transaction, |
| 61 | + __entry->card_index, |
59 | 62 | __entry->generation, |
60 | 63 | __entry->scode, |
61 | 64 | ASYNC_HEADER_GET_DESTINATION(__entry->header), |
@@ -142,8 +145,8 @@ DECLARE_EVENT_CLASS(async_inbound_template, |
142 | 145 | ); |
143 | 146 |
|
144 | 147 | DEFINE_EVENT(async_outbound_initiate_template, async_request_outbound_initiate, |
145 | | - TP_PROTO(u64 transaction, unsigned int generation, unsigned int scode, const u32 *header, const u32 *data, unsigned int data_count), |
146 | | - TP_ARGS(transaction, generation, scode, header, data, data_count) |
| 148 | + TP_PROTO(u64 transaction, unsigned int card_index, unsigned int generation, unsigned int scode, const u32 *header, const u32 *data, unsigned int data_count), |
| 149 | + TP_ARGS(transaction, card_index, generation, scode, header, data, data_count) |
147 | 150 | ); |
148 | 151 |
|
149 | 152 | DEFINE_EVENT(async_outbound_complete_template, async_request_outbound_complete, |
@@ -178,11 +181,12 @@ DEFINE_EVENT_PRINT(async_inbound_template, async_request_inbound, |
178 | 181 | ); |
179 | 182 |
|
180 | 183 | DEFINE_EVENT_PRINT(async_outbound_initiate_template, async_response_outbound_initiate, |
181 | | - TP_PROTO(u64 transaction, unsigned int generation, unsigned int scode, const u32 *header, const u32 *data, unsigned int data_count), |
182 | | - TP_ARGS(transaction, generation, scode, header, data, data_count), |
| 184 | + TP_PROTO(u64 transaction, unsigned int card_index, unsigned int generation, unsigned int scode, const u32 *header, const u32 *data, unsigned int data_count), |
| 185 | + TP_ARGS(transaction, card_index, generation, scode, header, data, data_count), |
183 | 186 | TP_printk( |
184 | | - "transaction=0x%llx generation=%u scode=%u dst_id=0x%04x tlabel=%u tcode=%u src_id=0x%04x rcode=%u header=%s data=%s", |
| 187 | + "transaction=0x%llx card_index=%u generation=%u scode=%u dst_id=0x%04x tlabel=%u tcode=%u src_id=0x%04x rcode=%u header=%s data=%s", |
185 | 188 | __entry->transaction, |
| 189 | + __entry->card_index, |
186 | 190 | __entry->generation, |
187 | 191 | __entry->scode, |
188 | 192 | ASYNC_HEADER_GET_DESTINATION(__entry->header), |
|
0 commit comments