51
|
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:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef MEMSPYDRIVEROBJECTSINTERNAL_H
|
|
19 |
#define MEMSPYDRIVEROBJECTSINTERNAL_H
|
|
20 |
|
|
21 |
// System includes
|
|
22 |
#include <e32cmn.h>
|
|
23 |
|
|
24 |
// User includes
|
|
25 |
#include <memspy/driver/memspydriverobjectsshared.h>
|
|
26 |
#include <memspy/driver/memspydriverenumerationsshared.h>
|
|
27 |
#include "MemSpyDriverEnumerationsInternal.h"
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
class TMemSpyDriverInternalHeapRequestParameters
|
|
33 |
{
|
|
34 |
public:
|
|
35 |
inline TMemSpyDriverInternalHeapRequestParameters()
|
|
36 |
: iTid(0), iRHeapVTable(0), iBuildFreeCellList(EFalse), iBuildAllocCellList(EFalse), iDebugAllocator(EFalse), iMasterInfo(NULL)
|
|
37 |
{
|
|
38 |
}
|
|
39 |
|
|
40 |
public: // Params IN
|
|
41 |
TUint iTid;
|
|
42 |
TUint32 iRHeapVTable;
|
|
43 |
TBool iBuildFreeCellList;
|
|
44 |
TBool iBuildAllocCellList;
|
|
45 |
|
|
46 |
public: // Params IN or OUT (IN in User heap requests, OUT in Kernel heap requests)
|
|
47 |
TBool iDebugAllocator;
|
|
48 |
|
|
49 |
public: // Params IN and OUT
|
|
50 |
TMemSpyHeapInfo* iMasterInfo;
|
|
51 |
};
|
|
52 |
|
|
53 |
|
|
54 |
|
|
55 |
|
|
56 |
|
|
57 |
|
|
58 |
|
|
59 |
|
|
60 |
|
|
61 |
/**
|
|
62 |
* Parameters for User & Kernel heap data fetch
|
|
63 |
*/
|
|
64 |
struct TMemSpyDriverInternalHeapDataParams
|
|
65 |
{
|
|
66 |
TUint iTid;
|
|
67 |
TUint iRHeapVTable;
|
|
68 |
TDes8* iDes; // Not used during kernel heap fetch
|
|
69 |
TInt iRemaining; // Not used during kernel heap fetch
|
|
70 |
TUint iReadAddress;
|
|
71 |
TUint32 iChecksum;
|
|
72 |
TBool iDebugAllocator;
|
|
73 |
};
|
|
74 |
|
|
75 |
|
|
76 |
|
|
77 |
/**
|
|
78 |
*
|
|
79 |
*/
|
|
80 |
struct TMemSpyDriverInternalStackDataParams
|
|
81 |
{
|
|
82 |
TUint iTid;
|
|
83 |
TDes8* iDes;
|
|
84 |
TMemSpyDriverDomainType iDomain;
|
|
85 |
TBool iEntireStack;
|
|
86 |
TInt iRemaining;
|
|
87 |
};
|
|
88 |
|
|
89 |
|
|
90 |
/**
|
|
91 |
*
|
|
92 |
*/
|
|
93 |
struct TMemSpyDriverInternalChunkHandleParams
|
|
94 |
{
|
|
95 |
TUint iId;
|
|
96 |
TMemSpyDriverPrivateObjectType iType;
|
|
97 |
TAny** iHandles;
|
|
98 |
TInt* iCountPtr;
|
|
99 |
TInt iMaxCount;
|
|
100 |
};
|
|
101 |
|
|
102 |
|
|
103 |
/**
|
|
104 |
*
|
|
105 |
*/
|
|
106 |
struct TMemSpyDriverInternalChunkInfoParams
|
|
107 |
{
|
|
108 |
TAny* iHandle;
|
|
109 |
TAny* iBaseAddress;
|
|
110 |
TInt iSize;
|
|
111 |
TInt iMaxSize;
|
|
112 |
TUint iOwnerId;
|
|
113 |
TBuf8<KMaxFullName> iName;
|
|
114 |
TMemSpyDriverChunkType iType;
|
|
115 |
TInt iAttributes;
|
|
116 |
};
|
|
117 |
|
|
118 |
|
|
119 |
/**
|
|
120 |
*
|
|
121 |
*/
|
|
122 |
struct TMemSpyDriverInternalCodeSnapshotParams
|
|
123 |
{
|
|
124 |
TUint iFilter;
|
|
125 |
TAny** iHandles;
|
|
126 |
TInt* iCountPtr;
|
|
127 |
TInt iMaxCount;
|
|
128 |
};
|
|
129 |
|
|
130 |
|
|
131 |
|
|
132 |
/**
|
|
133 |
*
|
|
134 |
*/
|
|
135 |
struct TMemSpyDriverInternalCodeSegParams
|
|
136 |
{
|
|
137 |
TUint iPid;
|
|
138 |
TAny* iHandle;
|
|
139 |
TMemSpyDriverCodeSegInfo* iInfoPointer;
|
|
140 |
};
|
|
141 |
|
|
142 |
|
|
143 |
|
|
144 |
|
|
145 |
/**
|
|
146 |
*
|
|
147 |
*/
|
|
148 |
struct TMemSpyDriverInternalContainerHandleParams
|
|
149 |
{
|
|
150 |
TInt iTidOrPid;
|
|
151 |
TMemSpyDriverThreadOrProcess iHandleSource;
|
|
152 |
TMemSpyDriverContainerType iContainer;
|
|
153 |
TAny** iHandles;
|
|
154 |
TInt* iCountPtr;
|
|
155 |
TInt iMaxCount;
|
|
156 |
};
|
|
157 |
|
|
158 |
|
|
159 |
|
|
160 |
|
|
161 |
/**
|
|
162 |
*
|
|
163 |
*/
|
|
164 |
struct TMemSpyDriverInternalServerSessionHandleParams
|
|
165 |
{
|
|
166 |
TAny* iServerHandle;
|
|
167 |
TAny** iSessionHandles;
|
|
168 |
TInt* iSessionCountPtr;
|
|
169 |
TInt iMaxCount;
|
|
170 |
};
|
|
171 |
|
|
172 |
|
|
173 |
|
|
174 |
/**
|
|
175 |
*
|
|
176 |
*/
|
|
177 |
struct TMemSpyDriverInternalContainerObjectParams
|
|
178 |
{
|
|
179 |
TUint iTid;
|
|
180 |
TAny* iHandle;
|
|
181 |
TBuf8<KMaxFullName> iFullName;
|
|
182 |
};
|
|
183 |
|
|
184 |
|
|
185 |
|
|
186 |
|
|
187 |
|
|
188 |
/**
|
|
189 |
*
|
|
190 |
*/
|
|
191 |
struct TMemSpyDriverInternalReadMemParams
|
|
192 |
{
|
|
193 |
TUint iTid;
|
|
194 |
TLinAddr iAddr;
|
|
195 |
TDes8* iDes;
|
|
196 |
};
|
|
197 |
|
|
198 |
|
|
199 |
/**
|
|
200 |
*
|
|
201 |
*/
|
|
202 |
struct TMemSpyDriverInternalThreadInfoParams : public TMemSpyDriverThreadInfoBase
|
|
203 |
{
|
|
204 |
// In:
|
|
205 |
TUint iRHeapVTable;
|
|
206 |
TBool iDebugAllocator;
|
|
207 |
|
|
208 |
// Out:
|
|
209 |
TBuf8<KMaxFullName> iFullName;
|
|
210 |
|
|
211 |
/*
|
|
212 |
TUint iPid;
|
|
213 |
TLinAddr iStackBase;
|
|
214 |
TInt iStackSize;
|
|
215 |
TMemSpyDriverRegSet iCpu;
|
|
216 |
TLinAddr iSupervisorStackBase;
|
|
217 |
TInt iSupervisorStackSize;
|
|
218 |
CActiveScheduler* iScheduler;
|
|
219 |
RAllocator* iAllocator;
|
|
220 |
|
|
221 |
TBuf8<KMaxExitCategoryName> iExitCategory;
|
|
222 |
TInt iExitReason;
|
|
223 |
TThreadPriority iThreadPriority;
|
|
224 |
TInt iDefaultPriority;
|
|
225 |
TExitType iExitType;
|
|
226 |
TInt iIpcCount;
|
|
227 |
RAllocator* iCreatedAllocator;
|
|
228 |
TInt iThreadType;
|
|
229 |
TInt iLeaveDepth;
|
|
230 |
TUint32 iFlags;
|
|
231 |
*/
|
|
232 |
};
|
|
233 |
|
|
234 |
|
|
235 |
/**
|
|
236 |
*
|
|
237 |
*/
|
|
238 |
struct TMemSpyDriverInternalWalkHeapParamsInit
|
|
239 |
{
|
|
240 |
TUint iTid;
|
|
241 |
TUint iRHeapVTable;
|
|
242 |
TBool iDebugAllocator;
|
|
243 |
};
|
|
244 |
|
|
245 |
|
|
246 |
/**
|
|
247 |
*
|
|
248 |
*/
|
|
249 |
struct TMemSpyDriverInternalWalkHeapParamsCell
|
|
250 |
{
|
|
251 |
TInt iCellType;
|
|
252 |
TAny* iCellAddress;
|
|
253 |
TInt iLength;
|
|
254 |
TInt iNestingLevel;
|
|
255 |
TInt iAllocNumber;
|
|
256 |
};
|
|
257 |
|
|
258 |
|
|
259 |
/**
|
|
260 |
*
|
|
261 |
*/
|
|
262 |
struct TMemSpyDriverInternalWalkHeapCellDataReadParams
|
|
263 |
{
|
|
264 |
TAny* iCellAddress;
|
|
265 |
TInt iReadLen;
|
|
266 |
TDes8* iDes;
|
|
267 |
};
|
|
268 |
|
|
269 |
|
|
270 |
|
|
271 |
|
|
272 |
|
|
273 |
|
|
274 |
/**
|
|
275 |
*
|
|
276 |
*/
|
|
277 |
struct TMemSpyDriverInternalEventMonitorParams
|
|
278 |
{
|
|
279 |
TUint iHandle;
|
|
280 |
TRequestStatus* iStatus;
|
|
281 |
TAny* iContext;
|
|
282 |
};
|
|
283 |
|
|
284 |
|
|
285 |
|
|
286 |
|
|
287 |
/**
|
|
288 |
*
|
|
289 |
*/
|
|
290 |
struct TMemSpyDriverInternalCondVarSuspendedThreadParams
|
|
291 |
{
|
|
292 |
TAny* iCondVarHandle;
|
|
293 |
TAny** iThrHandles;
|
|
294 |
TInt* iThrCountPtr;
|
|
295 |
TInt iMaxCount;
|
|
296 |
};
|
|
297 |
|
|
298 |
#endif
|