summaryrefslogtreecommitdiff
path: root/cpukit/libmisc/cpuuse/cpuusagetop.c (follow)
AgeCommit message (Collapse)Author
2020-04-28doxygen: Switch @brief and @ingroupSebastian Huber
This order change fixes the Latex documentation build via Doxygen.
2019-12-19libmisc/top: Fix the idle time and priorities on SMPChris Johns
- This patch is based on the patch attached to #3552 submitted by jameszxj. Closes #3552
2019-06-28score: Add and use _Thread_Get_unmapped_priority().Sebastian Huber
Add and use _Thread_Get_unmapped_real_priority().
2019-01-23libmisc: Fix swapped parameters and enable floating point usage.Maksim E. Kozlov
2018-11-09rtems: Deprecate region_information_blockSebastian Huber
The region_information_block typedef as no corresponding API. It has no proper namespace prefix. A user can do nothing with it. Close #3591.
2018-10-02Use rtems_task_exit()Sebastian Huber
Update #3530. Update #3533.
2017-08-22heap: Fix integer typesSebastian Huber
Update #3082.
2016-11-02rtems: Add rtems_task_iterate()Sebastian Huber
Update #2423.
2016-09-21score: Rework thread priority managementSebastian Huber
Add priority nodes which contribute to the overall thread priority. The actual priority of a thread is now an aggregation of priority nodes. The thread priority aggregation for the home scheduler instance of a thread consists of at least one priority node, which is normally the real priority of the thread. The locking protocols (e.g. priority ceiling and priority inheritance), rate-monotonic period objects and the POSIX sporadic server add, change and remove priority nodes. A thread changes its priority now immediately, e.g. priority changes are not deferred until the thread releases its last resource. Replace the _Thread_Change_priority() function with * _Thread_Priority_perform_actions(), * _Thread_Priority_add(), * _Thread_Priority_remove(), * _Thread_Priority_change(), and * _Thread_Priority_update(). Update #2412. Update #2556.
2016-09-08score: Introduce _Thread_Get_priority()Sebastian Huber
Avoid direct access to thread internal data fields.
2016-06-22Move printer initialization to separate headerSebastian Huber
The RTEMS print user need to know nothing about a particular printer implementation. In particular get rid of the <stdio.h> include which would be visible via <rtems.h>.
2016-05-31cpuuse: Hide implementation detailsSebastian Huber
2016-05-25cpukit, testsuite: Add rtems_printf and rtems_printer support.Chris Johns
This change adds rtems_printf and related functions and wraps the RTEMS print plugin support into a user API. All references to the plugin are removed and replaced with the rtems_printer interface. Printk and related functions are made to return a valid number of characters formatted and output. The function attribute to check printf functions has been added to rtems_printf and printk. No changes to remove warrnings are part of this patch set. The testsuite has been moved over to the rtems_printer. The testsuite has a mix of rtems_printer access and direct print control via the tmacros.h header file. The support for begink/endk has been removed as it served no purpose and only confused the code base. The testsuite has not been refactored to use rtems_printf. This is future work.
2016-03-24cpuuse/cpuusagetop.c: Fix unused variable warningJoel Sherrill
2016-03-17score: Fix CPU time used by executing threadsSebastian Huber
The CPU time used of a thread was previously maintained per-processor mostly during _Thread_Dispatch(). However, on SMP configurations the actual processor of a thread is difficult to figure out since thread dispatching is a highly asynchronous process (e.g. via inter-processor interrupts). Only the intended processor of a thread is known to the scheduler easily. Do the CPU usage accounting during thread heir updates in the context of the scheduler operations. Provide the function _Thread_Get_CPU_time_used() to get the CPU usage of a thread using proper locks to get a consistent value. Close #2627.
2016-03-01score: Delete Thread_CPU_usage_tSebastian Huber
This type is superfluous since all operations with it are done via the _Timestamp_*() functions.
2016-01-11score: Introduce Thread_Entry_informationSebastian Huber
This avoids potential dead code in _Thread_Handler(). It gets rid of the dangerous function pointer casts. Update #2514.
2015-06-15Remove use ticks for statistics configure option.Joel Sherrill
This was obsolete and broken based upon recent time keeping changes. Thie build option was previously enabled by adding USE_TICKS_FOR_STATISTICS=1 to the configure command line. This propagated into the code as preprocessor conditionals using the __RTEMS_USE_TICKS_FOR_STATISTICS__ conditional.
2015-04-29libmisc/cpuuse: Top support for current load.Chris Johns
The cpuuse top command now supports the current load where the list of tasks is ordered based on the current load rather than the total cpu usage. This lets you see what is using the processor at any specific instance. The ability to sort on a range of thread values is now supported. Added memory usage stats for unified and separate workspace and C heaps as well as displaying the allocated stack space. Added a few more command keys to refresh the display, show all tasks in the system, control the lines display and a scrolling mode that does not clear the display on each refresh. Removed support for tick kernel builds. The tick support in the kernel is to be removed.
2014-11-03cpuuse: Resolve compile errors.Jennifer Averett
2014-10-27libmisc: Add top to cpuusage.Jennifer Averett