0
|
1 |
// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
// All rights reserved.
|
|
3 |
// This component and the accompanying materials are made available
|
|
4 |
// under the terms of the License "Eclipse Public License v1.0"
|
|
5 |
// which accompanies this distribution, and is available
|
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
// e32\include\drivers\iic_trace.h
|
|
15 |
//
|
|
16 |
// WARNING: This file contains some APIs which are internal and are subject
|
|
17 |
// to change without notice. Such APIs should therefore not be used
|
|
18 |
// outside the Kernel and Hardware Services package.
|
|
19 |
//
|
|
20 |
|
|
21 |
|
|
22 |
/**
|
|
23 |
@file
|
|
24 |
@internalComponent
|
|
25 |
*/
|
|
26 |
#ifndef __IIC_TRACE_H__
|
|
27 |
#define __IIC_TRACE_H__
|
|
28 |
#ifdef BTRACE_IIC
|
|
29 |
|
|
30 |
//Function to format the output.
|
|
31 |
static void IicTraceFormatPrint(TDes8& aBuf, const char* aFmt, ...)
|
|
32 |
{
|
|
33 |
if(!(&aBuf))
|
|
34 |
return;
|
|
35 |
VA_LIST list;
|
|
36 |
VA_START(list,aFmt);
|
|
37 |
Kern::AppendFormat(aBuf,aFmt,list);
|
|
38 |
}
|
|
39 |
|
|
40 |
//definition of subcategories.
|
|
41 |
#define IIC_REGISTERCHANS_START_PSL BTrace::ERegisterChansStartPsl
|
|
42 |
#define IIC_REGISTERCHANS_START_PIL BTrace::ERegisterChansStartPil
|
|
43 |
#define IIC_REGISTERCHANS_END_PIL BTrace::ERegisterChansEndPil
|
|
44 |
#define IIC_REGISTERCHANS_END_PSL BTrace::ERegisterChansEndPsl
|
|
45 |
#define IIC_DEREGISTERCHAN_START_PSL BTrace::EDeRegisterChanStartPsl
|
|
46 |
#define IIC_DEREGISTERCHAN_START_PIL BTrace::EDeRegisterChanStartPil
|
|
47 |
#define IIC_DEREGISTERCHAN_END_PIL BTrace::EDeRegisterChanEndPil
|
|
48 |
#define IIC_DEREGISTERCHAN_END_PSL BTrace::EDeRegisterChanEndPsl
|
|
49 |
#define IIC_MQTRANSSYNC_START_PIL BTrace::EMQTransSyncStartPil
|
|
50 |
// #define IIC_MQTRANSSYNC_START_PSL BTrace::EMQTransSyncStartPsl
|
|
51 |
// #define IIC_MQTRANSSYNC_END_PSL BTrace::EMQTransSyncEndPsl
|
|
52 |
#define IIC_MQTRANSSYNC_END_PIL BTrace::EMQTransSyncEndPil
|
|
53 |
#define IIC_MQTRANSASYNC_START_PIL BTrace::EMQTransAsyncStartPil
|
|
54 |
// #define IIC_MQTRANSASYNC_START_PSL BTrace::EMQTransAsyncStartPsl
|
|
55 |
// #define IIC_MQTRANSASYNC_END_PSL BTrace::EMQTransAsyncEndPsl
|
|
56 |
#define IIC_MQTRANSASYNC_END_PIL BTrace::EMQTransAsyncEndPil
|
|
57 |
#define IIC_MCANCELTRANS_START_PIL BTrace::EMCancelTransStartPil
|
|
58 |
// #define IIC_MCANCELTRANS_START_PSL BTrace::EMCancelTransStartPsl
|
|
59 |
// #define IIC_MCANCELTRANS_END_PSL BTrace::EMCancelTransEndPsl
|
|
60 |
#define IIC_MCANCELTRANS_END_PIL BTrace::EMCancelTransEndPil
|
|
61 |
#define IIC_MPROCESSTRANS_START_PIL BTrace::EMProcessTransStartPil
|
|
62 |
#define IIC_MPROCESSTRANS_START_PSL BTrace::EMProcessTransStartPsl
|
|
63 |
#define IIC_MPROCESSTRANS_END_PSL BTrace::EMProcessTransEndPsl
|
|
64 |
#define IIC_MPROCESSTRANS_END_PIL BTrace::EMProcessTransEndPil
|
|
65 |
#define IIC_SCAPTCHANSYNC_START_PIL BTrace::ESCaptChanSyncStartPil
|
|
66 |
#define IIC_SCAPTCHANSYNC_START_PSL BTrace::ESCaptChanSyncStartPsl
|
|
67 |
#define IIC_SCAPTCHANSYNC_END_PSL BTrace::ESCaptChanSyncEndPsl
|
|
68 |
#define IIC_SCAPTCHANSYNC_END_PIL BTrace::ESCaptChanSyncEndPil
|
|
69 |
#define IIC_SCAPTCHANASYNC_START_PIL BTrace::ESCaptChanASyncStartPil
|
|
70 |
#define IIC_SCAPTCHANASYNC_START_PSL BTrace::ESCaptChanASyncStartPsl
|
|
71 |
#define IIC_SCAPTCHANASYNC_END_PSL BTrace::ESCaptChanASyncEndPsl
|
|
72 |
#define IIC_SCAPTCHANASYNC_END_PIL BTrace::ESCaptChanASyncEndPil
|
|
73 |
#define IIC_SRELCHAN_START_PIL BTrace::ESRelChanStartPil
|
|
74 |
#define IIC_SRELCHAN_START_PSL BTrace::ESRelChanStartPsl
|
|
75 |
#define IIC_SRELCHAN_END_PSL BTrace::ESRelChanEndPsl
|
|
76 |
#define IIC_SRELCHAN_END_PIL BTrace::ESRelChanEndPil
|
|
77 |
#define IIC_SREGRXBUF_START_PIL BTrace::ESRegRxBufStartPil
|
|
78 |
#define IIC_SREGRXBUF_START_PSL BTrace::ESRegRxBufStartPsl
|
|
79 |
#define IIC_SREGRXBUF_END_PSL BTrace::ESRegRxBufEndPsl
|
|
80 |
#define IIC_SREGRXBUF_END_PIL BTrace::ESRegRxBufEndPil
|
|
81 |
#define IIC_SREGTXBUF_START_PIL BTrace::ESRegTxBufStartPil
|
|
82 |
#define IIC_SREGTXBUF_START_PSL BTrace::ESRegTxBufStartPsl
|
|
83 |
#define IIC_SREGTXBUF_END_PSL BTrace::ESRegTxBufEndPsl
|
|
84 |
#define IIC_SREGTXBUF_END_PIL BTrace::ESRegTxBufEndPil
|
|
85 |
#define IIC_SNOTIFTRIG_START_PIL BTrace::ESNotifTrigStartPil
|
|
86 |
#define IIC_SNOTIFTRIG_START_PSL BTrace::ESNotifTrigStartPsl
|
|
87 |
#define IIC_SNOTIFTRIG_END_PSL BTrace::ESNotifTrigEndPsl
|
|
88 |
#define IIC_SNOTIFTRIG_END_PIL BTrace::ESNotifTrigEndPil
|
|
89 |
#define IIC_MSSTATEXT_START_PIL BTrace::EMStatExtStartPil
|
|
90 |
// #define IIC_MSSTATEXT_START_PSL BTrace::EMStatExtStartPsl
|
|
91 |
// #define IIC_MSSTATEXT_END_PSL BTrace::EMStatExtEndPsl
|
|
92 |
#define IIC_MSSTATEXT_END_PIL BTrace::EMStatExtEndPil
|
|
93 |
#define IIC_MSTATEXT_START_PIL BTrace::EMStatExtStartPil
|
|
94 |
#define IIC_MSTATEXT_START_PSL BTrace::EMStatExtStartPsl
|
|
95 |
#define IIC_MSTATEXT_END_PSL BTrace::EMStatExtEndPsl
|
|
96 |
#define IIC_MSTATEXT_END_PIL BTrace::EMStatExtEndPil
|
|
97 |
#define IIC_SSTATEXT_START_PIL BTrace::ESStatExtStartPil
|
|
98 |
#define IIC_SSTATEXT_START_PSL BTrace::ESStatExtStartPsl
|
|
99 |
#define IIC_SSTATEXT_END_PSL BTrace::ESStatExtEndPsl
|
|
100 |
#define IIC_SSTATEXT_END_PIL BTrace::ESStatExtEndPil
|
|
101 |
|
|
102 |
// Macros for printing
|
|
103 |
#define IIC_REGISTERCHANS_START_PSL_TRACE \
|
|
104 |
{ \
|
|
105 |
BTrace8(BTrace::EIic, IIC_REGISTERCHANS_START_PSL,ChannelPtrArray,NUM_CHANNELS); \
|
|
106 |
}
|
|
107 |
|
|
108 |
#define IIC_REGISTERCHANS_START_PIL_TRACE \
|
|
109 |
{ \
|
|
110 |
BTrace12(BTrace::EIic, IIC_REGISTERCHANS_START_PIL,aListChannels, aNumberChannels, chanArray->Count()); \
|
|
111 |
}
|
|
112 |
|
|
113 |
#define IIC_REGISTERCHANS_END_PIL_TRACE \
|
|
114 |
{ \
|
|
115 |
BTrace8(BTrace::EIic, IIC_REGISTERCHANS_END_PIL,aListChannels, chanArray->Count()); \
|
|
116 |
}
|
|
117 |
|
|
118 |
#define IIC_REGISTERCHANS_END_PSL_TRACE \
|
|
119 |
{ \
|
|
120 |
BTrace8(BTrace::EIic, IIC_REGISTERCHANS_END_PSL,ChannelPtrArray, r); \
|
|
121 |
}
|
|
122 |
|
|
123 |
#define IIC_DEREGISTERCHAN_START_PSL_TRACE \
|
|
124 |
{ \
|
|
125 |
BTrace4(BTrace::EIic, IIC_DEREGISTERCHAN_START_PSL,this); \
|
|
126 |
}
|
|
127 |
|
|
128 |
#define IIC_DEREGISTERCHAN_START_PIL_TRACE \
|
|
129 |
{ \
|
|
130 |
BTrace8(BTrace::EIic, IIC_DEREGISTERCHAN_START_PIL,aChannel,chanArray->Count()); \
|
|
131 |
}
|
|
132 |
|
|
133 |
#define IIC_DEREGISTERCHAN_END_PIL_TRACE \
|
|
134 |
{ \
|
|
135 |
BTrace8(BTrace::EIic, IIC_DEREGISTERCHAN_END_PIL,aChannel,chanArray->Count()); \
|
|
136 |
}
|
|
137 |
|
|
138 |
#define IIC_DEREGISTERCHAN_END_PSL_TRACE \
|
|
139 |
{ \
|
|
140 |
BTrace8(BTrace::EIic, IIC_DEREGISTERCHAN_END_PSL,this,r); \
|
|
141 |
}
|
|
142 |
|
|
143 |
#define IIC_MQTRANSSYNC_START_PIL_TRACE \
|
|
144 |
{ \
|
|
145 |
BTrace8(BTrace::EIic, IIC_MQTRANSSYNC_START_PIL,aBusId, aTransaction); \
|
|
146 |
}
|
|
147 |
|
|
148 |
// #define IIC_MQTRANSSYNC_START_PSL_TRACE
|
|
149 |
// #define IIC_MQTRANSSYNC_END_PSL_TRACE
|
|
150 |
|
|
151 |
#define IIC_MQTRANSSYNC_END_PIL_TRACE \
|
|
152 |
{ \
|
|
153 |
BTrace8(BTrace::EIic, IIC_MQTRANSSYNC_START_PIL,aBusId, r); \
|
|
154 |
}
|
|
155 |
|
|
156 |
#define IIC_MQTRANSASYNC_START_PIL_TRACE \
|
|
157 |
{ \
|
|
158 |
BTrace12(BTrace::EIic, IIC_MQTRANSASYNC_START_PIL,aBusId, aTransaction, aCallback); \
|
|
159 |
}
|
|
160 |
|
|
161 |
// #define IIC_MQTRANSASYNC_START_PSL_TRACE
|
|
162 |
// #define IIC_MQTRANSASYNC_END_PSL_TRACE
|
|
163 |
|
|
164 |
#define IIC_MQTRANSASYNC_END_PIL_TRACE \
|
|
165 |
{ \
|
|
166 |
BTrace8(BTrace::EIic, IIC_MQTRANSASYNC_END_PIL,aBusId, r); \
|
|
167 |
}
|
|
168 |
|
|
169 |
#define IIC_MCANCELTRANS_START_PIL_TRACE \
|
|
170 |
{ \
|
|
171 |
BTrace8(BTrace::EIic, IIC_MCANCELTRANS_START_PIL,aBusId, aTransaction); \
|
|
172 |
}
|
|
173 |
|
|
174 |
// #define IIC_MCANCELTRANS_START_PSL_TRACE
|
|
175 |
// #define IIC_MCANCELTRANS_END_PSL_TRACE
|
|
176 |
|
|
177 |
#define IIC_MCANCELTRANS_END_PIL_TRACE \
|
|
178 |
{ \
|
|
179 |
BTrace8(BTrace::EIic, IIC_MCANCELTRANS_END_PIL,aTransaction,r); \
|
|
180 |
}
|
|
181 |
|
|
182 |
#define IIC_MPROCESSTRANS_START_PIL_TRACE \
|
|
183 |
{ \
|
|
184 |
TBuf8<256> printBuf; \
|
|
185 |
printBuf.Zero(); \
|
|
186 |
IicTraceFormatPrint(printBuf, "%d", 0); \
|
|
187 |
BTraceN(BTrace::EIic, IIC_MPROCESSTRANS_START_PIL, channel,trans, printBuf.Ptr(), printBuf.Length()); \
|
|
188 |
}
|
|
189 |
|
|
190 |
#define IIC_MPROCESSTRANS_START_PSL_TRACE \
|
|
191 |
{ \
|
|
192 |
BTrace4(BTrace::EIic, IIC_MPROCESSTRANS_START_PSL,aTransaction); \
|
|
193 |
}
|
|
194 |
|
|
195 |
#define IIC_MPROCESSTRANS_END_PSL_TRACE \
|
|
196 |
{ \
|
|
197 |
BTraceContext4(BTrace::EIic, IIC_MPROCESSTRANS_END_PSL,aResult); \
|
|
198 |
}
|
|
199 |
|
|
200 |
#define IIC_MPROCESSTRANS_END_PIL_TRACE \
|
|
201 |
{ \
|
|
202 |
BTraceContext12(BTrace::EIic, IIC_MPROCESSTRANS_END_PIL,aTrans, aResult, aCb); \
|
|
203 |
}
|
|
204 |
|
|
205 |
#define IIC_SCAPTCHANSYNC_START_PIL_TRACE \
|
|
206 |
{ \
|
|
207 |
BTrace8(BTrace::EIic, IIC_SCAPTCHANSYNC_START_PIL,aBusId, aConfigHdr); \
|
|
208 |
}
|
|
209 |
|
|
210 |
#define IIC_SCAPTCHANSYNC_START_PSL_TRACE \
|
|
211 |
{ \
|
|
212 |
BTrace8(BTrace::EIic, IIC_SCAPTCHANSYNC_START_PSL,this,iConfigHeader); \
|
|
213 |
}
|
|
214 |
|
|
215 |
#define IIC_SCAPTCHANSYNC_END_PSL_TRACE \
|
|
216 |
{ \
|
|
217 |
BTrace8(BTrace::EIic, IIC_SCAPTCHANSYNC_END_PSL,this,r); \
|
|
218 |
}
|
|
219 |
|
|
220 |
#define IIC_SCAPTCHANSYNC_END_PIL_TRACE \
|
|
221 |
{ \
|
|
222 |
BTrace12(BTrace::EIic, IIC_SCAPTCHANSYNC_END_PIL,aBusId,aChannelId,r); \
|
|
223 |
}
|
|
224 |
|
|
225 |
#define IIC_SCAPTCHANASYNC_START_PIL_TRACE \
|
|
226 |
{ \
|
|
227 |
BTrace12(BTrace::EIic, IIC_SCAPTCHANASYNC_START_PIL,aBusId, aConfigHdr,aCallback); \
|
|
228 |
}
|
|
229 |
|
|
230 |
#define IIC_SCAPTCHANASYNC_START_PSL_TRACE \
|
|
231 |
{ \
|
|
232 |
BTrace8(BTrace::EIic, IIC_SCAPTCHANASYNC_START_PSL,this,iConfigHeader); \
|
|
233 |
}
|
|
234 |
|
|
235 |
#define IIC_SCAPTCHANASYNC_END_PSL_TRACE \
|
|
236 |
{ \
|
|
237 |
BTraceContext8(BTrace::EIic, IIC_SCAPTCHANASYNC_END_PSL,channel,r); \
|
|
238 |
}
|
|
239 |
|
|
240 |
#define IIC_SCAPTCHANASYNC_END_PIL_TRACE \
|
|
241 |
{ \
|
|
242 |
TBuf8<256> printBuf; \
|
|
243 |
printBuf.Zero(); \
|
|
244 |
IicTraceFormatPrint(printBuf, "%d", 0); \
|
|
245 |
BTraceN(BTrace::EIic, IIC_SCAPTCHANASYNC_END_PIL, this,aResult, printBuf.Ptr(), printBuf.Length()); \
|
|
246 |
}
|
|
247 |
|
|
248 |
#define IIC_SRELCHAN_START_PIL_TRACE \
|
|
249 |
{ \
|
|
250 |
BTrace4(BTrace::EIic, IIC_SRELCHAN_START_PIL,aChannelId); \
|
|
251 |
}
|
|
252 |
|
|
253 |
#define IIC_SRELCHAN_START_PSL_TRACE \
|
|
254 |
{ \
|
|
255 |
BTrace4(BTrace::EIic, IIC_SRELCHAN_START_PSL,this); \
|
|
256 |
}
|
|
257 |
|
|
258 |
#define IIC_SRELCHAN_END_PSL_TRACE \
|
|
259 |
{ \
|
|
260 |
BTrace8(BTrace::EIic, IIC_SRELCHAN_END_PSL,this,r); \
|
|
261 |
}
|
|
262 |
|
|
263 |
#define IIC_SRELCHAN_END_PIL_TRACE \
|
|
264 |
{ \
|
|
265 |
BTrace8(BTrace::EIic, IIC_SRELCHAN_START_PIL,aChannelId,r); \
|
|
266 |
}
|
|
267 |
|
|
268 |
#define IIC_SREGRXBUF_START_PIL_TRACE \
|
|
269 |
{ \
|
|
270 |
TBuf8<256> printBuf; \
|
|
271 |
printBuf.Zero(); \
|
|
272 |
IicTraceFormatPrint(printBuf, "%d %d", aNumWords, aOffset); \
|
|
273 |
BTraceN(BTrace::EIic, IIC_SREGRXBUF_START_PIL, (TInt)&aRxBuffer, aBufGranularity, printBuf.Ptr(), printBuf.Length()); \
|
|
274 |
}
|
|
275 |
|
|
276 |
#define IIC_SREGRXBUF_START_PSL_TRACE \
|
|
277 |
{ \
|
|
278 |
TBuf8<256> printBuf; \
|
|
279 |
printBuf.Zero(); \
|
|
280 |
IicTraceFormatPrint(printBuf, "%d %d %d", aBufGranularity, aNumWords, aOffset); \
|
|
281 |
BTraceN(BTrace::EIic, IIC_SREGRXBUF_START_PSL, this, (TInt)&aRxBuffer, printBuf.Ptr(), printBuf.Length()); \
|
|
282 |
}
|
|
283 |
|
|
284 |
#define IIC_SREGRXBUF_END_PSL_TRACE \
|
|
285 |
{ \
|
|
286 |
BTrace8(BTrace::EIic, IIC_SREGRXBUF_END_PSL,this,r); \
|
|
287 |
}
|
|
288 |
|
|
289 |
#define IIC_SREGRXBUF_END_PIL_TRACE \
|
|
290 |
{ \
|
|
291 |
BTrace4(BTrace::EIic, IIC_SREGRXBUF_END_PIL,r); \
|
|
292 |
}
|
|
293 |
|
|
294 |
#define IIC_SREGTXBUF_START_PIL_TRACE \
|
|
295 |
{ \
|
|
296 |
TBuf8<256> printBuf; \
|
|
297 |
printBuf.Zero(); \
|
|
298 |
IicTraceFormatPrint(printBuf, "%d %d", aNumWords, aOffset); \
|
|
299 |
BTraceN(BTrace::EIic, IIC_SREGTXBUF_START_PIL, (TInt)&aTxBuffer, aBufGranularity, printBuf.Ptr(), printBuf.Length()); \
|
|
300 |
}
|
|
301 |
|
|
302 |
#define IIC_SREGTXBUF_START_PSL_TRACE \
|
|
303 |
{ \
|
|
304 |
TBuf8<256> printBuf; \
|
|
305 |
printBuf.Zero(); \
|
|
306 |
IicTraceFormatPrint(printBuf, "%d %d %d", aBufGranularity, aNumWords, aOffset); \
|
|
307 |
BTraceN(BTrace::EIic, IIC_SREGTXBUF_START_PSL, this, (TInt)&aTxBuffer, printBuf.Ptr(), printBuf.Length()); \
|
|
308 |
}
|
|
309 |
|
|
310 |
#define IIC_SREGTXBUF_END_PSL_TRACE \
|
|
311 |
{ \
|
|
312 |
BTrace8(BTrace::EIic, IIC_SREGTXBUF_END_PSL,this,r); \
|
|
313 |
}
|
|
314 |
|
|
315 |
#define IIC_SREGTXBUF_END_PIL_TRACE \
|
|
316 |
{ \
|
|
317 |
BTrace4(BTrace::EIic, IIC_SREGTXBUF_END_PIL,r); \
|
|
318 |
}
|
|
319 |
|
|
320 |
#define IIC_SNOTIFTRIG_START_PIL_TRACE \
|
|
321 |
{ \
|
|
322 |
BTrace8(BTrace::EIic, IIC_SNOTIFTRIG_START_PIL,aChannelId, aTrigger); \
|
|
323 |
}
|
|
324 |
|
|
325 |
#define IIC_SNOTIFTRIG_START_PSL_TRACE \
|
|
326 |
{ \
|
|
327 |
BTrace4(BTrace::EIic, IIC_SNOTIFTRIG_START_PSL,aTrigger); \
|
|
328 |
}
|
|
329 |
|
|
330 |
#define IIC_SNOTIFTRIG_END_PSL_TRACE \
|
|
331 |
{ \
|
|
332 |
BTrace4(BTrace::EIic, IIC_SNOTIFTRIG_END_PSL,r); \
|
|
333 |
}
|
|
334 |
|
|
335 |
#define IIC_SNOTIFTRIG_END_PIL_TRACE \
|
|
336 |
{ \
|
|
337 |
BTrace8(BTrace::EIic, IIC_SNOTIFTRIG_END_PIL,aChannelId, r); \
|
|
338 |
}
|
|
339 |
|
|
340 |
#define IIC_MSSTATEXT_START_PIL_TRACE \
|
|
341 |
{ \
|
|
342 |
TBuf8<256> printBuf; \
|
|
343 |
printBuf.Zero(); \
|
|
344 |
IicTraceFormatPrint(printBuf, "%d %d ", aParam1, aParam2); \
|
|
345 |
BTraceN(BTrace::EIic, IIC_MSSTATEXT_START_PIL, aId, aFunction, printBuf.Ptr(), printBuf.Length()); \
|
|
346 |
}
|
|
347 |
|
|
348 |
// #define IIC_MSSTATEXT_START_PSL_TRACE
|
|
349 |
// #define IIC_MSSTATEXT_END_PSL_TRACE
|
|
350 |
|
|
351 |
#define IIC_MSSTATEXT_END_PIL_TRACE \
|
|
352 |
{ \
|
|
353 |
TBuf8<256> printBuf; \
|
|
354 |
printBuf.Zero(); \
|
|
355 |
IicTraceFormatPrint(printBuf, "%d ", r); \
|
|
356 |
BTraceN(BTrace::EIic, IIC_MSSTATEXT_END_PIL, aId, aFunction, printBuf.Ptr(), printBuf.Length()); \
|
|
357 |
}
|
|
358 |
|
|
359 |
#define IIC_MSTATEXT_START_PIL_TRACE \
|
|
360 |
{ \
|
|
361 |
TBuf8<256> printBuf; \
|
|
362 |
printBuf.Zero(); \
|
|
363 |
IicTraceFormatPrint(printBuf, "%d %d ", aParam1, aParam2); \
|
|
364 |
BTraceN(BTrace::EIic, IIC_MSTATEXT_START_PIL, aId, aFunction, printBuf.Ptr(), printBuf.Length()); \
|
|
365 |
}
|
|
366 |
|
|
367 |
#define IIC_MSTATEXT_START_PSL_TRACE \
|
|
368 |
{ \
|
|
369 |
TBuf8<256> printBuf; \
|
|
370 |
printBuf.Zero(); \
|
|
371 |
IicTraceFormatPrint(printBuf, "%d %d ", aParam1, aParam2); \
|
|
372 |
BTraceN(BTrace::EIic, IIC_MSTATEXT_START_PSL, this, aFunction, printBuf.Ptr(), printBuf.Length()); \
|
|
373 |
}
|
|
374 |
|
|
375 |
#define IIC_MSTATEXT_END_PSL_TRACE \
|
|
376 |
{ \
|
|
377 |
TBuf8<256> printBuf; \
|
|
378 |
printBuf.Zero(); \
|
|
379 |
IicTraceFormatPrint(printBuf, "%d ", r); \
|
|
380 |
BTraceN(BTrace::EIic, IIC_MSTATEXT_END_PSL, this, aFunction, printBuf.Ptr(), printBuf.Length()); \
|
|
381 |
}
|
|
382 |
|
|
383 |
#define IIC_MSTATEXT_END_PIL_TRACE \
|
|
384 |
{ \
|
|
385 |
TBuf8<256> printBuf; \
|
|
386 |
printBuf.Zero(); \
|
|
387 |
IicTraceFormatPrint(printBuf, "%d ", r); \
|
|
388 |
BTraceN(BTrace::EIic, IIC_MSTATEXT_END_PIL, aId, aFunction, printBuf.Ptr(), printBuf.Length()); \
|
|
389 |
}
|
|
390 |
|
|
391 |
#define IIC_SSTATEXT_START_PIL_TRACE \
|
|
392 |
{ \
|
|
393 |
TBuf8<256> printBuf; \
|
|
394 |
printBuf.Zero(); \
|
|
395 |
IicTraceFormatPrint(printBuf, "%d %d ", aParam1, aParam2); \
|
|
396 |
BTraceN(BTrace::EIic, IIC_SSTATEXT_START_PIL, aId, aFunction, printBuf.Ptr(), printBuf.Length()); \
|
|
397 |
}
|
|
398 |
|
|
399 |
#define IIC_SSTATEXT_START_PSL_TRACE \
|
|
400 |
{ \
|
|
401 |
TBuf8<256> printBuf; \
|
|
402 |
printBuf.Zero(); \
|
|
403 |
IicTraceFormatPrint(printBuf, "%d %d ", aParam1, aParam2); \
|
|
404 |
BTraceN(BTrace::EIic, IIC_SSTATEXT_START_PSL, this, aFunction, printBuf.Ptr(), printBuf.Length()); \
|
|
405 |
}
|
|
406 |
|
|
407 |
#define IIC_SSTATEXT_END_PSL_TRACE \
|
|
408 |
{ \
|
|
409 |
TBuf8<256> printBuf; \
|
|
410 |
printBuf.Zero(); \
|
|
411 |
IicTraceFormatPrint(printBuf, "%d ", r); \
|
|
412 |
BTraceN(BTrace::EIic, IIC_SSTATEXT_END_PSL, this, aFunction, printBuf.Ptr(), printBuf.Length()); \
|
|
413 |
}
|
|
414 |
|
|
415 |
#define IIC_SSTATEXT_END_PIL_TRACE \
|
|
416 |
{ \
|
|
417 |
TBuf8<256> printBuf; \
|
|
418 |
printBuf.Zero(); \
|
|
419 |
IicTraceFormatPrint(printBuf, "%d ", r); \
|
|
420 |
BTraceN(BTrace::EIic, IIC_SSTATEXT_END_PIL, aId, aFunction, printBuf.Ptr(), printBuf.Length()); \
|
|
421 |
}
|
|
422 |
|
|
423 |
#else
|
|
424 |
|
|
425 |
#define IIC_REGISTERCHANS_START_PSL_TRACE
|
|
426 |
#define IIC_REGISTERCHANS_START_PIL_TRACE
|
|
427 |
#define IIC_REGISTERCHANS_END_PIL_TRACE
|
|
428 |
#define IIC_REGISTERCHANS_END_PSL_TRACE
|
|
429 |
#define IIC_DEREGISTERCHAN_START_PSL_TRACE
|
|
430 |
#define IIC_DEREGISTERCHAN_START_PIL_TRACE
|
|
431 |
#define IIC_DEREGISTERCHAN_END_PIL_TRACE
|
|
432 |
#define IIC_DEREGISTERCHAN_END_PSL_TRACE
|
|
433 |
#define IIC_MQTRANSSYNC_START_PIL_TRACE
|
|
434 |
// #define IIC_MQTRANSSYNC_START_PSL_TRACE
|
|
435 |
// #define IIC_MQTRANSSYNC_END_PSL_TRACE
|
|
436 |
#define IIC_MQTRANSSYNC_END_PIL_TRACE
|
|
437 |
#define IIC_MQTRANSASYNC_START_PIL_TRACE
|
|
438 |
// #define IIC_MQTRANSASYNC_START_PSL_TRACE
|
|
439 |
// #define IIC_MQTRANSASYNC_END_PSL_TRACE
|
|
440 |
#define IIC_MQTRANSASYNC_END_PIL_TRACE
|
|
441 |
#define IIC_MCANCELTRANS_START_PIL_TRACE
|
|
442 |
// #define IIC_MCANCELTRANS_START_PSL_TRACE
|
|
443 |
// #define IIC_MCANCELTRANS_END_PSL_TRACE
|
|
444 |
#define IIC_MCANCELTRANS_END_PIL_TRACE
|
|
445 |
#define IIC_MPROCESSTRANS_START_PIL_TRACE
|
|
446 |
#define IIC_MPROCESSTRANS_START_PSL_TRACE
|
|
447 |
#define IIC_MPROCESSTRANS_END_PSL_TRACE
|
|
448 |
#define IIC_MPROCESSTRANS_END_PIL_TRACE
|
|
449 |
#define IIC_SCAPTCHANSYNC_START_PIL_TRACE
|
|
450 |
#define IIC_SCAPTCHANSYNC_START_PSL_TRACE
|
|
451 |
#define IIC_SCAPTCHANSYNC_END_PSL_TRACE
|
|
452 |
#define IIC_SCAPTCHANSYNC_END_PIL_TRACE
|
|
453 |
#define IIC_SCAPTCHANASYNC_START_PIL_TRACE
|
|
454 |
#define IIC_SCAPTCHANASYNC_START_PSL_TRACE
|
|
455 |
#define IIC_SCAPTCHANASYNC_END_PSL_TRACE
|
|
456 |
#define IIC_SCAPTCHANASYNC_END_PIL_TRACE
|
|
457 |
#define IIC_SRELCHAN_START_PIL_TRACE
|
|
458 |
#define IIC_SRELCHAN_START_PSL_TRACE
|
|
459 |
#define IIC_SRELCHAN_END_PSL_TRACE
|
|
460 |
#define IIC_SRELCHAN_END_PIL_TRACE
|
|
461 |
#define IIC_SREGRXBUF_START_PIL_TRACE
|
|
462 |
#define IIC_SREGRXBUF_START_PSL_TRACE
|
|
463 |
#define IIC_SREGRXBUF_END_PSL_TRACE
|
|
464 |
#define IIC_SREGRXBUF_END_PIL_TRACE
|
|
465 |
#define IIC_SREGTXBUF_START_PIL_TRACE
|
|
466 |
#define IIC_SREGTXBUF_START_PSL_TRACE
|
|
467 |
#define IIC_SREGTXBUF_END_PSL_TRACE
|
|
468 |
#define IIC_SREGTXBUF_END_PIL_TRACE
|
|
469 |
#define IIC_SNOTIFTRIG_START_PIL_TRACE
|
|
470 |
#define IIC_SNOTIFTRIG_START_PSL_TRACE
|
|
471 |
#define IIC_SNOTIFTRIG_END_PSL_TRACE
|
|
472 |
#define IIC_SNOTIFTRIG_END_PIL_TRACE
|
|
473 |
#define IIC_MSSTATEXT_START_PIL_TRACE
|
|
474 |
// #define IIC_MSSTATEXT_START_PSL_TRACE
|
|
475 |
// #define IIC_MSSTATEXT_END_PSL_TRACE
|
|
476 |
#define IIC_MSSTATEXT_END_PIL_TRACE
|
|
477 |
#define IIC_MSTATEXT_START_PIL_TRACE
|
|
478 |
#define IIC_MSTATEXT_START_PSL_TRACE
|
|
479 |
#define IIC_MSTATEXT_END_PSL_TRACE
|
|
480 |
#define IIC_MSTATEXT_END_PIL_TRACE
|
|
481 |
#define IIC_SSTATEXT_START_PIL_TRACE
|
|
482 |
#define IIC_SSTATEXT_START_PSL_TRACE
|
|
483 |
#define IIC_SSTATEXT_END_PSL_TRACE
|
|
484 |
#define IIC_SSTATEXT_END_PIL_TRACE
|
|
485 |
|
|
486 |
#endif //BTRACE_IIC
|
|
487 |
|
|
488 |
#endif //__IIC_TRACE_H__
|
|
489 |
|