diag-trace 5.0.0
µOS++ Tracing Infrastructure
Loading...
Searching...
No Matches
trace-c-api.cpp File Reference

C++ source file with the definitions for the C trace API. More...

Go to the source code of this file.

Functions

void micro_os_plus_trace_dump_args (int argc, char *argv[])
 Write the argv[] array to the trace output channel.
void micro_os_plus_trace_flush (void)
 Flush the trace output channel.
void micro_os_plus_trace_initialise (void)
 Initialise the trace output channel.
int micro_os_plus_trace_printf (const char *format,...)
 Write a formatted string to the trace output channel.
int micro_os_plus_trace_putchar (int c)
 Write the single character to the trace output channel.
int micro_os_plus_trace_puts (const char *s)
 Write the string and a line terminator to the trace output channel.
int micro_os_plus_trace_vprintf (const char *format, va_list arguments)
 Write a formatted variable arguments list to the trace output channel.
ssize_t micro_os_plus_trace_write (const void *buf, size_t nbyte)
 Write the given number of bytes to the trace output channel.

Detailed Description

Definitions for the C-linkage wrapper functions (micro_os_plus_trace_printf(), etc.) that forward to the corresponding C++ internal tracer<implementation> functions.

The empty inline stubs (used when tracing is disabled) are located in trace-c-api-inlines.h, included at the bottom of trace-c-api.h.

Definition in file trace-c-api.cpp.