diff -r 000000000000 -r 08ec8eefde2f traceservices/tracefw/ost_trace_api/unit_test/lauterbach_perf_tester/inc/utracemacros.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/traceservices/tracefw/ost_trace_api/unit_test/lauterbach_perf_tester/inc/utracemacros.h Fri Jan 22 11:06:30 2010 +0200 @@ -0,0 +1,105 @@ +// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "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: +// + +#ifndef UTRACEMACROS_H +#define UTRACEMACROS_H + + +/** +Dummy class to toss away overflow +@internalComponent +*/ +#ifndef __KERNEL_MODE__ +class TTruncateOverflow16 : public TDes16Overflow + { + public: + virtual void Overflow(TDes&) {}; + }; +/** +Dummy class to toss away overflow +@internalComponent +*/ +class TTruncateOverflow8 : public TDes8Overflow + { + public: + virtual void Overflow(TDes8&) {}; + }; +#endif //__KERNEL_MODE__ + +struct TUint96 +{ + TUint96(TUint32 aData1, TUint32 aData2, TUint32 aData3) + :iData1(aData1), iData2(aData2), iData3(aData3) + { + } + TUint32 iData1; + TUint32 iData2; + TUint32 iData3; +}; + + /**@internalComponent*/ +#define UTRACE_HEADER(aSize,aClassification,aCategory,aContext,aPc) \ + ((((aSize)+(4&(TBool)aContext<<2)+(4&(TBool)aPc<<2))<