source: rtems/cpukit/libmisc/cpuuse/cpuuse.h @ baef6771

4.115
Last change on this file since baef6771 was baef6771, checked in by Sebastian Huber <sebastian.huber@…>, on 09/15/11 at 14:34:21

2011-09-15 Sebastian Huber <sebastian.huber@…>

  • cpukit/libmisc/cpuuse/cpuuse.h, cpukit/libmisc/cpuuse/cpuusagedata.c, cpukit/libmisc/cpuuse/cpuusagereport.c, cpukit/libmisc/cpuuse/cpuusagereset.c: Fixed timestamp usage.
  • Property mode set to 100644
File size: 1.2 KB
Line 
1/**
2 * @file rtems/cpuuse.h
3 *
4 * This include file contains information necessary to utilize
5 * and install the cpu usage reporting mechanism.
6 */
7
8/*
9 *  COPYRIGHT (c) 1989-2011.
10 *  On-Line Applications Research Corporation (OAR).
11 *
12 *  The license and distribution terms for this file may be
13 *  found in the file LICENSE in this distribution or at
14 *  http://www.rtems.com/license/LICENSE.
15 *
16 *  $Id$
17 */
18
19#ifndef __RTEMS_CPUUSE_h
20#define __RTEMS_CPUUSE_h
21
22#include <rtems.h>
23#include <rtems/bspIo.h>
24
25#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
26  #include <rtems/score/timestamp.h>
27#endif
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
33#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
34  extern Timestamp_Control  CPU_usage_Uptime_at_last_reset;
35#else
36  extern uint32_t           CPU_usage_Ticks_at_last_reset;
37#endif
38
39/*
40 * rtems_cpu_usage_report_with_handler
41 */
42
43void rtems_cpu_usage_report_with_plugin(
44  void                  *context,
45  rtems_printk_plugin_t  handler
46);
47
48/*
49 *  rtems_cpu_usage_report
50 */
51
52void rtems_cpu_usage_report( void );
53
54/*
55 *  rtems_cpu_usage_reset
56 */
57
58void rtems_cpu_usage_reset( void );
59
60#ifdef __cplusplus
61}
62#endif
63
64#endif
65/* end of include file */
Note: See TracBrowser for help on using the repository browser.