Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

Trace.h File Reference


Detailed Description

Kernel Trace enabling/disabling/application interface.

This will have the definitions for kernel side traces statements and also details of variable traces supported in existing implementation.

02.00.00.68_beta1

============================================================================

Copyright (c) 2008-2009, Texas Instruments Incorporated

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

* Neither the name of Texas Instruments Incorporated nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Contact information for paper mail: Texas Instruments Post Office Box 655303 Dallas, Texas 75265 Contact information: http://www-k.ext.ti.com/sc/technical-support/product-information-centers.htm? DCMP=TIHomeTracking&HQS=Other+OT+home_d_contact ============================================================================

Definition in file Trace.h.

#include <ti/syslink/utils/OsalPrint.h>

Include dependency graph for Trace.h:

Go to the source code of this file.

Defines

#define OSALTRACE_MODULEID   (UInt16) 0xDA50
 Module ID for OsalTrace OSAL module.
#define GT_TRACESTATE_MASK   0x0000000F
 Trace state mask.
#define GT_TRACESTATE_SHIFT   0u
 Bit shift for trace state.
#define GT_TRACEENTER_MASK   0x000000F0
 Trace enter mask.
#define GT_TRACEENTER_SHIFT   4u
 Bit shift for trace enter.
#define GT_TRACESETFAILURE_MASK   0x00000F00
 Trace Set Failure Reason mask.
#define GT_TRACESETFAILURE_SHIFT   8u
 Bit shift for trace Set Failure Reason.
#define GT_TRACECLASS_MASK   0x000F0000
 GT class mask.
#define GT_TRACECLASS_SHIFT   16u
 Bit shift for GT class mask.
#define GT_assert(x, y)
#define GT_setFailureReason(mask, classId, func, status, msg)
#define GT_0trace(mask, classId, format)
#define GT_1trace(mask, classId, format, arg1)
#define GT_2trace(mask, classId, format, arg1, arg2)
#define GT_3trace(mask, classId, format, arg1, arg2, arg3)
#define GT_4trace(mask, classId, format, arg1, arg2, arg3, arg4)
#define GT_5trace(mask, classId, format, arg1, arg2, arg3, arg4, arg5)
#define GT_setTrace(mask, type)   0

Enumerations

enum  GT_TraceState { GT_TraceState_Disable = 0x00000000, GT_TraceState_Enable = 0x00000001, GT_TraceState_EndValue = 0x00000002 }
 Enumerates the types of states of trace (enable/disable). More...
enum  GT_TraceEnter { GT_TraceEnter_Disable = 0x00000000, GT_TraceEnter_Enable = 0x00000010, GT_TraceEnter_EndValue = 0x00000020 }
 Enumerates the states of enter/leave trace (enable/disable). More...
enum  GT_TraceSetFailure { GT_TraceSetFailure_Disable = 0x00000000, GT_TraceSetFailure_Enable = 0x00000100, GT_TraceSetFailure_EndValue = 0x00000200 }
 Enumerates the states of SetFailureReason trace (enable/disable). More...
enum  GT_TraceClass {
  GT_1CLASS = 0x00010000, GT_2CLASS = 0x00020000, GT_3CLASS = 0x00030000, GT_4CLASS = 0x00040000,
  GT_ENTER = 0x00050000, GT_LEAVE = 0x00060000
}
 Enumerates the types of trace classes. More...
enum  GT_TraceType { GT_TraceType_User = 0x00000000, GT_TraceType_Kernel = 0x00000001, GT_TraceType_EndValue = 0x00000002 }
 Enumerates the types of trace. More...


Define Documentation

#define GT_0trace mask,
classId,
format   ) 
 

Definition at line 441 of file Trace.h.

#define GT_1trace mask,
classId,
format,
arg1   ) 
 

Definition at line 442 of file Trace.h.

#define GT_2trace mask,
classId,
format,
arg1,
arg2   ) 
 

Definition at line 443 of file Trace.h.

#define GT_3trace mask,
classId,
format,
arg1,
arg2,
arg3   ) 
 

Definition at line 444 of file Trace.h.

#define GT_4trace mask,
classId,
format,
arg1,
arg2,
arg3,
arg4   ) 
 

Definition at line 445 of file Trace.h.

#define GT_5trace mask,
classId,
format,
arg1,
arg2,
arg3,
arg4,
arg5   ) 
 

Definition at line 446 of file Trace.h.

#define GT_assert x,
 ) 
 

Definition at line 213 of file Trace.h.

Referenced by IGateProvider_enter(), IGateProvider_leave(), IHeap_alloc(), IHeap_free(), IHeap_getKnlHandle(), IHeap_getStats(), and IHeap_isBlocking().

#define GT_setFailureReason mask,
classId,
func,
status,
msg   ) 
 

Definition at line 440 of file Trace.h.

#define GT_setTrace mask,
type   )     0
 

Definition at line 447 of file Trace.h.

#define GT_TRACECLASS_MASK   0x000F0000
 

GT class mask.

Definition at line 114 of file Trace.h.

#define GT_TRACECLASS_SHIFT   16u
 

Bit shift for GT class mask.

Definition at line 120 of file Trace.h.

#define GT_TRACEENTER_MASK   0x000000F0
 

Trace enter mask.

Definition at line 90 of file Trace.h.

#define GT_TRACEENTER_SHIFT   4u
 

Bit shift for trace enter.

Definition at line 96 of file Trace.h.

#define GT_TRACESETFAILURE_MASK   0x00000F00
 

Trace Set Failure Reason mask.

Definition at line 102 of file Trace.h.

#define GT_TRACESETFAILURE_SHIFT   8u
 

Bit shift for trace Set Failure Reason.

Definition at line 108 of file Trace.h.

#define GT_TRACESTATE_MASK   0x0000000F
 

Trace state mask.

Definition at line 78 of file Trace.h.

#define GT_TRACESTATE_SHIFT   0u
 

Bit shift for trace state.

Definition at line 84 of file Trace.h.

#define OSALTRACE_MODULEID   (UInt16) 0xDA50
 

Module ID for OsalTrace OSAL module.

Definition at line 71 of file Trace.h.


Enumeration Type Documentation

enum GT_TraceClass
 

Enumerates the types of trace classes.

Enumerator:
GT_1CLASS  Class 1 trace: Used for block level information
GT_2CLASS  Class 2 trace: Used for critical information
GT_3CLASS  Class 3 trace: Used for additional information
GT_4CLASS  Class 4 trace: Used for errors/warnings
GT_ENTER  Indicates a function entry class of trace
GT_LEAVE  Indicates a function leave class of trace

Definition at line 161 of file Trace.h.

00161              {
00162     GT_1CLASS                   = 0x00010000,
00163     /*!< Class 1 trace: Used for block level information */
00164     GT_2CLASS                   = 0x00020000,
00165     /*!< Class 2 trace: Used for critical information */
00166     GT_3CLASS                   = 0x00030000,
00167     /*!< Class 3 trace: Used for additional information */
00168     GT_4CLASS                   = 0x00040000,
00169     /*!< Class 4 trace: Used for errors/warnings */
00170     GT_ENTER                    = 0x00050000,
00171     /*!< Indicates a function entry class of trace */
00172     GT_LEAVE                    = 0x00060000
00173     /*!< Indicates a function leave class of trace */
00174 } GT_TraceClass;

enum GT_TraceEnter
 

Enumerates the states of enter/leave trace (enable/disable).

Enumerator:
GT_TraceEnter_Disable  Disable GT_ENTER trace prints
GT_TraceEnter_Enable  Enable GT_ENTER trace prints
GT_TraceEnter_EndValue  End delimiter indicating start of invalid values for this enum

Definition at line 137 of file Trace.h.

00137              {
00138     GT_TraceEnter_Disable       = 0x00000000,
00139     /*!< Disable GT_ENTER trace prints */
00140     GT_TraceEnter_Enable        = 0x00000010,
00141     /*!< Enable GT_ENTER trace prints */
00142     GT_TraceEnter_EndValue      = 0x00000020
00143     /*!< End delimiter indicating start of invalid values for this enum */
00144 } GT_TraceEnter;

enum GT_TraceSetFailure
 

Enumerates the states of SetFailureReason trace (enable/disable).

Enumerator:
GT_TraceSetFailure_Disable  Disable Set Failure trace prints
GT_TraceSetFailure_Enable  Enable Set Failure trace prints
GT_TraceSetFailure_EndValue  End delimiter indicating start of invalid values for this enum

Definition at line 149 of file Trace.h.

00149              {
00150     GT_TraceSetFailure_Disable       = 0x00000000,
00151     /*!< Disable Set Failure trace prints */
00152     GT_TraceSetFailure_Enable        = 0x00000100,
00153     /*!< Enable Set Failure trace prints */
00154     GT_TraceSetFailure_EndValue      = 0x00000200
00155     /*!< End delimiter indicating start of invalid values for this enum */
00156 } GT_TraceSetFailure;

enum GT_TraceState
 

Enumerates the types of states of trace (enable/disable).

Enumerator:
GT_TraceState_Disable  Disable trace
GT_TraceState_Enable  Enable trace
GT_TraceState_EndValue  End delimiter indicating start of invalid values for this enum

Definition at line 125 of file Trace.h.

00125              {
00126     GT_TraceState_Disable       = 0x00000000,
00127     /*!< Disable trace */
00128     GT_TraceState_Enable        = 0x00000001,
00129     /*!< Enable trace */
00130     GT_TraceState_EndValue      = 0x00000002
00131     /*!< End delimiter indicating start of invalid values for this enum */
00132 } GT_TraceState;

enum GT_TraceType
 

Enumerates the types of trace.

Enumerator:
GT_TraceType_User  Disable trace
GT_TraceType_Kernel  Enable trace
GT_TraceType_EndValue  End delimiter indicating start of invalid values for this enum

Definition at line 179 of file Trace.h.

00179              {
00180     GT_TraceType_User       = 0x00000000,
00181     /*!< Disable trace */
00182     GT_TraceType_Kernel     = 0x00000001,
00183     /*!< Enable trace */
00184     GT_TraceType_EndValue   = 0x00000002
00185     /*!< End delimiter indicating start of invalid values for this enum */
00186 } GT_TraceType;


Generated on Mon Mar 14 11:59:48 2011 for Syslink by  doxygen 1.4.4