author | hgs |
Mon, 12 Jul 2010 14:24:01 +0100 | |
changeset 202 | 9aca3be14c27 |
parent 121 | 661475905584 |
permissions | -rw-r--r-- |
0 | 1 |
// Copyright (c) 1998-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\nkern\nk_trace.h |
|
15 |
// |
|
16 |
// WARNING: This file contains some APIs which are internal and are subject |
|
17 |
// to change without notice. Such APIs should therefore not be used |
|
18 |
// outside the Kernel and Hardware Services package. |
|
19 |
// |
|
20 |
||
21 |
#ifndef NK_TRACE_H |
|
22 |
#define NK_TRACE_H |
|
23 |
||
24 |
/** |
|
25 |
@internalComponent |
|
26 |
*/ |
|
27 |
#define DEBUGPRINT KPrintf |
|
28 |
||
29 |
/** |
|
30 |
@publishedPartner |
|
31 |
@released |
|
32 |
*/ |
|
33 |
#define DEBUGMASK (KDebugMask()) |
|
34 |
#define DEBUGNUM(x) (KDebugNum(x)) |
|
35 |
||
36 |
GLREF_C void KPrintf(const char*,...); |
|
37 |
||
38 |
/** |
|
39 |
@publishedPartner |
|
40 |
@released |
|
41 |
*/ |
|
42 |
IMPORT_C TInt KDebugMask(); |
|
43 |
IMPORT_C TBool KDebugNum(TInt aBitNum); |
|
44 |
||
45 |
#if defined(_DEBUG) |
|
46 |
//#if (1) |
|
47 |
/** |
|
48 |
@publishedPartner |
|
49 |
@released |
|
50 |
*/ |
|
51 |
// __KTRACE_MASK only supports the first 32 debug trace bits |
|
52 |
#define __KTRACE_MASK(a,p) {if((DEBUGMASK&(a)))p;} |
|
53 |
#define __KTRACE_OPT(a,p) {if((DEBUGNUM(a)))p;} |
|
54 |
#define __KTRACE_OPT2(a,b,p) {if( (DEBUGNUM(a)) || (DEBUGNUM(b)) )p;} |
|
55 |
||
56 |
/** |
|
57 |
@publishedPartner |
|
58 |
@released |
|
59 |
*/ |
|
60 |
// __KTRACE_ALL only supports the first 32 debug trace bits |
|
61 |
#define __KTRACE_ALL(a,p) {if((DEBUGMASK&(a))==(a))p;} |
|
62 |
||
63 |
/** |
|
64 |
@publishedPartner |
|
65 |
@released |
|
66 |
*/ |
|
67 |
#define KHARDWARE 0 //0x00000001 |
|
68 |
||
69 |
/** |
|
70 |
@publishedPartner |
|
71 |
@released |
|
72 |
*/ |
|
73 |
#define KBOOT 1 //0x00000002 |
|
74 |
||
75 |
/** |
|
76 |
@publishedPartner |
|
77 |
@released |
|
78 |
*/ |
|
79 |
#define KSERVER 2 //0x00000004 |
|
80 |
||
81 |
/** |
|
82 |
@publishedPartner |
|
83 |
@released |
|
84 |
*/ |
|
85 |
#define KMMU 3 //0x00000008 |
|
86 |
||
87 |
/** |
|
88 |
@publishedPartner |
|
89 |
@released |
|
90 |
*/ |
|
91 |
#define KSEMAPHORE 4 //0x00000010 |
|
92 |
||
93 |
/** |
|
94 |
@publishedPartner |
|
95 |
@released |
|
96 |
*/ |
|
97 |
#define KSCHED 5 //0x00000020 |
|
98 |
||
99 |
/** |
|
100 |
@publishedPartner |
|
101 |
@released |
|
102 |
*/ |
|
103 |
#define KPROC 6 //0x00000040 |
|
104 |
||
105 |
/** |
|
106 |
@publishedPartner |
|
107 |
@released |
|
108 |
*/ |
|
109 |
#define KEXEC 7 //0x00000080 |
|
110 |
||
111 |
/** |
|
112 |
@publishedPartner |
|
113 |
@released |
|
114 |
*/ |
|
115 |
#define KDEBUGGER 8 //0x00000100 // for kernel-side debug agents |
|
116 |
||
117 |
/** |
|
118 |
@publishedPartner |
|
119 |
@released |
|
120 |
*/ |
|
121 |
#define KTHREAD 9 //0x00000200 |
|
122 |
||
123 |
/** |
|
124 |
@publishedPartner |
|
125 |
@released |
|
126 |
*/ |
|
127 |
#define KDLL 10 //0x00000400 |
|
128 |
||
129 |
/** |
|
130 |
@publishedPartner |
|
131 |
@released |
|
132 |
*/ |
|
133 |
#define KIPC 11 //0x00000800 |
|
134 |
||
135 |
/** |
|
136 |
@publishedPartner |
|
137 |
@released |
|
138 |
*/ |
|
139 |
#define KPBUS1 12 //0x00001000 |
|
140 |
||
141 |
/** |
|
142 |
@publishedPartner |
|
143 |
@released |
|
144 |
*/ |
|
145 |
#define KPBUS2 13 //0x00002000 |
|
146 |
||
147 |
/** |
|
148 |
@publishedPartner |
|
149 |
@released |
|
150 |
*/ |
|
151 |
#define KPBUSDRV 14 //0x00004000 |
|
152 |
||
153 |
/** |
|
154 |
@publishedPartner |
|
155 |
@released |
|
156 |
*/ |
|
157 |
#define KPOWER 15 //0x00008000 |
|
158 |
||
159 |
/** |
|
160 |
@publishedPartner |
|
161 |
@released |
|
162 |
*/ |
|
163 |
#define KTIMING 16 //0x00010000 |
|
164 |
||
165 |
/** |
|
166 |
@publishedPartner |
|
167 |
@released |
|
168 |
*/ |
|
169 |
#define KEVENT 17 //0x00020000 |
|
170 |
||
171 |
/** |
|
172 |
@publishedPartner |
|
173 |
@released |
|
174 |
*/ |
|
175 |
#define KOBJECT 18 //0x00040000 |
|
176 |
||
177 |
/** |
|
178 |
@publishedPartner |
|
179 |
@released |
|
180 |
*/ |
|
181 |
#define KDFC 19 //0x00080000 |
|
182 |
||
183 |
/** |
|
184 |
@publishedPartner |
|
185 |
@released |
|
186 |
*/ |
|
187 |
#define KEXTENSION 20 //0x00100000 |
|
188 |
||
189 |
/** |
|
190 |
@publishedPartner |
|
191 |
@released |
|
192 |
*/ |
|
193 |
#define KSCHED2 21 //0x00200000 |
|
194 |
||
195 |
/** |
|
196 |
@publishedPartner |
|
197 |
@released |
|
198 |
*/ |
|
199 |
#define KLOCDRV 22 //0x00400000 |
|
200 |
||
201 |
/** |
|
202 |
@publishedPartner |
|
203 |
@released |
|
204 |
*/ |
|
205 |
#define KFAIL 23 //0x00800000 |
|
206 |
||
207 |
/** |
|
208 |
@publishedPartner |
|
209 |
@released |
|
210 |
*/ |
|
211 |
#define KTHREAD2 24 //0x01000000 |
|
212 |
||
213 |
/** |
|
214 |
@publishedPartner |
|
215 |
@released |
|
216 |
*/ |
|
217 |
#define KDEVICE 25 //0x02000000 |
|
218 |
||
219 |
/** |
|
220 |
@publishedPartner |
|
221 |
@released |
|
222 |
*/ |
|
223 |
#define KMEMTRACE 26 //0x04000000 |
|
224 |
||
225 |
/** |
|
226 |
@publishedPartner |
|
227 |
@released |
|
228 |
*/ |
|
229 |
#define KDMA 27 //0x08000000 |
|
230 |
||
231 |
/** |
|
232 |
@publishedPartner |
|
233 |
@released |
|
234 |
*/ |
|
235 |
#define KMMU2 28 //0x10000000 |
|
236 |
||
237 |
/** |
|
238 |
@publishedPartner |
|
239 |
@released |
|
240 |
*/ |
|
241 |
#define KNKERN 29 //0x20000000 |
|
242 |
||
243 |
/** |
|
244 |
@publishedPartner |
|
245 |
@released |
|
246 |
*/ |
|
247 |
#define KSCRATCH 30 //0x40000000 // reserved for temporary debugging |
|
248 |
||
249 |
/** |
|
250 |
@publishedPartner |
|
251 |
@released |
|
252 |
*/ |
|
253 |
#define KPANIC 31 //0x80000000 |
|
254 |
||
255 |
/** |
|
256 |
@publishedPartner |
|
257 |
@released |
|
258 |
*/ |
|
259 |
#define KUSB 32 //0x00000001, index 1 |
|
260 |
||
261 |
/** |
|
262 |
@publishedPartner |
|
263 |
@released |
|
264 |
*/ |
|
265 |
#define KUSBPSL 33 //0x00000002, index 1 |
|
266 |
||
267 |
/** |
|
268 |
@internalComponent |
|
269 |
@released |
|
270 |
*/ |
|
271 |
#define KNETWORK1 34 //0x00000004, index 1 |
|
272 |
||
273 |
/** |
|
274 |
@internalComponent |
|
275 |
@released |
|
276 |
*/ |
|
277 |
#define KNETWORK2 35 //0x00000008, index 1 |
|
278 |
||
279 |
/** |
|
280 |
@publishedPartner |
|
281 |
@released |
|
282 |
*/ |
|
283 |
#define KSOUND1 36 //0x00000010, index 1 |
|
284 |
||
285 |
/** |
|
286 |
@publishedPartner |
|
287 |
@released |
|
288 |
*/ |
|
289 |
#define KUSBHOST 37 //0x00000020, index 1 |
|
290 |
||
291 |
/** |
|
292 |
@publishedPartner |
|
293 |
@released |
|
294 |
*/ |
|
295 |
#define KUSBOTG 38 //0x00000040, index 1 |
|
296 |
||
297 |
/** |
|
298 |
@publishedPartner |
|
299 |
@released |
|
300 |
*/ |
|
301 |
#define KUSBJOURNAL 39 //0x00000080, index 1 |
|
302 |
||
303 |
/** |
|
304 |
@publishedPartner |
|
305 |
@released |
|
306 |
*/ |
|
307 |
#define KUSBHO 40 //0x00000100, index 1 |
|
308 |
||
309 |
/** |
|
310 |
@publishedPartner |
|
311 |
@released |
|
312 |
*/ |
|
313 |
#define KRESMANAGER 41 //0x00000200, index 1 |
|
314 |
||
315 |
/** |
|
316 |
@publishedPartner |
|
317 |
@prototype |
|
318 |
*/ |
|
319 |
#define KIIC 42 //0x00000400, index 1 |
|
320 |
||
321 |
/** |
|
31
56f325a607ea
Revision: 200951
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
322 |
@publishedPartner |
56f325a607ea
Revision: 200951
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
323 |
@prototype |
56f325a607ea
Revision: 200951
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
324 |
*/ |
56f325a607ea
Revision: 200951
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
325 |
#define KHCR 43 //0x00000800, index 1 |
56f325a607ea
Revision: 200951
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
326 |
|
56f325a607ea
Revision: 200951
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
327 |
/** |
0 | 328 |
@internalComponent |
329 |
@released |
|
330 |
*/ |
|
331 |
#define KREALTIME 63 //0x80000000, index 1 |
|
332 |
||
333 |
/** |
|
334 |
@internalComponent |
|
335 |
@released |
|
336 |
*/ |
|
337 |
#define KPAGING 62 //0x40000000, index 1 |
|
338 |
||
339 |
/** |
|
340 |
@internalComponent |
|
341 |
@released |
|
342 |
*/ |
|
343 |
#define KLOCDPAGING 61 //0x20000000, index 1 |
|
344 |
||
345 |
/** |
|
346 |
@internalComponent |
|
347 |
@released |
|
348 |
*/ |
|
349 |
#define KDATAPAGEWARN 60 //0x10000000, index 1 |
|
350 |
||
351 |
/** |
|
352 |
@internalComponent |
|
353 |
@prototype |
|
354 |
*/ |
|
355 |
#define KPCI 59 //0x08000000, index 1 |
|
356 |
||
357 |
/** |
|
358 |
@internalComponent |
|
359 |
@prototype |
|
360 |
*/ |
|
361 |
#define KPIPE 58 //0x04000000, index 1 |
|
362 |
||
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
363 |
/** |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
364 |
@internalComponent |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
365 |
*/ |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
366 |
#define KSCHED3 48 //0x00010000, index 1 |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
367 |
|
0 | 368 |
// RESERVED: Trace bits 192 - 255 are reserved for licensee partners |
369 |
||
370 |
||
371 |
/** |
|
372 |
@publishedPartner |
|
373 |
@released |
|
374 |
*/ |
|
375 |
#define KALWAYS -1 //0xffffffff |
|
376 |
#define KMAXTRACE (KNumTraceMaskWords*32-1) // the maximum debug trace bit |
|
377 |
#else |
|
378 |
#define __KTRACE_OPT(a,p) |
|
379 |
#define __KTRACE_ALL(a,p) |
|
380 |
#define __KTRACE_OPT2(a,b,p) |
|
381 |
#define KALWAYS -1 |
|
382 |
#define KMAXTRACE (KNumTraceMaskWords*32-1) |
|
383 |
#endif |
|
384 |
||
385 |
||
386 |
/** |
|
387 |
@publishedPartner |
|
388 |
@released |
|
389 |
*/ |
|
390 |
#define DEBUGMASKWORD2 2 |
|
391 |
||
392 |
/* |
|
393 |
words 0 & 1 of debug mask should be used for kernel debugging |
|
394 |
word 2 of debug mask should be used to configure the ways the kernel behaves |
|
395 |
word 3 of debug mask should be used to configure the ways the user library behaves |
|
396 |
words 4 & 5 of debug mask should be used for file system debugging |
|
397 |
words 6 & 7 of debug mask are reserved for licensees |
|
398 |
*/ |
|
399 |
||
400 |
/** |
|
401 |
@publishedPartner |
|
402 |
@released |
|
403 |
*/ |
|
404 |
#define KALLTHREADSSYSTEM 64 //0x00000001, index 2 |
|
405 |
||
406 |
/** |
|
407 |
Suppresses console output (in EWSRV) for faster automated tests. |
|
408 |
@publishedPartner |
|
409 |
@released |
|
410 |
*/ |
|
411 |
#define KTESTFAST 65 //0x00000002, index 2 |
|
412 |
||
413 |
/** |
|
414 |
Suppresses anything which might disturb latency testing, |
|
415 |
for example platsec diagnostics emitted with the system lock held. |
|
416 |
@publishedPartner |
|
417 |
@released |
|
418 |
*/ |
|
419 |
#define KTESTLATENCY 66 //0x00000004, index 2 |
|
420 |
||
421 |
/** |
|
422 |
When a crash occurs this flag determines whether the debugger executes. |
|
423 |
If set the crash debugger will NOT operate (even if it's in rom). |
|
424 |
If clear the crash debugger will run. |
|
425 |
@publishedPartner |
|
426 |
@released |
|
427 |
*/ |
|
428 |
#define KDEBUGMONITORDISABLE 67 //0x00000008, index 2 |
|
429 |
||
430 |
/** |
|
431 |
When a crash occurs this flag determines whether the logger executes. |
|
432 |
If set the crash logger will NOT operate (even if it's in rom). |
|
433 |
If clear the crash logger will run. |
|
434 |
@publishedPartner |
|
435 |
@released |
|
436 |
*/ |
|
437 |
#define KCRASHLOGGERDISABLE 68 //0x00000010, index 2 |
|
438 |
||
439 |
/** |
|
440 |
Delay scheduling of newly unblocked threads until the next timer tick |
|
441 |
occurs, to check for thread priority dependencies. Part of the crazy |
|
442 |
scheduler functionality. |
|
443 |
@publishedPartner |
|
444 |
@released |
|
445 |
*/ |
|
446 |
#define KCRAZYSCHEDDELAY 69 //0x00000020, index 2 |
|
447 |
||
121 | 448 |
/** |
449 |
Force page faults on kernel access to paged user-side data in a remote thread. |
|
0 | 450 |
|
121 | 451 |
This is designed to help show up problems with device drivers that are not paging safe. |
452 |
||
453 |
@internalComponent |
|
454 |
@prototype |
|
455 |
*/ |
|
456 |
#define KFORCEKUPAGEFAULTS 70 //0x00000040, index 2 |
|
0 | 457 |
|
458 |
/* Word 3 of debug mask : configures user library behaviour */ |
|
459 |
||
460 |
/** |
|
461 |
@publishedPartner |
|
462 |
@released |
|
463 |
*/ |
|
464 |
#define KUSERHEAPTRACE 96 //0x00000001, index 3 |
|
465 |
||
466 |
||
467 |
||
468 |
#ifdef KFAIL |
|
469 |
||
470 |
/** |
|
471 |
@publishedPartner |
|
472 |
@released |
|
473 |
*/ |
|
474 |
#define __KTRACE_FAIL(r,p) {if ((r)!=KErrNone && (DEBUGNUM(KFAIL))) p;} |
|
475 |
||
476 |
#else |
|
477 |
#define __KTRACE_FAIL(r,p) |
|
478 |
#endif |
|
479 |
||
480 |
#include <e32btrace.h> |
|
481 |
||
482 |
#ifdef __KERNEL_MODE__ |
|
483 |
||
484 |
||
485 |
class DBTraceFilter2; |
|
486 |
||
487 |
/** |
|
488 |
@internalComponent |
|
489 |
*/ |
|
490 |
struct SBTraceData |
|
491 |
{ |
|
492 |
TUint8 iFilter[256]; |
|
493 |
BTrace::THandler iHandler; |
|
494 |
BTrace::TControlFunction iControl; |
|
495 |
DBTraceFilter2*volatile iFilter2; |
|
496 |
||
497 |
TBool CheckFilter2(TUint32 aUid); |
|
498 |
}; |
|
499 |
||
500 |
/** |
|
501 |
@internalComponent |
|
502 |
*/ |
|
503 |
extern SBTraceData BTraceData; |
|
504 |
||
505 |
#if defined(_DEBUG) || defined(BTRACE_KERNEL_ALL) |
|
506 |
||
507 |
#undef BTRACE_THREAD_IDENTIFICATION |
|
508 |
#undef BTRACE_CPU_USAGE |
|
509 |
#undef BTRACE_CHUNKS |
|
510 |
#undef BTRACE_CODESEGS |
|
511 |
#undef BTRACE_PAGING |
|
512 |
#undef BTRACE_PAGING_MEDIA |
|
513 |
#undef BTRACE_KERNEL_MEMORY |
|
514 |
#undef BTRACE_RAM_ALLOCATOR |
|
515 |
#undef BTRACE_FAST_MUTEX |
|
516 |
#undef BTRACE_RESOURCE_MANAGER |
|
517 |
#undef BTRACE_RESMANUS |
|
518 |
#undef BTRACE_TRAWEVENT |
|
519 |
#undef BTRACE_SYMBIAN_KERNEL_SYNC |
|
520 |
#undef BTRACE_FLEXIBLE_MEM_MODEL |
|
31
56f325a607ea
Revision: 200951
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
521 |
#undef BTRACE_CLIENT_SERVER |
56f325a607ea
Revision: 200951
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
522 |
#undef BTRACE_REQUESTS |
0 | 523 |
|
524 |
||
525 |
/** |
|
526 |
If defined, code for BTrace category BTrace::EThreadIdentification |
|
527 |
is compiled into the kernel. |
|
528 |
@publishedPartner |
|
529 |
@released |
|
530 |
*/ |
|
531 |
#define BTRACE_THREAD_IDENTIFICATION |
|
532 |
||
533 |
/** |
|
534 |
If defined, code for BTrace category BTrace::ECpuUsage |
|
535 |
is compiled into the kernel. |
|
536 |
@publishedPartner |
|
537 |
@released |
|
538 |
*/ |
|
539 |
#define BTRACE_CPU_USAGE |
|
540 |
||
541 |
/** |
|
542 |
If defined, code for BTrace category BTrace::EChunks is compiled into the |
|
543 |
kernel. |
|
544 |
@publishedPartner |
|
545 |
@released |
|
546 |
*/ |
|
547 |
#define BTRACE_CHUNKS |
|
548 |
||
549 |
/** |
|
550 |
If defined, code for BTrace category BTrace::ECodeSegs is compiled into the |
|
551 |
kernel. |
|
552 |
@publishedPartner |
|
553 |
@released |
|
554 |
*/ |
|
555 |
#define BTRACE_CODESEGS |
|
556 |
||
557 |
/** |
|
558 |
If defined, code for BTrace category BTrace::EPaging is compiled into the |
|
559 |
kernel. |
|
560 |
@publishedPartner |
|
561 |
@released 9.3 |
|
562 |
*/ |
|
563 |
#define BTRACE_PAGING |
|
564 |
||
565 |
/** |
|
566 |
If defined, code for BTrace category BTrace::EPagingMedia is compiled into the |
|
567 |
Local Media Subsystem and relevant paging media drivers. |
|
568 |
@publishedPartner |
|
569 |
@released 9.3 |
|
570 |
*/ |
|
571 |
#define BTRACE_PAGING_MEDIA |
|
572 |
||
573 |
/** |
|
574 |
If defined, code for BTrace category BTrace::EKernelMemory is compiled into the |
|
575 |
kernel. |
|
576 |
@publishedPartner |
|
577 |
@released 9.4 |
|
578 |
*/ |
|
579 |
#define BTRACE_KERNEL_MEMORY |
|
580 |
||
581 |
/** |
|
582 |
If defined, code for BTrace category BTrace::ERamAllocator is compiled into the |
|
583 |
kernel. |
|
584 |
||
585 |
This BTrace category is only supported on the multiple and moving memory models. |
|
586 |
||
587 |
@publishedPartner |
|
588 |
@released 9.4 |
|
589 |
*/ |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
590 |
#if !defined(__MEMMODEL_DIRECT__) && !defined (__MEMMODEL_EMUL_SINGLE_HOST_PROCESS__) |
0 | 591 |
#define BTRACE_RAM_ALLOCATOR |
592 |
#endif |
|
593 |
||
594 |
/** |
|
595 |
If defined, code for BTrace category BTrace::EFastMutex is compiled into the |
|
596 |
kernel. |
|
597 |
*/ |
|
598 |
#define BTRACE_FAST_MUTEX |
|
599 |
||
600 |
/** |
|
601 |
If defined, code for BTrace category BTrace::EResourceManager is compiled into the |
|
602 |
Resource Manager Subsystem. |
|
603 |
@publishedPartner |
|
604 |
@released 9.5 |
|
605 |
*/ |
|
606 |
#define BTRACE_RESOURCE_MANAGER |
|
607 |
||
608 |
/** |
|
609 |
If defined, code for BTrace category BTrace::EResourceManagerUs is compiled into the |
|
610 |
Resource Manager Subsystem's User-Side API. |
|
611 |
@publishedPartner |
|
612 |
@released 9.5 |
|
613 |
*/ |
|
614 |
#define BTRACE_RESMANUS |
|
615 |
||
616 |
/** |
|
617 |
If defined, code for BTrace category BTrace::ERawEvent is compiled into the |
|
618 |
kernel. |
|
619 |
@publishedPartner |
|
620 |
@released 9.5 |
|
621 |
*/ |
|
622 |
#define BTRACE_TRAWEVENT |
|
623 |
||
624 |
/** |
|
625 |
If defined, code for BTrace category BTrace::ESymbianKernelSync is compiled into |
|
626 |
the kernel. |
|
627 |
*/ |
|
628 |
#define BTRACE_SYMBIAN_KERNEL_SYNC |
|
629 |
||
630 |
/** |
|
631 |
If defined, code for BTrace category BTrace::EFlexibleMemModel is compiled into |
|
632 |
the kernel. |
|
633 |
||
634 |
This BTrace category is only supported on the flexible memory model. |
|
635 |
*/ |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
636 |
#ifdef __MEMMODEL_FLEXIBLE__ |
0 | 637 |
#define BTRACE_FLEXIBLE_MEM_MODEL |
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
638 |
#endif |
0 | 639 |
|
640 |
/** |
|
641 |
If defined, code for BTrace category BTrace::EIic is compiled into the |
|
642 |
IIC Subsystem. |
|
643 |
*/ |
|
644 |
#define BTRACE_IIC |
|
645 |
||
31
56f325a607ea
Revision: 200951
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
646 |
/** |
56f325a607ea
Revision: 200951
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
647 |
If defined, code for BTrace category BTrace::EClientServer is compiled into the |
56f325a607ea
Revision: 200951
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
648 |
kernel. |
56f325a607ea
Revision: 200951
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
649 |
*/ |
56f325a607ea
Revision: 200951
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
650 |
#define BTRACE_CLIENT_SERVER |
56f325a607ea
Revision: 200951
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
651 |
|
56f325a607ea
Revision: 200951
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
652 |
/** |
56f325a607ea
Revision: 200951
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
653 |
If defined, code for BTrace category BTrace::ERequest is compiled into the |
56f325a607ea
Revision: 200951
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
654 |
kernel. |
56f325a607ea
Revision: 200951
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
655 |
*/ |
56f325a607ea
Revision: 200951
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
656 |
#define BTRACE_REQUESTS |
56f325a607ea
Revision: 200951
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
657 |
|
0 | 658 |
#endif // _DEBUG |
659 |
||
660 |
#endif // __KERNEL_MODE__ |
|
661 |
||
662 |
||
663 |
#if defined(BTRACE_KERNEL_PROTOTYPE) |
|
664 |
// Prototype trace categories... |
|
665 |
#undef BTRACE_THREAD_PRIORITY |
|
666 |
#define BTRACE_THREAD_PRIORITY |
|
667 |
#endif |
|
668 |
||
669 |
#if defined(BTRACE_KERNEL_VERBOSE) |
|
670 |
// Verbose trace options |
|
671 |
||
672 |
#ifdef BTRACE_PAGING |
|
673 |
/** |
|
674 |
If defined, verbose code for BTrace category BTrace::EPaging is compiled into the |
|
675 |
kernel. |
|
676 |
@publishedPartner |
|
677 |
@released 9.3 |
|
678 |
*/ |
|
679 |
#define BTRACE_PAGING_VERBOSE |
|
680 |
#endif |
|
681 |
||
682 |
#endif //BTRACE_KERNEL_VERBOSE |
|
683 |
||
684 |
#if defined(_DEBUG) && !defined(__SMP__) |
|
685 |
/** |
|
686 |
@internalComponent |
|
687 |
*/ |
|
688 |
TInt KCrazySchedulerEnabled(); |
|
689 |
#endif |
|
690 |
||
691 |
#endif // NK_TRACE_H |