HP 9000 Networking XTI Programmer's Guide
37
Using API Tracing in Your Programs
Selecting Types of Tracing
Selecting Types of Tracing
The level of XTI tracing is controlled by the xti_trace variable.
The xti_trace variable is defined as a bitmask that can be set to particular
values (as defined in the file /usr/include/api_trace.h) and as listed in the
table that follows.
For example, if you want to trace output parameters only, you would set
xti_trace to API_TR_OUTPUT.
Trace Value Description
API_TR_ENTRY_EXITS Traces procedure entry and exit. No parameter information is
displayed. This is useful if you are only interested in seeing what
XTI calls your program is making.
API_TR_INPUT
Provides traces of XTI function call input parameters. This
is useful if you want to verify that XTI is actually receiving
the values you expect.
API_TR_OUTPUT
Provides traces of XTI function call output parameters.
This is useful if you want to verify what values XTI is
passing back to your program.
API_TR_INT_ENTRY_EXIT Enables internal tracing. Use if directed to do so by your
HP support representative.