source: rtems/cpukit/libmisc/cpuuse/cpuuse.h @ 27a1a6a

4.115
Last change on this file since 27a1a6a was 90a5d194, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 6, 2007 at 10:51:25 PM

2007-09-06 Joel Sherrill <joel.sherrill@…>

  • 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.
  • Property mode set to 100644
File size: 877 bytes
Line 
1/*  cpuuse.h
2 *
3 *  This include file contains information necessary to utilize
4 *  and install the cpu usage reporting mechanism.
5 *
6 *  COPYRIGHT (c) 1989-2007.
7 *  On-Line Applications Research Corporation (OAR).
8 *
9 *  The license and distribution terms for this file may be
10 *  found in the file LICENSE in this distribution or at
11 *  http://www.rtems.com/license/LICENSE.
12 *
13 *  $Id$
14 */
15
16#ifndef __RTEMS_CPUUSE_h
17#define __RTEMS_CPUUSE_h
18
19#include <rtems/bspIo.h>
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25/*
26 * rtems_cpu_usage_report_with_handler
27 */
28
29void rtems_cpu_usage_report_with_plugin(
30  void                  *context,
31  rtems_printk_plugin_t  handler
32);
33
34/*
35 *  rtems_cpu_usage_report
36 */
37
38void rtems_cpu_usage_report( void );
39
40/*
41 *  rtems_cpu_usage_reset
42 */
43
44void rtems_cpu_usage_reset( void );
45
46#ifdef __cplusplus
47}
48#endif
49
50#endif
51/* end of include file */
Note: See TracBrowser for help on using the repository browser.