dt
Purpose
Writes diagnostic trace information to a file.
Syntax
#include <diag/diag_trace.h>
void dt ( dt_id, dt_type [,val, ...])
char *dt_id;
int dt_type;
Description
The dt subroutine allows trace information to be written to a file. If the file /tmp/.DIAG_TRACE exists, trace information is written to a file specified by the dt_id argument. The default is to overwrite existing trace information. To append to the trace file, export DIAG_TRACE=APPEND.
Parameters
Parameter | Description |
---|---|
dt_id | Used to uniquely identify the trace file. The resulting trace file will be called .dt.'dt_id' in the /tmp directory. |
dt_type | The type of trace function to perform.
|
val | Variable arguments which may include the number of multiple variables to trace, the trace labels, and the information to trace. |
Return Value
There is no return code.