SysLink API Reference  2.21.03.11
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Macros | Enumerations
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.

#include <ti/syslink/utils/OsalPrint.h>
Include dependency graph for Trace.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#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_6trace(mask, classId, format, arg1, arg2, arg3, arg4, arg5, arg6)
#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 = 0x00000003
}
 Enumerates the types of trace. More...

Macro Definition Documentation

#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,
 
)
#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_6trace (   mask,
  classId,
  format,
  arg1,
  arg2,
  arg3,
  arg4,
  arg5,
  arg6 
)
#define GT_setTrace (   mask,
  type 
)    0

Enumeration Type Documentation

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

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

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

Enumerates the types of trace classes.

Enumerator:
GT_1CLASS 

Class 1 trace: Used for block level or critical information

GT_2CLASS 

Class 2 trace: Used for semi-critical information

GT_3CLASS 

Class 3 trace: Used for additional information

GT_4CLASS 

Class 4 trace: Used for errors

GT_ENTER 

Indicates a function entry class of trace

GT_LEAVE 

Indicates a function leave class of trace

Enumerates the types of trace.

Enumerator:
GT_TraceType_User 

User side trace

GT_TraceType_Kernel 

Kernel side trace

GT_TraceType_EndValue 

End delimiter indicating start of invalid values for this enum

Copyright 2014, Texas Instruments Incorporated