rtxDiag.h File Reference

Common runtime functions for diagnostic tracing and debugging. More...

#include <stdarg.h>
#include "rtxsrc/rtxContext.h"

Go to the source code of this file.

Functions

EXTERNRT OSBOOL rtxDiagEnabled (OSCTXT *pctxt)
 This function is used to determine if diagnostic tracing is currently enabled for the specified context.
EXTERNRT OSBOOL rtxSetDiag (OSCTXT *pctxt, OSBOOL value)
 This function is used to turn diagnostic tracing on or off at run-time on a per-context basis.
EXTERNRT OSBOOL rtxSetGlobalDiag (OSBOOL value)
 This function is used to turn diagnostic tracing on or off at run-time on a global basis.
EXTERNRT void rtxDiagPrint (OSCTXT *pctxt, const char *fmtspec,...)
 This function is used to print a diagnostics message to stdout.
EXTERNRT void rtxDiagStream (OSCTXT *pctxt, const char *fmtspec,...)
 This function conditionally outputs diagnostic trace messages to an output stream defined within the context.
EXTERNRT void rtxDiagHexDump (OSCTXT *pctxt, const OSOCTET *data, size_t numocts)
 This function is used to print a diagnostics hex dump of a section of memory.
EXTERNRT void rtxDiagStreamHexDump (OSCTXT *pctxt, const OSOCTET *data, size_t numocts)
 This function is used to print a diagnostics hex dump of a section of memory to a print stream.
EXTERNRT void rtxDiagPrintChars (OSCTXT *pctxt, const char *data, size_t nchars)
 This function is used to print a given number of characters to standard output.
EXTERNRT void rtxDiagStreamPrintChars (OSCTXT *pctxt, const char *data, size_t nchars)
 This function is used to print a given number of characters to a print stream.
EXTERNRT void rtxDiagStreamPrintBits (OSCTXT *pctxt, const char *descr, const OSOCTET *data, size_t bitIndex, size_t nbits)
 This function is used to print a given number of bits as '1' or '0' values to a print stream.
EXTERNRT void rtxDiagSetTraceLevel (OSCTXT *pctxt, OSRTDiagTraceLevel level)
 This function is used to set the maximum trace level for diagnostic trace messages.
EXTERNRT OSBOOL rtxDiagTraceLevelEnabled (OSCTXT *pctxt, OSRTDiagTraceLevel level)
 This function tests if a given trace level is enabled.

Detailed Description

Common runtime functions for diagnostic tracing and debugging.

Definition in file rtxDiag.h.