rtxDiag.h File Reference

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

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

Go to the source code of this file.


Defines

#define RTDIAG1(pctxt, msg)
#define RTDIAG2(pctxt, msg, a)
#define RTDIAG3(pctxt, msg, a, b)
#define RTDIAG4(pctxt, msg, a, b, c)
#define RTDIAG5(pctxt, msg, a, b, c, d)
#define RTDIAGU(pctxt, ucstr)
#define RTHEXDUMP(pctxt, buffer, numocts)
#define RTDIAGCHARS(pctxt, buf, nchars)
#define RTDIAGSTRM2(pctxt, msg)
#define RTDIAGSTRM3(pctxt, msg, a)
#define RTDIAGSTRM4(pctxt, msg, a, b)
#define RTDIAGSTRM5(pctxt, msg, a, b, c)
#define RTHEXDUMPSTRM(pctxt, buffer, numocts)
#define RTDIAGSCHARS(pctxt, buf, nchars)

Enumerations

enum  OSRTDiagTraceLevel

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, OSUINT32 numocts)
 This function is used to print a diagnostics hex dump of a section of memory.
EXTERNRT void rtxDiagStreamHexDump (OSCTXT *pctxt, const OSOCTET *data, OSUINT32 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, OSUINT32 nchars)
 This function is used to print a given number of characters to standard output.
EXTERNRT void rtxDiagStreamPrintChars (OSCTXT *pctxt, const char *data, OSUINT32 nchars)
 This function is used to print a given number of characters 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.

Detailed Description

Common runtime functions for diagnostic tracing and debugging.

Definition in file rtxDiag.h.