Previous Page

Appendix D - HLLAPI Trace Utility

What files are involved in tracing HLLAPI calls, and what each file does.
How to load the HLLAPI trace.
Information to help you interpret the data generated by the HLLAPI trace utility.
The HLLAPI Trace Programming Interface. This programming interface is for developers who want to write customized trace routines.

HLLAPI Trace Files

TRON
TRACE
TRDS
TRUN
TRPR

TRON

TRON proto maxbytes

TRACE

TRDS

TRUN

TRPR

TRPR file0 file1 ... filen

Loading the HLLAPI Trace Utility

RA3270
HLLAPI
E3270 %1
TRACE

Technical Notes

Table D-1. Trace Type 0 Output File Format

Offset Length Description
0x00 1 byte This byte contains a 0. This sets the Trace Type to 0.
0x01 2 bytes These two bytes are a direction flag. If the value set here is either 0 or 1, the trace represents data going into HLLAPI. If the value set is greater than 1, trace data is coming from HLLAPI.
0x03 3 bytes HLLAPI Parameter Control Block header. The value of these three bytes is 'PCB.'
0x06 1 byte HLLAPI function code value.
0x07 2 bytes String segment address.
0x09 2 bytes String offset address.
0x0B 2 bytes Data length value.
0x0D 1 byte Unused.
0x0E 2 bytes Return code value.
0x10 2 bytes Maximum user string size. (Must equal 25000.)
0x12 2 bytes Length of string data. If = 0, then no string data.
0x14 n bytes String data (if any).

Table D-2. Trace Type 1 Output File Format

Offset Length Description
0x00 1 byte This byte contains a 1. This sets the Trace Type to 1.
0x01 4 bytes Previous entry duplication count.

HLLAPI Trace Programming Interface

Function 0 - Enable Tracing

ax = 0d70ah
bx = 0
ds:dx = Pointer to argument block

Table D-3. Argument Block For Function 0 - Enable Tracing

Offset Length Description
0x00 4 bytes Offset/seg of ASCIIZ prototype pathname.Trace Type is set to 1.
0x04 4 bytes Maximum size of each trace file flip flops between 2 files)

Function 1 - Disable Tracing

ax = 0d70ah
bx = 1

Function 2 - Unload

ax = 0d70ah
bx = 2

 

Previous PageTop Of Page