X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=kern%2Fmonitor.h;h=b6f4151e27962163ead813b3dbfc42d9a7da6183;hb=36ba2f39c6edb8358e8395ee346eefb2446e35a9;hp=23d083d1bdb2d4b9f0e4e57a163ca300fca6b0f4;hpb=af9c555446161016fdd76c1cdff96ce76bb6cba2;p=bertos.git diff --git a/kern/monitor.h b/kern/monitor.h old mode 100755 new mode 100644 index 23d083d1..b6f4151e --- a/kern/monitor.h +++ b/kern/monitor.h @@ -1,8 +1,33 @@ -/*! +/** * \file * * * \brief Monitor to check for stack overflows @@ -12,29 +37,15 @@ * \author Giovanni Bajo */ -/*#* - *#* $Log$ - *#* Revision 1.2 2005/04/11 19:10:28 bernie - *#* Include top-level headers from cfg/ subdir. - *#* - *#* Revision 1.1 2004/10/03 20:39:03 bernie - *#* Import in DevLib. - *#* - *#* Revision 1.1 2004/09/30 23:19:30 rasky - *#* Estratto il monitor degli stack da proc.c in due file a parte: monitor.c/h - *#* Rinominata monitor_debug_stacks in monitor_report - *#* - *#*/ - #ifndef KERN_MONITOR_H #define KERN_MONITOR_H -#include -#include +#include +#include #if CONFIG_KERN_MONITOR -/*! +/** * Start the kernel monitor. It is a special process which checks every second the stacks of the * running processes trying to detect stack overflows. * @@ -47,18 +58,18 @@ void monitor_start(size_t stacksize, cpustack_t *stack); -/*! +/** * Manually check if a given stack has overflown. This is used to check for stacks * of processes handled externally form the kernel, or for other stacks (for instance * the interrupt supervisor stack). * * \note For this function to work, the stack must have been filled at startup with - * CONFIG_KERN_STACKFILLCODE. + * #CONFIG_KERN_STACKFILLCODE. */ -size_t monitor_check_stack(cpustack_t* stack_base, size_t stack_size); +size_t monitor_checkStack(cpustack_t *stack_base, size_t stack_size); -/*! Print a report of the stack status through kdebug */ +/** Print a report of the stack status through kdebug */ void monitor_report(void);