Update contrib.
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // A helper test driver for testing Kernel Performance Logger. User part.
24 #ifndef T_PERFLOGGER_DRV_H__
25 #define T_PERFLOGGER_DRV_H__
30 /** Test helper LDD name */
31 _LIT(KPLoggerHelperTestDrv, "d_perflogger_test");
35 Log control structure.
36 Specifies a task arguments to the helper driver
40 inline TTestLogCtrl();
42 TInt iLogsNum; ///< numbers of loggings
43 TUint iLogPeriodTick; ///< Period of logging, nanokernel ticks, see NTimer::OneShot()
45 //-- this part will go to the logging function
49 TUint32 iUserData; ///< user data.
50 TUint32 iUserData2; ///< user data.
56 User - side interface to the perf. logger test helper LDD.
58 class RKPLoggerTestHelper : public RBusLogicalChannel
62 #ifndef __KERNEL_MODE__
64 //-- user application interface methods
66 inline TInt Open(const TVersion& aVer);
67 inline TVersion VersionRequired() const;
69 inline TInt MakeLogFromUserThread(const TTestLogCtrl& aLogCtrl);
70 inline TInt TestDifferentMacros(const TTestLogCtrl& aLogCtrl);
73 inline void MakeLogFromISR(TRequestStatus& aRqStat, const TTestLogCtrl& aLogCtrl);
74 inline void CancelLogFromISR();
76 inline void MakeLogFromIDFC(TRequestStatus& aRqStat, const TTestLogCtrl& aLogCtrl);
77 inline void CancelLogFromIDFC();
79 inline void MakeLogFromDFC(TRequestStatus& aRqStat, const TTestLogCtrl& aLogCtrl);
80 inline void CancelLogFromDFC();
84 #endif //__KERNEL_MODE__
89 enum TVer{EMajorVersionNumber=1,EMinorVersionNumber=0,EBuildVersionNumber=1};
91 /** Synchronous Control functions */
94 EDoLogFromUserThread, ///< make logging from user thread context. See also TTestLogStruct
95 EDoTestMacros ///< test different PERF_LOG macros, logging from the user thread
98 /** Asynchronous Request functions */
101 EDoLogFromISR, ///< make logging from ISR. See also TTestLogStruct
102 EDoLogFromIDFC, ///< make logging from IDFC. See also TTestLogStruct
103 EDoLogFromDFC, ///< make logging from DFC. See also TTestLogStruct
107 #include "t_perflogger_drv.inl"
109 #endif //T_PERFLOGGER_DRV_H__