4.115
Last change
on this file since a163882 was
a163882,
checked in by Ayush Awasthi <kolaveridi87@…>, on 01/04/13 at 19:09:14
|
libmisc: Doxygen Clean Up Task #1
Conflicts occured durning this patch and modifications in
the repo were favored over the patch.
|
-
Property mode set to
100644
|
File size:
1.4 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.com/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 | #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ |
---|
29 | #include <rtems/score/timestamp.h> |
---|
30 | #endif |
---|
31 | |
---|
32 | /** |
---|
33 | * @defgroup libmisc_cpuuse CPU Usage |
---|
34 | * |
---|
35 | * @ingroup libmisc |
---|
36 | */ |
---|
37 | /**@{*/ |
---|
38 | #ifdef __cplusplus |
---|
39 | extern "C" { |
---|
40 | #endif |
---|
41 | |
---|
42 | #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ |
---|
43 | extern Timestamp_Control CPU_usage_Uptime_at_last_reset; |
---|
44 | #else |
---|
45 | extern uint32_t CPU_usage_Ticks_at_last_reset; |
---|
46 | #endif |
---|
47 | |
---|
48 | /* |
---|
49 | * rtems_cpu_usage_report_with_handler |
---|
50 | */ |
---|
51 | |
---|
52 | void rtems_cpu_usage_report_with_plugin( |
---|
53 | void *context, |
---|
54 | rtems_printk_plugin_t handler |
---|
55 | ); |
---|
56 | |
---|
57 | /** |
---|
58 | * @brief Report CPU usage. |
---|
59 | * |
---|
60 | * CPU Usage Reporter |
---|
61 | */ |
---|
62 | |
---|
63 | void rtems_cpu_usage_report( void ); |
---|
64 | |
---|
65 | /** |
---|
66 | * @brief Reset CPU usage. |
---|
67 | * |
---|
68 | * CPU Usage Reporter |
---|
69 | */ |
---|
70 | |
---|
71 | void rtems_cpu_usage_reset( void ); |
---|
72 | |
---|
73 | #ifdef __cplusplus |
---|
74 | } |
---|
75 | #endif |
---|
76 | /**@}*/ |
---|
77 | #endif |
---|
78 | /* end of include file */ |
---|
Note: See
TracBrowser
for help on using the repository browser.