sl@0: // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of the License "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // e32test\emi\d_emitest.h sl@0: // sl@0: // sl@0: sl@0: #ifndef __EMITEST_H__ sl@0: #define __EMITEST_H__ sl@0: sl@0: #include sl@0: #include sl@0: #ifndef __KERNEL_MODE__ sl@0: #include sl@0: #endif sl@0: sl@0: sl@0: struct TUserTaskEventRecord sl@0: { sl@0: TUint8 iType; // Type of event, 0 = Reschedule sl@0: // 1..127 = Reserved sl@0: // > 127 = User Defined sl@0: TUint8 iFlags; // Includes: sl@0: //Bit 0 - Events lost before this event. (All types) sl@0: //Bit 1 - Previous thread now waiting. (Reschedule only) sl@0: TUint16 iExtra; //This has no use in reschedule events, but may be used by other event types. sl@0: TUint32 iUserState; //The state variable at the time of the event, which will probably indicate the clock frequency at the time of the event. sl@0: TUint32 iTime; //Time that the event occurred. Units defined by the GET_HIGH_RES_TICK macro. sl@0: TAny* iPrevious; // The NThread that was executing before the switch. sl@0: TAny* iNext; //The NThread that was executing after the switch. sl@0: sl@0: }; sl@0: sl@0: const TInt KEMI_EventLost =1; sl@0: const TInt KEMI_PrevWaiting=2; sl@0: sl@0: _LIT(KEMITestName,"EMITEST"); sl@0: sl@0: enum TMonitors sl@0: { sl@0: ENone, sl@0: ENormal, sl@0: EStressFirst, sl@0: EStressSecond sl@0: }; sl@0: sl@0: class REMITest : public RBusLogicalChannel sl@0: { sl@0: public: sl@0: sl@0: enum TControl sl@0: { sl@0: ETaskEventLogging, sl@0: EGetTaskEvent, sl@0: EAddTaskEvent, sl@0: EGetIdleThread, sl@0: EGetSigmaThread, sl@0: ESetVEMSData, sl@0: EGetVEMSData, sl@0: ESetThreadLoggable, sl@0: EGetThreadLoggable, sl@0: ESetThreadTag, sl@0: EGetThreadTag, sl@0: ESetMask, sl@0: EGetMask, sl@0: ESetDFC, sl@0: ESetState, sl@0: EGetState, sl@0: EGetNThread, sl@0: EAfterIdle sl@0: }; sl@0: sl@0: enum TRequest sl@0: { sl@0: ENumRequests, sl@0: EAllRequests = (1<