Nut/OS  4.10.3
API Reference
osdebug.c File Reference
#include <compiler.h>
#include <cfg/os.h>
#include <sys/thread.h>
#include <sys/timer.h>
#include <sys/event.h>
#include <sys/heap.h>
#include <sys/osdebug.h>
Include dependency graph for osdebug.c:

Go to the source code of this file.

Functions

void NutDumpThreadQueue (FILE *stream, NUTTHREADINFO *tdp)
 Dump system queue contents.
void NutDumpThreadList (FILE *stream)
 Dump system thread list.
void NutDumpTimerList (FILE *stream)
 Dump system timer list.
void NutTraceOs (FILE *stream, uint8_t flags)
 Control OS tracing.
void NutDumpHeap (FILE *stream)
 Dump free node list of heap memory.
void NutTraceHeap (FILE *stream, uint8_t flags)
 Control dynamic memory tracing.

Variables

FILE__os_trs
uint_fast8_t __os_trf
FILE__heap_trs
uint_fast8_t __heap_trf

Function Documentation

void NutDumpThreadQueue ( FILE stream,
NUTTHREADINFO tdp 
)

Dump system queue contents.

Parameters:
streamPointer to a previously opened stream associated to a debug device.
tdpPointer to the queue.
Warning:
Interrupts are disabled inside this funtion.

Definition at line 118 of file osdebug.c.

References DEADBEEF, fprintf_P, fputs(), prog_char, SIGNALED, and _NUTTHREADINFO::td_name.

Here is the call graph for this function:

void NutDumpThreadList ( FILE stream)

Dump system thread list.

Parameters:
streamPointer to a previously opened stream associated to a debug device.
Warning:
Interrupts are disabled inside this funtion.

Definition at line 157 of file osdebug.c.

References DEADBEEF, fprintf_P, fputc(), fputs(), fputs_P, nutThreadList, NutThreadStackAvailable(), prog_char, SIGNALED, and _NUTTHREADINFO::td_name.

Referenced by NutThreadCreate().

Here is the call graph for this function:

void NutDumpTimerList ( FILE stream)

Dump system timer list.

Parameters:
streamPointer to a previously opened stream associated to a debug device.
Warning:
Interrupts are disabled inside this funtion.

Definition at line 208 of file osdebug.c.

References fprintf_P, fputs_P, NutEventTimeout(), NutThreadWake(), nutTimerList, prog_char, and _NUTTIMERINFO::tn_ticks.

Here is the call graph for this function:

void NutTraceOs ( FILE stream,
uint8_t  flags 
)

Control OS tracing.

Parameters:
streamPointer to a previously opened stream associated to a debug device or null to disable trace output.
flagsFlags to enable specific traces.

Definition at line 249 of file osdebug.c.

References __os_trf, and __os_trs.

Referenced by main().

void NutDumpHeap ( FILE stream)

Dump free node list of heap memory.

Parameters:
streamPointer to a previously opened stream associated to a debug device.

Definition at line 265 of file osdebug.c.

References fprintf_P, fputc(), heapFreeList, _HEAPNODE::hn_next, _HEAPNODE::hn_size, NutHeapAvailable, and prog_char.

Here is the call graph for this function:

void NutTraceHeap ( FILE stream,
uint8_t  flags 
)

Control dynamic memory tracing.

Parameters:
streamPointer to a previously opened stream or null to disable trace output.
flagsFlags to enable specific traces.

Definition at line 302 of file osdebug.c.

References __heap_trf, and __heap_trs.

Referenced by main().


Variable Documentation

Definition at line 93 of file osdebug.c.

Referenced by NutThreadCreate(), and NutTraceOs().

Definition at line 94 of file osdebug.c.

Referenced by NutThreadCreate(), and NutTraceOs().

Definition at line 96 of file osdebug.c.

Referenced by NutTraceHeap().

Definition at line 97 of file osdebug.c.

Referenced by NutTraceHeap().