RTEMS  5.1
Data Structures | Macros | Functions
cpuusagetop.c File Reference

CPU Usage Top. More...

#include <stdbool.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
#include <inttypes.h>
#include <rtems/cpuuse.h>
#include <rtems/printer.h>
#include <rtems/malloc.h>
#include <rtems/score/objectimpl.h>
#include <rtems/score/protectedheap.h>
#include <rtems/score/schedulerimpl.h>
#include <rtems/score/threadimpl.h>
#include <rtems/score/todimpl.h>
#include <rtems/score/watchdogimpl.h>
#include <rtems/score/wkspace.h>
#include <rtems/rtems/tasksimpl.h>
#include "cpuuseimpl.h"

Data Structures

struct  rtems_cpu_usage_data
 

Macros

#define RTEMS_TOP_SORT_ID   (0)
 
#define RTEMS_TOP_SORT_REAL_PRI   (1)
 
#define RTEMS_TOP_SORT_CURRENT_PRI   (2)
 
#define RTEMS_TOP_SORT_TOTAL   (3)
 
#define RTEMS_TOP_SORT_CURRENT   (4)
 
#define RTEMS_TOP_SORT_MAX   (4)
 
#define CPU_usage_Equal_to(_lhs, _rhs)   _Timestamp_Equal_to( _lhs, _rhs )
 
#define CPU_usage_Set_to_zero(_time)   _Timestamp_Set_to_zero( _time )
 
#define CPU_usage_Less_than(_lhs, _rhs)   _Timestamp_Less_than( _lhs, _rhs )
 

Functions

void rtems_cpu_usage_top_with_plugin (const rtems_printer *printer)
 CPU usage Top plugin. More...
 
void rtems_cpu_usage_top (void)
 CPU usage top. More...
 

Detailed Description

CPU Usage Top.