gt.h File Reference


Detailed Description

The "Generic Tracing" module. Provides producers of content the ability to, in a runtime-independant way, add tracing. Also provides consumers of trace-enabled content the mechanisms necessary to enable/disable the various trace statements.

Go to the source code of this file.

Data Structures

struct  GT_Mask
 Object representing a GT module instance. More...

Defines

#define GT_ENTER   ((UInt8)0x01)
 Mask for tracing entry and exit points within functions.
#define GT_1CLASS   ((UInt8)0x02)
#define GT_2CLASS   ((UInt8)0x04)
#define GT_3CLASS   ((UInt8)0x08)
#define GT_4CLASS   ((UInt8)0x10)
#define GT_5CLASS   ((UInt8)0x20)
 User mask 5. By convention, used for benchmarking related tracing.
#define GT_6CLASS   ((UInt8)0x40)
 User mask 6. By convention, used for internal warning related tracing.
#define GT_7CLASS   ((UInt8)0x80)
 User mask 7. By convention, used for internal error related tracing.
#define GT_create(mask, modName)   _GT_create((mask), (modName))
#define GT_set(str)   _GT_set(str)
#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)

Functions

Void _GT_create (GT_Mask *mask, String modName)
 Initialize a GT mask.
Void GT_init (Void)
 Initialize the GT module.
Void _GT_set (String str)
 Modify the current trace mask settings.
Int _GT_trace (GT_Mask *mask, Int classId, String format,...)
 Conditionally emit a trace statement.

Copyright 2009, Texas Instruments Incorporated