perfsrv/memspy/Driver/Kernel/Include/SubChannels/MemSpyDriverLogChanHeapData.h
changeset 55 f2950aff7424
parent 48 516af714ebb4
equal deleted inserted replaced
48:516af714ebb4 55:f2950aff7424
     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 MEMSPYDRIVERLOGICALCHANHEAPDATA_H
       
    19 #define MEMSPYDRIVERLOGICALCHANHEAPDATA_H
       
    20 
       
    21 // System includes
       
    22 #include <e32cmn.h>
       
    23 #include <kern_priv.h>
       
    24 #ifdef __MARM__
       
    25 #include <arm.h>
       
    26 #endif
       
    27 #include <memspy/driver/memspydriverobjectsshared.h>
       
    28 #include <memspy/driver/memspydriverenumerationsshared.h>
       
    29 
       
    30 // User includes
       
    31 #include "MemSpyDriverHeap.h"
       
    32 #include "MemSpyDriverOpCodes.h"
       
    33 #include "MemSpyDriverLogChanHeapBase.h"
       
    34 #include "MemSpyDriverObjectsInternal.h"
       
    35 #include "MemSpyDriverEnumerationsInternal.h"
       
    36 
       
    37 // Classes referenced
       
    38 class DMemSpyDriverDevice;
       
    39 
       
    40 
       
    41 
       
    42 class DMemSpyDriverLogChanHeapData : public DMemSpyDriverLogChanHeapBase
       
    43 	{
       
    44 public:
       
    45 	DMemSpyDriverLogChanHeapData( DMemSpyDriverDevice& aDevice, DThread& aThread );
       
    46 	~DMemSpyDriverLogChanHeapData();
       
    47 
       
    48 private: // from DMemSpyDriverLogChanBase
       
    49 	TInt Request( TInt aFunction, TAny* a1, TAny* a2 );
       
    50     TBool IsHandler( TInt aFunction ) const;
       
    51 
       
    52 private: // Channel operation handlers
       
    53     TInt GetHeapDataUser( TMemSpyDriverInternalHeapDataParams* aParams );
       
    54         
       
    55 private: // Internal methods
       
    56     TInt GetHeapDataUser( TMemSpyDriverInternalHeapDataParams& aParams );
       
    57     TInt GetHeapDataKernelInit( TMemSpyHeapInfo* aInfo, TDes8* aFreeCells );
       
    58     TInt GetHeapDataKernelFetch( TDes8* aSink );
       
    59 
       
    60 private:
       
    61     TMemSpyDriverInternalHeapRequestParameters iHeapInfoParams;
       
    62     RMemSpyDriverRHeapKernelFromCopy iKernelHeap;
       
    63 	};
       
    64 
       
    65 
       
    66 #endif