kerneltest/f32test/demandpaging/t_ramstress.h
author Stephane Lenclud <tortoisehg@lenclud.com>
Tue, 27 Apr 2010 17:12:11 +0200
branchanywhere
changeset 94 f36eb4948686
parent 0 a41df078684a
permissions -rw-r--r--
Basic process initialisation and shutdown working. Using small fixed heap for now. Fixing missing global Symbian C++ new operators. Panics on Win32 now display error message.

// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of the License "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
// f32test\demandpaging\t_ramstress.h
// 
//

#ifndef _T_RAMSTRESS_H_
#define _T_RAMSTRESS_H_

#include <e32cmn.h>
#ifndef __KERNEL_MODE__
#include <e32std.h>
#endif

_LIT(KRamStressTestLddName,"D_RAMSTRESS");

class RRamStressTestLdd : public RBusLogicalChannel
	{
public:
	enum TControl
		{
		EDoMovePagesInZone,
		EDoSetDebugFlag,
		EDoSetEndFlag,
		};

#ifndef __KERNEL_MODE__
public:
	inline TInt Open()
		{ return DoCreate(KRamStressTestLddName,TVersion(),KNullUnit,NULL,NULL,EOwnerProcess,ETrue); }
	inline TInt DoSetDebugFlag(TInt aState)
		{ return DoControl(EDoSetDebugFlag,(TAny*)aState, (TAny*)NULL); }
	inline TInt DoSetEndFlag(TInt aState)
		{ return DoControl(EDoSetEndFlag,(TAny*)aState, (TAny*)NULL); }
	inline TInt DoMovePagesInZone(TUint aZoneIndex)
		{ return DoControl(EDoMovePagesInZone,(TAny*)aZoneIndex, (TAny*)NULL); }
#endif
	};


#endif //_T_RAMSTRESS_H_