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 09/06/07 at 22:51:25

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
RevLine 
[fc7bc51]1/*  cpuuse.h
2 *
3 *  This include file contains information necessary to utilize
4 *  and install the cpu usage reporting mechanism.
5 *
[90a5d194]6 *  COPYRIGHT (c) 1989-2007.
[fc7bc51]7 *  On-Line Applications Research Corporation (OAR).
8 *
[98e4ebf5]9 *  The license and distribution terms for this file may be
10 *  found in the file LICENSE in this distribution or at
[3160ff6]11 *  http://www.rtems.com/license/LICENSE.
[fc7bc51]12 *
[6f9c75c3]13 *  $Id$
[fc7bc51]14 */
15
[bc11ec2]16#ifndef __RTEMS_CPUUSE_h
17#define __RTEMS_CPUUSE_h
[fc7bc51]18
[90a5d194]19#include <rtems/bspIo.h>
20
[fc7bc51]21#ifdef __cplusplus
22extern "C" {
23#endif
24
[90a5d194]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
[fc7bc51]34/*
[bc11ec2]35 *  rtems_cpu_usage_report
[fc7bc51]36 */
37
[bc11ec2]38void rtems_cpu_usage_report( void );
[fc7bc51]39
40/*
[bc11ec2]41 *  rtems_cpu_usage_reset
[fc7bc51]42 */
43
[bc11ec2]44void rtems_cpu_usage_reset( void );
[fc7bc51]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.