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