Using the MAKETSF Utility

The purpose of MAKETSF is to extract dynamic trace definitions imbedded in C or ASM source file to which they relate. MAKETSF will also substitute line number information into those trace definions that are specified by line number and source file reference.

For example:

  TRACE TP=@myprog.c,1234

This specifies a tracepoint at location corresponding to line 1234 in module whose source is "myprocg.c".

The problem with this type of specification is that line number reference will need to be updated whenever the source is changed.

MAKETSF allows the trace definitions to be imbedded in the source as comments but in extraction will generate the correct line number information. It does this be detecting the string "TP=@," or "TP=@ " and then inserting the line number specification. If the TP= keyword explicitly specifies an address expression then the trace definiton is extracted without modification.

To use line number references modules must be compiled and linked with symbolic debugging information. For CSET2 and VisualAge the compile option is /TI, and the LINK386 option is /DE.

Note:

Optimised code may not place tracepoints in the desired location.