RTEMS 6.1-rc1
Data Structures | Macros | Functions
cpuusagetop.c File Reference

This source file contains the definition of rtems_cpu_usage_top() and rtems_cpu_usage_top_with_plugin(). 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)
 
void rtems_cpu_usage_top (void)
 Starts an interactive CPU usage reporting using the printk() printer. More...
 

Detailed Description

This source file contains the definition of rtems_cpu_usage_top() and rtems_cpu_usage_top_with_plugin().