1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: The file contains declarations of extern methods and definitions |
|
15 * of overloaded User methods. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #include <analyzetool/customuser.h> |
|
22 #include "atlog.h" |
|
23 |
|
24 // ----------------------------------------------------------------------------- |
|
25 // LogFileName() |
|
26 // Extern function for acquiring the log filename |
|
27 // ----------------------------------------------------------------------------- |
|
28 // |
|
29 GLREF_C const TFileName LogFileName(); |
|
30 |
|
31 // ----------------------------------------------------------------------------- |
|
32 // LogOption() |
|
33 // Extern function for acquiring logging option |
|
34 // ----------------------------------------------------------------------------- |
|
35 // |
|
36 GLREF_C TUint32 LogOption(); |
|
37 |
|
38 // ----------------------------------------------------------------------------- |
|
39 // IsDebug() |
|
40 // Extern function for acquiring UDEB/UREL information |
|
41 // ----------------------------------------------------------------------------- |
|
42 // |
|
43 GLREF_C TUint32 IsDebug(); |
|
44 |
|
45 // ----------------------------------------------------------------------------- |
|
46 // AtoolVersion() |
|
47 // Extern function for acquiring the version number |
|
48 // ----------------------------------------------------------------------------- |
|
49 // |
|
50 GLREF_C const TFileName AtoolVersion(); |
|
51 |
|
52 // ----------------------------------------------------------------------------- |
|
53 // AllocCallStackSize() |
|
54 // Extern function for acquiring max allocation call stack size |
|
55 // ----------------------------------------------------------------------------- |
|
56 // |
|
57 GLREF_C TUint32 AllocCallStackSize(); |
|
58 |
|
59 // ----------------------------------------------------------------------------- |
|
60 // FreeCallStackSize() |
|
61 // Extern function for acquiring max free call stack size |
|
62 // ----------------------------------------------------------------------------- |
|
63 // |
|
64 GLREF_C TUint32 FreeCallStackSize(); |
|
65 |
|
66 // ----------------------------------------------------------------------------- |
|
67 // User::Exit() |
|
68 // Overloaded User::Exit() function |
|
69 // ----------------------------------------------------------------------------- |
|
70 // |
|
71 void User::Exit( TInt aReason ) |
|
72 { |
|
73 LOGSTR2( "ATMH User::Exit %i", aReason ); |
|
74 CustomUser::Exit( aReason ); |
|
75 } |
|
76 |
|
77 // ----------------------------------------------------------------------------- |
|
78 // User::Panic() |
|
79 // Overloaded User::Panic() function |
|
80 // ----------------------------------------------------------------------------- |
|
81 // |
|
82 void User::Panic( const TDesC& aCategory, TInt aReason ) |
|
83 { |
|
84 LOGSTR3( "ATMH User::Panic() %S %i", &aCategory, aReason ); |
|
85 CustomUser::Panic( aCategory, aReason ); |
|
86 } |
|
87 |
|
88 // ----------------------------------------------------------------------------- |
|
89 // User::SetCritical() |
|
90 // Overloaded User::SetCritical() function which returns |
|
91 // KErrNone, if successful; KErrArgument, if EAllThreadsCritical is |
|
92 // passed - this is a state associated with a process, and you use |
|
93 // User::SetProcessCritical() to set it. |
|
94 // ----------------------------------------------------------------------------- |
|
95 // |
|
96 TInt User::SetCritical( TCritical aCritical ) |
|
97 { |
|
98 LOGSTR2( "ATMH User::SetCritical() %i", aCritical ); |
|
99 return CustomUser::SetCritical( aCritical ); |
|
100 } |
|
101 |
|
102 // ----------------------------------------------------------------------------- |
|
103 // User::SetProcessCritical() |
|
104 // Overloaded User::SetProcessCritical() function |
|
105 // KErrNone, if successful; KErrArgument, if either EProcessCritical or |
|
106 // EProcessPermanent is passed - these are states associated with a |
|
107 // thread, and you use User::SetCritical() to set them. |
|
108 // ----------------------------------------------------------------------------- |
|
109 // |
|
110 TInt User::SetProcessCritical( TCritical aCritical ) |
|
111 { |
|
112 LOGSTR2( "ATMH User::SetProcessCritical() %i", aCritical ); |
|
113 return CustomUser::SetProcessCritical( aCritical ); |
|
114 } |
|
115 |
|
116 // ----------------------------------------------------------------------------- |
|
117 // UserHeap::SetupThreadHeap() |
|
118 // Overloaded UserHeap::SetupThreadHeap function |
|
119 // ----------------------------------------------------------------------------- |
|
120 // |
|
121 TInt UserHeap::SetupThreadHeap( TBool aNotFirst, |
|
122 SStdEpocThreadCreateInfo& aInfo ) |
|
123 { |
|
124 LOGSTR1( "ATMH UserHeap::SetupThreadHeap()" ); |
|
125 |
|
126 return CustomUser::SetupThreadHeap( aNotFirst, aInfo, LogFileName(), |
|
127 LogOption(), IsDebug(), AtoolVersion(), AllocCallStackSize(), FreeCallStackSize() ); |
|
128 } |
|
129 |
|
130 // End of File |
|