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 MEMSPYDRIVERLOGICALCHANSTACK_H
|
|
19 |
#define MEMSPYDRIVERLOGICALCHANSTACK_H
|
|
20 |
|
|
21 |
// System includes
|
|
22 |
#include <e32cmn.h>
|
|
23 |
#include <kernel.h>
|
|
24 |
|
|
25 |
// Shared includes
|
|
26 |
#include <memspy/driver/memspydriverenumerationsshared.h>
|
|
27 |
|
|
28 |
// User includes
|
|
29 |
#include "MemSpyDriverLogChanBase.h"
|
|
30 |
|
|
31 |
// Classes referenced
|
|
32 |
class DMemSpyDriverDevice;
|
|
33 |
class TMemSpyDriverStackInfo;
|
|
34 |
class TMemSpyDriverInternalStackDataParams;
|
|
35 |
|
|
36 |
|
|
37 |
|
54
|
38 |
NONSHARABLE_CLASS(DMemSpyDriverLogChanStack) : public DMemSpyDriverLogChanBase
|
51
|
39 |
{
|
|
40 |
public:
|
|
41 |
DMemSpyDriverLogChanStack( DMemSpyDriverDevice& aDevice, DThread& aThread );
|
|
42 |
~DMemSpyDriverLogChanStack();
|
|
43 |
|
|
44 |
public: // From DMemSpyDriverLogChanBase
|
|
45 |
TInt Request( TInt aFunction, TAny* a1, TAny* a2 );
|
|
46 |
TBool IsHandler( TInt aFunction ) const;
|
|
47 |
|
|
48 |
private: // Channel operation handlers
|
|
49 |
TInt GetStackData( TMemSpyDriverInternalStackDataParams* aParams );
|
|
50 |
TInt GetStackInfo( TUint aTid, TMemSpyDriverStackInfo* aParams );
|
|
51 |
|
|
52 |
private: // Internal methods
|
|
53 |
void GetStackPointers( DThread* aThread, TUint& aSupSP, TUint& aUsrSP );
|
|
54 |
TInt GetStackHighWatermark( DThread& aThread, TLinAddr& aHighWaterMark, TMemSpyDriverDomainType aDomain, TUint aRune );
|
|
55 |
TInt ReadStackData( DThread& aThread, TDes8& aDestination, TUint8*& aReadAddress, TMemSpyDriverDomainType aDomain );
|
|
56 |
TLinAddr GetStackPointerByDomain( DThread* aThread, TMemSpyDriverDomainType aDomainType );
|
|
57 |
|
|
58 |
private: // Data members
|
|
59 |
};
|
|
60 |
|
|
61 |
|
|
62 |
#endif
|