traces/mainTraces.h
changeset 23 74c9f037fd5d
equal deleted inserted replaced
5:f7f0874bfe7d 23:74c9f037fd5d
       
     1 // Created by TraceCompiler 2.1.2
       
     2 // DO NOT EDIT, CHANGES WILL BE LOST
       
     3 
       
     4 #ifndef __MAINTRACES_H__
       
     5 #define __MAINTRACES_H__
       
     6 
       
     7 #define KOstTraceComponentID 0x20000a14
       
     8 
       
     9 #define _MAIN 0x850001
       
    10 #define DUP1__MAIN 0x860001
       
    11 #define EVENT_DUP1__MAIN_START 0x8b0001
       
    12 #define EVENT_DUP1__MAIN_STOP 0x8b0002
       
    13 
       
    14 
       
    15 inline TBool OstTraceGen3( TUint32 aTraceID, TInt aParam1, TInt aParam2, TInt aParam3 )
       
    16     {
       
    17     TBool retval = BTraceFiltered8( EXTRACT_GROUP_ID(aTraceID), EOstTraceActivationQuery, KOstTraceComponentID, aTraceID );
       
    18     if ( retval )
       
    19         {
       
    20         TUint8 data[ 12 ];
       
    21         TUint8* ptr = data;
       
    22         *( ( TInt* )ptr ) = aParam1;
       
    23         ptr += sizeof ( TInt );
       
    24         *( ( TInt* )ptr ) = aParam2;
       
    25         ptr += sizeof ( TInt );
       
    26         *( ( TInt* )ptr ) = aParam3;
       
    27         ptr += sizeof ( TInt );
       
    28         ptr -= 12;
       
    29         retval = OstSendNBytes( EXTRACT_GROUP_ID(aTraceID), EOstTrace, KOstTraceComponentID, aTraceID, ptr, 12 );
       
    30         }
       
    31     return retval;
       
    32     }
       
    33 
       
    34 inline TBool OstTraceGen3( TUint32 aTraceID, TInt32 aParam1, TInt32 aParam2, TInt32 aParam3 )
       
    35     {
       
    36     TBool retval = BTraceFiltered8( EXTRACT_GROUP_ID(aTraceID), EOstTraceActivationQuery, KOstTraceComponentID, aTraceID );
       
    37     if ( retval )
       
    38         {
       
    39         TUint8 data[ 12 ];
       
    40         TUint8* ptr = data;
       
    41         *( ( TInt* )ptr ) = aParam1;
       
    42         ptr += sizeof ( TInt );
       
    43         *( ( TInt* )ptr ) = aParam2;
       
    44         ptr += sizeof ( TInt );
       
    45         *( ( TInt* )ptr ) = aParam3;
       
    46         ptr += sizeof ( TInt );
       
    47         ptr -= 12;
       
    48         retval = OstSendNBytes( EXTRACT_GROUP_ID(aTraceID), EOstTrace, KOstTraceComponentID, aTraceID, ptr, 12 );
       
    49         }
       
    50     return retval;
       
    51     }
       
    52 
       
    53 
       
    54 inline TBool OstTraceGen2( TUint32 aTraceID, TInt aParam1, TUint aParam2 )
       
    55     {
       
    56     TBool retval = BTraceFiltered8( EXTRACT_GROUP_ID(aTraceID), EOstTraceActivationQuery, KOstTraceComponentID, aTraceID );
       
    57     if ( retval )
       
    58         {
       
    59         TUint8 data[ 8 ];
       
    60         TUint8* ptr = data;
       
    61         *( ( TInt* )ptr ) = aParam1;
       
    62         ptr += sizeof ( TInt );
       
    63         *( ( TUint* )ptr ) = aParam2;
       
    64         ptr += sizeof ( TUint );
       
    65         ptr -= 8;
       
    66         retval = OstSendNBytes( EXTRACT_GROUP_ID(aTraceID), EOstTrace, KOstTraceComponentID, aTraceID, ptr, 8 );
       
    67         }
       
    68     return retval;
       
    69     }
       
    70 
       
    71 inline TBool OstTraceGen2( TUint32 aTraceID, TInt32 aParam1, TUint32 aParam2 )
       
    72     {
       
    73     TBool retval = BTraceFiltered8( EXTRACT_GROUP_ID(aTraceID), EOstTraceActivationQuery, KOstTraceComponentID, aTraceID );
       
    74     if ( retval )
       
    75         {
       
    76         TUint8 data[ 8 ];
       
    77         TUint8* ptr = data;
       
    78         *( ( TInt* )ptr ) = aParam1;
       
    79         ptr += sizeof ( TInt );
       
    80         *( ( TUint* )ptr ) = aParam2;
       
    81         ptr += sizeof ( TUint );
       
    82         ptr -= 8;
       
    83         retval = OstSendNBytes( EXTRACT_GROUP_ID(aTraceID), EOstTrace, KOstTraceComponentID, aTraceID, ptr, 8 );
       
    84         }
       
    85     return retval;
       
    86     }
       
    87 
       
    88 
       
    89 #endif
       
    90 
       
    91 // End of file
       
    92