DEFINE_TRACE

The DEFINE_TRACE verb enables or disables tracing for specified APIs and controls the amount of tracing.

The following structure describes the verb control block used by the DEFINE_TRACE verb.

struct define_trace {
    unsigned short       opcode;
    unsigned char        opext;
    unsigned char        reserv2;
    unsigned short       primary_rc;
    unsigned long        secondary_rc;
    unsigned char        reserv3[8];
    unsigned char        dt_set;
    unsigned char        appc;
    unsigned char        reserv4;
    unsigned char       srpi;
    unsigned char       sdlc;
    unsigned char       tkn_rng_dlc;
    unsigned char       pcnet_dlc;
    unsigned char       dft;
    unsigned char       acdi;
    unsigned char       reserv5;
    unsigned char       ehllapi;
    unsigned char       x25_api;
    unsigned char       x25_dlc;
    unsigned char       twinax;
    unsigned char       reserv6;
    unsigned char       lua_api;
    unsigned char       etherand;
    unsigned char       subsym;
    unsigned char       reserv7[8];
    unsigned char       reset_trc;
    unsigned short      trunc;
    unsigned short      strg_size;
    unsigned char       reserv8;
    unsigned char       phys_link[8];
    unsigned char       reserv9[56];
}; 
 

Members

opcode
Supplied parameter. The verb identifying the operation code, SV_DEFINE_TRACE.
opext
A reserved field.
reserv2
A reserved field.
primary_rc
Returned parameter. Specifies the primary return code set by APPC at the completion of the verb. The valid return codes vary depending on the APPC verb issued. See Return Codes for valid error codes for this verb.
secondary_rc
Returned parameter. Specifies the secondary return code set by APPC at the completion of the verb. The valid return codes vary depending on the APPC verb issued. See Return Codes for valid error codes for this verb.
reserv3
A reserved field.
dt_set
Supplied parameter. Sets the trace state.
appc
Supplied parameter. Indicates whether tracing of APPC is desired.

The allowed values turn bit 0 on or off; bits 1 through 7 are reserved.

reserv4
A reserved field.
srpi
Supplied parameter. Indicates whether tracing of SRPI is desired.
sdlc
tkn_rng_dlc
pcnet_dlc
dft
acdi
reserv5
A reserved field.
comm_serv
Supplied parameter. Indicates whether tracing of COMM_SERV_API is desired.
ehllapi
x25_api
x25_dlc
twinax
reserved6
lua_api
etherand
subsym
reserved7
reset_trc
Supplied parameter. Indicates whether the trace file pointer should be reset.
trunc
Supplied parameter. Specifies the maximum number of bytes for each trace record. Excess bytes are truncated. Set this value to zero if you do not want truncation.
strg_size
reserved8
phys_link
reserved9

Return Codes

sv_ok
Primary return code; the verb executed successfully.
sv_parameter_check
Primary return code; the verb did not execute because of a parameter error.
sv_invalid_reset_trace
Secondary return code; the reset_trc parameter contained an invalid value.
sv_invalid_set
Secondary return code; the dt_set parameter contained an invalid value.
sv_state_check
Primary return code; the verb did not execute because it was issued in an invalid state.
sv_copy_trace_in_progress
Secondary return code; a previously issued COPY_TRACE_TO_FILE is still in progress. Traces cannot be active while using DEFINE_TRACE.
sv_comm_subsystem_not_loaded
Primary return code; a required component could not be loaded or terminated while processing the verb. Thus, communication could not take place. Contact the system administrator for corrective action.
sv_invalid_verb
Primary return code; the opcode parameter did not match the operation code of any verb. No verb executed.
sv_invalid_verb_segment
Primary return code; the VCB extended beyond the end of the data segment.
sv_unexpected_dos_error
Primary return code; one of the following conditions occurred:

Remarks

For information on how to run and use traces, see the appropriate manual for your product.