RTEMS 6.3
Loading...
Searching...
No Matches
cpuuse Directory Reference

Files

 
cpuusagedata.c
 This source file contains the definition of CPU_usage_Uptime_at_last_reset.
 
cpuusagereport.c
 This source file contains the definition of rtems_cpu_usage_report() and rtems_cpu_usage_report_with_plugin().
 
cpuusagereset.c
 This source file contains the definition of rtems_cpu_usage_reset().
 
cpuusagetop.c
 This source file contains the definition of rtems_cpu_usage_top() and rtems_cpu_usage_top_with_plugin().
 
cpuuseimpl.h
 This header file provides interfaces of the CPU Usage Reporting implementation.

Detailed Description

This directory contains code to report and reset per-task CPU usage. If the BSP supports nanosecond timestamp granularity, this this information is very accurate. Otherwise, it is dependendent on the tick granularity.

It provides two primary features:

  • Generate a CPU Usage Report
  • Reset CPU Usage Information

NOTES:

  1. If configured for tick granularity, CPU usage is "docked" by a clock tick at each context switch.
  2. If configured for nanosecond granularity, no work is done at each clock tick. All bookkeeping is done as part of a context switch.