|
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 MEMSPYDRIVERLOGICALCHANCONTAINERS_H |
|
19 #define MEMSPYDRIVERLOGICALCHANCONTAINERS_H |
|
20 |
|
21 // System includes |
|
22 #include <e32cmn.h> |
|
23 #include <kern_priv.h> |
|
24 |
|
25 // User includes |
|
26 #include "MemSpyDriverLogChanContainerBase.h" |
|
27 |
|
28 // Classes referenced |
|
29 class TMemSpyDriverPAndSInfo; |
|
30 class DMemSpyDriverDevice; |
|
31 class TMemSpyDriverHandleInfoGeneric; |
|
32 class TMemSpyDriverInternalContainerHandleParams; |
|
33 class TMemSpyDriverInternalRefsToThreadOrProcess; |
|
34 class TMemSpyDriverInternalCondVarSuspendedThreadParams; |
|
35 class TMemSpyDriverCondVarSuspendedThreadInfo; |
|
36 |
|
37 |
|
38 class DMemSpyDriverLogChanContainers : public DMemSpyDriverLogChanContainerBase |
|
39 { |
|
40 public: |
|
41 DMemSpyDriverLogChanContainers( DMemSpyDriverDevice& aDevice, DThread& aThread ); |
|
42 ~DMemSpyDriverLogChanContainers(); |
|
43 TInt Construct(); |
|
44 |
|
45 public: // From DMemSpyDriverLogChanBase |
|
46 TInt Request( TInt aFunction, TAny* a1, TAny* a2 ); |
|
47 TBool IsHandler( TInt aFunction ) const; |
|
48 |
|
49 private: // Channel operation handlers |
|
50 TInt GetContainerHandles( TMemSpyDriverInternalContainerHandleParams* aParams ); |
|
51 TInt GetKernelObjectSizeApproximation( TMemSpyDriverContainerType aType, TInt* aSize ); |
|
52 TInt GetGenericHandleInfo( TInt aTid, TMemSpyDriverHandleInfoGeneric* aParams ); |
|
53 TInt GetReferencesToMyThread( TUint aTid, TDes8* aBufferSink ); |
|
54 TInt GetReferencesToMyProcess( TUint aTid, TDes8* aBufferSink ); |
|
55 TInt GetPAndSInfo( DObject* aHandle, TMemSpyDriverPAndSInfo* aInfo ); |
|
56 TInt GetCondVarSuspendedThreads( TMemSpyDriverInternalCondVarSuspendedThreadParams* aParams ); |
|
57 TInt GetCondVarSuspendedThreadInfo( TAny* aThreadHandle, TMemSpyDriverCondVarSuspendedThreadInfo* aParams ); |
|
58 |
|
59 |
|
60 private: // Internal methods |
|
61 TInt SearchThreadsFor( DObject* aHandleToLookFor, RMemSpyMemStreamWriter& aStream ); |
|
62 TInt SearchProcessFor( DObject* aHandleToLookFor, RMemSpyMemStreamWriter& aStream ); |
|
63 static TMemSpyDriverTimerState MapToMemSpyTimerState( TTimer::TTimerState aState ); |
|
64 static TMemSpyDriverTimerType MapToMemSpyTimerType( TTimer::TTimerType aType ); |
|
65 }; |
|
66 |
|
67 |
|
68 #endif |