diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2006-09-14 15:07:19 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2006-09-14 15:07:19 +0000 |
commit | bc11ec273dd03c7ea83617aadbb69a22281e4a4b (patch) | |
tree | 2a1b03a4b81353dabbf322ac2d4d8d59d69a9a03 /cpukit/libmisc/cpuuse | |
parent | 2006-09-14 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-bc11ec273dd03c7ea83617aadbb69a22281e4a4b.tar.bz2 |
2006-09-14 Joel Sherrill <joel@OARcorp.com>
* libmisc/cpuuse/cpuuse.c, libmisc/cpuuse/cpuuse.h: Promote CPU Usage
to first class citizen. Rename to start with rtems_ and include
documentation in user guide.
Diffstat (limited to 'cpukit/libmisc/cpuuse')
-rw-r--r-- | cpukit/libmisc/cpuuse/cpuuse.c | 19 | ||||
-rw-r--r-- | cpukit/libmisc/cpuuse/cpuuse.h | 14 |
2 files changed, 15 insertions, 18 deletions
diff --git a/cpukit/libmisc/cpuuse/cpuuse.c b/cpukit/libmisc/cpuuse/cpuuse.c index 92a46fe4b6..dbfe1dc6f7 100644 --- a/cpukit/libmisc/cpuuse/cpuuse.c +++ b/cpukit/libmisc/cpuuse/cpuuse.c @@ -1,15 +1,14 @@ /* * CPU Usage Reporter * - * COPYRIGHT (c) 1989-1999. 1996. + * COPYRIGHT (c) 1989-2006 * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be * found in the file LICENSE in this distribution or at * http://www.rtems.com/license/LICENSE. * - * cpuuse.c,v 1.20 2004/04/17 08:12:01 ralf Exp - * + * $Id$ */ #ifdef HAVE_CONFIG_H @@ -31,10 +30,10 @@ uint32_t CPU_usage_Ticks_at_last_reset; /*PAGE * - * CPU_usage_Dump + * rtems_cpu_usage_report */ -void CPU_usage_Dump( void ) +void rtems_cpu_usage_report( void ) { uint32_t i; uint32_t api_index; @@ -123,11 +122,6 @@ void CPU_usage_Dump( void ) fprintf(stdout, "\nTotal Units = %" PRId32 "\n", total_units ); } -/*PAGE - * - * CPU_usage_Reset - */ - static void CPU_usage_Per_thread_handler( Thread_Control *the_thread ) @@ -135,7 +129,10 @@ static void CPU_usage_Per_thread_handler( the_thread->ticks_executed = 0; } -void CPU_usage_Reset( void ) +/* + * rtems_cpu_usage_reset + */ +void rtems_cpu_usage_reset( void ) { CPU_usage_Ticks_at_last_reset = _Watchdog_Ticks_since_boot; diff --git a/cpukit/libmisc/cpuuse/cpuuse.h b/cpukit/libmisc/cpuuse/cpuuse.h index de874e0fcd..994c80e90a 100644 --- a/cpukit/libmisc/cpuuse/cpuuse.h +++ b/cpukit/libmisc/cpuuse/cpuuse.h @@ -3,7 +3,7 @@ * This include file contains information necessary to utilize * and install the cpu usage reporting mechanism. * - * COPYRIGHT (c) 1989-1999. 1996. + * COPYRIGHT (c) 1989-2006. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -13,24 +13,24 @@ * $Id$ */ -#ifndef __CPU_USE_h -#define __CPU_USE_h +#ifndef __RTEMS_CPUUSE_h +#define __RTEMS_CPUUSE_h #ifdef __cplusplus extern "C" { #endif /* - * CPU_usage_Dump + * rtems_cpu_usage_report */ -void CPU_usage_Dump( void ); +void rtems_cpu_usage_report( void ); /* - * CPU_usage_Reset + * rtems_cpu_usage_reset */ -void CPU_usage_Reset( void ); +void rtems_cpu_usage_reset( void ); #ifdef __cplusplus } |