RTEMS CPU Kit with SuperCore  4.11.3
cpuuse.h
Go to the documentation of this file.
1 
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 
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39 
40 extern Timestamp_Control CPU_usage_Uptime_at_last_reset;
41 
42 /*
43  * rtems_cpu_usage_report_with_handler
44  */
45 
46 void rtems_cpu_usage_report_with_plugin(
47  void *context,
48  rtems_printk_plugin_t handler
49 );
50 
57 void rtems_cpu_usage_report( void );
58 
66  void *context,
68 );
69 
76 void rtems_cpu_usage_top( void );
77 
84 void rtems_cpu_usage_reset( void );
85 
86 #ifdef __cplusplus
87 }
88 #endif
89 
90 #endif
91 /* end of include file */
void rtems_cpu_usage_reset(void)
Reset CPU usage.
Definition: cpuusagereset.c:36
void rtems_cpu_usage_top_with_plugin(void *context, rtems_printk_plugin_t print)
CPU usage Top plugin.
Definition: cpuusagetop.c:562
Helpers for Manipulating Timestamps.
void rtems_cpu_usage_top(void)
CPU usage top.
Definition: cpuusagetop.c:697
struct bintime Timestamp_Control
Define the Timestamp control type.
Definition: timestamp.h:55
Interface to Kernel Print Methods.
int(* rtems_printk_plugin_t)(void *, const char *format,...)
Type definition for function which can be plugged in to certain reporting routines to redirect the ou...
Definition: bspIo.h:129
void rtems_cpu_usage_report(void)
Report CPU usage.
Definition: cpuusagereport.c:141