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

4.115
Last change on this file since c5782a2 was c5782a2, checked in by Mathew Kallada <matkallada@…>, on 12/28/12 at 17:16:29

Header File Doxygen Enhancement Task #7

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