forked from Imagelibrary/rtems
2007-09-06 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/Makefile.am, libcsupport/src/printk.c: * libcsupport/src/printk_plugin.c: New file. include/rtems/bspIo.h, libmisc/cpuuse/cpuusagereport.c, libmisc/cpuuse/cpuuse.h, libmisc/stackchk/check.c, libmisc/stackchk/stackchk.h: rtems/include/rtems/rtems/ratemon.h, rtems/src/ratemonreportstatistics.c: Added capability to specify your own "printf" routine to various reporting functions. This added an XXX_with_plugin as the underlying implementation for + rtems_rate_monotonic_report_statistics + rtems_stack_checker_report_usage + rtems_cpu_usage_report As demonstration, the http netdemo can now print out stack and cpu usage reports.
This commit is contained in:
@@ -18,6 +18,8 @@
|
||||
#ifndef __RTEMS_STACK_CHECKER_h
|
||||
#define __RTEMS_STACK_CHECKER_h
|
||||
|
||||
#include <rtems/bspIo.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
@@ -42,6 +44,21 @@ boolean rtems_stack_checker_is_blown( void );
|
||||
*/
|
||||
void rtems_stack_checker_report_usage( void );
|
||||
|
||||
/** @brief Print Stack Usage Report
|
||||
*
|
||||
* This method prints a stack usage report for the curently executing
|
||||
* task.
|
||||
*
|
||||
* @param[in] context is the context to pass to the print handler
|
||||
* @param[in] print is the print handler
|
||||
*
|
||||
* @note It uses the CALLER's routine to print the report.
|
||||
*/
|
||||
void rtems_stack_checker_report_usage_with_plugin(
|
||||
void *context,
|
||||
rtems_printk_plugin_t print
|
||||
);
|
||||
|
||||
/*************************************************************
|
||||
*************************************************************
|
||||
** Prototyped only so the user extension can be installed **
|
||||
|
||||
Reference in New Issue
Block a user