Creating Trace Entry Formatting Directives

To define trace entry formatting directives, you should place entries in a Trace Source File (.TSF) file. The .TSF file is an ASCII text file that defines the trace points being traced in the program. The TRCUST Trace Point Definition tool uses the .TSF file. TRCUST converts the information in the .TSF file into Trace Format Files (.TFF) having the name of TRC00xxx.TFF, where xxx is the major code defined in the .TSF file. The trace formatter uses the TFF file to format and displays the trace information.

The following file TEST.TSF is an example of a simple .TSF file. You use the .TSF file to specify the formatting directives for a trace entry that TraceCreateEntry creates:
TEST.TSF Trace Source File Example

MODNAME = probe.exe
MAJOR = 220

TRACE MINOR=1,
  TP=@STATIC,
  DESC="Tracepoint example start",
  FMT ="Data %D String %S"

TRACE MINOR=0x8001,
  TP=@STATIC,
  DESC="Tracepoint example end",
  FMT ="Data %D String %S"

For more information about the TRCUST command, the .TSF file and syntax used in the file, refer to the Trace Customizer User's Guide in the Toolkit.


[Back: Defining Trace Information Format]
[Next: Creating DMI MIF Files]