perfsrv/memspy/Driver/Kernel/Include/SubChannels/MemSpyDriverLogChanHeapDataKernel.h
changeset 55 f2950aff7424
child 54 a151135b0cf9
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 MEMSPYDRIVERLOGICALCHANHEAPDATAKERNEL_H
       
    19 #define MEMSPYDRIVERLOGICALCHANHEAPDATAKERNEL_H
       
    20 
       
    21 // User includes
       
    22 #include "MemSpyDriverLogChanHeapDataBase.h"
       
    23 
       
    24 class DMemSpyDriverLogChanHeapDataKernel : public DMemSpyDriverLogChanHeapDataBase
       
    25 	{
       
    26 public:    
       
    27     DMemSpyDriverLogChanHeapDataKernel( DMemSpyDriverDevice& aDevice, DThread& aThread );
       
    28     
       
    29 private: // from DMemSpyDriverLogChanBase
       
    30 	TInt Request( TInt aFunction, TAny* a1, TAny* a2 );
       
    31     TBool IsHandler( TInt aFunction ) const;
       
    32 
       
    33 private: // Channel operation handlers
       
    34     TInt GetInfoData( TMemSpyDriverInternalHeapRequestParameters* aParams );
       
    35     TInt GetIsDebugKernel(TAny* aIsDebugKernel);
       
    36     TInt MakeKernelHeapCopy();
       
    37     void FreeKernelHeapCopy();
       
    38 
       
    39 private: // Internal methods
       
    40     TInt GetInfoData(RMemSpyDriverRHeapBase& aHeap);
       
    41     TInt OpenKernelHeap( RMemSpyDriverRHeapKernelFromCopy& aHeap );   
       
    42     TInt GetHeapDataUser( TMemSpyDriverInternalHeapDataParams& aParams );
       
    43     TInt GetFullData( TMemSpyDriverInternalHeapDataParams& aParams );
       
    44 
       
    45 private: // Data members	
       
    46 	RMemSpyDriverRHeapKernelFromCopy iKernelHeap;
       
    47 	};
       
    48 
       
    49 
       
    50 #endif