author | hgs |
Thu, 10 Jun 2010 11:48:01 +0100 | |
changeset 149 | d9f1e5bfe28c |
parent 121 | 661475905584 |
child 189 | a5496987b1da |
child 247 | d8d70de2bd36 |
permissions | -rw-r--r-- |
0 | 1 |
// Copyright (c) 2005-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\e32btrace.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 |
#ifndef E32BTRACE_H |
|
22 |
#define E32BTRACE_H |
|
23 |
||
24 |
#ifdef __KERNEL_MODE__ |
|
25 |
class TSpinLock; |
|
26 |
#endif |
|
27 |
||
28 |
/** |
|
29 |
Class for handling fast tracing. |
|
30 |
||
31 |
A trace record consists of three parts: a header, header extensions, |
|
32 |
and the trace data itself. |
|
33 |
||
34 |
The header consists of four bytes containing: |
|
35 |
||
36 |
-# Size of the record in bytes. (Maximum value is KMaxBTraceRecordSize.) |
|
37 |
-# Flags. See enum TFlags. |
|
38 |
-# Category. Category value from enum BTrace::TCategory. |
|
39 |
-# Sub-category. The meaning of this is dependent on the value of Category. |
|
40 |
||
41 |
When trace records are stored in memory they are stored word (32 bit) aligned. |
|
42 |
Therefore the size must be rounded up to a multiple of four when calculating |
|
43 |
the address of the next record. E.g. |
|
44 |
@code |
|
45 |
TUint8* record; // pointer to trace record |
|
46 |
TInt size = record[BTrace::ESizeIndex]; |
|
47 |
record += (size+3)&~3; // move record pointer on to next record. |
|
48 |
@endcode |
|
49 |
The NextRecord() method is provided to do this operation. |
|
50 |
||
51 |
Following the header are optionally a number of 32 bit 'header extension' values. |
|
52 |
These are present in the order shown below but only exist if the appropriate flag bit |
|
53 |
is set in the Header. |
|
54 |
||
55 |
-# Header2. Contains flag values from enum Flags2. |
|
56 |
This value is only present if the EHeader2Present flag is set. |
|
57 |
-# Timestamp. A timestamp value indicating when the trace was generated. |
|
58 |
The format and resolution of this value are platform-dependent, but |
|
59 |
typically will contain the same values as would be returned by |
|
60 |
User::FastCounter() or NKern::FastCounter(). |
|
61 |
This value is only present if the ETimestampPresent flag is set. |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
62 |
-# Timestamp2. Additional timestamp information. E.g. the most significant |
0 | 63 |
half of a 64bit timestamp value. Note, it is valid for a Timestamp2 value |
64 |
to be present even if the previous Timestamp is absent. |
|
65 |
This value is only present if the ETimestamp2Present flag is set. |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
66 |
-# Context ID. This value indicates the context in which the trace was generated. |
0 | 67 |
The meaning of the id is dependent on the contents of the two |
68 |
least significant bits: |
|
69 |
- 00 indicates the value is the address of the NThread object for |
|
70 |
the currently executing thread. |
|
71 |
- 01 indicates Fast Interrupt (FIQ) context. |
|
72 |
Other bits of the value are currently reserved for future use. |
|
73 |
- 10 indicates Interrupt (IRQ) context. Other bits of the value |
|
74 |
are currently reserved for future use. |
|
75 |
- 11 indicates Immediate Delayed Function Call (IDFC) context. |
|
76 |
Other bits of the value are currently reserved for future use. |
|
77 |
. |
|
78 |
This value is only present if the EContextIdPresent flag is set. |
|
79 |
-# Program Counter. This is the memory address of the instruction after the location |
|
80 |
the trace was output. |
|
81 |
This value is only present if the EPcPresent flag is set. |
|
82 |
-# Extra. An extra value used for different purposes depending on the trace type. |
|
83 |
This value is only present if the EExtraPresent flag is set. |
|
84 |
||
85 |
Following the header extensions are 0 or more bytes of trace data specified when the trace |
|
86 |
was output. |
|
87 |
||
88 |
To output a trace, the following macros can be used: |
|
89 |
- BTrace0 |
|
90 |
- BTrace4 |
|
91 |
- BTrace8 |
|
92 |
- BTrace12 |
|
93 |
- BTraceN |
|
94 |
- BTraceBig |
|
95 |
- BTracePc0 |
|
96 |
- BTracePc4 |
|
97 |
- BTracePc8 |
|
98 |
- BTracePc12 |
|
99 |
- BTracePcN |
|
100 |
- BTracePcBig |
|
101 |
- BTraceContext0 |
|
102 |
- BTraceContext4 |
|
103 |
- BTraceContext8 |
|
104 |
- BTraceContext12 |
|
105 |
- BTraceContextN |
|
106 |
- BTraceContextBig |
|
107 |
- BTraceContextPc0 |
|
108 |
- BTraceContextPc4 |
|
109 |
- BTraceContextPc8 |
|
110 |
- BTraceContextPc12 |
|
111 |
- BTraceContextPcN |
|
112 |
- BTraceContextPcBig |
|
113 |
||
114 |
Whenever a trace is output, the trace handler is called with the arguments specified. |
|
115 |
See typedef THandler and SetHandler(). |
|
116 |
||
117 |
Each tracing category has a filter bit, which if set to zero means that traces in that category |
|
118 |
are discarded, see SetFilter(). This filtering is performed before the trace handler is |
|
119 |
called. This filter may also be initialised from boot time by using the 'btrace' keyword in |
|
120 |
an OBY file used to build a ROM image. |
|
121 |
||
122 |
Traces may also be additionally sent through a second level of filtering. This examines the |
|
123 |
first 32 bits of data in the trace and if this value isn't present in the list maintained |
|
124 |
in the secondary filter, the trace is discarded. The contents of the secondary filter are |
|
125 |
set using the SetFilter2 methods. |
|
126 |
||
127 |
Values used for secondary filtering must be Symbian Unique Identifiers (UIDs) allocated |
|
128 |
using the normal UID allocation process. Note, the following non-valid UID value ranges |
|
129 |
are reserved. |
|
130 |
- 0x00000000..0x007fffff Reserved for platform specific use. |
|
131 |
- 0x00800000..0x00ffffff Reserved for use by Symbian. |
|
132 |
||
133 |
To generate traces which are to be processed by the secondary filter, the following |
|
134 |
macros can be used: |
|
135 |
||
136 |
- BTraceFiltered4 |
|
137 |
- BTraceFiltered8 |
|
138 |
- BTraceFiltered12 |
|
139 |
- BTraceFilteredN |
|
140 |
- BTraceFilteredBig |
|
141 |
- BTraceFilteredPc4 |
|
142 |
- BTraceFilteredPc8 |
|
143 |
- BTraceFilteredPc12 |
|
144 |
- BTraceFilteredPcN |
|
145 |
- BTraceFilteredPcBig |
|
146 |
- BTraceFilteredContext4 |
|
147 |
- BTraceFilteredContext8 |
|
148 |
- BTraceFilteredContext12 |
|
149 |
- BTraceFilteredContextN |
|
150 |
- BTraceFilteredContextBig |
|
151 |
- BTraceFilteredContextPc4 |
|
152 |
- BTraceFilteredContextPc8 |
|
153 |
- BTraceFilteredContextPc12 |
|
154 |
- BTraceFilteredContextPcN |
|
155 |
- BTraceFilteredContextPcBig |
|
156 |
||
157 |
Traces generated using the above methods will be filtered twice; once using the primary |
|
158 |
filter which checks the trace's category, and once using the secondary filter which checks |
|
159 |
the 32 bit UID value at the start of the trace data. Therefore the trace must pass both filter |
|
160 |
checks for it to be sent to the trace handler for output. |
|
161 |
||
162 |
@publishedPartner |
|
163 |
@released |
|
164 |
*/ |
|
165 |
class BTrace |
|
166 |
{ |
|
167 |
public: |
|
168 |
/** |
|
169 |
Byte indices into the trace header for specific fields. |
|
170 |
*/ |
|
171 |
enum THeaderStructure |
|
172 |
{ |
|
173 |
/** |
|
174 |
Size of record in bytes. |
|
175 |
*/ |
|
176 |
ESizeIndex = 0, |
|
177 |
||
178 |
/** |
|
179 |
Bitfield of flags from enum TFlags. E.g. to detect if a timestamp is present in |
|
180 |
the record, code like this could be used. |
|
181 |
@code |
|
182 |
TUint8* record; // pointer to trace record |
|
183 |
if(record[BTrace::EFlagsIndex]&BTrace::ETimestampPresent) |
|
184 |
TimestampPresent(); |
|
185 |
else |
|
186 |
TimestampNotPresent(); |
|
187 |
@endcode |
|
188 |
*/ |
|
189 |
EFlagsIndex = 1, |
|
190 |
||
191 |
/** |
|
192 |
Category value from enum BTrace::TCategory. |
|
193 |
*/ |
|
194 |
ECategoryIndex = 2, |
|
195 |
||
196 |
/** |
|
197 |
Sub-category value. The meaning of this is dependent on the Category. |
|
198 |
*/ |
|
199 |
ESubCategoryIndex = 3, |
|
200 |
}; |
|
201 |
||
202 |
/** |
|
203 |
Bit flags which indicate state of a trace record. |
|
204 |
*/ |
|
205 |
enum TFlags |
|
206 |
{ |
|
207 |
/** |
|
208 |
Header2 is present in the trace record. |
|
209 |
*/ |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
210 |
EHeader2Present = 1<<0, |
0 | 211 |
|
212 |
/** |
|
213 |
A timestamp value is present in the trace record. |
|
214 |
*/ |
|
215 |
ETimestampPresent = 1<<1, |
|
216 |
||
217 |
/** |
|
218 |
A second timestamp value is present in the trace record. |
|
219 |
*/ |
|
220 |
ETimestamp2Present = 1<<2, |
|
221 |
||
222 |
/** |
|
223 |
A context ID is present in the trace record. |
|
224 |
*/ |
|
225 |
EContextIdPresent = 1<<3, |
|
226 |
||
227 |
/** |
|
228 |
A CPU program counter (PC) value is present in the trace record. |
|
229 |
*/ |
|
230 |
EPcPresent = 1<<4, |
|
231 |
||
232 |
/** |
|
233 |
An 'extra' value is present in the trace record. |
|
234 |
*/ |
|
235 |
EExtraPresent = 1<<5, |
|
236 |
||
237 |
/** |
|
238 |
Indicates that the data in this trace record was truncated to keep the size |
|
239 |
within the maximum permissible. |
|
240 |
*/ |
|
241 |
ERecordTruncated = 1<<6, |
|
242 |
||
243 |
/** |
|
244 |
Indicates that trace record(s) before this one are missing. |
|
245 |
This can happen if the trace buffer was full when a trace output was attempted. |
|
246 |
*/ |
|
247 |
EMissingRecord = 1<<7 |
|
248 |
}; |
|
249 |
||
250 |
/** |
|
251 |
Bit flags present in the Flags2 value of the header extension. |
|
252 |
*/ |
|
253 |
enum TFlags2 |
|
254 |
{ |
|
255 |
/** |
|
256 |
Masks out the bits for the multipart trace type. (See enum TMultiPart.) |
|
257 |
*/ |
|
258 |
EMultipartFlagMask = 3<<0, |
|
259 |
||
260 |
/** |
|
261 |
Masks out the bits for the CPU ID for SMP systems (zero if present on non SMP systems) |
|
262 |
*/ |
|
121 | 263 |
ECpuIdMask = 0xfffU<<20, |
0 | 264 |
}; |
265 |
||
266 |
/** |
|
267 |
Values for multipart trace indicator. These values are stored in Flags2 an |
|
268 |
are obtained by ANDing with the value EMultipartFlagMask. |
|
269 |
||
270 |
If a 'Big' trace is generated which doesn't fit into a single trace record |
|
271 |
then its data is split into several separate trace records; a multipart trace. |
|
272 |
||
273 |
In multipart traces the 'extra' trace value is present in the header extension. |
|
274 |
(EExtraPresent is set.) This extra value contains a unique trace identifier |
|
275 |
which is the same is all parts of the trace. |
|
276 |
||
277 |
The structure of the data part of each trace record in a multipart trace is described |
|
278 |
below. In this description, the following labels are used. |
|
279 |
- A is the initial 4 bytes of data; the a1 argument of BTraceBig. |
|
280 |
- D is the array of bytes of additional data; the aData argument of BTraceBig. |
|
281 |
- N is the size of D; the aDataSize argument of BTraceBig |
|
282 |
- X is the maximum number of additional bytes which will fit into a trace record. |
|
283 |
This is usually KMaxBTraceDataArray but this should not be assumed, instead |
|
284 |
the size and other information present in each trace record should be examined. |
|
285 |
||
286 |
For the first part of a multipart trace, the data in a trace record has the following |
|
287 |
structure: |
|
288 |
||
289 |
- 4 bytes containing N. |
|
290 |
- 4 bytes containing A. |
|
291 |
- X bytes containing D[0..X-1] |
|
292 |
||
293 |
If the parts are numbered 0 through to 'j', then a middle part of a multipart trace |
|
294 |
is numbered 'i' where 0<i<j. The data in these parts has the structure: |
|
295 |
||
296 |
- 4 bytes containing N. |
|
297 |
- 4 bytes containing X*i. I.e. the offset within D for the data in this trace record. |
|
298 |
- X bytes containing D[X*i..X*i+X-1] |
|
299 |
||
300 |
For the last part of a multipart trace, the data has the structure: |
|
301 |
||
302 |
- 4 bytes containing N. |
|
303 |
- 4 bytes containing X*j. I.e. the offset within D for the data in this trace record. |
|
304 |
- N modulo X bytes containing D[X*j..N-1]. I.e. the final bytes of the trace data. |
|
305 |
*/ |
|
306 |
enum TMultiPart |
|
307 |
{ |
|
308 |
/** |
|
309 |
Indicates that this trace is the first part of a multipart trace. |
|
310 |
*/ |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
311 |
EMultipartFirst = 1, |
0 | 312 |
|
313 |
/** |
|
314 |
Indicates that this trace is a middle part of a multipart trace. |
|
315 |
I.e. it is not the first or last part. |
|
316 |
*/ |
|
317 |
EMultipartMiddle = 2, |
|
318 |
||
319 |
/** |
|
320 |
Indicates that this trace is the last part of a multipart trace. |
|
321 |
*/ |
|
322 |
EMultipartLast = 3, |
|
323 |
}; |
|
324 |
||
325 |
/** |
|
326 |
Enumeration of trace categories. |
|
327 |
*/ |
|
328 |
enum TCategory |
|
329 |
{ |
|
330 |
/** |
|
331 |
Trace generated by all calls to RDebug::Printf. |
|
332 |
||
333 |
The first 4 bytes of trace data contain the thread ID, RThread::Id(), for the |
|
334 |
thread which caused this trace to be emitted. If the trace wasn't generated in |
|
335 |
thread context, this id has the value KNullThreadId. |
|
336 |
||
337 |
Subsequent bytes of data contain the ASCII text for the formatted string |
|
338 |
generated by Kern::Printf. |
|
339 |
||
340 |
These traces also contain a context ID, i.e. the EContextIdPresent flag is |
|
341 |
set and a context ID value is present in the extended header. |
|
342 |
||
343 |
If the trace text doesn't fit completely into one trace record, then |
|
344 |
a multipart trace is generated. See enum TMultiPart. |
|
345 |
*/ |
|
346 |
ERDebugPrintf = 0, |
|
347 |
||
348 |
/** |
|
349 |
Trace generated by all calls to Kern::Printf. |
|
350 |
Trace records in this category have the same structure as ERDebugPrintf. |
|
351 |
*/ |
|
352 |
EKernPrintf = 1, |
|
353 |
||
354 |
/** |
|
355 |
Trace generated by platform security diagnostic messages. |
|
356 |
Trace records in this category have the same structure as ERDebugPrintf. |
|
357 |
*/ |
|
358 |
EPlatsecPrintf = 2, |
|
359 |
||
360 |
/** |
|
361 |
Trace generated for the purpose of associating thread context ids with |
|
362 |
the textual names of threads. These traces are usually generated when a |
|
363 |
thread is created, renamed or destroyed. |
|
364 |
||
365 |
If #Prime is called with this category, traces will be generated for all |
|
366 |
threads currently extant. |
|
367 |
||
368 |
@see enum TThreadIdentification |
|
369 |
*/ |
|
370 |
EThreadIdentification = 3, |
|
371 |
||
372 |
/** |
|
373 |
Trace generated when the CPU usage changes state, e.g. at thread context switch |
|
374 |
or during interrupt and DFC processing. |
|
375 |
||
376 |
The purpose of this trace category is to profile CPU usage. |
|
377 |
||
378 |
@see enum TCpuUsage |
|
379 |
*/ |
|
380 |
ECpuUsage = 4, |
|
381 |
||
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
382 |
/** |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
383 |
Category used for profiling device drivers, kernel extensions etc. |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
384 |
Used by PERF_LOG macro. |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
385 |
@prototype 9.3 |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
386 |
*/ |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
387 |
EKernPerfLog = 5, |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
388 |
|
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
389 |
/** |
31
56f325a607ea
Revision: 200951
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
390 |
Trace generated when client-server activity takes place such as server creation, |
56f325a607ea
Revision: 200951
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
391 |
session management, message handling, etc. |
56f325a607ea
Revision: 200951
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
392 |
If #Prime is called with this category, traces will be generated for all |
56f325a607ea
Revision: 200951
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
393 |
servers currently running and their sessions. |
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
394 |
*/ |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
395 |
EClientServer = 6, |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
396 |
|
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
397 |
/** |
31
56f325a607ea
Revision: 200951
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
398 |
Trace generated on thread request completion. |
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
399 |
*/ |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
400 |
ERequests = 7, |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
401 |
|
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
402 |
/** |
0 | 403 |
Trace generated when chunks are created and destroyed, and when memory |
404 |
is committed and decommitted to and from chunks. |
|
405 |
||
406 |
If #Prime is called with this category, traces will be generated for all |
|
407 |
chunks currently extant. |
|
408 |
||
409 |
@see TChunks |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
410 |
*/ |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
411 |
EChunks = 8, |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
412 |
|
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
413 |
/** |
0 | 414 |
Trace generated when code segments are created and destroyed, mapped |
415 |
into out of processes, and when memory is committed and decommitted to |
|
416 |
and from them. |
|
417 |
||
418 |
If #Prime is called with this category, traces will be generated for all |
|
419 |
code segments currently extant. |
|
420 |
||
421 |
@see TCodeSegs |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
422 |
*/ |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
423 |
ECodeSegs = 9, |
0 | 424 |
|
425 |
/** |
|
426 |
Trace generated by Demand Paging. |
|
427 |
@prototype 9.3 |
|
428 |
*/ |
|
429 |
EPaging = 10, |
|
430 |
||
431 |
/** |
|
432 |
Trace generated when thread and process priorities are modified, whether |
|
433 |
directly or through priority inheritance, aging or other mechanisms used |
|
434 |
by the kernel. |
|
435 |
||
436 |
The purpose of this category is to enable system-wide study of thread |
|
437 |
priority usage. |
|
438 |
||
439 |
If #Prime is called with this category, traces will be generated for all |
|
440 |
threads currently extant. |
|
441 |
||
442 |
@see enum TThreadPriority |
|
443 |
@internalTechnology |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
444 |
@prototype 9.3 |
0 | 445 |
*/ |
446 |
EThreadPriority = 11, |
|
447 |
||
448 |
/** |
|
449 |
Trace generated by processing Paging requests in the Media subsystem and Media drivers. |
|
450 |
@prototype 9.3 |
|
451 |
*/ |
|
452 |
EPagingMedia = 12, |
|
453 |
||
454 |
/** |
|
455 |
Trace generated by the kernel for memory regions which don't belong to any chunk. |
|
456 |
@see enum TKernelMemory |
|
457 |
@prototype 9.4 |
|
458 |
*/ |
|
459 |
EKernelMemory = 13, |
|
460 |
||
461 |
/** |
|
462 |
Trace generated by user-mode heap usage. |
|
463 |
||
464 |
Unlike other trace categories, capturing heap trace involves an additional step |
|
465 |
depending on how much trace is required. To enable heap trace for a single process |
|
466 |
from the moment it starts, add the following line to the .exe's project (.mmp) file: |
|
467 |
||
468 |
firstlib eexe_instrumented_heap.lib |
|
469 |
||
470 |
This overrides the build tools default implicit link (for .exe projects) against eexe.lib. |
|
471 |
||
472 |
Alternatively, to enable heap trace for all processes at once you can enable the |
|
473 |
KUSERHEAPTRACE bit (#96) of the kernel trace flags. You can set this flag either at |
|
474 |
ROM-building time (look for the 'kerneltrace' line generally in \epoc32\rom\<platform>\header.iby) |
|
475 |
or at runtime by running the following at the Eshell command prompt: |
|
476 |
||
477 |
trace 0 0 1 |
|
478 |
||
479 |
Note that changing this flag at runtime only affects processes created after the flag |
|
480 |
is set or unset. It will not affect running processes. |
|
481 |
||
482 |
@see enum THeap |
|
483 |
@prototype 9.4 |
|
484 |
*/ |
|
485 |
EHeap = 14, |
|
486 |
||
487 |
/** |
|
488 |
Meta trace. Trace that is only useful to programs which use or display BTrace-based data. |
|
489 |
@see enum TMetaTrace |
|
490 |
@prototype 9.4 |
|
491 |
*/ |
|
492 |
EMetaTrace = 15, |
|
493 |
||
494 |
/** |
|
495 |
Trace generated by the ram allocator to allow the physical layout of RAM |
|
496 |
to be tracked. |
|
497 |
@internalTechnology |
|
498 |
*/ |
|
499 |
ERamAllocator = 16, |
|
500 |
||
501 |
/** |
|
502 |
Trace generated by the Fast Mutex in the Nkern. |
|
503 |
*/ |
|
504 |
EFastMutex = 17, |
|
505 |
||
506 |
||
507 |
/** |
|
508 |
Trace generated by any sampling profiler. |
|
509 |
@see enum TProfiling |
|
510 |
*/ |
|
511 |
EProfiling = 18, |
|
512 |
||
513 |
/** |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
514 |
Trace generated by Power Resource Manager. |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
515 |
@prototype 9.5 |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
516 |
*/ |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
517 |
EResourceManager = 19, |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
518 |
|
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
519 |
|
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
520 |
/** |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
521 |
Trace generated by Power Resource Manager User-Side API. |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
522 |
@prototype 9.5 |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
523 |
*/ |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
524 |
EResourceManagerUs = 20, |
0 | 525 |
|
526 |
/** |
|
527 |
Trace generated by Raw Event subsystem APIs |
|
528 |
@see enum TRawEventTrace |
|
529 |
@prototype 9.5 |
|
530 |
*/ |
|
531 |
ERawEvent =21, |
|
532 |
||
533 |
/** |
|
534 |
Trace generated by USB communications (Client, Host and OTG) where use |
|
535 |
of standard logging (conditional Kern::Printf() calls) is sufficiently |
|
536 |
time-consuming that the required device timings mandated by the core |
|
537 |
USB standards cannot be achieved |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
538 |
@prototype 9.5 |
0 | 539 |
*/ |
540 |
EUsb = 22, |
|
541 |
||
542 |
/** |
|
543 |
Trace generated by Symbian OS kernel synchronization objects. |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
544 |
@prototype 9.5 |
0 | 545 |
*/ |
546 |
ESymbianKernelSync = 23, |
|
547 |
||
548 |
/** |
|
549 |
Trace generated by the flexible memory model. |
|
550 |
*/ |
|
551 |
EFlexibleMemModel = 24, |
|
552 |
||
553 |
/** |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
554 |
Trace generated by IIC bus. |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
555 |
@prototype 9.6 |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
556 |
*/ |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
557 |
EIic = 25, |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
558 |
|
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
559 |
/** |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
560 |
Trace generated by load balancing or higher-level scheduling |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
561 |
@prototype 9.6 |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
562 |
*/ |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
563 |
EHSched = 26, |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
564 |
|
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
565 |
/** |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
566 |
Trace generated by the nanokernel |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
567 |
@prototype 9.6 |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
568 |
*/ |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
569 |
ENKern = 27, |
0 | 570 |
|
571 |
/** |
|
572 |
First category value in the range reserved for platform specific use; |
|
573 |
the end of this range is #EPlatformSpecificLast. |
|
574 |
Symbian's code will not generate any traces with categories in this range. |
|
575 |
||
576 |
It is strongly recommended that platforms reserve the first half of this range |
|
577 |
(128..143) for definition and use by base-port (kernel-side) code. Any general |
|
578 |
trace framework built on top of BTrace APIs should use the second half of the range. |
|
579 |
This allows fast (primary filtered only) BTrace categories to be used in device drivers |
|
580 |
and other base-port code, without clashing with more general trace frameworks implemented |
|
581 |
for application layer code. |
|
582 |
*/ |
|
583 |
EPlatformSpecificFirst = 128, |
|
584 |
||
585 |
/** |
|
586 |
Last category value in the range reserved for platform specific use. |
|
587 |
@see EPlatformSpecificFirst |
|
588 |
*/ |
|
589 |
EPlatformSpecificLast = 191, |
|
590 |
||
591 |
/** |
|
592 |
First category value in the range reserved for Symbian tools and future trace framework |
|
593 |
implementations; the end of this range is #ESymbianExtentionsLast. |
|
594 |
*/ |
|
595 |
ESymbianExtentionsFirst = 192, |
|
596 |
||
597 |
/** |
|
598 |
Last category value in the range reserved for Symbian tools and future trace framework |
|
599 |
implementations. |
|
600 |
@see ESymbianExtentionsFirst |
|
601 |
*/ |
|
602 |
ESymbianExtentionsLast = 253, |
|
603 |
||
604 |
/** |
|
605 |
Used for testing purposes. |
|
606 |
||
607 |
This may be used for ad-hoc testing purposes, e.g. special builds of components |
|
608 |
with tracing enabled for diagnostic purposes. |
|
609 |
||
610 |
This category is also used by the E32 BTrace unit tests. |
|
611 |
@test |
|
612 |
*/ |
|
613 |
ETest1 = 254, |
|
614 |
||
615 |
/** |
|
616 |
Used for testing purposes. |
|
617 |
||
618 |
This may be used for ad-hoc testing purposes, e.g. special builds of components |
|
619 |
with tracing enabled for diagnostic purposes. |
|
620 |
||
621 |
This category is also used by the E32 BTrace unit tests. |
|
622 |
@test |
|
623 |
*/ |
|
624 |
ETest2 = 255 |
|
625 |
}; |
|
626 |
||
627 |
/** |
|
628 |
Enumeration of sub-category values for trace category EThreadIdentification. |
|
629 |
@see EThreadIdentification |
|
630 |
*/ |
|
631 |
enum TThreadIdentification |
|
632 |
{ |
|
633 |
/** |
|
634 |
A nano-kernel thread (NThread) has been created. |
|
635 |
||
636 |
Trace data format: |
|
637 |
- 4 bytes containing the context id (an NThread*) for this thread. |
|
638 |
*/ |
|
639 |
ENanoThreadCreate, |
|
640 |
||
641 |
/** |
|
642 |
A nano-kernel thread (NThread) has been destroyed. |
|
643 |
||
644 |
Trace data format: |
|
645 |
- 4 bytes containing the context id (an NThread*) for this thread. |
|
646 |
*/ |
|
647 |
ENanoThreadDestroy, |
|
648 |
||
649 |
/** |
|
650 |
A thread (DThread) has been created. |
|
651 |
||
652 |
Trace data format: |
|
653 |
- 4 bytes containing the context id (an NThread*) for this thread. |
|
654 |
- 4 bytes containing trace id (a DProcess*) for the process to which this thread belongs. |
|
655 |
- Remaining data is the ASCII name of the thread. |
|
656 |
*/ |
|
657 |
EThreadCreate, |
|
658 |
||
659 |
/** |
|
660 |
A thread (DThread) has been destroyed. |
|
661 |
||
662 |
Trace data format: |
|
663 |
- 4 bytes containing the context id (an NThread*) for this thread. |
|
664 |
- 4 bytes containing trace id for the process to which this thread belongs. |
|
665 |
- 4 bytes containing thread ID, as returned by RThread::Id(). |
|
666 |
*/ |
|
667 |
EThreadDestroy, |
|
668 |
||
669 |
/** |
|
670 |
A thread (DThread) has been renamed. |
|
671 |
This trace may also be output by the tracing system at initialisation |
|
672 |
in order to identify threads already in existence. |
|
673 |
||
674 |
Trace data format: |
|
675 |
- 4 bytes containing the context id (an NThread*) for this thread. |
|
676 |
- 4 bytes containing trace id (a DProcess*) for the process to which this thread belongs. |
|
677 |
- Remaining data is the ASCII name of the thread. |
|
678 |
*/ |
|
679 |
EThreadName, |
|
680 |
||
681 |
/** |
|
682 |
A process has been renamed. |
|
683 |
This trace may also be output together with EThreadCreate or EThreadName traces |
|
684 |
to help identify the name of the process to which the thread belongs. |
|
685 |
||
686 |
Trace data format: |
|
687 |
- 4 bytes containing zero, or if this trace is generated together with EThreadName |
|
688 |
or EThreadCreate, this contains the context id (an NThread*) for the thread. |
|
689 |
- 4 bytes containing trace id (a DProcess*) for process. |
|
690 |
- Remaining data is the ASCII name of the process. |
|
691 |
*/ |
|
692 |
EProcessName, |
|
693 |
||
694 |
/** |
|
695 |
Informational trace giving a threads ID, as returned by RThread::Id(). |
|
696 |
Trace data format: |
|
697 |
- 4 bytes containing the context id (an NThread*) for this thread. |
|
698 |
- 4 bytes containing trace id (a DProcess*) for the process to which this thread belongs. |
|
699 |
- 4 bytes containing thread ID, as returned by RThread::Id(). |
|
700 |
*/ |
|
701 |
EThreadId, |
|
702 |
||
703 |
/** |
|
704 |
A process has been created. |
|
705 |
||
706 |
Trace data format: |
|
707 |
- 4 bytes containing trace id (a DProcess*) for the process. |
|
708 |
*/ |
|
709 |
EProcessCreate, |
|
710 |
||
711 |
/** |
|
712 |
A process has been destroyed. |
|
713 |
||
714 |
Trace data format: |
|
715 |
- 4 bytes containing trace id (a DProcess*) for the process. |
|
716 |
*/ |
|
717 |
EProcessDestroy |
|
718 |
||
719 |
}; |
|
720 |
||
721 |
/** |
|
722 |
Enumeration of sub-category values for trace category ECpuUsage. |
|
723 |
@see ECpuUsage |
|
724 |
*/ |
|
725 |
enum TCpuUsage |
|
726 |
{ |
|
727 |
/** |
|
728 |
Trace output at start of Interrupt (IRQ) dispatch. |
|
729 |
||
730 |
On platforms which support nested interrupts, traces for these will also |
|
731 |
be nested. |
|
732 |
*/ |
|
733 |
EIrqStart, |
|
734 |
||
735 |
/** |
|
736 |
Trace output at end of Interrupt (IRQ) dispatch. |
|
737 |
||
738 |
Note, this trace isn't generated if an Interrupt Service Routine queues |
|
739 |
a DFC or causes a thread to be scheduled. In these cases, the traces for |
|
740 |
these events (EIDFCStart or ENewThreadContext) should be taken to indicate |
|
741 |
that interrupt servicing has ended. |
|
742 |
*/ |
|
743 |
EIrqEnd, |
|
744 |
||
745 |
/** |
|
746 |
Trace output at start of Fast Interrupt (FIQ) dispatch. |
|
747 |
||
748 |
On platforms which support nested interrupts, traces for these will also |
|
749 |
be nested. |
|
750 |
*/ |
|
751 |
EFiqStart, |
|
752 |
||
753 |
/** |
|
754 |
Trace output at end of Fast Interrupt (FIQ) dispatch. |
|
755 |
||
756 |
Note, this trace isn't generated if an Interrupt Service Routine queues |
|
757 |
a DFC or causes a thread to be scheduled. In these cases, the traces for |
|
758 |
these events (EIDFCStart or ENewThreadContext) should be taken to indicate |
|
759 |
that interrupt servicing has ended. |
|
760 |
*/ |
|
761 |
EFiqEnd, |
|
762 |
||
763 |
/** |
|
764 |
Trace output at start of Immediate Delayed Function Call (IDFC) processing. |
|
765 |
This processing also includes moving DFCs to their final queue, so the trace |
|
766 |
does not necessarily indicate that any IDFCs have been executed. |
|
767 |
*/ |
|
768 |
EIDFCStart, |
|
769 |
||
770 |
/** |
|
771 |
Trace output at end of Immediate Delayed Function Call (IDFC) processing. |
|
772 |
*/ |
|
773 |
EIDFCEnd, |
|
774 |
||
775 |
/** |
|
776 |
Trace output when a thread is scheduled to run. |
|
777 |
The context id (NThread*) in this trace is that of the thread being scheduled. |
|
778 |
*/ |
|
779 |
ENewThreadContext |
|
780 |
}; |
|
781 |
||
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
782 |
/** |
0 | 783 |
@internalTechnology |
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
784 |
@prototype 9.3 |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
785 |
*/ |
0 | 786 |
enum TClientServer |
787 |
{ |
|
788 |
/** |
|
31
56f325a607ea
Revision: 200951
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
789 |
Trace generated whenever a server is created and during prime. |
0 | 790 |
|
791 |
Trace data format: |
|
792 |
- 4 bytes containing the server id (a DServer*). |
|
31
56f325a607ea
Revision: 200951
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
793 |
- 4 bytes containing the owning thread pointer (a DThread*). |
0 | 794 |
- Remaining data is the ASCII name of the server. |
795 |
||
796 |
*/ |
|
797 |
EServerCreate, |
|
798 |
||
799 |
/** |
|
800 |
Trace generated whenever a server is destroyed. |
|
801 |
||
802 |
Trace data format: |
|
803 |
- 4 bytes containing the server id (a DServer*). |
|
804 |
||
805 |
*/ |
|
806 |
EServerDestroy, |
|
807 |
||
808 |
/** |
|
31
56f325a607ea
Revision: 200951
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
809 |
Trace generated whenever a new session is attached to a server and during prime. |
0 | 810 |
I.e. a new session has been created. |
811 |
||
812 |
Trace data format: |
|
813 |
- 4 bytes containing the session id (a DSession*). |
|
814 |
- 4 bytes containing the server id (a DServer*). |
|
31
56f325a607ea
Revision: 200951
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
815 |
- 4 bytes containing the owner id (a DObject*). |
56f325a607ea
Revision: 200951
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
816 |
|
56f325a607ea
Revision: 200951
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
817 |
The context id (NThread*) in this trace is that of the thread creating the session |
56f325a607ea
Revision: 200951
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
818 |
(apart from during prime when it is NULL). |
0 | 819 |
*/ |
820 |
ESessionAttach, |
|
821 |
||
822 |
/** |
|
823 |
Trace generated whenever a server session is detached from a server. |
|
824 |
I.e. a session has been closed. |
|
825 |
||
826 |
Trace data format: |
|
827 |
- 4 bytes containing the session id (a DSession*). |
|
828 |
- 4 bytes containing the reasons (error code) for the session being closed. |
|
829 |
||
830 |
*/ |
|
831 |
ESessionDetach, |
|
832 |
||
833 |
/** |
|
834 |
Trace generated whenever a new message is sent to a server. |
|
835 |
||
836 |
Trace data format: |
|
837 |
- 4 bytes containing the message handle. |
|
838 |
- 4 bytes containing the iFunction value for the message. |
|
839 |
- 4 bytes containing the session id (a DSession*). |
|
840 |
||
841 |
The context id (NThread*) in this trace is that of the thread which sent the message. |
|
842 |
*/ |
|
843 |
EMessageSend, |
|
844 |
||
845 |
/** |
|
846 |
Trace generated when a server receives a new message. |
|
847 |
||
848 |
Trace data format: |
|
849 |
- 4 bytes containing the message handle. |
|
850 |
*/ |
|
851 |
EMessageReceive, |
|
852 |
||
853 |
/** |
|
854 |
Trace generated whenever a message is completed using RMessagePtr2::Complete. |
|
855 |
||
856 |
Trace data format: |
|
857 |
- 4 bytes containing the message handle. |
|
858 |
- 4 bytes containing the completion reason, or object handle, value. |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
859 |
(The object handle value is that which is delivered to the sender of the |
0 | 860 |
message, not that supplied by the server actually completing the request.) |
861 |
||
862 |
The context id (NThread*) in this trace is that of the thread which completed the message. |
|
863 |
*/ |
|
864 |
EMessageComplete |
|
865 |
}; |
|
866 |
||
867 |
||
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
868 |
/** |
0 | 869 |
@internalTechnology |
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
870 |
@prototype 9.3 |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
871 |
*/ |
0 | 872 |
enum TRequests |
873 |
{ |
|
874 |
/** |
|
875 |
Trace generated whenever a request status is completed. |
|
876 |
||
877 |
Trace data format: |
|
878 |
- 4 bytes containing the thread id (NThread*) of the thread being signalled. |
|
879 |
- 4 bytes containing the address of the TRequestStatus object. |
|
880 |
- 4 bytes containing the completion reason. |
|
881 |
||
882 |
The context id (NThread*) in this trace is that of the thread which completed the request. |
|
883 |
*/ |
|
884 |
ERequestComplete |
|
885 |
}; |
|
886 |
||
887 |
||
888 |
/** |
|
889 |
Enumeration of sub-category values for trace category EChunks. |
|
890 |
@see EChunks |
|
891 |
*/ |
|
892 |
enum TChunks |
|
893 |
{ |
|
894 |
/** |
|
895 |
Trace output when a chunk is created. |
|
896 |
||
897 |
Trace data format: |
|
898 |
- 4 bytes containing the chunk id (a DChunk*). |
|
899 |
- 4 bytes containing the maximum size of the chunk. |
|
900 |
- The ASCII name of the chunk. |
|
901 |
*/ |
|
902 |
EChunkCreated, |
|
903 |
||
904 |
/** |
|
905 |
@internalTechnology |
|
906 |
||
907 |
Trace output when a chunk is created containing extra chunk information. |
|
908 |
||
909 |
Note that the meaning of the data in this trace is different between |
|
910 |
memory models, and may change without warning. |
|
911 |
||
912 |
Trace data format: |
|
913 |
- 4 bytes containing the chunk id (a DChunk*). |
|
914 |
- 4 bytes containing the chunk type. |
|
915 |
- 4 bytes containing the chunk's attributes. |
|
916 |
*/ |
|
917 |
EChunkInfo, |
|
918 |
||
919 |
/** |
|
920 |
Trace output when a chunk is destroyed. |
|
921 |
||
922 |
Trace data format: |
|
923 |
- 4 bytes containing the chunk id (a DChunk*) |
|
924 |
*/ |
|
925 |
EChunkDestroyed, |
|
926 |
||
927 |
/** |
|
928 |
Trace output when memory is allocated and committed to a chunk. |
|
929 |
||
930 |
Trace data format: |
|
931 |
- 4 bytes containing the chunk id (a DChunk*). |
|
932 |
- 4 bytes containing the offset into the chunk. |
|
933 |
- 4 bytes containing the size of the memory committed. |
|
934 |
*/ |
|
935 |
EChunkMemoryAllocated, |
|
936 |
||
937 |
/** |
|
938 |
Trace output when memory is decommitted from a chunk and deallocated. |
|
939 |
||
940 |
Trace data format: |
|
941 |
- 4 bytes containing the chunk id (a DChunk*). |
|
942 |
- 4 bytes containing the offset into the chunk. |
|
943 |
- 4 bytes containing the size of the memory decommitted. |
|
944 |
*/ |
|
945 |
EChunkMemoryDeallocated, |
|
946 |
||
947 |
/** |
|
948 |
Trace output when un-owned memory is committed to a chunk. |
|
949 |
||
950 |
Trace data format: |
|
951 |
- 4 bytes containing the chunk id (a DChunk*). |
|
952 |
- 4 bytes containing the offset into the chunk. |
|
953 |
- 4 bytes containing the size of the memory committed. |
|
954 |
*/ |
|
955 |
EChunkMemoryAdded, |
|
956 |
||
957 |
/** |
|
958 |
Trace output when un-owned memory is decommitted to a chunk. |
|
959 |
||
960 |
Trace data format: |
|
961 |
- 4 bytes containing the chunk id (a DChunk*). |
|
962 |
- 4 bytes containing the offset into the chunk. |
|
963 |
- 4 bytes containing the size of the memory decommitted. |
|
964 |
*/ |
|
965 |
EChunkMemoryRemoved, |
|
966 |
||
967 |
/** |
|
968 |
Trace to indicate the owning process of a chunk - only for local (private) chunks. |
|
969 |
||
970 |
Trace data format: |
|
971 |
- 4 bytes containing the chunk id (a DChunk*). |
|
972 |
- 4 bytes containing the process id of the owner (a DProcess*). |
|
973 |
*/ |
|
974 |
EChunkOwner |
|
975 |
}; |
|
976 |
||
977 |
/** |
|
978 |
Enumeration of sub-category values for trace category ECodeSegs. |
|
979 |
@see ECodeSegs |
|
980 |
*/ |
|
981 |
enum TCodeSegs |
|
982 |
{ |
|
983 |
/** |
|
984 |
Trace output when a code segment is created to associate a code segment |
|
985 |
id with a filename. |
|
986 |
||
987 |
Trace data format: |
|
988 |
- 4 bytes containing the code segment id (a DCodeSeg*). |
|
989 |
- The ASCII filename. |
|
990 |
*/ |
|
991 |
ECodeSegCreated, |
|
992 |
||
993 |
/** |
|
994 |
Trace output when a code segment is created. |
|
995 |
||
996 |
Trace data format: |
|
997 |
- 4 bytes containing the code segment id (a DCodeSeg*). |
|
998 |
- 4 bytes containing the attributes. |
|
999 |
- 4 bytes containing the code base address (.text). |
|
1000 |
- 4 bytes containing the size of the code section (.text). |
|
1001 |
- 4 bytes containing the base address of the constant data section (.rodata). |
|
1002 |
- 4 bytes containing the size of the constant data section (.rodata). |
|
1003 |
- 4 bytes containing the base address of the initialised data section (.data). |
|
1004 |
- 4 bytes containing the size of the initialised data section (.data). |
|
1005 |
- 4 bytes containing the base address of the uninitialised data section (.bss). |
|
1006 |
- 4 bytes containing the size of the uninitialised data section (.bss). |
|
1007 |
*/ |
|
1008 |
ECodeSegInfo, |
|
1009 |
||
1010 |
/** |
|
1011 |
Trace output when a code segment is destroyed. |
|
1012 |
||
1013 |
Trace data format: |
|
1014 |
- 4 bytes containing the code segment id (a DCodeSeg*). |
|
1015 |
*/ |
|
1016 |
ECodeSegDestroyed, |
|
1017 |
||
1018 |
/** |
|
1019 |
Trace output when a code segment is mapped into a process. |
|
1020 |
||
1021 |
Trace data format: |
|
1022 |
- 4 bytes containing the code segment id (a DCodeSeg*). |
|
1023 |
- 4 bytes containing the process id (a DProcess*). |
|
1024 |
*/ |
|
1025 |
ECodeSegMapped, |
|
1026 |
||
1027 |
/** |
|
1028 |
Trace output when a code segment is unmapped from a process. |
|
1029 |
||
1030 |
Trace data format: |
|
1031 |
- 4 bytes containing the code segment id (a DCodeSeg*). |
|
1032 |
- 4 bytes containing the process id (a DProcess*). |
|
1033 |
*/ |
|
1034 |
ECodeSegUnmapped, |
|
1035 |
||
1036 |
/** |
|
1037 |
Trace output when memory is allocated to a code segment. |
|
1038 |
||
1039 |
Under the multiple memory model, code segments for RAM-loaded user code |
|
1040 |
own the RAM pages the code occupies. The pages are not owned by any |
|
1041 |
chunk, but are mapped into the code chunk of each process that uses the |
|
1042 |
code segment. |
|
1043 |
||
1044 |
Trace data format: |
|
1045 |
- 4 bytes containing the code segment id (a DCodeSeg*). |
|
1046 |
- 4 bytes containing the size of the memory allocated. |
|
1047 |
*/ |
|
1048 |
ECodeSegMemoryAllocated, |
|
1049 |
||
1050 |
/** |
|
1051 |
Trace output when memory is deallocated from a code segment. |
|
1052 |
||
1053 |
Under the multiple memory model, code segments for RAM-loaded user code |
|
1054 |
own the RAM pages the code occupies. The pages are not owned by any |
|
1055 |
chunk, but are mapped into the code chunk of each process that uses the |
|
1056 |
code segment. |
|
1057 |
||
1058 |
Trace data format: |
|
1059 |
- 4 bytes containing the code segment id (a DCodeSeg*). |
|
1060 |
- 4 bytes containing the size of the memory deallocated. |
|
1061 |
*/ |
|
1062 |
ECodeSegMemoryDeallocated |
|
1063 |
}; |
|
1064 |
||
1065 |
||
1066 |
/** |
|
1067 |
Enumeration of sub-category values for trace category EPaging. |
|
1068 |
@see EPaging |
|
1069 |
*/ |
|
1070 |
enum TPaging |
|
1071 |
{ |
|
1072 |
/** |
|
1073 |
This event indicates the beginning of the 'page in' activity. |
|
1074 |
The end of this activity is indicated by one of the following events: |
|
1075 |
- EPagingPageInUnneeded |
|
1076 |
- EPagingPageInROM |
|
1077 |
- EPagingPageInCode |
|
1078 |
- EPagingPageIn (flexible memory model) |
|
1079 |
||
1080 |
Trace data format: |
|
1081 |
- 4 bytes containing the virtual address which was accessed, causing this paging event. |
|
1082 |
- 4 bytes containing the virtual address of the instruction which caused this paging event. |
|
1083 |
(The PC value.) |
|
1084 |
||
1085 |
On the flexible memory model, the following addition trace data is also present: |
|
1086 |
- 1 byte containing the required access permissions, as defined by TMappingPermissions. |
|
1087 |
- 3 spare bytes, currently zero |
|
1088 |
||
1089 |
The context id (NThread*) in this trace is that of the thread caused this paging event. |
|
1090 |
*/ |
|
1091 |
EPagingPageInBegin, |
|
1092 |
||
1093 |
/** |
|
1094 |
Event which terminates the 'page in' activity when the required page was found to have been |
|
1095 |
paged in by another thread while the current thread was processing the fault (see |
|
1096 |
EPagingPageInBegin). |
|
1097 |
||
1098 |
Trace data format: |
|
1099 |
- 0 bytes. (No extra data.) |
|
1100 |
||
1101 |
The context id (NThread*) in this trace is that of the thread caused this paging event. |
|
1102 |
*/ |
|
1103 |
EPagingPageInUnneeded, |
|
1104 |
||
1105 |
/** |
|
1106 |
A ROM page has been paged in. |
|
1107 |
This event indicates the end of the 'page in' activity. (See EPagingPageInBegin.) |
|
1108 |
||
1109 |
Trace data format: |
|
1110 |
- 4 bytes containing the physical address of the page 'paged in'. |
|
1111 |
- 4 bytes containing the virtual address of the page 'paged in'. |
|
1112 |
||
1113 |
The context id (NThread*) in this trace is that of the thread caused this paging event. |
|
1114 |
||
1115 |
This trace is not emitted on the flexible memory model - EPagingPageIn is used instead. |
|
1116 |
*/ |
|
1117 |
EPagingPageInROM, |
|
1118 |
||
1119 |
/** |
|
1120 |
A ROM page has been 'paged out'. I.e. removed from the live list to be either |
|
1121 |
reused or returned to free pool. |
|
1122 |
||
1123 |
Trace data format: |
|
1124 |
- 4 bytes containing the physical address of the page being 'paged out'. |
|
1125 |
- 4 bytes containing the virtual address of the page being 'paged out'. |
|
1126 |
||
1127 |
The context id (NThread*) in this trace is that of the thread caused this paging event. |
|
1128 |
||
1129 |
This trace is not emitted on the flexible memory model - EPagingPageOut is used instead. |
|
1130 |
*/ |
|
1131 |
EPagingPageOutROM, |
|
1132 |
||
1133 |
/** |
|
1134 |
A Free page has been 'paged in'. I.e. added to the live list. |
|
1135 |
||
1136 |
Trace data format: |
|
1137 |
- 4 bytes containing the physical address of the page being 'paged in'. |
|
1138 |
||
1139 |
The context id (NThread*) in this trace is that of the thread caused this paging event. |
|
1140 |
*/ |
|
1141 |
EPagingPageInFree, |
|
1142 |
||
1143 |
/** |
|
1144 |
A Free page has been 'paged out'. I.e. removed from the live list to be either |
|
1145 |
reused or returned to free pool. |
|
1146 |
||
1147 |
Trace data format: |
|
1148 |
- 4 bytes containing the physical address of the page being 'paged out'. |
|
1149 |
||
1150 |
The context id (NThread*) in this trace is that of the thread caused this paging event. |
|
1151 |
||
1152 |
This trace is not emitted on the flexible memory model - EPagingPageOut is used instead. |
|
1153 |
*/ |
|
1154 |
EPagingPageOutFree, |
|
1155 |
||
1156 |
/** |
|
1157 |
A page has been made 'young' again because it was accessed. |
|
1158 |
||
1159 |
Trace data format: |
|
1160 |
- 4 bytes containing the physical address of the page being rejuvenated, (made young). |
|
1161 |
- 4 bytes containing the virtual address which was accessed, causing this paging event. |
|
1162 |
- 4 bytes containing the virtual address of the instruction which caused this paging event. |
|
1163 |
(The PC value.) |
|
1164 |
||
1165 |
The context id (NThread*) in this trace is that of the thread caused this paging event. |
|
1166 |
*/ |
|
1167 |
EPagingRejuvenate, |
|
1168 |
||
1169 |
/** |
|
1170 |
A page fault was found to have already been previously serviced. |
|
1171 |
||
1172 |
Trace data format: |
|
1173 |
- 4 bytes containing the physical address of the page accessed. |
|
1174 |
- 4 bytes containing the virtual address which was accessed, causing this paging event. |
|
1175 |
- 4 bytes containing the virtual address of the instruction which caused this paging event. |
|
1176 |
(The PC value.) |
|
1177 |
||
1178 |
The context id (NThread*) in this trace is that of the thread caused this paging event. |
|
1179 |
||
1180 |
This trace is not emitted on the flexible memory model. |
|
1181 |
*/ |
|
1182 |
EPagingPageNop, |
|
1183 |
||
1184 |
/** |
|
1185 |
A page has been locked. |
|
1186 |
||
1187 |
Trace data format: |
|
1188 |
- 4 bytes containing the physical address of the page being locked. |
|
1189 |
- 4 bytes containing the value of the lock count after the paged was locked. |
|
1190 |
||
1191 |
The context id (NThread*) in this trace is that of the thread caused this paging event. |
|
1192 |
*/ |
|
1193 |
EPagingPageLock, |
|
1194 |
||
1195 |
/** |
|
1196 |
A page has been unlocked. |
|
1197 |
||
1198 |
Trace data format: |
|
1199 |
- 4 bytes containing the physical address of the page being unlocked. |
|
1200 |
- 4 bytes containing the value of the lock count before the paged was unlocked. |
|
1201 |
||
1202 |
The context id (NThread*) in this trace is that of the thread caused this paging event. |
|
1203 |
*/ |
|
1204 |
EPagingPageUnlock, |
|
1205 |
||
1206 |
/** |
|
1207 |
A page containing RAM cache has been 'paged out'. I.e. removed from the live list to be |
|
1208 |
either reused or returned to free pool. |
|
1209 |
||
1210 |
Trace data format: |
|
1211 |
- 4 bytes containing the physical address of the page being 'paged out'. |
|
1212 |
- 4 bytes containing the virtual address of the page being 'paged out'. |
|
1213 |
||
1214 |
The context id (NThread*) in this trace is that of the thread caused this paging event. |
|
1215 |
||
1216 |
This trace is not emitted on the flexible memory model - EPagingPageOut is used instead. |
|
1217 |
*/ |
|
1218 |
EPagingPageOutCache, |
|
1219 |
||
1220 |
/** |
|
1221 |
A page containing RAM-loaded code has been paged in. |
|
1222 |
This event indicates the end of the 'page in' activity. (See EPagingPageInBegin.) |
|
1223 |
||
1224 |
Trace data format: |
|
1225 |
- 4 bytes containing the physical address of the page 'paged in'. |
|
1226 |
- 4 bytes containing the virtual address of the page 'paged in'. |
|
1227 |
||
1228 |
The context id (NThread*) in this trace is that of the thread caused this paging event. |
|
1229 |
||
1230 |
This trace is not emitted on the flexible memory model - EPagingPageIn is used instead. |
|
1231 |
*/ |
|
1232 |
EPagingPageInCode, |
|
1233 |
||
1234 |
/** |
|
1235 |
A page containing RAM-loaded code has been 'paged out'. I.e. removed from the live list to be |
|
1236 |
either reused or returned to free pool. |
|
1237 |
||
1238 |
Trace data format: |
|
1239 |
- 4 bytes containing the physical address of the page being 'paged out'. |
|
1240 |
- 4 bytes containing the virtual address of the page being 'paged out'. |
|
1241 |
||
1242 |
The context id (NThread*) in this trace is that of the thread caused this paging event. |
|
1243 |
||
1244 |
This trace is not emitted on the flexible memory model - EPagingPageOut is used instead. |
|
1245 |
*/ |
|
1246 |
EPagingPageOutCode, |
|
1247 |
||
1248 |
/** |
|
1249 |
A page of RAM-loaded code was found to already be 'paged in' but not mapped in |
|
1250 |
the faulting process. |
|
1251 |
||
1252 |
Trace data format: |
|
1253 |
- 4 bytes containing the physical address of the page 'paged in'. |
|
1254 |
- 4 bytes containing the virtual address which was accessed, causing this paging event. |
|
1255 |
||
1256 |
The context id (NThread*) in this trace is that of the thread caused this paging event. |
|
1257 |
||
1258 |
This trace is only emitted on the multiple memory model. |
|
1259 |
*/ |
|
1260 |
EPagingMapCode, |
|
1261 |
||
1262 |
/** |
|
1263 |
A page has been made 'old' because it was the last young page to be accessed. |
|
1264 |
||
1265 |
This trace is only produced when the kernel is compiled with the #BTRACE_PAGING_VERBOSE |
|
1266 |
macro defined. |
|
1267 |
||
1268 |
Trace data format: |
|
1269 |
- 4 bytes containing the physical address of the page being aged, (made old). |
|
1270 |
||
1271 |
The context id (NThread*) in this trace is that of the thread caused this paging event. |
|
1272 |
*/ |
|
1273 |
EPagingAged, |
|
1274 |
||
1275 |
/** |
|
1276 |
Trace emitted at the start of decompression of demand paged data. |
|
1277 |
||
1278 |
This trace is only produced when the kernel is compiled with the #BTRACE_PAGING_VERBOSE |
|
1279 |
macro defined. |
|
1280 |
||
1281 |
Trace data format: |
|
1282 |
- 4 bytes containing an integer which indicates the compression type being used: |
|
1283 |
0, no compression; |
|
1284 |
1, bytepair compression. |
|
1285 |
||
1286 |
The context id (NThread*) in this trace is that of the thread caused this paging event. |
|
1287 |
*/ |
|
1288 |
EPagingDecompressStart, |
|
1289 |
||
1290 |
/** |
|
1291 |
Trace emitted at the end of decompression of demand paged data. |
|
1292 |
||
1293 |
This trace is only produced when the kernel is compiled with the #BTRACE_PAGING_VERBOSE |
|
1294 |
macro defined. |
|
1295 |
||
1296 |
The context id (NThread*) in this trace is that of the thread caused this paging event. |
|
1297 |
*/ |
|
1298 |
EPagingDecompressEnd, |
|
1299 |
||
1300 |
/** |
|
1301 |
Information about the kernel's memory model. |
|
1302 |
||
1303 |
Trace data format: |
|
1304 |
- 4 bytes containing the memory model as defined by TMemModelAttributes. |
|
1305 |
*/ |
|
1306 |
EPagingMemoryModel, |
|
1307 |
||
1308 |
/** |
|
1309 |
A page has been donated to the paging cache via RChunk::Unlock(). |
|
1310 |
||
1311 |
Trace data format: |
|
1312 |
- 4 bytes containing the chunk id (a DChunk*). |
|
1313 |
- 4 bytes containing the page index of the page within the chunk. |
|
1314 |
||
1315 |
This trace is not emitted on the flexible memory model. |
|
1316 |
@see EPagingDonatePage |
|
1317 |
*/ |
|
1318 |
EPagingChunkDonatePage, |
|
1319 |
||
1320 |
/** |
|
1321 |
A page has been reclaimed from the paging cache via RChunk::Lock(). |
|
1322 |
||
1323 |
Trace data format: |
|
1324 |
- 4 bytes containing the chunk id (a DChunk*). |
|
1325 |
- 4 bytes containing the page index of the page within the chunk. |
|
1326 |
||
1327 |
This trace is not emitted on the flexible memory model. |
|
1328 |
@see EPagingReclaimPage. |
|
1329 |
*/ |
|
1330 |
EPagingChunkReclaimPage, |
|
1331 |
||
1332 |
// Traces specific to the flexible memory model |
|
1333 |
||
1334 |
/** |
|
1335 |
A page has been paged in. |
|
1336 |
This event indicates the end of the 'page in' activity. (See EPagingPageInBegin.) |
|
1337 |
||
1338 |
Trace data format: |
|
1339 |
- 4 bytes containing the physical address of the page 'paged in'. |
|
1340 |
- 4 bytes containing the memory object id (DMemoryObject*). |
|
1341 |
- 4 bytes containing the page index of the page within the memory object. |
|
1342 |
||
1343 |
The context id (NThread*) in this trace is that of the thread caused this paging event. |
|
1344 |
||
1345 |
This trace is only emitted on the flexible memory model. |
|
1346 |
*/ |
|
1347 |
EPagingPageIn, |
|
1348 |
||
1349 |
/** |
|
1350 |
A page has been 'paged out'. I.e. removed from the live list to be either |
|
1351 |
reused or returned to free pool. |
|
1352 |
||
1353 |
Trace data format: |
|
1354 |
- 4 bytes containing the physical address of the page being 'paged out'. |
|
1355 |
||
1356 |
The context id (NThread*) in this trace is that of the thread caused this paging event. |
|
1357 |
||
1358 |
This trace is only emitted on the flexible memory model. |
|
1359 |
*/ |
|
1360 |
EPagingPageOut, |
|
1361 |
||
1362 |
/** |
|
1363 |
Event which terminates the 'page in' activity when the required page was found to |
|
1364 |
already be paged in but not mapped in the faulting process (see EPagingPageInBegin). |
|
1365 |
||
1366 |
Trace data format: |
|
1367 |
- 4 bytes containing the physical address of the page 'paged in'. |
|
1368 |
||
1369 |
The context id (NThread*) in this trace is that of the thread caused this paging event. |
|
1370 |
||
1371 |
This trace is only emitted on the flexible memory model. |
|
1372 |
*/ |
|
1373 |
EPagingMapPage, |
|
1374 |
||
1375 |
/** |
|
1376 |
A page has been donated to the paging cache via RChunk::Unlock(). |
|
1377 |
||
1378 |
Trace data format: |
|
1379 |
- 4 bytes containing the physical address of the page. |
|
1380 |
- 4 bytes containing the memory object id (DMemoryObject*). |
|
1381 |
- 4 bytes containing the page index of the page within the memory object. |
|
1382 |
||
1383 |
This trace is only emitted on the flexible memory model. |
|
1384 |
@see EPagingChunkDonatePage. |
|
1385 |
*/ |
|
1386 |
EPagingDonatePage, |
|
1387 |
||
1388 |
/** |
|
1389 |
A page has been reclaimed from the paging cache via RChunk::Lock(). |
|
1390 |
||
1391 |
Trace data format: |
|
1392 |
- 4 bytes containing the physical address of the page. |
|
1393 |
||
1394 |
This trace is only emitted on the flexible memory model. |
|
1395 |
@see EPagingChunkReclaimPage. |
|
1396 |
*/ |
|
1397 |
EPagingReclaimPage, |
|
1398 |
||
1399 |
/** |
|
1400 |
A page has been moved to the oldest clean list because it was the last old page and |
|
1401 |
it was clean. |
|
1402 |
||
1403 |
This trace is only produced when the kernel is compiled with the #BTRACE_PAGING_VERBOSE |
|
1404 |
macro defined. |
|
1405 |
||
1406 |
Trace data format: |
|
1407 |
- 4 bytes containing the physical address of the page being moved to the oldest clean list. |
|
1408 |
||
1409 |
The context id (NThread*) in this trace is that of the thread caused this paging event. |
|
1410 |
*/ |
|
1411 |
EPagingAgedClean, |
|
1412 |
||
1413 |
/** |
|
1414 |
A page has been moved to the oldest dirty list because it was the last old page and |
|
1415 |
it was dirty. |
|
1416 |
||
1417 |
This trace is only produced when the kernel is compiled with the #BTRACE_PAGING_VERBOSE |
|
1418 |
macro defined. |
|
1419 |
||
1420 |
Trace data format: |
|
1421 |
- 4 bytes containing the physical address of the page being moved to the oldest dirty list. |
|
1422 |
||
1423 |
The context id (NThread*) in this trace is that of the thread caused this paging event. |
|
1424 |
*/ |
|
1425 |
EPagingAgedDirty, |
|
1426 |
||
1427 |
/** |
|
1428 |
A page has been allocated to hold the MMU page tables required to map demand paged memory. |
|
1429 |
||
1430 |
Trace data format: |
|
1431 |
- 4 bytes containing the physical address of the page allocated. |
|
1432 |
||
1433 |
The context id (NThread*) in this trace is that of the thread caused this paging event. |
|
1434 |
||
1435 |
This trace is only emitted on the flexible memory model. |
|
1436 |
*/ |
|
1437 |
EPagingPageTableAlloc, |
|
1438 |
}; |
|
1439 |
||
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
1440 |
/** |
0 | 1441 |
Enumeration of sub-category values for trace category EResourceManager. |
1442 |
@see EResourceManager |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
1443 |
@prototype 9.5 |
0 | 1444 |
*/ |
1445 |
enum TResourceManager |
|
1446 |
{ |
|
1447 |
/** |
|
1448 |
Trace output for resource registration. |
|
1449 |
||
1450 |
Trace data format: |
|
1451 |
- 4 bytes containing the Resource Id. |
|
1452 |
- 4 bytes containing the Resource address. |
|
1453 |
- N bytes containing the Resource name, where 0 < N < 32 |
|
1454 |
- 4 bytes containing the Resource Minimum Level |
|
1455 |
- 4 bytes containing the Resource Maximum Level |
|
1456 |
- 4 bytes containing the Resource Default Level |
|
1457 |
*/ |
|
1458 |
ERegisterResource = 0, |
|
1459 |
||
1460 |
/** |
|
1461 |
Trace output for client registration |
|
1462 |
||
1463 |
Trace data format: |
|
1464 |
- 4 bytes containing clientId |
|
1465 |
- 4 bytes containing client address |
|
1466 |
- N bytes containing client name, where 0 < N < 32 |
|
1467 |
*/ |
|
1468 |
ERegisterClient, |
|
1469 |
||
1470 |
/** |
|
1471 |
Trace output for client deregistration |
|
1472 |
||
1473 |
Trace data format: |
|
1474 |
- 4 bytes containing clientId |
|
1475 |
- 4 bytes containing client address |
|
1476 |
- N bytes containing client name, where 0 < N < 32 |
|
1477 |
*/ |
|
1478 |
EDeRegisterClient, |
|
1479 |
||
1480 |
/** |
|
1481 |
Trace output for resource state change start operation |
|
1482 |
||
1483 |
Trace data format: |
|
1484 |
- 4 bytes containing clientId |
|
1485 |
- 4 bytes containing the Resource Id. |
|
1486 |
- N bytes containing client name, where 0 < N < 32 |
|
1487 |
- N bytes containing the Resource name, where 0 < N < 32 |
|
1488 |
- 4 bytes containing the Resource state |
|
1489 |
*/ |
|
1490 |
ESetResourceStateStart, |
|
1491 |
||
1492 |
/** |
|
1493 |
Trace output for resource state change end operation |
|
1494 |
||
1495 |
Trace data format: |
|
1496 |
- 4 bytes containing clientId |
|
1497 |
- 4 bytes containing the Resource Id. |
|
1498 |
- N bytes containing client name, where 0 < N < 32 |
|
1499 |
- N bytes containing the Resource name, where 0 < N < 32 |
|
1500 |
- 4 bytes containing return value. |
|
1501 |
- 4 bytes containing the Resource state. |
|
1502 |
*/ |
|
1503 |
ESetResourceStateEnd, |
|
1504 |
||
1505 |
/** |
|
1506 |
Trace output for registration for post notification |
|
1507 |
||
1508 |
Trace data format: |
|
1509 |
- 4 bytes containing clientId |
|
1510 |
- 4 bytes containing the Resource Id. |
|
1511 |
- 4 bytest containing the callback address |
|
1512 |
- 4 bytes containing return value. |
|
1513 |
*/ |
|
1514 |
EPostNotificationRegister, |
|
1515 |
||
1516 |
/** |
|
1517 |
Trace output for deregistration for post notification |
|
1518 |
||
1519 |
Trace data format: |
|
1520 |
- 4 bytes containing clientId |
|
1521 |
- 4 bytes containing the Resource Id. |
|
1522 |
- 4 bytes containing the callback address |
|
1523 |
- 4 bytes containing the return value. |
|
1524 |
*/ |
|
1525 |
EPostNotificationDeRegister, |
|
1526 |
||
1527 |
/** |
|
1528 |
Trace output for post notification sent. |
|
1529 |
||
1530 |
Trace data format: |
|
1531 |
- 4 bytes containing clientId |
|
1532 |
- 4 bytes containing the Resource Id. |
|
1533 |
*/ |
|
1534 |
EPostNotificationSent, |
|
1535 |
||
1536 |
/** |
|
1537 |
Trace output for Callback complete |
|
1538 |
||
1539 |
Trace data format: |
|
1540 |
- 4 bytes containing clientId |
|
1541 |
- 4 bytes containing the Resource Id. |
|
1542 |
*/ |
|
1543 |
ECallbackComplete, |
|
1544 |
||
1545 |
/** |
|
1546 |
Trace output for resource manager memory usage |
|
1547 |
||
1548 |
Trace data format: |
|
1549 |
- 4 bytes containing memory allocated in bytes. |
|
1550 |
*/ |
|
1551 |
EMemoryUsage, |
|
1552 |
||
1553 |
/** |
|
1554 |
Trace output for get resource state start operation |
|
1555 |
||
1556 |
Trace data format: |
|
1557 |
- 4 bytes containing clientId |
|
1558 |
- 4 bytes containing the Resource Id. |
|
1559 |
- N bytes containing client name, where 0 < N < 32 |
|
1560 |
- N bytes containing the Resource name, where 0 < N < 32 |
|
1561 |
*/ |
|
1562 |
EGetResourceStateStart, |
|
1563 |
||
1564 |
/** |
|
1565 |
Trace output for get resource state end operation |
|
1566 |
||
1567 |
Trace data format: |
|
1568 |
- 4 bytes containing clientId |
|
1569 |
- 4 bytes containing the Resource Id. |
|
1570 |
- N bytes containing client name, where 0 < N < 32 |
|
1571 |
- N bytes containing the Resource name, where 0 < N < 32 |
|
1572 |
- 4 bytes containing the Resource state |
|
1573 |
- 4 bytes containing return value. |
|
1574 |
*/ |
|
1575 |
EGetResourceStateEnd, |
|
1576 |
||
1577 |
/** |
|
1578 |
Trace output for cancellation of long latency operation |
|
1579 |
||
1580 |
Trace data format: |
|
1581 |
- 4 bytes containing clientId |
|
1582 |
- 4 bytes containing the Resource Id. |
|
1583 |
- N bytes containing client name, where 0 < N < 32 |
|
1584 |
- N bytes containing the Resource name, where 0 < N < 32 |
|
1585 |
- 4 bytes containing return value |
|
1586 |
*/ |
|
1587 |
ECancelLongLatencyOperation, |
|
1588 |
||
1589 |
/** |
|
1590 |
Trace output for booting of resource manager |
|
1591 |
||
1592 |
Trace data format: |
|
1593 |
- 4 bytes containing entry point |
|
1594 |
*/ |
|
1595 |
EBooting, |
|
1596 |
||
1597 |
/** |
|
1598 |
Trace output for PSL resource state change operation |
|
1599 |
||
1600 |
Trace data format: |
|
1601 |
- 4 bytes containing clientId |
|
1602 |
- 4 bytes containing the Resource Id. |
|
1603 |
- N bytes containing the Resource name, where 0 < N < 32 |
|
1604 |
- 4 bytes containing the Resource current state |
|
1605 |
- 4 bytes containing the resource requested state |
|
1606 |
*/ |
|
1607 |
EPslChangeResourceStateStart, |
|
1608 |
||
1609 |
/** |
|
1610 |
Trace output for PSL resource state change operation |
|
1611 |
||
1612 |
Trace data format: |
|
1613 |
- 4 bytes containing clientId |
|
1614 |
- 4 bytes containing the Resource Id. |
|
1615 |
- N bytes containing the Resource name, where 0 < N < 32 |
|
1616 |
- 4 bytes containing the Resource current state |
|
1617 |
- 4 bytes containing the resource requested state |
|
1618 |
- 4 bytes containing return value |
|
1619 |
*/ |
|
1620 |
EPslChangeResourceStateEnd, |
|
1621 |
||
1622 |
/** |
|
1623 |
Trace output for get resource state start operation in PSL |
|
1624 |
||
1625 |
Trace data format: |
|
1626 |
- 4 bytes containing clientId |
|
1627 |
- 4 bytes containing the Resource Id. |
|
1628 |
- N bytes containing the Resource name, where 0 < N < 32 |
|
1629 |
*/ |
|
1630 |
EPslGetResourceStateStart, |
|
1631 |
||
1632 |
/** |
|
1633 |
Trace output for get resource state end operation in PSL |
|
1634 |
||
1635 |
Trace data format: |
|
1636 |
- 4 bytes containing clientId |
|
1637 |
- 4 bytes containing the Resource Id. |
|
1638 |
- N bytes containing the Resource name, where 0 < N < 32 |
|
1639 |
- 4 bytes containing the Resource state |
|
1640 |
- 4 bytes containing return value. |
|
1641 |
*/ |
|
1642 |
EPslGetResourceStateEnd, |
|
1643 |
||
1644 |
/** |
|
1645 |
Trace output for resource creation |
|
1646 |
||
1647 |
Trace data format: |
|
1648 |
- 4 bytes containing minimum value of resource |
|
1649 |
- 4 bytes containing maximum value of resource |
|
1650 |
- 4 bytes containing the default value of resource |
|
1651 |
- 4 bytes containing the properties of the resource |
|
1652 |
- N bytes containing the Resource name, where 0 < N < 32 |
|
1653 |
*/ |
|
1654 |
EPslResourceCreate, |
|
1655 |
||
1656 |
/** |
|
1657 |
Trace output for static resource with dependency registration |
|
1658 |
||
1659 |
Trace data format: |
|
1660 |
- 4 bytes containing the Resource Id |
|
1661 |
- 4 bytes containing the Resource address |
|
1662 |
- N bytes containing the Resource name, where 0 < N < 32 |
|
1663 |
- 4 bytes containing the minimum value of resource |
|
1664 |
- 4 bytes containing the maximum value of resource |
|
1665 |
- 4 bytes containing the default value of resource |
|
1666 |
*/ |
|
1667 |
ERegisterStaticResourceWithDependency, |
|
1668 |
||
1669 |
/** |
|
1670 |
Trace output for dynamic resource registration |
|
1671 |
||
1672 |
Trace data format: |
|
1673 |
- 4 bytes containing clientId |
|
1674 |
- 4 bytes containing the Resource Id |
|
1675 |
- N bytes containing the client name, where 0 < N < 32 |
|
1676 |
- N bytes containing the resource name, where 0 < N < 32 |
|
1677 |
- 4 bytes containing the resouce address |
|
1678 |
*/ |
|
1679 |
ERegisterDynamicResource, |
|
1680 |
||
1681 |
/** |
|
1682 |
Trace output for dynamic resource deregistration |
|
1683 |
||
1684 |
Trace data format: |
|
1685 |
- 4 bytes containing clientId |
|
1686 |
- 4 bytes containing the Resource Id |
|
1687 |
- N bytes containing the client name, where 0 < N < 32 |
|
1688 |
- N bytes containing the resource name, where 0 < N < 32 |
|
1689 |
- 4 bytes containing the resource address |
|
1690 |
- 4 bytes containing the resource level. |
|
1691 |
*/ |
|
1692 |
EDeRegisterDynamicResource, |
|
1693 |
||
1694 |
/** |
|
1695 |
Trace output for resource dependency registration |
|
1696 |
||
1697 |
Trace data format: |
|
1698 |
- 4 bytes containing clientId |
|
1699 |
- 4 bytes containing the Resource Id of first dependent resource |
|
1700 |
- N bytes containing the client name, where 0 < N < 32 |
|
1701 |
- N bytes containing the resource name of first dependent resource, where 0 < N < 32 |
|
1702 |
- 4 bytes containing the Resource Id of second dependent resource |
|
1703 |
- N bytes containing the resource name of second dependent resource, where 0 < N < 32 |
|
1704 |
- 4 bytes containing the address of first dependent resource |
|
1705 |
- 4 bytes containing the address of second dependent resource |
|
1706 |
*/ |
|
1707 |
ERegisterResourceDependency, |
|
1708 |
||
1709 |
/** |
|
1710 |
Trace output for resource dependency deregistration |
|
1711 |
||
1712 |
Trace data format: |
|
1713 |
- 4 bytes containing clientId |
|
1714 |
- 4 bytes containing the Resource Id of first dependent resource |
|
1715 |
- N bytes containing the client name, where 0 < N < 32 |
|
1716 |
- N bytes containing the resource name of first dependent resource, where 0 < N < 32 |
|
1717 |
- 4 bytes containing the resource id of second dependent resource |
|
1718 |
- N bytes containing the resource name of second dependent resource, where 0 < N < 32 |
|
1719 |
- 4 bytes containing the address of first dependent resource |
|
1720 |
- 4 bytes containing the address of second dependent resource |
|
1721 |
*/ |
|
1722 |
EDeRegisterResourceDependency |
|
1723 |
}; |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
1724 |
/** |
0 | 1725 |
Enumeration of sub-category values for trace category EResourceManagerUs. |
1726 |
@see EResourceManagerUs |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
1727 |
@prototype 9.5 |
0 | 1728 |
*/ |
1729 |
enum TResourceManagerUs |
|
1730 |
{ |
|
1731 |
/** |
|
1732 |
Trace output for the start of opening a channel to the Resource Controller. |
|
1733 |
||
1734 |
Trace data format: |
|
1735 |
- 4 bytes unused (displays 0) |
|
1736 |
- 4 bytes containing the client thread identifier. |
|
1737 |
- N bytes containing the client name, where 0 < N < 32 |
|
1738 |
*/ |
|
1739 |
EOpenChannelUsStart = 0, |
|
1740 |
/** |
|
1741 |
Trace output for the end of opening a channel to the Resource Controller. |
|
1742 |
||
1743 |
Trace data format: |
|
1744 |
- 4 bytes unused (displays 0) |
|
1745 |
- 4 bytes containing the client identifier provided by the Resource Controller |
|
1746 |
- N bytes containing the client name, where 0 < N < 32 |
|
1747 |
*/ |
|
1748 |
EOpenChannelUsEnd, |
|
1749 |
/** |
|
1750 |
Trace output for the start of registering a client with the Resource Controller. |
|
1751 |
||
1752 |
Trace data format: |
|
1753 |
- 4 bytes the number of concurrent change resource state operations to be supported |
|
1754 |
- 4 bytes the number of concurrent notification requests to be supported |
|
1755 |
- N bytes containing the client name, where 0 < N < 32 |
|
1756 |
- 4 bytes the number of concurrent get resource state operations to be supported |
|
1757 |
*/ |
|
1758 |
ERegisterClientUsStart, |
|
1759 |
/** |
|
1760 |
Trace output for the end of registering a client with the Resource Controller. |
|
1761 |
||
1762 |
Trace data format: |
|
1763 |
- 4 bytes containing the client identifier provided by the Resource Controller. |
|
1764 |
- 4 bytes specifying the value returned from the call to Resource Controller's AllocReserve method |
|
1765 |
*/ |
|
1766 |
ERegisterClientUsEnd, |
|
1767 |
/** |
|
1768 |
Trace output for the start of de-registering a client with the Resource Controller. |
|
1769 |
||
1770 |
Trace data format: |
|
1771 |
- 4 bytes unused (displays 0) |
|
1772 |
- 4 bytes containing the client identifier provided by the Resource Controller. |
|
1773 |
- N bytes containing the client name, where 0 < N < 32 |
|
1774 |
*/ |
|
1775 |
EDeRegisterClientUsStart, |
|
1776 |
/** |
|
1777 |
Trace output for the end of registering a client with the Resource Controller. |
|
1778 |
||
1779 |
Trace data format: |
|
1780 |
- 4 bytes containing the client identifier provided by the Resource Controller. |
|
1781 |
*/ |
|
1782 |
EDeRegisterClientUsEnd, |
|
1783 |
/** |
|
1784 |
Trace output for the start of a GetResourceState request to the Resource Controller. |
|
1785 |
||
1786 |
Trace data format: |
|
1787 |
- 4 bytes specifying the resource ID |
|
1788 |
- 4 bytes containing the client identifier provided by the Resource Controller. |
|
1789 |
- N bytes containing the client name, where 0 < N < 32 |
|
1790 |
*/ |
|
1791 |
EGetResourceStateUsStart, |
|
1792 |
/** |
|
1793 |
Trace output for the end of a GetResourceState request to the Resource Controller. |
|
1794 |
||
1795 |
Trace data format: |
|
1796 |
- 4 bytes specifying the resource ID |
|
1797 |
- 4 bytes specifying the resource level |
|
1798 |
- 4 bytes containing the client identifier |
|
1799 |
- 4 bytes specifying the success code returned by the Resource Controller. |
|
1800 |
*/ |
|
1801 |
EGetResourceStateUsEnd, |
|
1802 |
/** |
|
1803 |
Trace output for the start of a ChangeResourceState request to the Resource Controller. |
|
1804 |
||
1805 |
Trace data format: |
|
1806 |
- 4 bytes specifying the resource ID |
|
1807 |
- 4 bytes specifying the required state |
|
1808 |
- N bytes containing the client name, where 0 < N < 32 |
|
1809 |
- 4 bytes containing the client identifier provided by the Resource Controller. |
|
1810 |
*/ |
|
1811 |
ESetResourceStateUsStart, |
|
1812 |
/** |
|
1813 |
Trace output for the end of a ChangeResourceState request to the Resource Controller. |
|
1814 |
||
1815 |
Trace data format: |
|
1816 |
- 4 bytes specifying the resource ID |
|
1817 |
- 4 bytes specifying the requested state |
|
1818 |
- 4 bytes containing the client identifier |
|
1819 |
- 4 bytes specifying the success code returned by the Resource Controller. |
|
1820 |
*/ |
|
1821 |
ESetResourceStateUsEnd, |
|
1822 |
/** |
|
1823 |
Trace output for the start of a cancel GetResourceState request to the Resource Controller. |
|
1824 |
||
1825 |
Trace data format: |
|
1826 |
- 4 bytes specifying the resource ID |
|
1827 |
- 4 bytes containing the client identifier provided by the Resource Controller. |
|
1828 |
- N bytes containing the client name, where 0 < N < 32 |
|
1829 |
*/ |
|
1830 |
ECancelGetResourceStateUsStart, |
|
1831 |
/** |
|
1832 |
Trace output for the end of a cancel GetResourceState request to the Resource Controller. |
|
1833 |
||
1834 |
Trace data format: |
|
1835 |
- 4 bytes specifying the resource ID |
|
1836 |
- 4 bytes containing the client identifier provided by the Resource Controller. |
|
1837 |
- N bytes containing the client name, where 0 < N < 32 |
|
1838 |
*/ |
|
1839 |
ECancelGetResourceStateUsEnd, |
|
1840 |
/** |
|
1841 |
Trace output for the start of a cancel ChangeResourceState request to the Resource Controller. |
|
1842 |
||
1843 |
Trace data format: |
|
1844 |
- 4 bytes specifying the resource ID |
|
1845 |
- 4 bytes containing the client identifier provided by the Resource Controller. |
|
1846 |
- N bytes containing the client name, where 0 < N < 32 |
|
1847 |
*/ |
|
1848 |
ECancelSetResourceStateUsStart, |
|
1849 |
/** |
|
1850 |
Trace output for the end of a cancel ChangeResourceState request to the Resource Controller. |
|
1851 |
||
1852 |
Trace data format: |
|
1853 |
- 4 bytes specifying the resource ID |
|
1854 |
- 4 bytes containing the client identifier provided by the Resource Controller. |
|
1855 |
- N bytes containing the client name, where 0 < N < 32 |
|
1856 |
*/ |
|
1857 |
ECancelSetResourceStateUsEnd |
|
1858 |
}; |
|
1859 |
||
1860 |
/** |
|
1861 |
Enumeration of sub-category values for trace category EThreadPriority. |
|
1862 |
@see EThreadPriority |
|
1863 |
@internalTechnology |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
1864 |
@prototype 9.3 |
0 | 1865 |
*/ |
1866 |
enum TThreadPriority |
|
1867 |
{ |
|
1868 |
/** |
|
1869 |
Trace output when a nanothread priority is changed. |
|
1870 |
||
1871 |
Trace data format: |
|
1872 |
- 4 bytes containing the context id (an NThread*) for the thread whose priority is changing. |
|
1873 |
- 4 bytes containing the new absolute priority. |
|
1874 |
*/ |
|
1875 |
ENThreadPriority=0, |
|
1876 |
||
1877 |
/** |
|
1878 |
Trace output when a DThread's default priority is set. |
|
1879 |
||
1880 |
Trace data format: |
|
1881 |
- 4 bytes containing the context id (an NThread*) for the thread whose priority is changing. |
|
1882 |
- 4 bytes containing the iThreadPriority member - a value from enum ::TThrdPriority. |
|
1883 |
- 4 bytes containing the new default absolute priority. |
|
1884 |
*/ |
|
1885 |
EDThreadPriority=1, |
|
1886 |
||
1887 |
/** |
|
1888 |
Trace output when a DProcess priority is changed. |
|
1889 |
||
1890 |
Trace data format: |
|
1891 |
- 4 bytes containing trace id (a DProcess*) for process. |
|
1892 |
- 4 bytes containing the new process priority, a value from enum ::TProcPriority |
|
1893 |
*/ |
|
1894 |
EProcessPriority=2 |
|
1895 |
}; |
|
1896 |
||
1897 |
/** |
|
1898 |
Enumeration of sub-category values for trace category EPagingMedia. |
|
1899 |
@see EPagingMedia |
|
1900 |
*/ |
|
1901 |
enum TPagingMedia |
|
1902 |
{ |
|
1903 |
/** |
|
1904 |
Event generated when a request to 'page in' data is received by the Local Media Subsystem. |
|
1905 |
||
1906 |
Trace data format: |
|
1907 |
- 4 bytes containing the linear address of the buffer to where the data is to be written. |
|
1908 |
- 4 bytes containing the offset from start of the partition to where the data to be paged in resides. |
|
1909 |
- 4 bytes containing the number of bytes to be read off the media. |
|
1910 |
- 4 bytes containing local drive number for the drive where the data to be paged in resides (-1 if ROM paging). |
|
1911 |
- 4 bytes containing the linear address in memory where this request object resides. |
|
1912 |
||
1913 |
The context id (NThread*) in this trace is that of the thread that took the page fault that caused this event. |
|
1914 |
*/ |
|
1915 |
EPagingMediaLocMedPageInBegin, |
|
1916 |
||
1917 |
/** |
|
1918 |
Event generated by the Local Media Subsystem when a request to page data in or out has completed. |
|
1919 |
||
1920 |
Trace data format: |
|
1921 |
- 4 bytes containing the linear address in memory where this request object resides. |
|
1922 |
- 4 bytes containing the completion code to be returned. |
|
1923 |
- 4 bytes containing a code qualifying this request as either a ROM or Code 'page in' (see TPagingRequestId) or a data page-in/out. |
|
1924 |
||
1925 |
The context id (NThread*) in this trace is that of the media driver thread that services this 'page in' request. |
|
1926 |
*/ |
|
1927 |
EPagingMediaLocMedPageInPagedIn, |
|
1928 |
||
1929 |
/** |
|
1930 |
Event generated by the Local Media Subsystem when a request to 'page in' data is deferred. |
|
1931 |
||
1932 |
Trace data format: |
|
1933 |
- 4 bytes containing the linear address in memory where this request object resides. |
|
1934 |
- 4 bytes containing a code qualifying this request as either a ROM or Code 'page in' (see TPagingRequestId) or a data page-in/out.. |
|
1935 |
||
1936 |
The context id (NThread*) in this trace is that of the media driver thread that services this 'page in' request. |
|
1937 |
*/ |
|
1938 |
EPagingMediaLocMedPageInDeferred, |
|
1939 |
||
1940 |
/** |
|
1941 |
Event generated by the Local Media Subsystem when a request to 'page in' data that has been deferred is re-posted. |
|
1942 |
||
1943 |
Trace data format: |
|
1944 |
- 4 bytes containing the linear address in memory where this request object resides. |
|
1945 |
- 4 bytes containing a code qualifying this request as either a ROM or Code 'page in' (see TPagingRequestId) or a data page-in/out.. |
|
1946 |
||
1947 |
The context id (NThread*) in this trace is that of the media driver thread that services this 'page in' request. |
|
1948 |
*/ |
|
1949 |
EPagingMediaLocMedPageInDeferredReposted, |
|
1950 |
||
1951 |
/** |
|
1952 |
Event generated by the Local Media Subsystem when a request to 'page in' data is re-deferred. |
|
1953 |
||
1954 |
Trace data format: |
|
1955 |
- 4 bytes containing the linear address in memory where this request object resides. |
|
1956 |
- 4 bytes containing a code qualifying this request as either a ROM or Code 'page in' (see TPagingRequestId) or a data page-in/out.. |
|
1957 |
||
1958 |
The context id (NThread*) in this trace is that of the media driver thread that services this 'page in' request. |
|
1959 |
*/ |
|
1960 |
EPagingMediaLocMedPageInReDeferred, |
|
1961 |
||
1962 |
/** |
|
1963 |
Event generated by the Local Media Subsystem when a request to 'page in' data is issued when the media is not yet open. |
|
1964 |
||
1965 |
Trace data format: |
|
1966 |
- 4 bytes containing the linear address in memory where this request object resides. |
|
1967 |
- 4 bytes containing the state of the media (one of TMediaState). |
|
1968 |
- 4 bytes containing a code qualifying this request as either a ROM or Code 'page in' (see TPagingRequestId) or a data page-in/out.. |
|
1969 |
||
1970 |
The context id (NThread*) in this trace is that of the media driver thread that services this 'page in' request. |
|
1971 |
*/ |
|
1972 |
EPagingMediaLocMedPageInQuietlyDeferred, |
|
1973 |
||
1974 |
/** |
|
1975 |
Event generated by the Local Media Subsystem when a fragment of a Write request is created and is ready to be sent to the Media |
|
1976 |
Driver thread . |
|
1977 |
||
1978 |
Trace data format: |
|
1979 |
- 4 bytes containing the linear address in memory where this request object resides. |
|
1980 |
- 4 bytes containing the ID of this fragment (middle or last). |
|
1981 |
- 4 bytes containing the length of data in this request fragment. |
|
1982 |
- 4 bytes containing the offset within the original request to the start of data in this fragment. |
|
1983 |
- 4 bytes containing the offset from start of the partition to where the data in this fragment is to be written. |
|
1984 |
- 4 bytes containing the address of the DThread object representing the thread that issued the original Write request. |
|
1985 |
||
1986 |
The context id (NThread*) in this trace is that of the File Server drive thread that issued the original Write request. |
|
1987 |
*/ |
|
1988 |
EPagingMediaLocMedFragmentBegin, |
|
1989 |
||
1990 |
/** |
|
1991 |
Event generated by the Local Media Subsystem when a Write fragment is completed . |
|
1992 |
||
1993 |
Trace data format: |
|
1994 |
- 4 bytes containing the linear address in memory where this request object resides. |
|
1995 |
- 4 bytes containing the completion code to be returned. |
|
1996 |
||
1997 |
The context id (NThread*) in this trace is that of the File Server drive thread that issued the original Write request. |
|
1998 |
*/ |
|
1999 |
EPagingMediaLocMedFragmentEnd, |
|
2000 |
||
2001 |
/** |
|
2002 |
Event generated when the Media Driver starts processing a request to 'page in' data in its specific Request(..) function. |
|
2003 |
||
2004 |
Trace data format: |
|
2005 |
- 4 bytes containing a code describing the type of the media (one of TMediaDevice). |
|
2006 |
- 4 bytes containing the linear address in memory where this request object resides. |
|
2007 |
||
2008 |
The context id (NThread*) in this trace is that of the media driver thread that services this 'page in' request. |
|
2009 |
*/ |
|
2010 |
EPagingMediaPagingMedDrvBegin, |
|
2011 |
||
2012 |
/** |
|
2013 |
Event generated by the Media Driver when the data read by a 'page in' request is written to the paging buffer. |
|
2014 |
||
2015 |
Trace data format: |
|
2016 |
- 4 bytes containing a code describing the type of the media (one of TMediaDevice). |
|
2017 |
- 4 bytes containing the linear address in memory where this request object resides. |
|
2018 |
- 4 bytes containing the linear address of the buffer to where the data is to be written. |
|
2019 |
- 4 bytes containing the offset within the buffer to where the data will be written. |
|
2020 |
- 4 bytes containing the length of data to be written. |
|
2021 |
||
2022 |
The context id (NThread*) in this trace is that of the media driver thread that services this 'page in' request. |
|
2023 |
*/ |
|
2024 |
EPagingMediaMedDrvWriteBack, |
|
2025 |
||
2026 |
/** |
|
2027 |
Event generated when a request to 'page in' data is put on hold because the Media Driver is performing some background |
|
2028 |
operation (not another request) and cannot service the request. |
|
2029 |
||
2030 |
Trace data format: |
|
2031 |
- 4 bytes containing a code describing the type of the media (one of TMediaDevice). |
|
2032 |
- 4 bytes containing the linear address in memory where this request object resides. |
|
2033 |
||
2034 |
The context id (NThread*) in this trace is that of the media driver thread that services this 'page in' request. |
|
2035 |
*/ |
|
2036 |
EPagingMediaMedDrvOnHold, |
|
2037 |
||
2038 |
/** |
|
2039 |
Event generated by the Media Driver when the data read by a 'page out' request is read from the paging buffer. |
|
2040 |
||
2041 |
Trace data format: |
|
2042 |
- 4 bytes containing a code describing the type of the media (one of TMediaDevice). |
|
2043 |
- 4 bytes containing the linear address in memory where this request object resides. |
|
2044 |
- 4 bytes containing the linear address of the buffer to where the data is to be written. |
|
2045 |
- 4 bytes containing the offset within the buffer to where the data will be written. |
|
2046 |
- 4 bytes containing the length of data to be written. |
|
2047 |
||
2048 |
The context id (NThread*) in this trace is that of the media driver thread that services this 'page in' request. |
|
2049 |
*/ |
|
2050 |
EPagingMediaMedDrvRead, |
|
2051 |
||
2052 |
/** |
|
2053 |
Event generated when a request to 'page out' data is received by the Local Media Subsystem. |
|
2054 |
||
2055 |
Trace data format: |
|
2056 |
- 4 bytes containing the linear address of the buffer from where the data is to be read. |
|
2057 |
- 4 bytes containing the offset from start of the partition to where the data to be paged out resides. |
|
2058 |
- 4 bytes containing the number of bytes to be written to the media. |
|
2059 |
- 4 bytes containing the linear address in memory where this request object resides. |
|
2060 |
||
2061 |
The context id (NThread*) in this trace is that of the thread that took the page fault that caused this event. |
|
2062 |
*/ |
|
2063 |
EPagingMediaLocMedPageOutBegin, |
|
2064 |
||
2065 |
/** |
|
2066 |
Event generated when a request to mark an area of the swap file as deleted is received by the Local Media Subsystem. |
|
2067 |
||
2068 |
Trace data format: |
|
2069 |
- 4 bytes containing NULL |
|
2070 |
- 4 bytes containing the offset from start of the partition to where the data to be paged out resides. |
|
2071 |
- 4 bytes containing the number of bytes to be marked as deleted |
|
2072 |
- 4 bytes containing the linear address in memory where this request object resides. |
|
2073 |
||
2074 |
The context id (NThread*) in this trace is that of the thread that took the page fault that caused this event. |
|
2075 |
*/ |
|
2076 |
EPagingMediaLocMedDeleteNotifyBegin, |
|
2077 |
||
2078 |
}; |
|
2079 |
||
2080 |
/** |
|
2081 |
Enumeration of sub-category values for trace category EKernelMemory. |
|
2082 |
@see EKernelMemory |
|
2083 |
*/ |
|
2084 |
enum TKernelMemory |
|
2085 |
{ |
|
2086 |
/** |
|
2087 |
Event recorded during startup and prime which details the initial amount of free RAM. |
|
2088 |
||
2089 |
Trace data format: |
|
2090 |
- 4 bytes containing the number of bytes of RAM the system started with. |
|
2091 |
*/ |
|
2092 |
EKernelMemoryInitialFree, |
|
2093 |
||
2094 |
/** |
|
2095 |
Event recorded during prime which records the then-current amount of free RAM. |
|
2096 |
||
2097 |
Trace data format: |
|
2098 |
- 4 bytes containing the number of bytes of free RAM. |
|
2099 |
*/ |
|
2100 |
EKernelMemoryCurrentFree, |
|
2101 |
||
2102 |
/** |
|
2103 |
Event recorded when a miscellaneous kernel allocation is made. These include: |
|
2104 |
- Memory for MMU page table contents |
|
2105 |
- Memory for MMU SPageTableInfos |
|
2106 |
- Memory for shadow pages |
|
2107 |
||
2108 |
Trace data format: |
|
2109 |
- 4 bytes containing the size, in bytes, of the allocation. |
|
2110 |
*/ |
|
2111 |
EKernelMemoryMiscAlloc, |
|
2112 |
||
2113 |
/** |
|
2114 |
Event recorded when a miscellaneous kernel allocation (see EKernelMemoryMiscAlloc |
|
2115 |
above) is freed. |
|
2116 |
||
2117 |
Trace data format: |
|
2118 |
- 4 bytes containing the size, in bytes, of the freed allocation. |
|
2119 |
*/ |
|
2120 |
EKernelMemoryMiscFree, |
|
2121 |
||
2122 |
/** |
|
2123 |
The amount of memory reserved for the minimum demand paging cache. The *actual* DP cache |
|
2124 |
also uses free memory, only this minimum amount is permanently reserved for that purpose. |
|
2125 |
This event is recorded during prime and when the amount changes. |
|
2126 |
||
2127 |
Trace data format: |
|
2128 |
- 4 bytes containing the minimum size, in bytes, of the demand paging cache. |
|
2129 |
*/ |
|
2130 |
EKernelMemoryDemandPagingCache, |
|
2131 |
||
2132 |
/** |
|
2133 |
Physically contiguous memory allocated by device drivers via one of: |
|
2134 |
Epoc::AllocPhysicalRam() |
|
2135 |
Epoc::ZoneAllocPhysicalRam() |
|
2136 |
Epoc::ClaimPhysicalRam() |
|
2137 |
TRamDefragRequest::ClaimRamZone() |
|
2138 |
||
2139 |
Trace data format: |
|
2140 |
- 4 bytes containing the size of the allocated memory. |
|
2141 |
- 4 bytes containing the physical base address of allocated memory. |
|
2142 |
||
2143 |
NB: The prime function logs a EKernelMemoryDrvPhysAlloc record where the physical |
|
2144 |
address is -1 and should be ignored. |
|
2145 |
*/ |
|
2146 |
EKernelMemoryDrvPhysAlloc, |
|
2147 |
||
2148 |
/** |
|
2149 |
Memory freed by device drivers via calls to all versions of |
|
2150 |
Epoc::FreePhysicalRam(). |
|
2151 |
||
2152 |
Trace data format: |
|
2153 |
- 4 bytes containing the size of the freed memory. |
|
2154 |
- 4 bytes containing the physical base address of freed memory. |
|
2155 |
*/ |
|
2156 |
EKernelMemoryDrvPhysFree, |
|
2157 |
}; |
|
2158 |
||
2159 |
/** |
|
2160 |
Enumeration of sub-category values for trace category EHeap. |
|
2161 |
@see EHeap |
|
2162 |
*/ |
|
2163 |
enum THeap |
|
2164 |
{ |
|
2165 |
/** |
|
2166 |
Event recorded during process startup which logs the point of heap creation. |
|
2167 |
||
2168 |
Trace data format: |
|
2169 |
- 4 bytes containing the heap ID (The RAllocator*) |
|
2170 |
- 2 bytes containing the size of header overhead, per allocation (0xFFFF indicates a variable size) |
|
2171 |
- 2 bytes containing the size of footer overhead, per allocation (0xFFFF indicates a variable size) |
|
2172 |
*/ |
|
2173 |
EHeapCreate, |
|
2174 |
||
2175 |
/** |
|
2176 |
Event recorded during process startup which details the chunk being used as a heap. |
|
2177 |
||
2178 |
Trace data format: |
|
2179 |
- 4 bytes containing the heap ID (The RAllocator*) |
|
2180 |
- 4 bytes containing the chunk ID (The RHandleBase* of the chunk) |
|
2181 |
*/ |
|
2182 |
EHeapChunkCreate, |
|
2183 |
||
2184 |
/** |
|
2185 |
Event recorded when RHeap::Alloc() is called. |
|
2186 |
||
2187 |
Trace data format: |
|
2188 |
- 4 bytes containing the heap ID (The RAllocator*) |
|
2189 |
- 4 bytes containing the address of the allocation |
|
2190 |
- 4 bytes containing the size of the allocation |
|
2191 |
- 4 bytes containing the requested size of allocation |
|
2192 |
*/ |
|
2193 |
EHeapAlloc, |
|
2194 |
||
2195 |
/** |
|
2196 |
Event recorded when RHeap::ReAlloc() is called. |
|
2197 |
||
2198 |
Trace data format: |
|
2199 |
- 4 bytes containing the heap ID (The RAllocator*) |
|
2200 |
- 4 bytes containing the address of the new allocation |
|
2201 |
- 4 bytes containing the size of the allocation |
|
2202 |
- 4 bytes containing the requested size of allocation |
|
2203 |
- 4 bytes containing the address of the old allocation |
|
2204 |
*/ |
|
2205 |
EHeapReAlloc, |
|
2206 |
||
2207 |
/** |
|
2208 |
Event recorded when RHeap::Free() is called. |
|
2209 |
||
2210 |
Trace data format: |
|
2211 |
- 4 bytes containing the heap ID (The RAllocator*) |
|
2212 |
- 4 bytes containing the address of the free'd allocation |
|
2213 |
*/ |
|
2214 |
EHeapFree, |
|
2215 |
||
2216 |
/** |
|
2217 |
Event recorded when RHeap::Alloc() fails. |
|
2218 |
||
2219 |
Trace data format: |
|
2220 |
- 4 bytes containing the heap ID (The RAllocator*) |
|
2221 |
- 4 bytes containing the requested size of allocation |
|
2222 |
*/ |
|
2223 |
EHeapAllocFail, |
|
2224 |
||
2225 |
/** |
|
2226 |
Event recorded when RHeap::ReAlloc() fails. |
|
2227 |
||
2228 |
Trace data format: |
|
2229 |
- 4 bytes containing the heap ID (The RAllocator*) |
|
2230 |
- 4 bytes containing the address of the old allocation |
|
2231 |
- 4 bytes containing the requested size of allocation |
|
2232 |
*/ |
|
2233 |
EHeapReAllocFail, |
|
2234 |
||
2235 |
/** |
|
2236 |
Event recorded when heap memory corruption occurs. |
|
2237 |
||
2238 |
Trace data format: |
|
2239 |
- 4 bytes containing the heap ID (The RAllocator*) |
|
2240 |
- 4 bytes containing address of the corrupted memory block |
|
2241 |
- 4 bytes containing length of the corrupted memory block |
|
2242 |
*/ |
|
2243 |
EHeapCorruption, |
|
2244 |
||
2245 |
/** |
|
2246 |
Trace to provide additional heap debugging information. |
|
2247 |
||
2248 |
This trace (if present) is generated by Symbian OS memory debug tools, and |
|
2249 |
will follow one of the other THeap events (e.g. EHeapAlloc, EHeapFree, etc.). |
|
2250 |
It is intended to provide a stack trace for the preceding heap event, |
|
2251 |
to indicate how the previous heap event was generated. |
|
2252 |
||
2253 |
On many systems exact stack frames are not available, and the values |
|
2254 |
will be extracted from the stack using heuristics, so there may be some |
|
2255 |
spurious values and some missing values. |
|
2256 |
||
2257 |
Trace data format: |
|
2258 |
- 4 bytes containing the heap ID (the RAllocator*) |
|
2259 |
- sequence of 4-byte PC values representing the call stack, with the top-most |
|
2260 |
(most recent call) first. |
|
2261 |
*/ |
|
2262 |
EHeapCallStack, |
|
2263 |
}; |
|
2264 |
||
2265 |
/** |
|
2266 |
Enumeration of sub-category values for trace category EMetaTrace. |
|
2267 |
@see EMetaTrace |
|
2268 |
*/ |
|
2269 |
enum TMetaTrace |
|
2270 |
{ |
|
2271 |
/** |
|
2272 |
Information about timestamps used for tracing. |
|
2273 |
||
2274 |
Trace data format: |
|
2275 |
- 4 bytes containing the period of the Timestamp value. |
|
2276 |
- 4 bytes containing the period of the Timestamp2 value. |
|
2277 |
- 4 bytes containing a set of bit flags with the following meaning: |
|
2278 |
- Bit 0, if true, indicates that Timestamp and Timestamp2 are two halves |
|
2279 |
of a single 64bit timestamp value; Timestamp2 is the most significant part. |
|
2280 |
- All other bits are presently undefined. |
|
2281 |
||
2282 |
The format of the timestamp period data is a period in seconds given using an exponent and mantissa |
|
2283 |
format, where the most significant 8 bits are the signed power-of-two value for the exponent, and |
|
2284 |
the least significant 24 bits are the integer value of the mantissa. The binary point is to the right |
|
2285 |
of the least significant mantissa bit, and the mantissa may not be in normalised form. |
|
2286 |
||
2287 |
Example code for decoding the period: |
|
2288 |
@code |
|
2289 |
TInt32 period; // value from trace record |
|
2290 |
int exponent = (signed char)(period>>24); |
|
2291 |
int mantissa = period&0xffffff; |
|
2292 |
double periodInSeconds = (double)mantissa*pow(2,exponent); |
|
2293 |
@endcode |
|
2294 |
*/ |
|
2295 |
EMetaTraceTimestampsInfo, |
|
2296 |
||
2297 |
/** |
|
2298 |
Trace indicating the start of a test case being measured. |
|
2299 |
||
2300 |
Trace data format: |
|
2301 |
- 4 bytes containing measurement specific value. |
|
2302 |
- 4 bytes containing a further measurement specific value. |
|
2303 |
- Remaining data is ASCII text providing human readable information. |
|
2304 |
*/ |
|
2305 |
EMetaTraceMeasurementStart, |
|
2306 |
||
2307 |
/** |
|
2308 |
Trace indicating the end of a test case being measured. |
|
2309 |
||
2310 |
Trace data format: |
|
2311 |
- 4 bytes containing measurement specific identifying value. |
|
2312 |
- 4 bytes containing a further measurement specific identifying value. |
|
2313 |
||
2314 |
The values contained in this trace must be identical to those in the corresponding |
|
2315 |
ETraceInfoMeasurementStart trace. |
|
2316 |
*/ |
|
2317 |
EMetaTraceMeasurementEnd, |
|
2318 |
||
2319 |
/** |
|
2320 |
Trace indicating a change in state of the primary filter. |
|
2321 |
||
2322 |
Trace data format: |
|
2323 |
- 1 byte containing a trace category number. |
|
2324 |
- 1 byte containing the new filter state for the category. (0=off, 1=on). |
|
2325 |
- 2 byte padding. (Should be output as zeros.) |
|
2326 |
*/ |
|
2327 |
EMetaTraceFilterChange, |
|
2328 |
}; |
|
2329 |
||
2330 |
/** |
|
2331 |
Enumeration of sub-category values for trace category ERamAllocator. |
|
2332 |
@see BTrace::ERamAllocator |
|
2333 |
*/ |
|
2334 |
enum TRamAllocator |
|
2335 |
{ |
|
2336 |
/** |
|
2337 |
The number of RAM zones. |
|
2338 |
||
2339 |
Trace data format: |
|
2340 |
- 4 bytes containing the number of RAM zones. |
|
2341 |
*/ |
|
2342 |
ERamAllocZoneCount, |
|
2343 |
||
2344 |
/** |
|
2345 |
Information on the layout of a RAM zone. |
|
2346 |
||
2347 |
Trace data format: |
|
2348 |
- 4 bytes containing the number of pages in the zone |
|
2349 |
- 4 bytes containing the physical base address of the zone |
|
2350 |
- 4 bytes containing the ID of the zone |
|
2351 |
- 1 bytes containing the preference of the zone |
|
2352 |
- 1 bytes containing the flags of the zone |
|
2353 |
- 2 bytes reserved for future use |
|
2354 |
*/ |
|
2355 |
ERamAllocZoneConfig, |
|
2356 |
||
2357 |
/** |
|
2358 |
This trace is sent for every contiguous block of RAM that was allocated |
|
2359 |
during the kernel boot process. |
|
2360 |
||
2361 |
Trace data format: |
|
2362 |
- 4 bytes containing the number of contiguous pages allocated for the block |
|
2363 |
- 4 bytes containing the physical base address of the block |
|
2364 |
*/ |
|
2365 |
ERamAllocBootAllocation, |
|
2366 |
||
2367 |
||
2368 |
/** |
|
2369 |
This trace marks the end of the boot allocations |
|
2370 |
||
2371 |
Trace data format: |
|
2372 |
- no extra bytes are sent |
|
2373 |
*/ |
|
2374 |
ERamAllocBootAllocationEnd, |
|
2375 |
||
2376 |
/** |
|
2377 |
Event generated when a RAM zone's flags have been modified |
|
2378 |
This could occur when a RAM zone is blocked/unblocked from further |
|
2379 |
allocations from all/certain page types. |
|
2380 |
||
2381 |
Trace data format: |
|
2382 |
- 4 bytes containing the ID of the zone |
|
2383 |
- 4 bytes containing the flags of the zone |
|
2384 |
*/ |
|
2385 |
ERamAllocZoneFlagsModified, |
|
2386 |
||
2387 |
/** |
|
2388 |
Event generated when DRamAllocator::ClaimPhysicalRam has successfully |
|
2389 |
claimed the specified RAM pages. |
|
2390 |
||
2391 |
Trace data format: |
|
2392 |
- 4 bytes containing the number of contiguous pages |
|
2393 |
- 4 bytes containing the base address of the pages |
|
2394 |
*/ |
|
2395 |
ERamAllocClaimRam, |
|
2396 |
||
2397 |
/** |
|
2398 |
Event generated when DRamAllocator::MarkPageAllocated has successfully |
|
2399 |
marked the specified page as allocated. |
|
2400 |
||
2401 |
Trace data format: |
|
2402 |
- 4 bytes containing the TZonePageType type of the page |
|
2403 |
- 4 bytes containing the address of the page |
|
2404 |
*/ |
|
2405 |
ERamAllocMarkAllocated, |
|
2406 |
||
2407 |
/** |
|
2408 |
Event generated when DRamAllocator::AllocContiguousRam successfully |
|
2409 |
allocates the requested number of pages. |
|
2410 |
||
2411 |
Trace data format: |
|
2412 |
- 4 bytes containing the TZonePageType type of the pages |
|
2413 |
- 4 bytes containing the number of contiguous pages |
|
2414 |
- 4 bytes containing the base address of the pages |
|
2415 |
*/ |
|
2416 |
ERamAllocContiguousRam, |
|
2417 |
||
2418 |
/** |
|
2419 |
Event generated when DRamAllocator::FreePage has successfully freed |
|
2420 |
the specified RAM page. |
|
2421 |
||
2422 |
Trace data format: |
|
2423 |
- 4 bytes containing the TZonePageType type of the page |
|
2424 |
- 4 bytes containing the address of the page |
|
2425 |
*/ |
|
2426 |
ERamAllocFreePage, |
|
2427 |
||
2428 |
/** |
|
2429 |
Event generated when DRamAllocator::FreePhysical successfully freed |
|
2430 |
the specified RAM page(s). |
|
2431 |
||
2432 |
Trace data format: |
|
2433 |
- 4 bytes containing the number of contiguous pages |
|
2434 |
- 4 bytes containing the base address of the pages |
|
2435 |
*/ |
|
2436 |
ERamAllocFreePhysical, |
|
2437 |
||
2438 |
/** |
|
2439 |
Event generated for each contiguous block of pages when |
|
2440 |
DRamAllocator::AllocRamPages or DRamAllocator::ZoneAllocRamPages |
|
2441 |
are attempting to fulfil a request. |
|
2442 |
||
2443 |
Trace data format: |
|
2444 |
- 4 bytes containing the TZonePageType type of the pages |
|
2445 |
- 4 bytes containing the number of contiguous pages |
|
2446 |
- 4 bytes containing the base address of the pages |
|
2447 |
*/ |
|
2448 |
ERamAllocRamPages, |
|
2449 |
||
2450 |
/** |
|
2451 |
Event generated for contiguous block of pages when |
|
2452 |
DRamAllocator::FreeRamPages is invoked. |
|
2453 |
||
2454 |
Trace data format: |
|
2455 |
- 4 bytes containing the TZonePageType type of the pages |
|
2456 |
- 4 bytes containing the number of contiguous pages |
|
2457 |
- 4 bytes containing the base address of the pages |
|
2458 |
*/ |
|
2459 |
ERamAllocFreePages, |
|
2460 |
||
2461 |
/** |
|
2462 |
Event generated when DRamAllocator::AllocRamPages has successfully |
|
2463 |
allocated all the requested number of RAM pages. If DRamAllocator::AllocRamPages |
|
2464 |
couldn't allocate all the requested pages then this event is not generated. |
|
2465 |
||
2466 |
Trace data format: |
|
2467 |
- no extra bytes sent |
|
2468 |
*/ |
|
2469 |
ERamAllocRamPagesEnd, |
|
2470 |
||
2471 |
/** |
|
2472 |
Event generated when all ERamAllocFreePages events for a particular |
|
2473 |
call of DRamAllocator::FreeRamPages have been generated. |
|
2474 |
||
2475 |
Trace data format: |
|
2476 |
- no extra bytes sent |
|
2477 |
*/ |
|
2478 |
ERamAllocFreePagesEnd, |
|
2479 |
||
2480 |
/** |
|
2481 |
Event generated when DRamAllocator::ChangePageType is has successfully |
|
2482 |
updated the type of the specified page. |
|
2483 |
||
2484 |
Trace data format: |
|
2485 |
- 4 bytes containing the new TZonePageType type of the page |
|
2486 |
- 4 bytes containing the physical address of the page |
|
2487 |
*/ |
|
2488 |
ERamAllocChangePageType, |
|
2489 |
||
2490 |
/** |
|
2491 |
Event generated when DRamAllocator::ZoneAllocContiguousRam has |
|
2492 |
successfully allocated the required number of pages. |
|
2493 |
||
2494 |
Trace data format: |
|
2495 |
- 4 bytes containing the TZonePageType type of the pages |
|
2496 |
- 4 bytes containing the number of contiguous pages |
|
2497 |
- 4 bytes containing the base address of the pages |
|
2498 |
*/ |
|
2499 |
ERamAllocZoneContiguousRam, |
|
2500 |
||
2501 |
/** |
|
2502 |
Event generated when DRamAllocator::ZoneAllocRamPages has successfully |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
2503 |
allocated all the requested RAM pages. If DRamAllocator::ZoneAllocRamPages |
0 | 2504 |
couldn't allocate all the requested pages then this event is not generated. |
2505 |
||
2506 |
Trace data format: |
|
2507 |
- no extra bytes sent |
|
2508 |
*/ |
|
2509 |
ERamAllocZoneRamPagesEnd, |
|
2510 |
||
2511 |
/** |
|
2512 |
Event generated when Epoc::ClaimRamZone has successfully claimed |
|
2513 |
the requested zone. |
|
2514 |
||
2515 |
Trace data format: |
|
2516 |
- 4 bytes containing the ID of the zone that has been claimed. |
|
2517 |
*/ |
|
2518 |
ERamAllocClaimZone, |
|
2519 |
}; |
|
2520 |
||
2521 |
enum TFastMutex |
|
2522 |
{ |
|
2523 |
/** |
|
2524 |
Event generated when a thread acquires a fast mutex, (waits on it). |
|
2525 |
||
2526 |
Trace data format: |
|
2527 |
- 4 bytes containing the fast mutex id, (an NFastMutex*). |
|
2528 |
*/ |
|
2529 |
EFastMutexWait, |
|
2530 |
||
2531 |
/** |
|
2532 |
Event generated when a thread releases a fast mutex, (signals it). |
|
2533 |
||
2534 |
Trace data format: |
|
2535 |
- 4 bytes containing the fast mutex id, (an NFastMutex*). |
|
2536 |
*/ |
|
2537 |
EFastMutexSignal, |
|
2538 |
||
2539 |
/** |
|
2540 |
Event generated when a fast mutex is 'flashed' (signalled then immediately |
|
2541 |
waited on again). E.g the operation performed by NKern::FlashSystem. |
|
2542 |
||
2543 |
Trace data format: |
|
2544 |
- 4 bytes containing the fast mutex id, (an NFastMutex*). |
|
2545 |
*/ |
|
2546 |
EFastMutexFlash, |
|
2547 |
||
2548 |
/** |
|
2549 |
Trace to associate a fast mutex with a textual name. |
|
2550 |
||
2551 |
Trace data format: |
|
2552 |
- 4 bytes containing the fast mutex id, (an NFastMutex*). |
|
2553 |
- 4 bytes containing unspecified data (should be output as zero). |
|
2554 |
- Remaining data is the ASCII name for the fast mutex. |
|
2555 |
*/ |
|
2556 |
EFastMutexName, |
|
2557 |
||
2558 |
/** |
|
2559 |
Event generated when a thread blocks on a fast mutex. |
|
2560 |
||
2561 |
Trace data format: |
|
2562 |
- 4 bytes containing the fast mutex id, (an NFastMutex*). |
|
2563 |
*/ |
|
2564 |
EFastMutexBlock, |
|
2565 |
}; |
|
2566 |
||
2567 |
/** |
|
2568 |
Enumeration of sub-category values for trace category EProfiling. |
|
2569 |
@see BTrace::EProfiling |
|
2570 |
*/ |
|
2571 |
enum TProfiling |
|
2572 |
{ |
|
2573 |
/** |
|
2574 |
CPU sample including program counter and thread context. |
|
2575 |
||
2576 |
Trace data format: |
|
2577 |
- 4 bytes containing the program counter. |
|
2578 |
- 4 bytes containing thread context (an NThread*). |
|
2579 |
*/ |
|
2580 |
ECpuFullSample = 0, |
|
2581 |
||
2582 |
/** |
|
2583 |
Optimised CPU sample including program counter. |
|
2584 |
Doesn't include a thread context id as it hasn't changed since |
|
2585 |
the last sample. |
|
2586 |
||
2587 |
Trace data format: |
|
2588 |
- 4 bytes containing the program counter. |
|
2589 |
*/ |
|
2590 |
ECpuOptimisedSample, |
|
2591 |
||
2592 |
/** |
|
2593 |
CPU sample from iDFC including program counter. |
|
2594 |
||
2595 |
Trace data format: |
|
2596 |
- 4 bytes containing the program counter. |
|
2597 |
*/ |
|
2598 |
ECpuIdfcSample, |
|
2599 |
||
2600 |
/** |
|
2601 |
CPU sample from non-Symbian thread. |
|
2602 |
||
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
2603 |
Trace data format: |
0 | 2604 |
- no extra bytes are sent |
2605 |
*/ |
|
2606 |
ECpuNonSymbianThreadSample |
|
2607 |
||
2608 |
}; |
|
2609 |
||
2610 |
/** |
|
2611 |
Enumeration of sub-category values for trace category ERawEvent. |
|
2612 |
@see BTrace::ERawEvent |
|
2613 |
*/ |
|
2614 |
enum TRawEventTrace |
|
2615 |
{ |
|
2616 |
||
2617 |
/** |
|
2618 |
For all the set Functions in the TRawEvent class. |
|
2619 |
Trace Data Format Varies depends which of the Overloaded Set Method from where its set . |
|
2620 |
Trace data format: |
|
2621 |
if there are only one 4 byte data |
|
2622 |
||
2623 |
--The Following oder is folloed for data. |
|
2624 |
- 4 bytes containing the event type |
|
2625 |
||
2626 |
if there are 2*4 byte data |
|
2627 |
- 4 bytes containing the event type |
|
2628 |
- 4 bytes containing the scan code |
|
2629 |
||
2630 |
if there are 3*4 byte data |
|
2631 |
- 4 bytes containing the event type |
|
2632 |
--4 bytes containining the X co-ordinate |
|
2633 |
--4 bytes containining the Y co-ordinate |
|
2634 |
||
2635 |
if there are 4*4 byte data |
|
2636 |
- 4 bytes containing the event type |
|
2637 |
--4 bytes containining the X co-ordinate |
|
2638 |
--4 bytes containining the Y co-ordinate |
|
2639 |
--4 bytes containining the Z co-ordinate |
|
2640 |
||
2641 |
if there are 5*4 byte data |
|
2642 |
- 4 bytes containing the event type |
|
2643 |
--4 bytes containining the X co-ordinate |
|
2644 |
--4 bytes containining the Y co-ordinate |
|
2645 |
--4 bytes containining the Z co-ordinate |
|
2646 |
--4 bytes containining the PointerNumber |
|
2647 |
||
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
2648 |
if there are 7*4 byte data |
0 | 2649 |
- 4 bytes containing the event type |
2650 |
--4 bytes containining the X co-ordinate |
|
2651 |
--4 bytes containining the Y co-ordinate |
|
2652 |
--4 bytes containining the Z co-ordinate |
|
2653 |
--4 bytes containining the Phi polar coordinate. |
|
2654 |
--4 bytes containining the Theta polar coordinate. |
|
2655 |
--4 bytes containining the rotation angle(alpha) |
|
2656 |
*/ |
|
2657 |
||
2658 |
ESetEvent = 1, |
|
2659 |
||
2660 |
/** |
|
2661 |
For user side SetTip Events |
|
2662 |
Trace data format: |
|
2663 |
- 4 bytes to state containing Tip Info. |
|
2664 |
*/ |
|
2665 |
ESetTipEvent, |
|
2666 |
||
2667 |
/** |
|
2668 |
For SetTilt Events |
|
2669 |
Trace data format: |
|
2670 |
- 4 bytes containing the event type |
|
2671 |
--4 bytes containining the Phi polar coordinate. |
|
2672 |
--4 bytes containining the Theta polar coordinate. |
|
2673 |
*/ |
|
2674 |
ESetTiltEvent, |
|
2675 |
||
2676 |
/** |
|
2677 |
For SetRotation Events |
|
2678 |
Trace data format: |
|
2679 |
- 4 bytes containing the event type |
|
2680 |
--4 bytes containining the rotation angle (alpha) |
|
2681 |
*/ |
|
2682 |
ESetRotationtEvent, |
|
2683 |
||
2684 |
/** |
|
2685 |
For SetPointerNumber Events |
|
2686 |
Trace data format: |
|
2687 |
- 4 bytes containing the Pointer Number |
|
2688 |
*/ |
|
2689 |
ESetPointerNumberEvent, |
|
2690 |
||
2691 |
/** |
|
2692 |
For user side addevents (User::AddEvent) |
|
2693 |
Trace data format: |
|
2694 |
- 4 bytes containing the event type |
|
2695 |
*/ |
|
2696 |
EUserAddEvent, |
|
2697 |
||
2698 |
/** |
|
2699 |
For kernal side addevents (Kern::AddEvent) |
|
2700 |
Trace data format: |
|
2701 |
- 4 bytes containing the event type |
|
2702 |
*/ |
|
2703 |
EKernelAddEvent |
|
2704 |
}; |
|
2705 |
||
2706 |
enum TSymbianKernelSync |
|
2707 |
{ |
|
2708 |
/** |
|
2709 |
A semaphore (DSemaphore) has been created. |
|
2710 |
||
2711 |
Trace data format: |
|
2712 |
- 4 bytes containing trace id (a DSemaphore*) for this semaphore. |
|
2713 |
- 4 bytes containing the owning DThread* or DProcess* |
|
2714 |
- Remaining data is the ASCII name of the semaphore. |
|
2715 |
*/ |
|
2716 |
ESemaphoreCreate=0x00, |
|
2717 |
||
2718 |
/** |
|
2719 |
A semaphore (DSemaphore) has been destroyed. |
|
2720 |
||
2721 |
Trace data format: |
|
2722 |
- 4 bytes containing trace id (a DSemaphore*) for this semaphore. |
|
2723 |
*/ |
|
2724 |
ESemaphoreDestroy=0x01, |
|
2725 |
||
2726 |
/** |
|
2727 |
A semaphore (DSemaphore) has been acquired. |
|
2728 |
||
2729 |
Trace data format: |
|
2730 |
- 4 bytes containing trace id (a DSemaphore*) for this semaphore. |
|
2731 |
*/ |
|
2732 |
ESemaphoreAcquire=0x02, |
|
2733 |
||
2734 |
/** |
|
2735 |
A semaphore (DSemaphore) has been released. |
|
2736 |
||
2737 |
Trace data format: |
|
2738 |
- 4 bytes containing trace id (a DSemaphore*) for this semaphore. |
|
2739 |
*/ |
|
2740 |
ESemaphoreRelease=0x03, |
|
2741 |
||
2742 |
/** |
|
2743 |
A thread has blocked on a semaphore (DSemaphore) |
|
2744 |
||
2745 |
Trace data format: |
|
2746 |
- 4 bytes containing trace id (a DSemaphore*) for this semaphore. |
|
2747 |
*/ |
|
2748 |
ESemaphoreBlock=0x04, |
|
2749 |
||
2750 |
||
2751 |
/** |
|
2752 |
A mutex (DMutex) has been created. |
|
2753 |
||
2754 |
Trace data format: |
|
2755 |
- 4 bytes containing trace id (a DMutex*) for this mutex. |
|
2756 |
- 4 bytes containing the owning DThread* or DProcess* |
|
2757 |
- Remaining data is the ASCII name of the mutex. |
|
2758 |
*/ |
|
2759 |
EMutexCreate=0x10, |
|
2760 |
||
2761 |
/** |
|
2762 |
A mutex (DMutex) has been destroyed. |
|
2763 |
||
2764 |
Trace data format: |
|
2765 |
- 4 bytes containing trace id (a DMutex*) for this mutex. |
|
2766 |
*/ |
|
2767 |
EMutexDestroy=0x11, |
|
2768 |
||
2769 |
/** |
|
2770 |
A mutex (DMutex) has been acquired. |
|
2771 |
||
2772 |
Trace data format: |
|
2773 |
- 4 bytes containing trace id (a DMutex*) for this mutex. |
|
2774 |
*/ |
|
2775 |
EMutexAcquire=0x12, |
|
2776 |
||
2777 |
/** |
|
2778 |
A mutex (DMutex) has been released. |
|
2779 |
||
2780 |
Trace data format: |
|
2781 |
- 4 bytes containing trace id (a DMutex*) for this mutex. |
|
2782 |
*/ |
|
2783 |
EMutexRelease=0x13, |
|
2784 |
||
2785 |
/** |
|
2786 |
A thread has blocked on a mutex (DMutex) |
|
2787 |
||
2788 |
Trace data format: |
|
2789 |
- 4 bytes containing trace id (a DMutex*) for this mutex. |
|
2790 |
*/ |
|
2791 |
EMutexBlock=0x14, |
|
2792 |
||
2793 |
||
2794 |
/** |
|
2795 |
A condition variable (DCondVar) has been created. |
|
2796 |
||
2797 |
Trace data format: |
|
2798 |
- 4 bytes containing trace id (a DCondVar*) for this condition variable. |
|
2799 |
- 4 bytes containing the owning DThread* or DProcess* |
|
2800 |
- Remaining data is the ASCII name of the condition variable. |
|
2801 |
*/ |
|
2802 |
ECondVarCreate=0x20, |
|
2803 |
||
2804 |
/** |
|
2805 |
A condition variable (DCondVar) has been destroyed. |
|
2806 |
||
2807 |
Trace data format: |
|
2808 |
- 4 bytes containing trace id (a DCondVar*) for this condition variable. |
|
2809 |
*/ |
|
2810 |
ECondVarDestroy=0x21, |
|
2811 |
||
2812 |
/** |
|
2813 |
A thread has blocked on a condition variable (DCondVar) |
|
2814 |
||
2815 |
Trace data format: |
|
2816 |
- 4 bytes containing trace id (a DCondVar*) for this condition variable. |
|
2817 |
- 4 bytes containing trace id (DMutex*) for the associated mutex. |
|
2818 |
*/ |
|
2819 |
ECondVarBlock=0x22, |
|
2820 |
||
2821 |
/** |
|
2822 |
A thread has been released from a condition variable (DCondVar) wait |
|
2823 |
||
2824 |
Trace data format: |
|
2825 |
- 4 bytes containing trace id (a DCondVar*) for this condition variable. |
|
2826 |
- 4 bytes containing trace id (DMutex*) for the associated mutex. |
|
2827 |
*/ |
|
2828 |
ECondVarWakeUp=0x23, |
|
2829 |
||
2830 |
/** |
|
2831 |
A condition variable (DCondVar) has been signalled |
|
2832 |
||
2833 |
Trace data format: |
|
2834 |
- 4 bytes containing trace id (a DCondVar*) for this condition variable. |
|
2835 |
- 4 bytes containing trace id (DMutex*) for the associated mutex. |
|
2836 |
*/ |
|
2837 |
ECondVarSignal=0x24, |
|
2838 |
||
2839 |
/** |
|
2840 |
A condition variable (DCondVar) has been signalled in broadcast mode. |
|
2841 |
||
2842 |
Trace data format: |
|
2843 |
- 4 bytes containing trace id (a DCondVar*) for this condition variable. |
|
2844 |
- 4 bytes containing trace id (DMutex*) for the associated mutex. |
|
2845 |
*/ |
|
2846 |
ECondVarBroadcast=0x25, |
|
2847 |
||
2848 |
}; |
|
2849 |
||
2850 |
enum TFlexibleMemModel |
|
2851 |
{ |
|
2852 |
/** |
|
2853 |
A memory object has been created. |
|
2854 |
||
2855 |
Trace data format: |
|
2856 |
- 4 bytes containing the memory object id (DMemoryObject*). |
|
2857 |
- 4 bytes containing the size of the memory in pages. |
|
2858 |
*/ |
|
2859 |
EMemoryObjectCreate, |
|
2860 |
||
2861 |
/** |
|
2862 |
A memory object has been destroyed. |
|
2863 |
||
2864 |
Trace data format: |
|
2865 |
- 4 bytes containing the memory object id (DMemoryObject*). |
|
2866 |
*/ |
|
2867 |
EMemoryObjectDestroy, |
|
2868 |
||
2869 |
/** |
|
2870 |
A memory mapping has been created. |
|
2871 |
||
2872 |
Trace data format: |
|
2873 |
- 4 bytes containing the memory mapping id (DMemoryMapping*). |
|
2874 |
- 4 bytes containing the memory object id (DMemoryObject*). |
|
2875 |
- 4 bytes containing the offset of the mapping into the memory object, in pages |
|
2876 |
- 4 bytes containing the size of the mapping in pages |
|
2877 |
- 2 bytes containing the ASID |
|
2878 |
- 2 spare bytes, currently zero |
|
2879 |
- 4 bytes containing the virtual address the mapping |
|
2880 |
*/ |
|
2881 |
EMemoryMappingCreate, |
|
2882 |
||
2883 |
/** |
|
2884 |
A memory mapping has been destroyed. |
|
2885 |
||
2886 |
Trace data format: |
|
2887 |
- 4 bytes containing the memory mapping id (DMemoryMapping*). |
|
2888 |
*/ |
|
2889 |
EMemoryMappingDestroy, |
|
2890 |
||
2891 |
// The following traces associate memory model objects with the kernel objects that use them |
|
2892 |
||
2893 |
/** |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
2894 |
A memory object is being used for the contents of a chunk. |
0 | 2895 |
|
2896 |
Trace data format: |
|
2897 |
- 4 bytes containing the memory object id (a DMemoryObject*). |
|
2898 |
- 4 bytes containing the chunk id (a DChunk*) |
|
2899 |
*/ |
|
2900 |
EMemoryObjectIsChunk, |
|
2901 |
||
2902 |
/** |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
2903 |
A memory object is being used for the contents of a code segment. |
0 | 2904 |
|
2905 |
Trace data format: |
|
2906 |
- 4 bytes containing the memory object id (a DMemoryObject*). |
|
2907 |
- 4 bytes containing the code segment id (a DCodeSeg*) |
|
2908 |
*/ |
|
2909 |
EMemoryObjectIsCodeSeg, |
|
2910 |
||
2911 |
/** |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
2912 |
A memory object is being used for process static data. |
0 | 2913 |
|
2914 |
Trace data format: |
|
2915 |
- 4 bytes containing the memory object id (a DMemoryObject*). |
|
2916 |
- 4 bytes containing the process id (a DProcess*) |
|
2917 |
*/ |
|
2918 |
EMemoryObjectIsProcessStaticData, |
|
2919 |
||
2920 |
/** |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
2921 |
A memory object is being used for DLL static data. |
0 | 2922 |
|
2923 |
Trace data format: |
|
2924 |
- 4 bytes containing the memory object id (a DMemoryObject*). |
|
2925 |
- 4 bytes containing the code segment id (a DCodeSeg*) |
|
2926 |
- 4 bytes containing the process id (a DProcess*) |
|
2927 |
*/ |
|
2928 |
EMemoryObjectIsDllStaticData, |
|
2929 |
||
2930 |
/** |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
2931 |
A memory object is being used for a thread's supervisor stack. |
0 | 2932 |
|
2933 |
Trace data format: |
|
2934 |
- 4 bytes containing the memory object id (a DMemoryObject*). |
|
2935 |
- 4 bytes containing the thread id (a DThread*) |
|
2936 |
*/ |
|
2937 |
EMemoryObjectIsSupervisorStack, |
|
2938 |
||
2939 |
/** |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
2940 |
A memory object is being used for a thread's user stack. |
0 | 2941 |
|
2942 |
Trace data format: |
|
2943 |
- 4 bytes containing the memory object id (a DMemoryObject*). |
|
2944 |
- 4 bytes containing the thread id (a DThread*) |
|
2945 |
*/ |
|
2946 |
EMemoryObjectIsUserStack, |
|
2947 |
||
2948 |
/** |
|
2949 |
Identifies the Address Space ID (ASID) used for a process. |
|
2950 |
||
2951 |
Trace data format: |
|
2952 |
- 4 bytes containing the process id (a DProcess*) |
|
2953 |
- 2 bytes containing the ASID |
|
2954 |
- 2 spare bytes, currently zero |
|
2955 |
*/ |
|
2956 |
EAddressSpaceId |
|
2957 |
}; |
|
2958 |
||
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
2959 |
/** |
0 | 2960 |
Enumeration of sub-category values for trace category EIic. |
2961 |
@see EIic |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
2962 |
@prototype 9.6 |
0 | 2963 |
*/ |
2964 |
enum TIic |
|
2965 |
{ |
|
2966 |
/** |
|
2967 |
Trace output for the invocation by the PSL of registering an array of pointers to channels with the IIC bus controller. |
|
2968 |
||
2969 |
Trace data format: |
|
2970 |
- 4 bytes containing the address of the array |
|
2971 |
- 4 bytes containing the number of channels in the array |
|
2972 |
*/ |
|
2973 |
ERegisterChansStartPsl = 0, |
|
2974 |
||
2975 |
/** |
|
2976 |
Trace output for the start of the PIL registering an array of pointers to channels with the IIC bus controller. |
|
2977 |
||
2978 |
Trace data format: |
|
2979 |
- 4 bytes containing the address of the array |
|
2980 |
- 4 bytes containing the number of channels in the array |
|
2981 |
- 4 bytes containing the number of channels registered with the controller prior to this point |
|
2982 |
*/ |
|
2983 |
ERegisterChansStartPil = 1, |
|
2984 |
||
2985 |
/** |
|
2986 |
Trace output for the end of the PIL registering an array of pointers to channels with the IIC bus controller. |
|
2987 |
||
2988 |
Trace data format: |
|
2989 |
- 4 bytes containing the address of the array |
|
2990 |
- 4 bytes containing the number of channels now registered with the controller |
|
2991 |
*/ |
|
2992 |
ERegisterChansEndPil = 2, |
|
2993 |
||
2994 |
/** |
|
2995 |
Trace output for the end of the PSL registering an array of pointers to channels with the IIC bus controller. |
|
2996 |
||
2997 |
Trace data format: |
|
2998 |
- 4 bytes containing the address of the array |
|
2999 |
- 4 bytes containing the number of channels in the array |
|
3000 |
- 4 bytes containing the error code returned by the IIC bus controller |
|
3001 |
*/ |
|
3002 |
ERegisterChansEndPsl = 3, |
|
3003 |
||
3004 |
/** |
|
3005 |
Trace output for the start of the PSL de-registering a channel with the IIC bus controller. |
|
3006 |
||
3007 |
Trace data format: |
|
3008 |
- 4 bytes containing the address of the channel |
|
3009 |
*/ |
|
3010 |
EDeRegisterChanStartPsl = 4, |
|
3011 |
||
3012 |
/** |
|
3013 |
Trace output for the start of the PIL de-registering a channel with the IIC bus controller. |
|
3014 |
||
3015 |
Trace data format: |
|
3016 |
- 4 bytes containing the address of the channel |
|
3017 |
- 4 bytes containing the number of channels registered with the controller prior to this point |
|
3018 |
*/ |
|
3019 |
EDeRegisterChanStartPil = 5, |
|
3020 |
||
3021 |
/** |
|
3022 |
Trace output for the end of the PSL de-registering a channel with the IIC bus controller. |
|
3023 |
||
3024 |
Trace data format: |
|
3025 |
- 4 bytes containing the address of the channel |
|
3026 |
- 4 bytes containing the number of channels now registered with the controller |
|
3027 |
*/ |
|
3028 |
EDeRegisterChanEndPil = 6, |
|
3029 |
||
3030 |
/** |
|
3031 |
Trace output for the end of the PSL de-registering a channel with the IIC bus controller. |
|
3032 |
||
3033 |
Trace data format: |
|
3034 |
- 4 bytes containing the address of the channel |
|
3035 |
- 4 bytes containing the error code returned by the IIC bus controller |
|
3036 |
*/ |
|
3037 |
EDeRegisterChanEndPsl = 7, |
|
3038 |
||
3039 |
/** |
|
3040 |
Trace output for the start of a synchronous queue transaction request in the PIL. |
|
3041 |
||
3042 |
Trace data format: |
|
3043 |
- 4 bytes containing the bus realisation variability token |
|
3044 |
- 4 bytes containing the pointer to the transaction object |
|
3045 |
*/ |
|
3046 |
EMQTransSyncStartPil = 8, |
|
3047 |
||
3048 |
/** |
|
3049 |
Trace output for the end of a synchronous queue transaction request in the PIL. |
|
3050 |
||
3051 |
Trace data format: |
|
3052 |
- 4 bytes containing the bus realisation variability token |
|
3053 |
- 4 bytes containing the error code returned by the controller |
|
3054 |
*/ |
|
3055 |
EMQTransSyncEndPil = 9, |
|
3056 |
||
3057 |
/** |
|
3058 |
Trace output for the start of a synchronous queue transaction request in the PIL. |
|
3059 |
||
3060 |
Trace data format: |
|
3061 |
- 4 bytes containing the bus realisation variability token |
|
3062 |
- 4 bytes containing the pointer to the transaction object |
|
3063 |
- 4 bytes containing the pointer to the callback object |
|
3064 |
*/ |
|
3065 |
EMQTransAsyncStartPil = 10, |
|
3066 |
||
3067 |
/** |
|
3068 |
Trace output for the end of a synchronous queue transaction request in the PIL. |
|
3069 |
||
3070 |
Trace data format: |
|
3071 |
- 4 bytes containing the bus realisation variability token |
|
3072 |
- 4 bytes containing the error code returned by the controller |
|
3073 |
*/ |
|
3074 |
EMQTransAsyncEndPil = 11, |
|
3075 |
||
3076 |
/** |
|
3077 |
Trace output for the start of cancelling an asynchronous queue transaction request in the PIL. |
|
3078 |
||
3079 |
Trace data format: |
|
3080 |
- 4 bytes containing the bus realisation variability token |
|
3081 |
- 4 bytes containing the pointer to the transaction object |
|
3082 |
*/ |
|
3083 |
EMCancelTransStartPil = 12, |
|
3084 |
||
3085 |
/** |
|
3086 |
Trace output for the end of cancelling an asynchronous queue transaction request in the PIL. |
|
3087 |
||
3088 |
Trace data format: |
|
3089 |
- 4 bytes containing the pointer to the transaction object |
|
3090 |
- 4 bytes containing the error code returned by the controller |
|
3091 |
*/ |
|
3092 |
EMCancelTransEndPil = 13, |
|
3093 |
||
3094 |
/** |
|
3095 |
Trace output for the start of processing a transaction request in the PIL. |
|
3096 |
||
3097 |
Trace data format: |
|
3098 |
- 4 bytes containing the address of the channel |
|
3099 |
- 4 bytes containing the pointer to the transaction object |
|
3100 |
*/ |
|
3101 |
EMProcessTransStartPil = 14, |
|
3102 |
||
3103 |
/** |
|
3104 |
Trace output for the start of processing a transaction request in the PSL. |
|
3105 |
||
3106 |
Trace data format: |
|
3107 |
- 4 bytes containing the pointer to the transaction object |
|
3108 |
*/ |
|
3109 |
EMProcessTransStartPsl = 15, |
|
3110 |
||
3111 |
/** |
|
3112 |
Trace output for the end of processing a transaction request in the PSL. |
|
3113 |
||
3114 |
Trace data format: |
|
3115 |
- 4 bytes containing the result code |
|
3116 |
*/ |
|
3117 |
EMProcessTransEndPsl = 16, |
|
3118 |
||
3119 |
/** |
|
3120 |
Trace output for the end of processing a transaction request in the PIL. |
|
3121 |
||
3122 |
Trace data format: |
|
3123 |
- 4 bytes containing the address of the channel |
|
3124 |
- 4 bytes containing the pointer to the transaction object |
|
3125 |
- 4 bytes containing the result code |
|
3126 |
- 4 bytes containing the pointer to the client callback object |
|
3127 |
*/ |
|
3128 |
EMProcessTransEndPil = 17, |
|
3129 |
||
3130 |
/** |
|
3131 |
Trace output for the start of synchronously capturing a Slave channel in the PIL. |
|
3132 |
||
3133 |
Trace data format: |
|
3134 |
- 4 bytes containing the bus realisation variability |
|
3135 |
- 4 bytes containing a pointer to device specific configuration option applicable to all transactions |
|
3136 |
*/ |
|
3137 |
ESCaptChanSyncStartPil = 18, |
|
3138 |
||
3139 |
/** |
|
3140 |
Trace output for the start of synchronously capturing a Slave channel in the PSL. |
|
3141 |
||
3142 |
Trace data format: |
|
3143 |
- 4 bytes containing the address of the channel |
|
3144 |
- 4 bytes containing a pointer to device specific configuration option applicable to all transactions |
|
3145 |
*/ |
|
3146 |
ESCaptChanSyncStartPsl = 19, |
|
3147 |
||
3148 |
/** |
|
3149 |
Trace output for the end of synchronously capturing a Slave channel in the PSL. |
|
3150 |
||
3151 |
Trace data format: |
|
3152 |
- 4 bytes containing the address of the channel |
|
3153 |
- 4 bytes containing the result code |
|
3154 |
*/ |
|
3155 |
ESCaptChanSyncEndPsl = 20, |
|
3156 |
||
3157 |
/** |
|
3158 |
Trace output for the end of synchronously capturing a Slave channel in the PIL. |
|
3159 |
||
3160 |
Trace data format: |
|
3161 |
- 4 bytes containing the bus realisation variability |
|
3162 |
- 4 bytes containing the platform-specific cookie that uniquely identifies the channel |
|
3163 |
- 4 bytes containing the result code |
|
3164 |
*/ |
|
3165 |
ESCaptChanSyncEndPil = 21, |
|
3166 |
||
3167 |
/** |
|
3168 |
Trace output for the start of asynchronously capturing a Slave channel in the PIL. |
|
3169 |
||
3170 |
Trace data format: |
|
3171 |
- 4 bytes containing the bus realisation variability |
|
3172 |
- 4 bytes containing a pointer to device specific configuration option applicable to all transactions |
|
3173 |
- 4 bytes containing the pointer to the client callback object |
|
3174 |
*/ |
|
3175 |
ESCaptChanASyncStartPil = 22, |
|
3176 |
||
3177 |
/** |
|
3178 |
Trace output for the start of asynchronously capturing a Slave channel in the PSL. |
|
3179 |
||
3180 |
Trace data format: |
|
3181 |
- 4 bytes containing a pointer to the channel object |
|
3182 |
- 4 bytes containing a pointer to device specific configuration option applicable to all transactions |
|
3183 |
*/ |
|
3184 |
ESCaptChanASyncStartPsl = 23, |
|
3185 |
||
3186 |
/** |
|
3187 |
Trace output for the end of asynchronously capturing a Slave channel in the PSL. |
|
3188 |
||
3189 |
Trace data format: |
|
3190 |
- 4 bytes containing a pointer to the channel object |
|
3191 |
- 4 bytes containing the result code |
|
3192 |
*/ |
|
3193 |
ESCaptChanASyncEndPsl = 24, |
|
3194 |
||
3195 |
/** |
|
3196 |
Trace output for the end of asynchronously capturing a Slave channel in the PIL. |
|
3197 |
||
3198 |
Trace data format: |
|
3199 |
- 4 bytes containing a pointer to the channel object |
|
3200 |
- 4 bytes containing the result code |
|
3201 |
*/ |
|
3202 |
ESCaptChanASyncEndPil = 25, |
|
3203 |
||
3204 |
/** |
|
3205 |
Trace output for the start of releasing a Slave channel in the PIL. |
|
3206 |
||
3207 |
Trace data format: |
|
3208 |
- 4 bytes containing the channel identifier cookie |
|
3209 |
*/ |
|
3210 |
ESRelChanStartPil = 26, |
|
3211 |
||
3212 |
/** |
|
3213 |
Trace output for the start of releasing a Slave channel in the PSL. |
|
3214 |
||
3215 |
Trace data format: |
|
3216 |
- 4 bytes containing a pointer to the channel object |
|
3217 |
*/ |
|
3218 |
ESRelChanStartPsl = 27, |
|
3219 |
||
3220 |
/** |
|
3221 |
Trace output for the end of releasing a Slave channel in the PSL. |
|
3222 |
||
3223 |
Trace data format: |
|
3224 |
- 4 bytes containing a pointer to the channel object |
|
3225 |
- 4 bytes containing the result code |
|
3226 |
*/ |
|
3227 |
ESRelChanEndPsl = 28, |
|
3228 |
||
3229 |
/** |
|
3230 |
Trace output for the end of releasing a Slave channel in the PIL. |
|
3231 |
||
3232 |
Trace data format: |
|
3233 |
- 4 bytes containing the channel identifier cookie |
|
3234 |
- 4 bytes containing the result code |
|
3235 |
*/ |
|
3236 |
ESRelChanEndPil = 29, |
|
3237 |
||
3238 |
/** |
|
3239 |
Trace output for the start of registering an Rx buffer for a Slave channel in the PIL. |
|
3240 |
||
3241 |
Trace data format: |
|
3242 |
- 4 bytes containing a pointer to the receive buffer |
|
3243 |
- 4 bytes containing the number of buffer bytes used to store a word. |
|
3244 |
- 4 bytes containing the number of words expected to be received. |
|
3245 |
- 4 bytes containing offset from the start of the buffer where to store the received data. |
|
3246 |
*/ |
|
3247 |
ESRegRxBufStartPil = 30, |
|
3248 |
||
3249 |
/** |
|
3250 |
Trace output for the start of registering an Rx buffer for a Slave channel in the PSL. |
|
3251 |
||
3252 |
Trace data format: |
|
3253 |
- 4 bytes containing a pointer to the channel object |
|
3254 |
- 4 bytes containing a pointer to the receive buffer |
|
3255 |
- 4 bytes containing the number of buffer bytes used to store a word. |
|
3256 |
- 4 bytes containing the number of words expected to be received. |
|
3257 |
- 4 bytes containing offset from the start of the buffer where to store the received data. |
|
3258 |
*/ |
|
3259 |
ESRegRxBufStartPsl = 31, |
|
3260 |
||
3261 |
/** |
|
3262 |
Trace output for the end of registering an Rx buffer for a Slave channel in the PSL. |
|
3263 |
||
3264 |
Trace data format: |
|
3265 |
- 4 bytes containing a pointer to the channel object |
|
3266 |
- 4 bytes containing the result code |
|
3267 |
*/ |
|
3268 |
ESRegRxBufEndPsl = 32, |
|
3269 |
||
3270 |
/** |
|
3271 |
Trace output for the end of registering an Rx buffer for a Slave channel in the PIL. |
|
3272 |
||
3273 |
Trace data format: |
|
3274 |
- 4 bytes containing the result code |
|
3275 |
*/ |
|
3276 |
ESRegRxBufEndPil = 33, |
|
3277 |
||
3278 |
/** |
|
3279 |
Trace output for the start of registering an Tx buffer for a Slave channel in the PIL. |
|
3280 |
||
3281 |
Trace data format: |
|
3282 |
- 4 bytes containing a pointer to the transmit buffer |
|
3283 |
- 4 bytes containing the number of buffer bytes used to store a word. |
|
3284 |
- 4 bytes containing the number of words expected to be transmitted. |
|
3285 |
- 4 bytes containing offset from the start of the buffer from where to transmit data. |
|
3286 |
*/ |
|
3287 |
ESRegTxBufStartPil = 34, |
|
3288 |
||
3289 |
/** |
|
3290 |
Trace output for the start of registering an Tx buffer for a Slave channel in the PSL. |
|
3291 |
||
3292 |
Trace data format: |
|
3293 |
- 4 bytes containing a pointer to the channel object |
|
3294 |
- 4 bytes containing a pointer to the transmit buffer |
|
3295 |
- 4 bytes containing the number of buffer bytes used to store a word. |
|
3296 |
- 4 bytes containing the number of words expected to be transmitted. |
|
3297 |
- 4 bytes containing offset from the start of the buffer from where to transmit data. |
|
3298 |
*/ |
|
3299 |
ESRegTxBufStartPsl = 35, |
|
3300 |
||
3301 |
/** |
|
3302 |
Trace output for the end of registering an Tx buffer for a Slave channel in the PSL. |
|
3303 |
||
3304 |
Trace data format: |
|
3305 |
- 4 bytes containing a pointer to the channel object |
|
3306 |
- 4 bytes containing the result code |
|
3307 |
*/ |
|
3308 |
ESRegTxBufEndPsl = 36, |
|
3309 |
||
3310 |
/** |
|
3311 |
Trace output for the start of setting a notification for a Slave channel in the PIL. |
|
3312 |
||
3313 |
Trace data format: |
|
3314 |
- 4 bytes containing the result code |
|
3315 |
*/ |
|
3316 |
ESRegTxBufEndPil = 37, |
|
3317 |
||
3318 |
/** |
|
3319 |
Trace output for the start of setting a notification for a Slave channel in the PIL. |
|
3320 |
||
3321 |
Trace data format: |
|
3322 |
- 4 bytes containing the channel identifier cookie |
|
3323 |
- 4 bytes containing the trigger value |
|
3324 |
*/ |
|
3325 |
ESNotifTrigStartPil = 38, |
|
3326 |
||
3327 |
/** |
|
3328 |
Trace output for the start of setting a notification for a Slave channel in the PSL. |
|
3329 |
||
3330 |
Trace data format: |
|
3331 |
- 4 bytes containing the trigger value |
|
3332 |
*/ |
|
3333 |
ESNotifTrigStartPsl = 39, |
|
3334 |
||
3335 |
/** |
|
3336 |
Trace output for the end of setting a notification for a Slave channel in the PSL. |
|
3337 |
||
3338 |
Trace data format: |
|
3339 |
- 4 bytes containing the result code |
|
3340 |
*/ |
|
3341 |
ESNotifTrigEndPsl = 40, |
|
3342 |
||
3343 |
/** |
|
3344 |
Trace output for the end of setting a notification for a Slave channel in the PIL. |
|
3345 |
||
3346 |
Trace data format: |
|
3347 |
- 4 bytes containing the channel identifier cookie |
|
3348 |
- 4 bytes containing the result code |
|
3349 |
*/ |
|
3350 |
ESNotifTrigEndPil = 41, |
|
3351 |
||
3352 |
/** |
|
3353 |
Trace output for the start of a StaticExtension operaton for a MasterSlave channel in the PIL. |
|
3354 |
||
3355 |
Trace data format: |
|
3356 |
- 4 bytes containing a token containing the bus realisation variability or the channel identifier cookie for this client. |
|
3357 |
- 4 bytes containing a function identifier |
|
3358 |
- 4 bytes containing an argument to be passed to the function |
|
3359 |
- 4 bytes containing an argument to be passed to the function |
|
3360 |
*/ |
|
3361 |
EMSStatExtStartPil = 42, |
|
3362 |
||
3363 |
/** |
|
3364 |
Trace output for the end of a StaticExtension operation for a MasterSlave channel in the PIL. |
|
3365 |
||
3366 |
Trace data format: |
|
3367 |
- 4 bytes containing a token containing the bus realisation variability or the channel identifier cookie for this client. |
|
3368 |
- 4 bytes containing a function identifier |
|
3369 |
- 4 bytes containing the result code |
|
3370 |
*/ |
|
3371 |
EMSStatExtEndPil = 43, |
|
3372 |
||
3373 |
/** |
|
3374 |
Trace output for the start of a StaticExtension operation for a Master channel in the PIL. |
|
3375 |
||
3376 |
Trace data format: |
|
3377 |
- 4 bytes containing a token containing the bus realisation variability or the channel identifier cookie for this client. |
|
3378 |
- 4 bytes containing a function identifier |
|
3379 |
- 4 bytes containing an argument to be passed to the function |
|
3380 |
- 4 bytes containing an argument to be passed to the function |
|
3381 |
*/ |
|
3382 |
EMStatExtStartPil = 44, |
|
3383 |
||
3384 |
/** |
|
3385 |
Trace output for the start of a StaticExtension operation for a Master channel in the PSL. |
|
3386 |
||
3387 |
Trace data format: |
|
3388 |
- 4 bytes containing a pointer to the channel object |
|
3389 |
- 4 bytes containing a function identifier |
|
3390 |
- 4 bytes containing an argument to be passed to the function |
|
3391 |
- 4 bytes containing an argument to be passed to the function |
|
3392 |
*/ |
|
3393 |
EMStatExtStartPsl = 45, |
|
3394 |
||
3395 |
/** |
|
3396 |
Trace output for the end of a StaticExtension operation for a Master channel in the PSL. |
|
3397 |
||
3398 |
Trace data format: |
|
3399 |
- 4 bytes containing a pointer to the channel object |
|
3400 |
- 4 bytes containing a function identifier |
|
3401 |
- 4 bytes containing the result code |
|
3402 |
*/ |
|
3403 |
EMStatExtEndPsl = 46, |
|
3404 |
||
3405 |
/** |
|
3406 |
Trace output for the end of a StaticExtension operation for a Master channel in the PIL. |
|
3407 |
||
3408 |
Trace data format: |
|
3409 |
- 4 bytes containing a token containing the bus realisation variability or the channel identifier cookie for this client. |
|
3410 |
- 4 bytes containing a function identifier |
|
3411 |
- 4 bytes containing the result code |
|
3412 |
*/ |
|
3413 |
EMStatExtEndPil = 47, |
|
3414 |
||
3415 |
/** |
|
3416 |
Trace output for the start of a StaticExtension operation for a Slave channel in the PIL. |
|
3417 |
||
3418 |
Trace data format: |
|
3419 |
- 4 bytes containing a token containing the bus realisation variability or the channel identifier cookie for this client. |
|
3420 |
- 4 bytes containing a function identifier |
|
3421 |
- 4 bytes containing an argument to be passed to the function |
|
3422 |
- 4 bytes containing an argument to be passed to the function |
|
3423 |
*/ |
|
3424 |
ESStatExtStartPil = 48, |
|
3425 |
||
3426 |
/** |
|
3427 |
Trace output for the start of a StaticExtension operation for a Slave channel in the PSL. |
|
3428 |
||
3429 |
Trace data format: |
|
3430 |
- 4 bytes containing a pointer to the channel object |
|
3431 |
- 4 bytes containing a function identifier |
|
3432 |
- 4 bytes containing an argument to be passed to the function |
|
3433 |
- 4 bytes containing an argument to be passed to the function |
|
3434 |
*/ |
|
3435 |
ESStatExtStartPsl = 49, |
|
3436 |
||
3437 |
/** |
|
3438 |
Trace output for the end of a StaticExtension operation for a Slave channel in the PSL. |
|
3439 |
||
3440 |
Trace data format: |
|
3441 |
- 4 bytes containing a pointer to the channel object |
|
3442 |
- 4 bytes containing a function identifier |
|
3443 |
- 4 bytes containing the result code |
|
3444 |
*/ |
|
3445 |
ESStatExtEndPsl = 50, |
|
3446 |
/** |
|
3447 |
Trace output for the end of a StaticExtension operation for a Slave channel in the PIL. |
|
3448 |
||
3449 |
Trace data format: |
|
3450 |
- 4 bytes containing a token containing the bus realisation variability or the channel identifier cookie for this client. |
|
3451 |
- 4 bytes containing a function identifier |
|
3452 |
- 4 bytes containing the result code |
|
3453 |
*/ |
|
3454 |
ESStatExtEndPil = 51 |
|
3455 |
}; |
|
3456 |
||
3457 |
/** |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
3458 |
Enumeration of sub-category values for trace category EHSched. |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
3459 |
@see EHSched |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
3460 |
@prototype 9.6 |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
3461 |
*/ |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
3462 |
enum THSched |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
3463 |
{ |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
3464 |
/** |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
3465 |
Trace output when a thread has been processed by the load balancer |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
3466 |
Trace data format: |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
3467 |
- 4 bytes containing pointer to thread |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
3468 |
- 4 bytes containing flags indicating result of balancing |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
3469 |
*/ |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
3470 |
ELbDone = 0, |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
3471 |
}; |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
3472 |
|
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
3473 |
/** |
0 | 3474 |
Calculate the address of the next trace record. |
3475 |
@param aCurrentRecord A pointer to a trace record. |
|
3476 |
@return The address of the trace record which follows aCurrentRecord. |
|
3477 |
*/ |
|
3478 |
inline static TUint8* NextRecord(TAny* aCurrentRecord); |
|
3479 |
||
3480 |
#ifdef __KERNEL_MODE__ |
|
3481 |
||
3482 |
/** |
|
3483 |
Create initial trace output required for the specified trace category. |
|
3484 |
E.g. For the EThreadIdentification category, this will cause traces which identify |
|
3485 |
all threads already in existence at this point. |
|
3486 |
||
3487 |
@aCategory The trace category, or -1 to indicate all trace categories. |
|
3488 |
||
3489 |
@publishedPartner |
|
3490 |
@released |
|
3491 |
*/ |
|
3492 |
IMPORT_C static void Prime(TInt aCategory=-1); |
|
3493 |
||
3494 |
/** |
|
3495 |
Prototype for function which is called to output trace records. |
|
3496 |
I.e. as set by SetHandler(). |
|
3497 |
||
3498 |
The handler function should output all values which are appropriate for the |
|
3499 |
trace as specified in aHeader. |
|
3500 |
||
3501 |
@param aHeader The 4 bytes for the trace header. |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
3502 |
@param aHeader2 The second header word. |
0 | 3503 |
(If EHeader2Present is set in the header flags.) |
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
3504 |
@param aContext The context id. |
0 | 3505 |
(If EContextIdPresent is set in the header flags.) |
3506 |
@param a1 The first four bytes of trace data. |
|
3507 |
(Only if the header size indicates that this is present.) |
|
3508 |
@param a2 The second four bytes of trace data. |
|
3509 |
(Only if the header size indicates that this is present.) |
|
3510 |
@param a3 This is either the third four bytes of trace data, if |
|
3511 |
the header size indicates there is between 9 and 12 bytes |
|
3512 |
of trace data. If more than 12 of trace data are indicated, then |
|
3513 |
a3 contains a pointer to the remaining trace data, bytes 8 trough to N. |
|
3514 |
This trace data is word aligned. |
|
3515 |
@param aExtra The 'extra' value. |
|
3516 |
(If EExtraPresent is set in the header flags.) |
|
3517 |
@param aPc The Program Counter value. |
|
3518 |
(If EPcPresent is set in the header flags.) |
|
3519 |
||
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
3520 |
@return True, if the trace handler is enabled and outputting trace. |
0 | 3521 |
False otherwise. |
3522 |
||
3523 |
Here is an example implementation of a trace handler: |
|
3524 |
||
3525 |
@code |
|
3526 |
TInt size = (aHeader>>BTrace::ESizeIndex*8)&0xff; |
|
3527 |
TInt flags = (aHeader>>BTrace::EFlagsIndex*8)&0xff; |
|
3528 |
Output(aHeader), size -= 4; |
|
3529 |
if(flags&BTrace::EHeader2Present) |
|
3530 |
Output(aHeader2), size -= 4; |
|
3531 |
if(flags&BTrace::EContextIdPresent) |
|
3532 |
Output(aContext), size -= 4; |
|
3533 |
if(flags&BTrace::EPcPresent) |
|
3534 |
Output(aPc), size -= 4; |
|
3535 |
if(flags&BTrace::EExtraPresent) |
|
3536 |
Output(aExtra), size -= 4; |
|
3537 |
if(size<=0) |
|
3538 |
return ETrue; |
|
3539 |
Output(a1), size -= 4; |
|
3540 |
if(size<=0) |
|
3541 |
return ETrue; |
|
3542 |
Output(a2), size -= 4; |
|
3543 |
if(size<=0) |
|
3544 |
return ETrue; |
|
3545 |
if(size<=4) |
|
3546 |
Output(a3); |
|
3547 |
else |
|
3548 |
{ |
|
3549 |
TUint32* data = (TUint32*)a3; |
|
3550 |
TUint32* end = (TUint32*)(a3+size); |
|
3551 |
do Output(*data++); while(data<end); |
|
3552 |
} |
|
3553 |
return ETrue; |
|
3554 |
@endcode |
|
3555 |
||
3556 |
The trace handler may add timestamp values to the trace it outputs, in which case |
|
3557 |
it should modify the flags and size in aHeader accordingly, before outputting this value. |
|
3558 |
The Timestamp and/or Timestamp2 should be output, in that order, between the Header2 and |
|
3559 |
Context ID values. |
|
3560 |
||
3561 |
IMPORTANT NOTES. |
|
3562 |
- The handler must not make use of any kernel APIs, apart from TDfc::RawAdd(). (This is |
|
3563 |
because kernel APIs may contain tracing and this would result in deadlock of the system.) |
|
3564 |
- The trace handler must not access or modify arguments which are not indicated as |
|
3565 |
being present by their flag in aHeader or aHeader2. |
|
3566 |
In particular, on ARM CPUs, the values a2, a3, aExtra and aPc are stored on the stack |
|
3567 |
and the caller of this function may not have created these arguments before calling the |
|
3568 |
trace handler. |
|
3569 |
- The handler may be called in any context and in a re-entrant manner. Implementations must |
|
3570 |
be designed to cope with this. |
|
3571 |
- The interrupt disable status must not be reduced by the trace handler during its operation. |
|
3572 |
E.g. if IRQs are disabled on entry, the handler must not cause them to become enabled |
|
3573 |
at any point. |
|
3574 |
||
3575 |
@pre Call in any context. |
|
3576 |
@post Interrupt enable status unchanged. |
|
3577 |
||
3578 |
@publishedPartner |
|
3579 |
@released |
|
3580 |
*/ |
|
3581 |
typedef TBool(*THandler)(TUint32 aHeader,TUint32 aHeader2,const TUint32 aContext,const TUint32 a1,const TUint32 a2,const TUint32 a3,const TUint32 aExtra,const TUint32 aPc); |
|
3582 |
||
3583 |
||
3584 |
/** |
|
3585 |
Set the function which will receive all trace records. |
|
3586 |
@return The handler function which existed before this function was called. |
|
3587 |
@publishedPartner |
|
3588 |
@released |
|
3589 |
*/ |
|
3590 |
IMPORT_C static BTrace::THandler SetHandler(BTrace::THandler aHandler); |
|
3591 |
||
3592 |
||
3593 |
/** |
|
3594 |
Set the trace filter bit for the specified category. |
|
3595 |
||
3596 |
@param aCategory A category value from enum BTrace::TCategory. |
|
3597 |
@param aValue The new filter value for the category. |
|
3598 |
1 means traces of this category are output, 0 means they are suppressed. |
|
3599 |
Other values must not be used. |
|
3600 |
||
3601 |
@return The previous value of the filter for the category, 0 or 1. |
|
3602 |
Or KErrNotSupported if this category is not supported by this build of the kernel. |
|
3603 |
@publishedPartner |
|
3604 |
@released |
|
3605 |
*/ |
|
3606 |
IMPORT_C static TInt SetFilter(TUint aCategory, TBool aValue); |
|
3607 |
||
3608 |
||
3609 |
/** |
|
3610 |
Modify the secondary trace filter to add or remove the specified UID. |
|
3611 |
||
3612 |
This method can not be used to disable a UID key if SetFilter2(TInt aGlobalFilter) |
|
3613 |
has been used to set the filter to pass all traces. Such attempts result in a return |
|
3614 |
code of KErrNotSupported. |
|
3615 |
||
3616 |
@param aUid The UID to filter. |
|
3617 |
@param aValue The new filter value for the UID. |
|
3618 |
1 means traces with this UID are output, 0 means they are suppressed. |
|
3619 |
Other values must not be used. |
|
3620 |
||
3621 |
@return The previous value of the filter for the UID, 0 or 1, if operation is successful. |
|
3622 |
Otherwise, a negative number representing a system wide error code. |
|
3623 |
(E.g. KErrNoMemory.) |
|
3624 |
||
3625 |
@pre Call in a thread context. |
|
3626 |
||
3627 |
@publishedPartner |
|
3628 |
@released |
|
3629 |
*/ |
|
3630 |
IMPORT_C static TInt SetFilter2(TUint32 aUid, TBool aValue); |
|
3631 |
||
3632 |
||
3633 |
/** |
|
3634 |
Set the secondary trace filter to include only the specified UIDs. |
|
3635 |
||
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
3636 |
@param aUids Pointer to array of UIDs. |
0 | 3637 |
@param aNumUids Number of UID values pointer to by \a aUid. |
3638 |
||
3639 |
@return KErrNone on success. |
|
3640 |
Otherwise, a negative number representing a system wide error code. |
|
3641 |
(E.g. KErrNoMemory.) |
|
3642 |
||
3643 |
@pre Call in a thread context. |
|
3644 |
||
3645 |
@publishedPartner |
|
3646 |
@released |
|
3647 |
*/ |
|
3648 |
IMPORT_C static TInt SetFilter2(const TUint32* aUids, TInt aNumUids); |
|
3649 |
||
3650 |
||
3651 |
/** |
|
3652 |
Set the secondary trace filter to pass or reject every trace. |
|
3653 |
||
3654 |
@param aGlobalFilter If 0, the secondary filter will reject |
|
3655 |
all traces; if 1, all traces are passed |
|
3656 |
by the filter. |
|
3657 |
Other values have no effect. |
|
3658 |
||
3659 |
@return The previous value of the global filter, or -1 if the global filter |
|
3660 |
was not previously set. |
|
3661 |
||
3662 |
@pre Call in a thread context. |
|
3663 |
||
3664 |
@publishedPartner |
|
3665 |
@released |
|
3666 |
*/ |
|
3667 |
IMPORT_C static TInt SetFilter2(TInt aGlobalFilter); |
|
3668 |
||
3669 |
||
3670 |
/** |
|
3671 |
Get the contents of the secondary trace filter. |
|
3672 |
||
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
3673 |
@param[out] aUids Pointer to array of UIDs contained in the secondary filter. |
0 | 3674 |
Ownership of this array is passed to the caller of this |
3675 |
function, which is then responsible for deleting it. |
|
3676 |
If filter is empty, \a aUid equals zero. |
|
3677 |
@param[out] aGlobalFilter Set to 1 if the secondary filter passes all traces. |
|
3678 |
Set to 0 if the secondary filter rejects all traces. |
|
3679 |
Set to -1 if the secondary filter operates by UIDs contained in traces. |
|
3680 |
||
3681 |
@return Number of UIDs in returned array, if operation is successful. |
|
3682 |
Otherwise, a negative number representing a system wide error code. |
|
3683 |
||
3684 |
||
3685 |
@pre Call in a thread context. |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
3686 |
@pre Calling thread must be in a critical section. |
0 | 3687 |
|
3688 |
@publishedPartner |
|
3689 |
@released |
|
3690 |
*/ |
|
3691 |
IMPORT_C static TInt Filter2(TUint32*& aUids, TInt& aGlobalFilter); |
|
3692 |
||
3693 |
||
3694 |
/** |
|
3695 |
Get the trace filter bit for the specified category. |
|
3696 |
||
3697 |
@param aCategory A category value from enum BTrace::TCategory, |
|
3698 |
@return The value of the filter for the category, 0 or 1. |
|
3699 |
Or KErrNotSupported if this category is not supported by this build of the kernel. |
|
3700 |
||
3701 |
@publishedPartner |
|
3702 |
@released |
|
3703 |
*/ |
|
3704 |
inline static TInt Filter(TUint aCategory); |
|
3705 |
||
3706 |
/** |
|
3707 |
Get a pointer to the spinlock used to serialise BTrace output on SMP systems. |
|
3708 |
||
3709 |
@internalComponent |
|
3710 |
*/ |
|
3711 |
IMPORT_C static TSpinLock* LockPtr(); |
|
3712 |
||
3713 |
||
3714 |
/** |
|
3715 |
Enumeration of control functions which can be implemented by the BTrace handler. |
|
3716 |
||
3717 |
These values are passed to #Control to indicate the requested operation and are |
|
3718 |
passed unaltered to the BTrace implementation's control function as specified by |
|
3719 |
SetHandlers(). |
|
3720 |
||
3721 |
@see #Control |
|
3722 |
@see #TControlFunction |
|
3723 |
*/ |
|
3724 |
enum TControl |
|
3725 |
{ |
|
3726 |
/** |
|
3727 |
Called to indicate that the system has crashed. Typical response to this call |
|
3728 |
is to disable tracing so that debug monitor activity doesn't generate any additional |
|
3729 |
trace. |
|
3730 |
||
3731 |
As this function is called after the system is crashed its implementation must not |
|
3732 |
make use of any APIs which require a running system, it must also not re-enable |
|
3733 |
interrupts. |
|
3734 |
||
3735 |
ControlFunction argument meaning: None, ignore. |
|
3736 |
||
3737 |
ControlFunction returns nothing, ignore. |
|
3738 |
*/ |
|
3739 |
ECtrlSystemCrashed, |
|
3740 |
||
3741 |
/** |
|
3742 |
Called by crash monitor to request first block of data from any memory resident |
|
3743 |
trace buffer. A size of zero should be returned if the buffer is empty. |
|
3744 |
||
3745 |
This should be a non-destructive operation if possible. I.e. the contents of the |
|
3746 |
buffer should be capable of being read multiple times by issuing repeated |
|
3747 |
ECtrlCrashReadFirst/ECtrlCrashReadNext sequences. |
|
3748 |
||
3749 |
As this function is called after the system is crashed its implementation must not |
|
3750 |
make use of any APIs which require a running system, it must also not re-enable |
|
3751 |
interrupts. |
|
3752 |
||
3753 |
ControlFunction argument meaning: |
|
3754 |
- aArg1 should be treated as a TUint8*& and set to the start address of the trace data. |
|
3755 |
- aArg2 should be treated as a TUint& and set to the length of the trace data. |
|
3756 |
||
3757 |
ControlFunction returns KErrNone if successful, otherwise one of the other system wide |
|
3758 |
error codes. |
|
3759 |
*/ |
|
3760 |
ECtrlCrashReadFirst, |
|
3761 |
||
3762 |
/** |
|
3763 |
Called by crash monitor after using ECrashReadFirst, to request subsequent |
|
3764 |
blocks of data from the trace buffer. A size of zero should be returned if |
|
3765 |
the end of the buffer has been reached. |
|
3766 |
||
3767 |
As this function is called after the system is crashed its implementation must not |
|
3768 |
make use of any APIs which require a running system, it must also not re-enable |
|
3769 |
interrupts. |
|
3770 |
||
3771 |
ControlFunction argument meaning: |
|
3772 |
aArg1 should be treated as a TUint8** and set to the start address of the trace data. |
|
3773 |
aArg2 should be treated as a TUint* and set to the length of the trace data. |
|
3774 |
||
3775 |
ControlFunction returns KErrNone if successful, otherwise one of the other system wide |
|
3776 |
error codes. |
|
3777 |
*/ |
|
3778 |
ECtrlCrashReadNext |
|
3779 |
}; |
|
3780 |
||
3781 |
/** |
|
3782 |
Prototype for function callback called by #Control. |
|
3783 |
I.e. as set by SetHandlers(). |
|
3784 |
*/ |
|
3785 |
typedef TInt(*TControlFunction)(TControl aFunction, TAny* aArg1, TAny* aArg2); |
|
3786 |
||
3787 |
/** |
|
3788 |
Call the BTrace handlers control function to perform the function. |
|
3789 |
||
3790 |
@param aFunction A value from TControl specifying the requested operation. |
|
3791 |
@param aArg1 First argument for the operation. See enum TControl. |
|
3792 |
@param aArg1 Second argument for the operation. See enum TControl. |
|
3793 |
||
3794 |
@return KErrNone if successful, |
|
3795 |
KErrNotSupported if the function isn't supported. |
|
3796 |
otherwise one of the other system wide error codes. |
|
3797 |
||
3798 |
@see TControl. |
|
3799 |
*/ |
|
3800 |
IMPORT_C static TInt Control(TControl aFunction, TAny* aArg1=0, TAny* aArg2=0); |
|
3801 |
||
3802 |
/** |
|
3803 |
Set both the function which will receive all trace records, and the |
|
3804 |
control function which will be called by each use of #Control. |
|
3805 |
||
3806 |
@param aNewHandler The new handler to receive trace. |
|
3807 |
@param aNewControl The new handler for control functions. |
|
3808 |
@param aOldHandler The trace handler which existed prior to this function being called. |
|
3809 |
@param aOldControl The control handler which existed prior to this function being called. |
|
3810 |
*/ |
|
3811 |
IMPORT_C static void SetHandlers(BTrace::THandler aNewHandler, BTrace::TControlFunction aNewControl, BTrace::THandler& aOldHandler, BTrace::TControlFunction& aOldControl); |
|
3812 |
||
3813 |
#endif // __KERNEL_MODE__ |
|
3814 |
||
3815 |
/** |
|
3816 |
Check the trace filters to see if a trace with a given category |
|
3817 |
would be output. |
|
3818 |
||
3819 |
@param aCategory A category value from enum BTrace::TCategory. |
|
3820 |
Only the 8 least significant bits in this value are used; |
|
3821 |
other bits are ignored. |
|
3822 |
||
3823 |
@return True if a trace with this specification would be passed by the filters. |
|
3824 |
False if a trace with this specification would be dropped by the filters. |
|
3825 |
||
3826 |
@publishedPartner |
|
3827 |
@released |
|
3828 |
*/ |
|
3829 |
IMPORT_C static TBool CheckFilter(TUint32 aCategory); |
|
3830 |
||
3831 |
/** |
|
3832 |
Check the trace filters to see if a trace with a given category |
|
3833 |
and filter UID would be output. |
|
3834 |
||
3835 |
@param aCategory A category value from enum BTrace::TCategory. |
|
3836 |
Only the 8 least significant bits in this value are used; |
|
3837 |
other bits are ignored. |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
3838 |
@param aUid A UID to filter on. |
0 | 3839 |
|
3840 |
@return True if a trace with this specification would be passed by the filters. |
|
3841 |
False if a trace with this specification would be dropped by the filters. |
|
3842 |
||
3843 |
@publishedPartner |
|
3844 |
@released |
|
3845 |
*/ |
|
3846 |
IMPORT_C static TBool CheckFilter2(TUint32 aCategory,TUint32 aUid); |
|
3847 |
||
3848 |
/** |
|
3849 |
Common function for BTrace macros. |
|
3850 |
@internalComponent |
|
3851 |
*/ |
|
3852 |
IMPORT_C static TBool Out(TUint32 a0,TUint32 a1,TUint32 a2,TUint32 a3); |
|
3853 |
||
3854 |
/** |
|
3855 |
Common function for BTrace macros. |
|
3856 |
@internalComponent |
|
3857 |
*/ |
|
3858 |
IMPORT_C static TBool OutX(TUint32 a0,TUint32 a1,TUint32 a2,TUint32 a3); |
|
3859 |
||
3860 |
/** |
|
3861 |
Common function for BTrace macros. |
|
3862 |
@internalComponent |
|
3863 |
*/ |
|
3864 |
IMPORT_C static TBool OutN(TUint32 a0, TUint32 a1, TUint32 a2, const TAny* aData, TInt aDataSize); |
|
3865 |
||
3866 |
/** |
|
3867 |
Common function for BTrace macros. |
|
3868 |
@internalComponent |
|
3869 |
*/ |
|
3870 |
IMPORT_C static TBool OutNX(TUint32 a0, TUint32 a1, TUint32 a2, const TAny* aData, TInt aDataSize); |
|
3871 |
||
3872 |
/** |
|
3873 |
Common function for BTrace macros. |
|
3874 |
@internalComponent |
|
3875 |
*/ |
|
3876 |
IMPORT_C static TBool OutBig(TUint32 a0, TUint32 a1, const TAny* aData, TInt aDataSize); |
|
3877 |
||
3878 |
/** |
|
3879 |
Common function for BTrace macros. |
|
3880 |
@internalComponent |
|
3881 |
*/ |
|
3882 |
IMPORT_C static TBool OutFiltered(TUint32 a0,TUint32 a1,TUint32 a2,TUint32 a3); |
|
3883 |
||
3884 |
/** |
|
3885 |
Common function for BTrace macros. |
|
3886 |
@internalComponent |
|
3887 |
*/ |
|
3888 |
IMPORT_C static TBool OutFilteredX(TUint32 a0,TUint32 a1,TUint32 a2,TUint32 a3); |
|
3889 |
||
3890 |
/** |
|
3891 |
Common function for BTrace macros. |
|
3892 |
@internalComponent |
|
3893 |
*/ |
|
3894 |
IMPORT_C static TBool OutFilteredN(TUint32 a0, TUint32 a1, TUint32 a2, const TAny* aData, TInt aDataSize); |
|
3895 |
||
3896 |
/** |
|
3897 |
Common function for BTrace macros. |
|
3898 |
@internalComponent |
|
3899 |
*/ |
|
3900 |
IMPORT_C static TBool OutFilteredNX(TUint32 a0, TUint32 a1, TUint32 a2, const TAny* aData, TInt aDataSize); |
|
3901 |
||
3902 |
/** |
|
3903 |
Common function for BTrace macros. |
|
3904 |
@internalComponent |
|
3905 |
*/ |
|
3906 |
IMPORT_C static TBool OutFilteredBig(TUint32 a0, TUint32 a1, const TAny* aData, TInt aDataSize); |
|
3907 |
||
3908 |
/** |
|
3909 |
@internalComponent |
|
3910 |
*/ |
|
3911 |
static void Init0(); |
|
3912 |
||
3913 |
/** |
|
3914 |
@internalComponent |
|
3915 |
*/ |
|
3916 |
typedef TBool(*TBTrace1)(TUint32); |
|
3917 |
||
3918 |
/** |
|
3919 |
@internalComponent |
|
3920 |
*/ |
|
3921 |
typedef TBool(*TBTrace2)(TUint32,TUint32); |
|
3922 |
||
3923 |
/** |
|
3924 |
@internalComponent |
|
3925 |
*/ |
|
3926 |
typedef TBool(*TBTrace3)(TUint32,TUint32,TUint32); |
|
3927 |
||
3928 |
/** |
|
3929 |
@internalComponent |
|
3930 |
*/ |
|
3931 |
struct SExecExtension |
|
3932 |
{ |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
3933 |
TUint32 iA2; |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
3934 |
TUint32 iA3; |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
3935 |
TUint32 iPc; |
0 | 3936 |
}; |
3937 |
||
3938 |
/** |
|
3939 |
@internalComponent |
|
3940 |
*/ |
|
3941 |
static TBool DoOutBig(TUint32 a0, TUint32 a1, const TAny* aData, TInt aDataSize, TUint32 aContext, TUint32 aPc); |
|
3942 |
||
3943 |
/** |
|
3944 |
@internalComponent |
|
3945 |
*/ |
|
3946 |
static TUint32 BigTraceId; |
|
3947 |
||
3948 |
/** |
|
3949 |
@internalComponent |
|
3950 |
*/ |
|
3951 |
static TBool IsSupported(TUint aCategory); |
|
3952 |
||
3953 |
/** |
|
3954 |
Common function for UTrace calls, that need to set both program counter and format id as well as the normal parameters. |
|
3955 |
||
3956 |
@param aHeader The header (a0) of the trace record. |
|
3957 |
@param aModuleUid A uid (a1) to filter on |
|
3958 |
@param aPc A program counter |
|
3959 |
@param aFormatId A format id |
|
3960 |
@param aData The data to output |
|
3961 |
@param aDataSize The size of the data |
|
3962 |
||
3963 |
@return ETrue if a trace was successfully sent and dealt with by the handler. |
|
3964 |
||
3965 |
@internalComponent |
|
3966 |
@prototype |
|
3967 |
*/ |
|
3968 |
IMPORT_C static TBool OutFilteredPcFormatBig(TUint32 aHeader, TUint32 aModuleUid, TUint32 aPc, TUint16 aFormatId, const TAny* aData, TInt aDataSize); |
|
3969 |
||
3970 |
}; |
|
3971 |
||
3972 |
||
3973 |
/** |
|
3974 |
@internalComponent |
|
3975 |
*/ |
|
3976 |
class DBTraceFilter2 |
|
3977 |
{ |
|
3978 |
public: |
|
3979 |
TUint iNumUids; |
|
3980 |
TInt iAccessCount; |
|
3981 |
TUint32 iUids[1]; |
|
3982 |
||
3983 |
TBool Check(TUint32 aUid); |
|
3984 |
||
3985 |
static DBTraceFilter2* New(TInt aNumUids); |
|
3986 |
static DBTraceFilter2* Open(DBTraceFilter2*volatile& aFilter2); |
|
3987 |
void Close(); |
|
3988 |
||
3989 |
DBTraceFilter2* iCleanupLink; |
|
3990 |
static DBTraceFilter2* iCleanupHead; |
|
3991 |
static void Cleanup(); |
|
3992 |
}; |
|
3993 |
||
3994 |
||
3995 |
||
3996 |
||
3997 |
// |
|
3998 |
// BTraceX macros |
|
3999 |
// |
|
4000 |
||
4001 |
/** |
|
4002 |
@internalComponent |
|
4003 |
*/ |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
4004 |
#define BTRACE_HEADER(aSize,aCategory,aSubCategory) \ |
0 | 4005 |
(((aSize)<<BTrace::ESizeIndex*8) \ |
4006 |
+((aCategory)<<BTrace::ECategoryIndex*8) \ |
|
4007 |
+((aSubCategory)<<BTrace::ESubCategoryIndex*8)) |
|
4008 |
||
4009 |
/** |
|
4010 |
@internalComponent |
|
4011 |
*/ |
|
4012 |
#define BTRACE_HEADER_C(aSize,aCategory,aSubCategory) \ |
|
4013 |
((((aSize)+4)<<BTrace::ESizeIndex*8) \ |
|
4014 |
+((BTrace::EContextIdPresent)<<BTrace::EFlagsIndex*8) \ |
|
4015 |
+((aCategory)<<BTrace::ECategoryIndex*8) \ |
|
4016 |
+((aSubCategory)<<BTrace::ESubCategoryIndex*8)) |
|
4017 |
||
4018 |
/** |
|
4019 |
@internalComponent |
|
4020 |
*/ |
|
4021 |
#define BTRACE_HEADER_P(aSize,aCategory,aSubCategory) \ |
|
4022 |
((((aSize)+4)<<BTrace::ESizeIndex*8) \ |
|
4023 |
+((BTrace::EPcPresent)<<BTrace::EFlagsIndex*8) \ |
|
4024 |
+((aCategory)<<BTrace::ECategoryIndex*8) \ |
|
4025 |
+((aSubCategory)<<BTrace::ESubCategoryIndex*8)) |
|
4026 |
||
4027 |
/** |
|
4028 |
@internalComponent |
|
4029 |
*/ |
|
4030 |
#define BTRACE_HEADER_CP(aSize,aCategory,aSubCategory) \ |
|
4031 |
((((aSize)+8)<<BTrace::ESizeIndex*8) \ |
|
4032 |
+((BTrace::EContextIdPresent|BTrace::EPcPresent)<<BTrace::EFlagsIndex*8) \ |
|
4033 |
+((aCategory)<<BTrace::ECategoryIndex*8) \ |
|
4034 |
+((aSubCategory)<<BTrace::ESubCategoryIndex*8)) |
|
4035 |
||
4036 |
||
4037 |
||
4038 |
/** |
|
4039 |
Output a trace record of the specified category. |
|
4040 |
||
4041 |
The trace record data is 0 bytes in size. |
|
4042 |
||
4043 |
@param aCategory A value from enum BTrace::TCategory, |
|
4044 |
@param aSubCategory Sub-category value between 0 and 255. |
|
4045 |
The meaning of this is dependent on the Category. |
|
4046 |
||
4047 |
@return True if trace is enabled for aCategory, false otherwise. |
|
4048 |
@publishedPartner |
|
4049 |
@released |
|
4050 |
*/ |
|
4051 |
#define BTrace0(aCategory,aSubCategory) \ |
|
4052 |
((BTrace::TBTrace1)BTrace::Out) \ |
|
4053 |
(BTRACE_HEADER(4,(aCategory),(aSubCategory))) |
|
4054 |
||
4055 |
/** |
|
4056 |
Output a trace record of the specified category. |
|
4057 |
||
4058 |
The trace record data is 4 bytes in size. |
|
4059 |
||
4060 |
@param aCategory A value from enum BTrace::TCategory, |
|
4061 |
@param aSubCategory Sub-category value between 0 and 255. |
|
4062 |
The meaning of this is dependent on the Category. |
|
4063 |
@param a1 The 32bit quantity which forms the data of this trace record. |
|
4064 |
||
4065 |
@return True if trace is enabled for aCategory, false otherwise. |
|
4066 |
@publishedPartner |
|
4067 |
@released |
|
4068 |
*/ |
|
4069 |
#define BTrace4(aCategory,aSubCategory,a1) \ |
|
4070 |
((BTrace::TBTrace2)BTrace::Out) \ |
|
4071 |
(BTRACE_HEADER(8,(aCategory),(aSubCategory)),(TUint32)(a1)) |
|
4072 |
||
4073 |
/** |
|
4074 |
Output a trace record of the specified category. |
|
4075 |
||
4076 |
The trace record data is 8 bytes in size. |
|
4077 |
||
4078 |
@param aCategory A value from enum BTrace::TCategory, |
|
4079 |
@param aSubCategory Sub-category value between 0 and 255. |
|
4080 |
The meaning of this is dependent on the Category. |
|
4081 |
@param a1 The first 32bit quantity which forms the data of this trace record. |
|
4082 |
@param a2 The second 32bit quantity which forms the data of this trace record. |
|
4083 |
||
4084 |
@return True if trace is enabled for aCategory, false otherwise. |
|
4085 |
@publishedPartner |
|
4086 |
@released |
|
4087 |
*/ |
|
4088 |
#define BTrace8(aCategory,aSubCategory,a1,a2) \ |
|
4089 |
((BTrace::TBTrace3)BTrace::Out) \ |
|
4090 |
(BTRACE_HEADER(12,(aCategory),(aSubCategory)),(TUint32)(a1),(TUint32)(a2)) |
|
4091 |
||
4092 |
/** |
|
4093 |
Output a trace record of the specified category. |
|
4094 |
||
4095 |
The trace record data is 12 bytes in size. |
|
4096 |
||
4097 |
@param aCategory A value from enum BTrace::TCategory, |
|
4098 |
@param aSubCategory Sub-category value between 0 and 255. |
|
4099 |
The meaning of this is dependent on the Category. |
|
4100 |
@param a1 The first 32bit quantity which forms the data of this trace record. |
|
4101 |
@param a2 The second 32bit quantity which forms the data of this trace record. |
|
4102 |
@param a3 The third 32bit quantity which forms the data of this trace record. |
|
4103 |
||
4104 |
@return True if trace is enabled for aCategory, false otherwise. |
|
4105 |
@publishedPartner |
|
4106 |
@released |
|
4107 |
*/ |
|
4108 |
#define BTrace12(aCategory,aSubCategory,a1,a2,a3) \ |
|
4109 |
BTrace::Out \ |
|
4110 |
(BTRACE_HEADER(16,(aCategory),(aSubCategory)),(TUint32)(a1),(TUint32)(a2),(TUint32)(a3)) |
|
4111 |
||
4112 |
/** |
|
4113 |
Output a trace record of the specified category. |
|
4114 |
||
4115 |
@param aCategory A value from enum BTrace::TCategory, |
|
4116 |
@param aSubCategory Sub-category value between 0 and 255. |
|
4117 |
The meaning of this is dependent on the Category. |
|
4118 |
@param a1 The first 32bit quantity which forms the data of this trace record. |
|
4119 |
@param a2 The second 32bit quantity which forms the data of this trace record. |
|
4120 |
@param aData Address of addition data to add to trace. |
|
4121 |
Must be word aligned, i.e. a multiple of 4. |
|
4122 |
@param aDataSize Number of bytes of additional data. If this value is greater than |
|
4123 |
KMaxBTraceDataArray then data is truncated to this size and the |
|
4124 |
flag ERecordTruncated is set in the record. |
|
4125 |
||
4126 |
@return True if trace is enabled for aCategory, false otherwise. |
|
4127 |
@publishedPartner |
|
4128 |
@released |
|
4129 |
*/ |
|
4130 |
#define BTraceN(aCategory,aSubCategory,a1,a2,aData,aDataSize) \ |
|
4131 |
BTrace::OutN \ |
|
4132 |
(BTRACE_HEADER(12,(aCategory),(aSubCategory)),(TUint32)(a1),(TUint32)(a2),aData,aDataSize) |
|
4133 |
||
4134 |
/** |
|
4135 |
Output a trace record of the specified category. |
|
4136 |
||
4137 |
If the specified data is too big to find into a single trace record, then a |
|
4138 |
multipart trace is generated. See TMultiPart. |
|
4139 |
||
4140 |
@param aCategory A value from enum BTrace::TCategory, |
|
4141 |
@param aSubCategory Sub-category value between 0 and 255. |
|
4142 |
The meaning of this is dependent on the Category. |
|
4143 |
@param a1 The first 32bit quantity which forms the data of this trace record. |
|
4144 |
@param aData Address of addition data to add to trace. |
|
4145 |
Must be word aligned, i.e. a multiple of 4. |
|
4146 |
@param aDataSize Number of bytes of additional data. |
|
4147 |
||
4148 |
@return True if trace is enabled for aCategory, false otherwise. |
|
4149 |
@publishedPartner |
|
4150 |
@released |
|
4151 |
*/ |
|
4152 |
#define BTraceBig(aCategory,aSubCategory,a1,aData,aDataSize) \ |
|
4153 |
BTrace::OutBig \ |
|
4154 |
(BTRACE_HEADER(8,(aCategory),(aSubCategory)),(TUint32)(a1),aData,(TInt)(aDataSize)) |
|
4155 |
||
4156 |
||
4157 |
||
4158 |
/** |
|
4159 |
Output a trace record of the specified category. |
|
4160 |
||
4161 |
The trace record data is 0 bytes in size. |
|
4162 |
||
4163 |
@param aCategory A value from enum BTrace::TCategory, |
|
4164 |
@param aSubCategory Sub-category value between 0 and 255. |
|
4165 |
The meaning of this is dependent on the Category. |
|
4166 |
||
4167 |
@return True if trace is enabled for aCategory, false otherwise. |
|
4168 |
@publishedPartner |
|
4169 |
@released |
|
4170 |
*/ |
|
4171 |
#define BTraceContext0(aCategory,aSubCategory) \ |
|
4172 |
((BTrace::TBTrace1)BTrace::OutX) \ |
|
4173 |
(BTRACE_HEADER_C(4,(aCategory),(aSubCategory))) |
|
4174 |
||
4175 |
/** |
|
4176 |
Output a trace record of the specified category which also includes a Context ID. |
|
4177 |
||
4178 |
The trace record data is 4 bytes in size. |
|
4179 |
||
4180 |
@param aCategory A value from enum BTrace::TCategory, |
|
4181 |
@param aSubCategory Sub-category value between 0 and 255. |
|
4182 |
The meaning of this is dependent on the Category. |
|
4183 |
@param a1 The 32bit quantity which forms the data of this trace record. |
|
4184 |
||
4185 |
@return True if trace is enabled for aCategory, false otherwise. |
|
4186 |
@publishedPartner |
|
4187 |
@released |
|
4188 |
*/ |
|
4189 |
#define BTraceContext4(aCategory,aSubCategory,a1) \ |
|
4190 |
((BTrace::TBTrace2)BTrace::OutX) \ |
|
4191 |
(BTRACE_HEADER_C(8,(aCategory),(aSubCategory)),(TUint32)(a1)) |
|
4192 |
||
4193 |
/** |
|
4194 |
Output a trace record of the specified category which also includes a Context ID. |
|
4195 |
||
4196 |
The trace record data is 8 bytes in size. |
|
4197 |
||
4198 |
@param aCategory A value from enum BTrace::TCategory, |
|
4199 |
@param aSubCategory Sub-category value between 0 and 255. |
|
4200 |
The meaning of this is dependent on the Category. |
|
4201 |
@param a1 The first 32bit quantity which forms the data of this trace record. |
|
4202 |
@param a2 The second 32bit quantity which forms the data of this trace record. |
|
4203 |
||
4204 |
@return True if trace is enabled for aCategory, false otherwise. |
|
4205 |
@publishedPartner |
|
4206 |
@released |
|
4207 |
*/ |
|
4208 |
#define BTraceContext8(aCategory,aSubCategory,a1,a2) \ |
|
4209 |
((BTrace::TBTrace3)BTrace::OutX) \ |
|
4210 |
(BTRACE_HEADER_C(12,(aCategory),(aSubCategory)),(TUint32)(a1),(TUint32)(a2)) |
|
4211 |
||
4212 |
/** |
|
4213 |
Output a trace record of the specified category which also includes a Context ID. |
|
4214 |
||
4215 |
The trace record data is 12 bytes in size. |
|
4216 |
||
4217 |
@param aCategory A value from enum BTrace::TCategory, |
|
4218 |
@param aSubCategory Sub-category value between 0 and 255. |
|
4219 |
The meaning of this is dependent on the Category. |
|
4220 |
@param a1 The first 32bit quantity which forms the data of this trace record. |
|
4221 |
@param a2 The second 32bit quantity which forms the data of this trace record. |
|
4222 |
@param a3 The third 32bit quantity which forms the data of this trace record. |
|
4223 |
||
4224 |
@return True if trace is enabled for aCategory, false otherwise. |
|
4225 |
@publishedPartner |
|
4226 |
@released |
|
4227 |
*/ |
|
4228 |
#define BTraceContext12(aCategory,aSubCategory,a1,a2,a3) \ |
|
4229 |
BTrace::OutX \ |
|
4230 |
(BTRACE_HEADER_C(16,(aCategory),(aSubCategory)),(TUint32)(a1),(TUint32)(a2),(TUint32)(a3)) |
|
4231 |
||
4232 |
/** |
|
4233 |
Output a trace record of the specified category which also includes a Context ID. |
|
4234 |
||
4235 |
@param aCategory A value from enum BTrace::TCategory, |
|
4236 |
@param aSubCategory Sub-category value between 0 and 255. |
|
4237 |
The meaning of this is dependent on the Category. |
|
4238 |
@param a1 The first 32bit quantity which forms the data of this trace record. |
|
4239 |
@param a2 The second 32bit quantity which forms the data of this trace record. |
|
4240 |
@param aData Address of addition data to add to trace. |
|
4241 |
Must be word aligned, i.e. a multiple of 4. |
|
4242 |
@param aDataSize Number of bytes of additional data. If this value is greater than |
|
4243 |
KMaxBTraceDataArray then data is truncated to this size and the |
|
4244 |
flag ERecordTruncated is set in the record. |
|
4245 |
||
4246 |
@return True if trace is enabled for aCategory, false otherwise. |
|
4247 |
@publishedPartner |
|
4248 |
@released |
|
4249 |
*/ |
|
4250 |
#define BTraceContextN(aCategory,aSubCategory,a1,a2,aData,aDataSize) \ |
|
4251 |
BTrace::OutNX \ |
|
4252 |
(BTRACE_HEADER_C(12,(aCategory),(aSubCategory)),(TUint32)(a1),(TUint32)(a2),aData,aDataSize) |
|
4253 |
||
4254 |
/** |
|
4255 |
Output a trace record of the specified category which also includes a Context ID. |
|
4256 |
||
4257 |
If the specified data is too big to find into a single trace record, then a |
|
4258 |
multipart trace is generated. See TMultiPart. |
|
4259 |
||
4260 |
@param aCategory A value from enum BTrace::TCategory, |
|
4261 |
@param aSubCategory Sub-category value between 0 and 255. |
|
4262 |
The meaning of this is dependent on the Category. |
|
4263 |
@param a1 The first 32bit quantity which forms the data of this trace record. |
|
4264 |
@param aData Address of addition data to add to trace. |
|
4265 |
Must be word aligned, i.e. a multiple of 4. |
|
4266 |
@param aDataSize Number of bytes of additional data. |
|
4267 |
||
4268 |
@return True if trace is enabled for aCategory, false otherwise. |
|
4269 |
@publishedPartner |
|
4270 |
@released |
|
4271 |
*/ |
|
4272 |
#define BTraceContextBig(aCategory,aSubCategory,a1,aData,aDataSize) \ |
|
4273 |
BTrace::OutBig \ |
|
4274 |
(BTRACE_HEADER_C(8,(aCategory),(aSubCategory)),(TUint32)(a1),aData,(TInt)(aDataSize)) |
|
4275 |
||
4276 |
||
4277 |
||
4278 |
/** |
|
4279 |
Output a trace record of the specified category which also includes a Program Counter value. |
|
4280 |
||
4281 |
The trace record data is 0 bytes in size. |
|
4282 |
||
4283 |
@param aCategory A value from enum BTrace::TCategory, |
|
4284 |
@param aSubCategory Sub-category value between 0 and 255. |
|
4285 |
The meaning of this is dependent on the Category. |
|
4286 |
||
4287 |
@return True if trace is enabled for aCategory, false otherwise. |
|
4288 |
@publishedPartner |
|
4289 |
@released |
|
4290 |
*/ |
|
4291 |
#define BTracePc0(aCategory,aSubCategory) \ |
|
4292 |
((BTrace::TBTrace1)BTrace::Out) \ |
|
4293 |
(BTRACE_HEADER_P(4,(aCategory),(aSubCategory))) |
|
4294 |
||
4295 |
/** |
|
4296 |
Output a trace record of the specified category which also includes a Program Counter value. |
|
4297 |
||
4298 |
The trace record data is 4 bytes in size. |
|
4299 |
||
4300 |
@param aCategory A value from enum BTrace::TCategory, |
|
4301 |
@param aSubCategory Sub-category value between 0 and 255. |
|
4302 |
The meaning of this is dependent on the Category. |
|
4303 |
@param a1 The 32bit quantity which forms the data of this trace record. |
|
4304 |
||
4305 |
@return True if trace is enabled for aCategory, false otherwise. |
|
4306 |
@publishedPartner |
|
4307 |
@released |
|
4308 |
*/ |
|
4309 |
#define BTracePc4(aCategory,aSubCategory,a1) \ |
|
4310 |
((BTrace::TBTrace2)BTrace::Out) \ |
|
4311 |
(BTRACE_HEADER_P(8,(aCategory),(aSubCategory)),(TUint32)(a1)) |
|
4312 |
||
4313 |
/** |
|
4314 |
Output a trace record of the specified category which also includes a Program Counter value. |
|
4315 |
||
4316 |
The trace record data is 8 bytes in size. |
|
4317 |
||
4318 |
@param aCategory A value from enum BTrace::TCategory, |
|
4319 |
@param aSubCategory Sub-category value between 0 and 255. |
|
4320 |
The meaning of this is dependent on the Category. |
|
4321 |
@param a1 The first 32bit quantity which forms the data of this trace record. |
|
4322 |
@param a2 The second 32bit quantity which forms the data of this trace record. |
|
4323 |
||
4324 |
@return True if trace is enabled for aCategory, false otherwise. |
|
4325 |
@publishedPartner |
|
4326 |
@released |
|
4327 |
*/ |
|
4328 |
#define BTracePc8(aCategory,aSubCategory,a1,a2) \ |
|
4329 |
((BTrace::TBTrace3)BTrace::Out) \ |
|
4330 |
(BTRACE_HEADER_P(12,(aCategory),(aSubCategory)),(TUint32)(a1),(TUint32)(a2)) |
|
4331 |
||
4332 |
/** |
|
4333 |
Output a trace record of the specified category which also includes a Program Counter value. |
|
4334 |
||
4335 |
The trace record data is 12 bytes in size. |
|
4336 |
||
4337 |
@param aCategory A value from enum BTrace::TCategory, |
|
4338 |
@param aSubCategory Sub-category value between 0 and 255. |
|
4339 |
The meaning of this is dependent on the Category. |
|
4340 |
@param a1 The first 32bit quantity which forms the data of this trace record. |
|
4341 |
@param a2 The second 32bit quantity which forms the data of this trace record. |
|
4342 |
@param a3 The third 32bit quantity which forms the data of this trace record. |
|
4343 |
||
4344 |
@return True if trace is enabled for aCategory, false otherwise. |
|
4345 |
@publishedPartner |
|
4346 |
@released |
|
4347 |
*/ |
|
4348 |
#define BTracePc12(aCategory,aSubCategory,a1,a2,a3) \ |
|
4349 |
BTrace::Out \ |
|
4350 |
(BTRACE_HEADER_P(16,(aCategory),(aSubCategory)),(TUint32)(a1),(TUint32)(a2),(TUint32)(a3)) |
|
4351 |
||
4352 |
/** |
|
4353 |
Output a trace record of the specified category which also includes a Program Counter value. |
|
4354 |
||
4355 |
@param aCategory A value from enum BTrace::TCategory, |
|
4356 |
@param aSubCategory Sub-category value between 0 and 255. |
|
4357 |
The meaning of this is dependent on the Category. |
|
4358 |
@param a1 The first 32bit quantity which forms the data of this trace record. |
|
4359 |
@param a2 The second 32bit quantity which forms the data of this trace record. |
|
4360 |
@param aData Address of addition data to add to trace. |
|
4361 |
Must be word aligned, i.e. a multiple of 4. |
|
4362 |
@param aDataSize Number of bytes of additional data. If this value is greater than |
|
4363 |
KMaxBTraceDataArray then data is truncated to this size and the |
|
4364 |
flag ERecordTruncated is set in the record. |
|
4365 |
||
4366 |
@return True if trace is enabled for aCategory, false otherwise. |
|
4367 |
@publishedPartner |
|
4368 |
@released |
|
4369 |
*/ |
|
4370 |
#define BTracePcN(aCategory,aSubCategory,a1,a2,aData,aDataSize) \ |
|
4371 |
BTrace::OutN \ |
|
4372 |
(BTRACE_HEADER_P(12,(aCategory),(aSubCategory)),(TUint32)(a1),(TUint32)(a2),aData,aDataSize) |
|
4373 |
||
4374 |
/** |
|
4375 |
Output a trace record of the specified category which also includes a Program Counter value. |
|
4376 |
||
4377 |
If the specified data is too big to find into a single trace record, then a |
|
4378 |
multipart trace is generated. See TMultiPart. |
|
4379 |
||
4380 |
@param aCategory A value from enum BTrace::TCategory, |
|
4381 |
@param aSubCategory Sub-category value between 0 and 255. |
|
4382 |
The meaning of this is dependent on the Category. |
|
4383 |
@param a1 The first 32bit quantity which forms the data of this trace record. |
|
4384 |
@param aData Address of addition data to add to trace. |
|
4385 |
Must be word aligned, i.e. a multiple of 4. |
|
4386 |
@param aDataSize Number of bytes of additional data. |
|
4387 |
||
4388 |
@return True if trace is enabled for aCategory, false otherwise. |
|
4389 |
@publishedPartner |
|
4390 |
@released |
|
4391 |
*/ |
|
4392 |
#define BTracePcBig(aCategory,aSubCategory,a1,aData,aDataSize) \ |
|
4393 |
BTrace::OutBig \ |
|
4394 |
(BTRACE_HEADER_P(8,(aCategory),(aSubCategory)),(TUint32)(a1),aData,(TInt)(aDataSize)) |
|
4395 |
||
4396 |
||
4397 |
||
4398 |
||
4399 |
/** |
|
4400 |
Output a trace record of the specified category which also includes |
|
4401 |
Context ID and Program Counter values. |
|
4402 |
||
4403 |
The trace record data is 0 bytes in size. |
|
4404 |
||
4405 |
@param aCategory A value from enum BTrace::TCategory, |
|
4406 |
@param aSubCategory Sub-category value between 0 and 255. |
|
4407 |
The meaning of this is dependent on the Category. |
|
4408 |
||
4409 |
@return True if trace is enabled for aCategory, false otherwise. |
|
4410 |
@publishedPartner |
|
4411 |
@released |
|
4412 |
*/ |
|
4413 |
#define BTraceContextPc0(aCategory,aSubCategory) \ |
|
4414 |
((BTrace::TBTrace1)BTrace::OutX) \ |
|
4415 |
(BTRACE_HEADER_CP(4,(aCategory),(aSubCategory))) |
|
4416 |
||
4417 |
/** |
|
4418 |
Output a trace record of the specified category which also includes |
|
4419 |
Context ID and Program Counter values. |
|
4420 |
||
4421 |
The trace record data is 4 bytes in size. |
|
4422 |
||
4423 |
@param aCategory A value from enum BTrace::TCategory, |
|
4424 |
@param aSubCategory Sub-category value between 0 and 255. |
|
4425 |
The meaning of this is dependent on the Category. |
|
4426 |
@param a1 The 32bit quantity which forms the data of this trace record. |
|
4427 |
||
4428 |
@return True if trace is enabled for aCategory, false otherwise. |
|
4429 |
@publishedPartner |
|
4430 |
@released |
|
4431 |
*/ |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
4432 |
#define BTraceContextPc4(aCategory,aSubCategory,a1) \ |
0 | 4433 |
((BTrace::TBTrace2)BTrace::OutX) \ |
4434 |
(BTRACE_HEADER_CP(8,(aCategory),(aSubCategory)),(TUint32)(a1)) |
|
4435 |
||
4436 |
/** |
|
4437 |
Output a trace record of the specified category which also includes |
|
4438 |
Context ID and Program Counter values. |
|
4439 |
||
4440 |
The trace record data is 8 bytes in size. |
|
4441 |
||
4442 |
@param aCategory A value from enum BTrace::TCategory, |
|
4443 |
@param aSubCategory Sub-category value between 0 and 255. |
|
4444 |
The meaning of this is dependent on the Category. |
|
4445 |
@param a1 The first 32bit quantity which forms the data of this trace record. |
|
4446 |
@param a2 The second 32bit quantity which forms the data of this trace record. |
|
4447 |
||
4448 |
@return True if trace is enabled for aCategory, false otherwise. |
|
4449 |
@publishedPartner |
|
4450 |
@released |
|
4451 |
*/ |
|
4452 |
#define BTraceContextPc8(aCategory,aSubCategory,a1,a2) \ |
|
4453 |
((BTrace::TBTrace3)BTrace::OutX) \ |
|
4454 |
(BTRACE_HEADER_CP(12,(aCategory),(aSubCategory)),(TUint32)(a1),(TUint32)(a2)) |
|
4455 |
||
4456 |
/** |
|
4457 |
Output a trace record of the specified category which also includes |
|
4458 |
Context ID and Program Counter values. |
|
4459 |
||
4460 |
The trace record data is 12 bytes in size. |
|
4461 |
||
4462 |
@param aCategory A value from enum BTrace::TCategory, |
|
4463 |
@param aSubCategory Sub-category value between 0 and 255. |
|
4464 |
The meaning of this is dependent on the Category. |
|
4465 |
@param a1 The first 32bit quantity which forms the data of this trace record. |
|
4466 |
@param a2 The second 32bit quantity which forms the data of this trace record. |
|
4467 |
@param a3 The third 32bit quantity which forms the data of this trace record. |
|
4468 |
||
4469 |
@return True if trace is enabled for aCategory, false otherwise. |
|
4470 |
@publishedPartner |
|
4471 |
@released |
|
4472 |
*/ |
|
4473 |
#define BTraceContextPc12(aCategory,aSubCategory,a1,a2,a3) \ |
|
4474 |
BTrace::OutX \ |
|
4475 |
(BTRACE_HEADER_CP(16,(aCategory),(aSubCategory)),(TUint32)(a1),(TUint32)(a2),(TUint32)(a3)) |
|
4476 |
||
4477 |
/** |
|
4478 |
Output a trace record of the specified category which also includes |
|
4479 |
Context ID and Program Counter values. |
|
4480 |
||
4481 |
@param aCategory A value from enum BTrace::TCategory, |
|
4482 |
@param aSubCategory Sub-category value between 0 and 255. |
|
4483 |
The meaning of this is dependent on the Category. |
|
4484 |
@param a1 The first 32bit quantity which forms the data of this trace record. |
|
4485 |
@param a2 The second 32bit quantity which forms the data of this trace record. |
|
4486 |
@param aData Address of addition data to add to trace. |
|
4487 |
Must be word aligned, i.e. a multiple of 4. |
|
4488 |
@param aDataSize Number of bytes of additional data. If this value is greater than |
|
4489 |
KMaxBTraceDataArray then data is truncated to this size and the |
|
4490 |
flag ERecordTruncated is set in the record. |
|
4491 |
||
4492 |
@return True if trace is enabled for aCategory, false otherwise. |
|
4493 |
@publishedPartner |
|
4494 |
@released |
|
4495 |
*/ |
|
4496 |
#define BTraceContextPcN(aCategory,aSubCategory,a1,a2,aData,aDataSize) \ |
|
4497 |
BTrace::OutNX \ |
|
4498 |
(BTRACE_HEADER_CP(12,(aCategory),(aSubCategory)),(TUint32)(a1),(TUint32)(a2),aData,aDataSize) |
|
4499 |
||
4500 |
/** |
|
4501 |
Output a trace record of the specified category which also includes |
|
4502 |
Context ID and Program Counter values. |
|
4503 |
||
4504 |
If the specified data is too big to find into a single trace record, then a |
|
4505 |
multipart trace is generated. See TMultiPart. |
|
4506 |
||
4507 |
@param aCategory A value from enum BTrace::TCategory, |
|
4508 |
@param aSubCategory Sub-category value between 0 and 255. |
|
4509 |
The meaning of this is dependent on the Category. |
|
4510 |
@param a1 The first 32bit quantity which forms the data of this trace record. |
|
4511 |
@param aData Address of addition data to add to trace. |
|
4512 |
Must be word aligned, i.e. a multiple of 4. |
|
4513 |
@param aDataSize Number of bytes of additional data. |
|
4514 |
||
4515 |
@return True if trace is enabled for aCategory, false otherwise. |
|
4516 |
@publishedPartner |
|
4517 |
@released |
|
4518 |
*/ |
|
4519 |
#define BTraceContextPcBig(aCategory,aSubCategory,a1,aData,aDataSize) \ |
|
4520 |
BTrace::OutBig \ |
|
4521 |
(BTRACE_HEADER_CP(8,(aCategory),(aSubCategory)),(TUint32)(a1),aData,(TInt)(aDataSize)) |
|
4522 |
||
4523 |
||
4524 |
||
4525 |
/** |
|
4526 |
Output a trace record of the specified category. |
|
4527 |
||
4528 |
The trace record data is 4 bytes in size. |
|
4529 |
||
4530 |
If the value of \a aUid is not contained in the secondary filter then the trace is discarded. |
|
4531 |
||
4532 |
@param aCategory A value from enum BTrace::TCategory, |
|
4533 |
@param aSubCategory Sub-category value between 0 and 255. |
|
4534 |
The meaning of this is dependent on the Category. |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
4535 |
@param aUid The 32bit quantity which forms the data of this trace record. |
0 | 4536 |
|
4537 |
@return True if trace is enabled for aCategory and aUid, false otherwise. |
|
4538 |
@publishedPartner |
|
4539 |
@released |
|
4540 |
*/ |
|
4541 |
#define BTraceFiltered4(aCategory,aSubCategory,aUid) \ |
|
4542 |
((BTrace::TBTrace2)BTrace::OutFiltered) \ |
|
4543 |
(BTRACE_HEADER(8,(aCategory),(aSubCategory)),(TUint32)(aUid)) |
|
4544 |
||
4545 |
/** |
|
4546 |
Output a trace record of the specified category. |
|
4547 |
||
4548 |
The trace record data is 8 bytes in size. |
|
4549 |
||
4550 |
If the value of \a aUid is not contained in the secondary filter then the trace is discarded. |
|
4551 |
||
4552 |
@param aCategory A value from enum BTrace::TCategory, |
|
4553 |
@param aSubCategory Sub-category value between 0 and 255. |
|
4554 |
The meaning of this is dependent on the Category. |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
4555 |
@param aUid The first 32bit quantity which forms the data of this trace record. |
0 | 4556 |
@param a1 The second 32bit quantity which forms the data of this trace record. |
4557 |
||
4558 |
@return True if trace is enabled for aCategory and aUid, false otherwise. |
|
4559 |
@publishedPartner |
|
4560 |
@released |
|
4561 |
*/ |
|
4562 |
#define BTraceFiltered8(aCategory,aSubCategory,aUid,a1) \ |
|
4563 |
((BTrace::TBTrace3)BTrace::OutFiltered) \ |
|
4564 |
(BTRACE_HEADER(12,(aCategory),(aSubCategory)),(TUint32)(aUid),(TUint32)(a1)) |
|
4565 |
||
4566 |
/** |
|
4567 |
Output a trace record of the specified category. |
|
4568 |
||
4569 |
The trace record data is 12 bytes in size. |
|
4570 |
||
4571 |
If the value of \a aUid is not contained in the secondary filter then the trace is discarded. |
|
4572 |
||
4573 |
@param aCategory A value from enum BTrace::TCategory, |
|
4574 |
@param aSubCategory Sub-category value between 0 and 255. |
|
4575 |
The meaning of this is dependent on the Category. |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
4576 |
@param aUid The first 32bit quantity which forms the data of this trace record. |
0 | 4577 |
@param a1 The second 32bit quantity which forms the data of this trace record. |
4578 |
@param a2 The third 32bit quantity which forms the data of this trace record. |
|
4579 |
||
4580 |
@return True if trace is enabled for aCategory and aUid, false otherwise. |
|
4581 |
@publishedPartner |
|
4582 |
@released |
|
4583 |
*/ |
|
4584 |
#define BTraceFiltered12(aCategory,aSubCategory,aUid,a1,a2) \ |
|
4585 |
BTrace::OutFiltered \ |
|
4586 |
(BTRACE_HEADER(16,(aCategory),(aSubCategory)),(TUint32)(aUid),(TUint32)(a1),(TUint32)(a2)) |
|
4587 |
||
4588 |
/** |
|
4589 |
Output a trace record of the specified category. |
|
4590 |
||
4591 |
If the value of \a aUid is not contained in the secondary filter then the trace is discarded. |
|
4592 |
||
4593 |
@param aCategory A value from enum BTrace::TCategory, |
|
4594 |
@param aSubCategory Sub-category value between 0 and 255. |
|
4595 |
The meaning of this is dependent on the Category. |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
4596 |
@param aUid The first 32bit quantity which forms the data of this trace record. |
0 | 4597 |
@param a1 The second 32bit quantity which forms the data of this trace record. |
4598 |
@param aData Address of addition data to add to trace. |
|
4599 |
Must be word aligned, i.e. a multiple of 4. |
|
4600 |
@param aDataSize Number of bytes of additional data. If this value is greater than |
|
4601 |
KMaxBTraceDataArray then data is truncated to this size and the |
|
4602 |
flag ERecordTruncated is set in the record. |
|
4603 |
||
4604 |
@return True if trace is enabled for aCategory and aUid, false otherwise. |
|
4605 |
@publishedPartner |
|
4606 |
@released |
|
4607 |
*/ |
|
4608 |
#define BTraceFilteredN(aCategory,aSubCategory,aUid,a1,aData,aDataSize) \ |
|
4609 |
BTrace::OutFilteredN \ |
|
4610 |
(BTRACE_HEADER(12,(aCategory),(aSubCategory)),(TUint32)(aUid),(TUint32)(a1),aData,aDataSize) |
|
4611 |
||
4612 |
/** |
|
4613 |
Output a trace record of the specified category. |
|
4614 |
||
4615 |
If the specified data is too big to find into a single trace record, then a |
|
4616 |
multipart trace is generated. See TMultiPart. |
|
4617 |
||
4618 |
If the value of \a aUid is not contained in the secondary filter then the trace is discarded. |
|
4619 |
||
4620 |
@param aCategory A value from enum BTrace::TCategory, |
|
4621 |
@param aSubCategory Sub-category value between 0 and 255. |
|
4622 |
The meaning of this is dependent on the Category. |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
4623 |
@param aUid The first 32bit quantity which forms the data of this trace record. |
0 | 4624 |
@param aData Address of addition data to add to trace. |
4625 |
Must be word aligned, i.e. a multiple of 4. |
|
4626 |
@param aDataSize Number of bytes of additional data. |
|
4627 |
||
4628 |
@return True if trace is enabled for aCategory and aUid, false otherwise. |
|
4629 |
@publishedPartner |
|
4630 |
@released |
|
4631 |
*/ |
|
4632 |
#define BTraceFilteredBig(aCategory,aSubCategory,aUid,aData,aDataSize) \ |
|
4633 |
BTrace::OutFilteredBig \ |
|
4634 |
(BTRACE_HEADER(8,(aCategory),(aSubCategory)),(TUint32)(aUid),aData,(TInt)(aDataSize)) |
|
4635 |
||
4636 |
||
4637 |
||
4638 |
/** |
|
4639 |
Output a trace record of the specified category which also includes a Context ID. |
|
4640 |
||
4641 |
The trace record data is 4 bytes in size. |
|
4642 |
||
4643 |
If the value of \a aUid is not contained in the secondary filter then the trace is discarded. |
|
4644 |
||
4645 |
@param aCategory A value from enum BTrace::TCategory, |
|
4646 |
@param aSubCategory Sub-category value between 0 and 255. |
|
4647 |
The meaning of this is dependent on the Category. |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
4648 |
@param aUid The 32bit quantity which forms the data of this trace record. |
0 | 4649 |
|
4650 |
@return True if trace is enabled for aCategory and aUid, false otherwise. |
|
4651 |
@publishedPartner |
|
4652 |
@released |
|
4653 |
*/ |
|
4654 |
#define BTraceFilteredContext4(aCategory,aSubCategory,aUid) \ |
|
4655 |
((BTrace::TBTrace2)BTrace::OutFilteredX) \ |
|
4656 |
(BTRACE_HEADER_C(8,(aCategory),(aSubCategory)),(TUint32)(aUid)) |
|
4657 |
||
4658 |
/** |
|
4659 |
Output a trace record of the specified category which also includes a Context ID. |
|
4660 |
||
4661 |
The trace record data is 8 bytes in size. |
|
4662 |
||
4663 |
If the value of \a aUid is not contained in the secondary filter then the trace is discarded. |
|
4664 |
||
4665 |
@param aCategory A value from enum BTrace::TCategory, |
|
4666 |
@param aSubCategory Sub-category value between 0 and 255. |
|
4667 |
The meaning of this is dependent on the Category. |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
4668 |
@param aUid The first 32bit quantity which forms the data of this trace record. |
0 | 4669 |
@param a1 The second 32bit quantity which forms the data of this trace record. |
4670 |
||
4671 |
@return True if trace is enabled for aCategory and aUid, false otherwise. |
|
4672 |
@publishedPartner |
|
4673 |
@released |
|
4674 |
*/ |
|
4675 |
#define BTraceFilteredContext8(aCategory,aSubCategory,aUid,a1) \ |
|
4676 |
((BTrace::TBTrace3)BTrace::OutFilteredX) \ |
|
4677 |
(BTRACE_HEADER_C(12,(aCategory),(aSubCategory)),(TUint32)(aUid),(TUint32)(a1)) |
|
4678 |
||
4679 |
/** |
|
4680 |
Output a trace record of the specified category which also includes a Context ID. |
|
4681 |
||
4682 |
The trace record data is 12 bytes in size. |
|
4683 |
||
4684 |
If the value of \a aUid is not contained in the secondary filter then the trace is discarded. |
|
4685 |
||
4686 |
@param aCategory A value from enum BTrace::TCategory, |
|
4687 |
@param aSubCategory Sub-category value between 0 and 255. |
|
4688 |
The meaning of this is dependent on the Category. |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
4689 |
@param aUid The first 32bit quantity which forms the data of this trace record. |
0 | 4690 |
@param a1 The second 32bit quantity which forms the data of this trace record. |
4691 |
@param a2 The third 32bit quantity which forms the data of this trace record. |
|
4692 |
||
4693 |
@return True if trace is enabled for aCategory and aUid, false otherwise. |
|
4694 |
@publishedPartner |
|
4695 |
@released |
|
4696 |
*/ |
|
4697 |
#define BTraceFilteredContext12(aCategory,aSubCategory,aUid,a1,a2) \ |
|
4698 |
BTrace::OutFilteredX \ |
|
4699 |
(BTRACE_HEADER_C(16,(aCategory),(aSubCategory)),(TUint32)(aUid),(TUint32)(a1),(TUint32)(a2)) |
|
4700 |
||
4701 |
/** |
|
4702 |
Output a trace record of the specified category which also includes a Context ID. |
|
4703 |
||
4704 |
If the value of \a aUid is not contained in the secondary filter then the trace is discarded. |
|
4705 |
||
4706 |
@param aCategory A value from enum BTrace::TCategory, |
|
4707 |
@param aSubCategory Sub-category value between 0 and 255. |
|
4708 |
The meaning of this is dependent on the Category. |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
4709 |
@param aUid The first 32bit quantity which forms the data of this trace record. |
0 | 4710 |
@param a1 The second 32bit quantity which forms the data of this trace record. |
4711 |
@param aData Address of addition data to add to trace. |
|
4712 |
Must be word aligned, i.e. a multiple of 4. |
|
4713 |
@param aDataSize Number of bytes of additional data. If this value is greater than |
|
4714 |
KMaxBTraceDataArray then data is truncated to this size and the |
|
4715 |
flag ERecordTruncated is set in the record. |
|
4716 |
||
4717 |
@return True if trace is enabled for aCategory and aUid, false otherwise. |
|
4718 |
@publishedPartner |
|
4719 |
@released |
|
4720 |
*/ |
|
4721 |
#define BTraceFilteredContextN(aCategory,aSubCategory,aUid,a1,aData,aDataSize) \ |
|
4722 |
BTrace::OutFilteredNX \ |
|
4723 |
(BTRACE_HEADER_C(12,(aCategory),(aSubCategory)),(TUint32)(aUid),(TUint32)(a1),aData,aDataSize) |
|
4724 |
||
4725 |
/** |
|
4726 |
Output a trace record of the specified category which also includes a Context ID. |
|
4727 |
||
4728 |
If the specified data is too big to find into a single trace record, then a |
|
4729 |
multipart trace is generated. See TMultiPart. |
|
4730 |
||
4731 |
If the value of \a aUid is not contained in the secondary filter then the trace is discarded. |
|
4732 |
||
4733 |
@param aCategory A value from enum BTrace::TCategory, |
|
4734 |
@param aSubCategory Sub-category value between 0 and 255. |
|
4735 |
The meaning of this is dependent on the Category. |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
4736 |
@param aUid The first 32bit quantity which forms the data of this trace record. |
0 | 4737 |
@param aData Address of addition data to add to trace. |
4738 |
Must be word aligned, i.e. a multiple of 4. |
|
4739 |
@param aDataSize Number of bytes of additional data. |
|
4740 |
||
4741 |
@return True if trace is enabled for aCategory and aUid, false otherwise. |
|
4742 |
@publishedPartner |
|
4743 |
@released |
|
4744 |
*/ |
|
4745 |
#define BTraceFilteredContextBig(aCategory,aSubCategory,aUid,aData,aDataSize) \ |
|
4746 |
BTrace::OutFilteredBig \ |
|
4747 |
(BTRACE_HEADER_C(8,(aCategory),(aSubCategory)),(TUint32)(aUid),aData,(TInt)(aDataSize)) |
|
4748 |
||
4749 |
||
4750 |
||
4751 |
/** |
|
4752 |
Output a trace record of the specified category which also includes a Program Counter value. |
|
4753 |
||
4754 |
The trace record data is 4 bytes in size. |
|
4755 |
||
4756 |
If the value of \a aUid is not contained in the secondary filter then the trace is discarded. |
|
4757 |
||
4758 |
@param aCategory A value from enum BTrace::TCategory, |
|
4759 |
@param aSubCategory Sub-category value between 0 and 255. |
|
4760 |
The meaning of this is dependent on the Category. |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
4761 |
@param aUid The 32bit quantity which forms the data of this trace record. |
0 | 4762 |
|
4763 |
@return True if trace is enabled for aCategory and aUid, false otherwise. |
|
4764 |
@publishedPartner |
|
4765 |
@released |
|
4766 |
*/ |
|
4767 |
#define BTraceFilteredPc4(aCategory,aSubCategory,aUid) \ |
|
4768 |
((BTrace::TBTrace2)BTrace::OutFiltered) \ |
|
4769 |
(BTRACE_HEADER_P(8,(aCategory),(aSubCategory)),(TUint32)(aUid)) |
|
4770 |
||
4771 |
/** |
|
4772 |
Output a trace record of the specified category which also includes a Program Counter value. |
|
4773 |
||
4774 |
The trace record data is 8 bytes in size. |
|
4775 |
||
4776 |
If the value of \a aUid is not contained in the secondary filter then the trace is discarded. |
|
4777 |
||
4778 |
@param aCategory A value from enum BTrace::TCategory, |
|
4779 |
@param aSubCategory Sub-category value between 0 and 255. |
|
4780 |
The meaning of this is dependent on the Category. |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
4781 |
@param aUid The first 32bit quantity which forms the data of this trace record. |
0 | 4782 |
@param a1 The second 32bit quantity which forms the data of this trace record. |
4783 |
||
4784 |
@return True if trace is enabled for aCategory and aUid, false otherwise. |
|
4785 |
@publishedPartner |
|
4786 |
@released |
|
4787 |
*/ |
|
4788 |
#define BTraceFilteredPc8(aCategory,aSubCategory,aUid,a1) \ |
|
4789 |
((BTrace::TBTrace3)BTrace::OutFiltered) \ |
|
4790 |
(BTRACE_HEADER_P(12,(aCategory),(aSubCategory)),(TUint32)(aUid),(TUint32)(a1)) |
|
4791 |
||
4792 |
/** |
|
4793 |
Output a trace record of the specified category which also includes a Program Counter value. |
|
4794 |
||
4795 |
The trace record data is 12 bytes in size. |
|
4796 |
||
4797 |
If the value of \a aUid is not contained in the secondary filter then the trace is discarded. |
|
4798 |
||
4799 |
@param aCategory A value from enum BTrace::TCategory, |
|
4800 |
@param aSubCategory Sub-category value between 0 and 255. |
|
4801 |
The meaning of this is dependent on the Category. |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
4802 |
@param aUid The first 32bit quantity which forms the data of this trace record. |
0 | 4803 |
@param a1 The second 32bit quantity which forms the data of this trace record. |
4804 |
@param a2 The third 32bit quantity which forms the data of this trace record. |
|
4805 |
||
4806 |
@return True if trace is enabled for aCategory and aUid, false otherwise. |
|
4807 |
@publishedPartner |
|
4808 |
@released |
|
4809 |
*/ |
|
4810 |
#define BTraceFilteredPc12(aCategory,aSubCategory,aUid,a1,a2) \ |
|
4811 |
BTrace::OutFiltered \ |
|
4812 |
(BTRACE_HEADER_P(16,(aCategory),(aSubCategory)),(TUint32)(aUid),(TUint32)(a1),(TUint32)(a2)) |
|
4813 |
||
4814 |
/** |
|
4815 |
Output a trace record of the specified category which also includes a Program Counter value. |
|
4816 |
||
4817 |
If the value of \a aUid is not contained in the secondary filter then the trace is discarded. |
|
4818 |
||
4819 |
@param aCategory A value from enum BTrace::TCategory, |
|
4820 |
@param aSubCategory Sub-category value between 0 and 255. |
|
4821 |
The meaning of this is dependent on the Category. |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
4822 |
@param aUid The first 32bit quantity which forms the data of this trace record. |
0 | 4823 |
@param a1 The second 32bit quantity which forms the data of this trace record. |
4824 |
@param aData Address of addition data to add to trace. |
|
4825 |
Must be word aligned, i.e. a multiple of 4. |
|
4826 |
@param aDataSize Number of bytes of additional data. If this value is greater than |
|
4827 |
KMaxBTraceDataArray then data is truncated to this size and the |
|
4828 |
flag ERecordTruncated is set in the record. |
|
4829 |
||
4830 |
@return True if trace is enabled for aCategory and aUid, false otherwise. |
|
4831 |
@publishedPartner |
|
4832 |
@released |
|
4833 |
*/ |
|
4834 |
#define BTraceFilteredPcN(aCategory,aSubCategory,aUid,a1,aData,aDataSize) \ |
|
4835 |
BTrace::OutFilteredN \ |
|
4836 |
(BTRACE_HEADER_P(12,(aCategory),(aSubCategory)),(TUint32)(aUid),(TUint32)(a1),aData,aDataSize) |
|
4837 |
||
4838 |
/** |
|
4839 |
Output a trace record of the specified category which also includes a Program Counter value. |
|
4840 |
||
4841 |
If the specified data is too big to find into a single trace record, then a |
|
4842 |
multipart trace is generated. See TMultiPart. |
|
4843 |
||
4844 |
If the value of \a aUid is not contained in the secondary filter then the trace is discarded. |
|
4845 |
||
4846 |
@param aCategory A value from enum BTrace::TCategory, |
|
4847 |
@param aSubCategory Sub-category value between 0 and 255. |
|
4848 |
The meaning of this is dependent on the Category. |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
4849 |
@param aUid The first 32bit quantity which forms the data of this trace record. |
0 | 4850 |
@param aData Address of addition data to add to trace. |
4851 |
Must be word aligned, i.e. a multiple of 4. |
|
4852 |
@param aDataSize Number of bytes of additional data. |
|
4853 |
||
4854 |
@return True if trace is enabled for aCategory and aUid, false otherwise. |
|
4855 |
@publishedPartner |
|
4856 |
@released |
|
4857 |
*/ |
|
4858 |
#define BTraceFilteredPcBig(aCategory,aSubCategory,aUid,aData,aDataSize) \ |
|
4859 |
BTrace::OutFilteredBig \ |
|
4860 |
(BTRACE_HEADER_P(8,(aCategory),(aSubCategory)),(TUint32)(aUid),aData,(TInt)(aDataSize)) |
|
4861 |
||
4862 |
||
4863 |
||
4864 |
||
4865 |
/** |
|
4866 |
Output a trace record of the specified category which also includes |
|
4867 |
Context ID and Program Counter values. |
|
4868 |
||
4869 |
The trace record data is 4 bytes in size. |
|
4870 |
||
4871 |
If the value of \a aUid is not contained in the secondary filter then the trace is discarded. |
|
4872 |
||
4873 |
@param aCategory A value from enum BTrace::TCategory, |
|
4874 |
@param aSubCategory Sub-category value between 0 and 255. |
|
4875 |
The meaning of this is dependent on the Category. |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
4876 |
@param aUid The 32bit quantity which forms the data of this trace record. |
0 | 4877 |
|
4878 |
@return True if trace is enabled for aCategory and aUid, false otherwise. |
|
4879 |
@publishedPartner |
|
4880 |
@released |
|
4881 |
*/ |
|
4882 |
#define BTraceFilteredContextPc4(aCategory,aSubCategory,aUid) \ |
|
4883 |
((BTrace::TBTrace2)BTrace::OutFilteredX) \ |
|
4884 |
(BTRACE_HEADER_CP(8,(aCategory),(aSubCategory)),(TUint32)(aUid)) |
|
4885 |
||
4886 |
/** |
|
4887 |
Output a trace record of the specified category which also includes |
|
4888 |
Context ID and Program Counter values. |
|
4889 |
||
4890 |
The trace record data is 8 bytes in size. |
|
4891 |
||
4892 |
If the value of \a aUid is not contained in the secondary filter then the trace is discarded. |
|
4893 |
||
4894 |
@param aCategory A value from enum BTrace::TCategory, |
|
4895 |
@param aSubCategory Sub-category value between 0 and 255. |
|
4896 |
The meaning of this is dependent on the Category. |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
4897 |
@param aUid The first 32bit quantity which forms the data of this trace record. |
0 | 4898 |
@param a1 The second 32bit quantity which forms the data of this trace record. |
4899 |
||
4900 |
@return True if trace is enabled for aCategory and aUid, false otherwise. |
|
4901 |
@publishedPartner |
|
4902 |
@released |
|
4903 |
*/ |
|
4904 |
#define BTraceFilteredContextPc8(aCategory,aSubCategory,aUid,a1) \ |
|
4905 |
((BTrace::TBTrace3)BTrace::OutFilteredX) \ |
|
4906 |
(BTRACE_HEADER_CP(12,(aCategory),(aSubCategory)),(TUint32)(aUid),(TUint32)(a1)) |
|
4907 |
||
4908 |
/** |
|
4909 |
Output a trace record of the specified category which also includes |
|
4910 |
Context ID and Program Counter values. |
|
4911 |
||
4912 |
The trace record data is 12 bytes in size. |
|
4913 |
||
4914 |
If the value of \a aUid is not contained in the secondary filter then the trace is discarded. |
|
4915 |
||
4916 |
@param aCategory A value from enum BTrace::TCategory, |
|
4917 |
@param aSubCategory Sub-category value between 0 and 255. |
|
4918 |
The meaning of this is dependent on the Category. |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
4919 |
@param aUid The first 32bit quantity which forms the data of this trace record. |
0 | 4920 |
@param a1 The second 32bit quantity which forms the data of this trace record. |
4921 |
@param a2 The third 32bit quantity which forms the data of this trace record. |
|
4922 |
||
4923 |
@return True if trace is enabled for aCategory and aUid, false otherwise. |
|
4924 |
@publishedPartner |
|
4925 |
@released |
|
4926 |
*/ |
|
4927 |
#define BTraceFilteredContextPc12(aCategory,aSubCategory,aUid,a1,a2) \ |
|
4928 |
BTrace::OutFilteredX \ |
|
4929 |
(BTRACE_HEADER_CP(16,(aCategory),(aSubCategory)),(TUint32)(aUid),(TUint32)(a1),(TUint32)(a2)) |
|
4930 |
||
4931 |
/** |
|
4932 |
Output a trace record of the specified category which also includes |
|
4933 |
Context ID and Program Counter values. |
|
4934 |
||
4935 |
If the value of \a aUid is not contained in the secondary filter then the trace is discarded. |
|
4936 |
||
4937 |
@param aCategory A value from enum BTrace::TCategory, |
|
4938 |
@param aSubCategory Sub-category value between 0 and 255. |
|
4939 |
The meaning of this is dependent on the Category. |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
4940 |
@param aUid The first 32bit quantity which forms the data of this trace record. |
0 | 4941 |
@param a1 The second 32bit quantity which forms the data of this trace record. |
4942 |
@param aData Address of addition data to add to trace. |
|
4943 |
Must be word aligned, i.e. a multiple of 4. |
|
4944 |
@param aDataSize Number of bytes of additional data. If this value is greater than |
|
4945 |
KMaxBTraceDataArray then data is truncated to this size and the |
|
4946 |
flag ERecordTruncated is set in the record. |
|
4947 |
||
4948 |
@return True if trace is enabled for aCategory and aUid, false otherwise. |
|
4949 |
@publishedPartner |
|
4950 |
@released |
|
4951 |
*/ |
|
4952 |
#define BTraceFilteredContextPcN(aCategory,aSubCategory,aUid,a1,aData,aDataSize) \ |
|
4953 |
BTrace::OutFilteredNX \ |
|
4954 |
(BTRACE_HEADER_CP(12,(aCategory),(aSubCategory)),(TUint32)(aUid),(TUint32)(a1),aData,aDataSize) |
|
4955 |
||
4956 |
/** |
|
4957 |
Output a trace record of the specified category which also includes |
|
4958 |
Context ID and Program Counter values. |
|
4959 |
||
4960 |
If the specified data is too big to find into a single trace record, then a |
|
4961 |
multipart trace is generated. See TMultiPart. |
|
4962 |
||
4963 |
If the value of \a aUid is not contained in the secondary filter then the trace is discarded. |
|
4964 |
||
4965 |
@param aCategory A value from enum BTrace::TCategory, |
|
4966 |
@param aSubCategory Sub-category value between 0 and 255. |
|
4967 |
The meaning of this is dependent on the Category. |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
4968 |
@param aUid The first 32bit quantity which forms the data of this trace record. |
0 | 4969 |
@param aData Address of addition data to add to trace. |
4970 |
Must be word aligned, i.e. a multiple of 4. |
|
4971 |
@param aDataSize Number of bytes of additional data. |
|
4972 |
||
4973 |
@return True if trace is enabled for aCategory and aUid, false otherwise. |
|
4974 |
@publishedPartner |
|
4975 |
@released |
|
4976 |
*/ |
|
4977 |
#define BTraceFilteredContextPcBig(aCategory,aSubCategory,aUid,aData,aDataSize) \ |
|
4978 |
BTrace::OutFilteredBig \ |
|
4979 |
(BTRACE_HEADER_CP(8,(aCategory),(aSubCategory)),(TUint32)(aUid),aData,(TInt)(aDataSize)) |
|
4980 |
||
4981 |
||
4982 |
||
4983 |
// |
|
4984 |
// Inline methods |
|
4985 |
// |
|
4986 |
||
4987 |
inline TUint8* BTrace::NextRecord(TAny* aCurrentRecord) |
|
4988 |
{ |
|
4989 |
TUint size = ((TUint8*)aCurrentRecord)[ESizeIndex]; |
|
4990 |
*(TUint*)&aCurrentRecord += 3; |
|
4991 |
*(TUint*)&aCurrentRecord += size; |
|
4992 |
*(TUint*)&aCurrentRecord &= ~3; |
|
4993 |
return (TUint8*)aCurrentRecord; |
|
4994 |
} |
|
4995 |
||
4996 |
#ifdef __KERNEL_MODE__ |
|
4997 |
||
4998 |
inline TInt BTrace::Filter(TUint aCategory) |
|
4999 |
{ |
|
5000 |
return SetFilter(aCategory,-1); |
|
5001 |
} |
|
5002 |
||
5003 |
#endif |
|
5004 |
||
5005 |
/** |
|
5006 |
The maximum permissible value for aDataSize in trace outputs. |
|
5007 |
@see BTraceN BTracePcN BTraceContextN BTraceContextPcN |
|
5008 |
@publishedPartner |
|
5009 |
@released |
|
5010 |
*/ |
|
5011 |
const TUint KMaxBTraceDataArray = 80; |
|
5012 |
||
5013 |
||
5014 |
||
5015 |
/** |
|
5016 |
The maximum total number of bytes in a trace record. |
|
5017 |
@publishedPartner |
|
5018 |
@released |
|
5019 |
*/ |
|
5020 |
const TInt KMaxBTraceRecordSize = 7*4+8+KMaxBTraceDataArray; |
|
5021 |
||
5022 |
||
5023 |
#ifdef __MARM__ |
|
5024 |
#define BTRACE_MACHINE_CODED |
|
5025 |
#endif |
|
5026 |
||
5027 |
#endif |