STREAMS error and trace loggers are for debugging and for administering STREAMS modules and drivers. This facility consists of log, strace, strclean, strerr, and the strlog commands.
strace is a utility that displays the messages in a specified STREAMS log. The log to display is identified by STREAMS module ID number, a sub-ID number, and the priority level. For more information, see the strace(8) man page.
strlog sends formatted text to log driver. Required definitions are contained in <sys/strlog.h> and <sys/log.h>. The call specifies the STREAMS module ID number, a sub-ID number, and the priority level. A flag parameter can specify any combination of:
The message is for the error logger
The message is for the tracer
Advisory notification of a fatal error
Modifies the SL_ERROR flag to request that a copy of the message be mailed to the system administrator
Log the message to the console
Warning message
Notice the message
The flags are followed by a printf-style format string, but %s, %e, %E, %g, and %G conversion specifications are not recognized. Up to NLOGARGS of numeric or character arguments can be specified.
For more information, see the printf(3C), log(4D), and strlog(9F) man page.
strqget gets information about a queue or band of a queue. The information is returned in a long. The stream must be frozen by the caller when calling strqget. For more information, see the strqget(9F) man page.
strqset changes information about a queue or band of the queue. The updated information is provided in an int. If the field is read-only, EPERM is returned and the field is left unchanged. See <sys/stream.h> for valid values. The stream must be frozen by the caller when calling strqset. For more information, see the strqset(9F) man page.
strerr is the STREAMS error logger daemon. For more information, see the strerr(8) man page.