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

4.11
Last change on this file since e6b31b27 was e6b31b27, checked in by Joel Sherrill <joel.sherrill@…>, on May 27, 2015 at 3:13:58 PM

Remove use ticks for statistics configure option.

This was obsolete and broken based upon recent time keeping changes.

Thie build option was previously enabled by adding
USE_TICKS_FOR_STATISTICS=1 to the configure command line.

This propagated into the code as preprocessor conditionals
using the RTEMS_USE_TICKS_FOR_STATISTICS conditional.

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