summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/monitor (follow)
Commit message (Collapse)AuthorAgeFilesLines
* cpukit/libmisc/monitor/: Manually change to BSD-2 licenseJoel Sherrill2022-03-2419-50/+562
| | | | | | | | | | | | | | This code did not have any copyrights or licenses and a bit of archeology was needed to determine authorship. This code was in the initial import into the RTEMS CVS repository when it was established in May 1995. There was very little, if any, code not written by OAR Corporation in that initial import. After discussion with Chris Johns, it was determined that this code was from OAR Corporation and that he had added a few features later. Both Chris Johns and OAR Corporation have given permission to relicense. Updates #3053.
* rtems: Fix rtems_partition_return_buffer()Sebastian Huber2021-08-121-2/+3
| | | | | | | | The rtems_partition_return_buffer() wrongly accepted which were exactly at the buffer area end. Use the buffer area limit address for the range checking. Close #4490.
* cpukit/libmisc/monitor: Fix src/dest overlap of strcpy in mon-editor.cHarrison Edward Gerber2021-05-281-1/+11
| | | | | | See also CID 1399727 Closes #4444
* cpukit: Remove libnetworkingVijay Kumar Banerjee2021-04-071-342/+0
| | | | Update #3850
* cpukit/libmisc/monitor: Fix an illegal string copyFrank Kühndel2020-10-121-1/+2
| | | | | | | | | | | | This is actually an illegal use of strcpy() because one is not allowed to use this function with overlapping source and destination buffers; whereas memmove() is explicitly designed to handle such cases. The compiler warning was: ../../../cpukit/libmisc/monitor/mon-editor.c:342:15: warning: 'strcpy' accessing 1 byte at offsets [0, 75] and [0, 75] overlaps 1 byte at offset [0, 74] [-Wrestrict]
* rtems: Remove Message_queue_Control::attribute_setSebastian Huber2020-09-281-1/+15
| | | | | | | Add Message_queue_Control::is_global if RTEMS_MULTIPROCESSING is defined. This reduces the Message_queue_Control size in standard RTEMS configurations. Update #4007.
* config: Add _SMP_Is_enabledSebastian Huber2020-02-251-1/+1
| | | | | | | | | | Move the is SMP enabled configuration constant out of the configuration table. Since this was the last configuration constant in rtems_configuration_table, remove this type. Update #3875.
* config: Simplify initialization task configSebastian Huber2020-02-252-4/+8
| | | | | | | | | | With the removal of the CONFIGURE_HAS_OWN_INIT_TASK_TABLE configuration option at most one Classic API user initialization task can be configured. Provide an RTEMS API configuration table for backward compatibility. Update #3873.
* monitor: Use proper API for all config constantsSebastian Huber2020-02-171-7/+4
|
* config: Add _MPCI_ConfigurationSebastian Huber2019-12-133-15/+7
| | | | | | | Replace the user MPCI configuration table with a system provided _MPCI_Configuration. Update #3735.
* rtems: Optimize semaphore control blockSebastian Huber2019-12-111-5/+9
| | | | | | | Move variant, discipline, and global information to flags stored in a node pointer of active semaphores. Update #3833.
* score: Add and use _Thread_Get_unmapped_priority().Sebastian Huber2019-06-281-4/+1
| | | | Add and use _Thread_Get_unmapped_real_priority().
* rtems: Use object information to get config maxSebastian Huber2018-12-141-9/+9
| | | | | | | Use functions instead of macros. Add missing rtems_configuration_get_maximum_*() functions. Update #3621.
* score: Remove support for RTEMS_USE_16_BIT_OBJECTSebastian Huber2018-11-212-8/+0
| | | | | | | | | The RTEMS_USE_16_BIT_OBJECT define is not set by an RTEMS port. Remove support for 16-bit object identifiers. If someone really wants to use RTEMS on a 16-bit target, then it is better to use self-contained objects instead of playing around with object identifier optimizations. Update #3603.
* rtems: Move internal structures to extensiondata.hSebastian Huber2018-11-121-0/+1
| | | | Update #3598.
* rtems: Move internal structures to tasksdata.hSebastian Huber2018-11-121-0/+1
| | | | Update #3598.
* rtems: Move internal structures to regiondata.hSebastian Huber2018-11-121-0/+1
| | | | Update #3598.
* rtems: Move internal structures to partdata.hSebastian Huber2018-11-121-0/+1
| | | | Update #3598.
* monitor: Remove dead codeSebastian Huber2018-11-082-19/+0
| | | | | Update #3587. Update #3589.
* posix: Provide threads by defaultSebastian Huber2018-10-292-10/+2
| | | | Update #2514.
* Use rtems_task_exit()Sebastian Huber2018-10-021-1/+1
| | | | | Update #3530. Update #3533.
* Remove make preinstallChris Johns2018-01-251-528/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A speciality of the RTEMS build system was the make preinstall step. It copied header files from arbitrary locations into the build tree. The header files were included via the -Bsome/build/tree/path GCC command line option. This has at least seven problems: * The make preinstall step itself needs time and disk space. * Errors in header files show up in the build tree copy. This makes it hard for editors to open the right file to fix the error. * There is no clear relationship between source and build tree header files. This makes an audit of the build process difficult. * The visibility of all header files in the build tree makes it difficult to enforce API barriers. For example it is discouraged to use BSP-specifics in the cpukit. * An introduction of a new build system is difficult. * Include paths specified by the -B option are system headers. This may suppress warnings. * The parallel build had sporadic failures on some hosts. This patch removes the make preinstall step. All installed header files are moved to dedicated include directories in the source tree. Let @RTEMS_CPU@ be the target architecture, e.g. arm, powerpc, sparc, etc. Let @RTEMS_BSP_FAMILIY@ be a BSP family base directory, e.g. erc32, imx, qoriq, etc. The new cpukit include directories are: * cpukit/include * cpukit/score/cpu/@RTEMS_CPU@/include * cpukit/libnetworking The new BSP include directories are: * bsps/include * bsps/@RTEMS_CPU@/include * bsps/@RTEMS_CPU@/@RTEMS_BSP_FAMILIY@/include There are build tree include directories for generated files. The include directory order favours the most general header file, e.g. it is not possible to override general header files via the include path order. The "bootstrap -p" option was removed. The new "bootstrap -H" option should be used to regenerate the "headers.am" files. Update #3254.
* monitor: Fix thread priority valuesSebastian Huber2018-01-221-1/+4
|
* monitor: Include <rtems/monitor.h>Sebastian Huber2017-12-133-3/+3
| | | | | | Prepare for header file move to common include directory. Update #3254.
* shell: Display scheduler instead of current CPUSebastian Huber2017-06-162-11/+19
| | | | | | | Display the scheduler name instead of the current CPU in the "task" shell command. The current CPU could be misleading in case locking protocols are involved. The "cpuuse" command can be used to obtain the current CPU.
* libmisc/monitor: Correctly print unlimited configuration table entries.Chris Johns2017-04-191-12/+22
| | | | Closes #2997.
* monitor: Do not zero sema id and nameSebastian Huber2017-03-071-1/+5
|
* monitor: Print short and long task namesSebastian Huber2017-02-142-26/+53
| | | | | | Print wait object identifier only if it exists. Update #2858.
* monitor: Add support for BSD wakeup messagesSebastian Huber2017-01-311-3/+17
|
* score: Add _Thread_queue_Object_nameSebastian Huber2017-01-312-19/+18
| | | | | | | | | | | | | Add the special thread queue name _Thread_queue_Object_name to mark thread queues embedded in an object with identifier. Using the special thread state STATES_THREAD_QUEUE_WITH_IDENTIFIER is not reliable for this purpose since the thread wait information and thread state are protected by different SMP locks in separate critical sections. Remove STATES_THREAD_QUEUE_WITH_IDENTIFIER. Add and use _Thread_queue_Object_initialize(). Update #2858.
* score: Add and use _Thread_Get_name()Sebastian Huber2017-01-132-1/+8
| | | | Update #2858.
* Add and use rtems_assoc_thread_states_to_string()Sebastian Huber2017-01-121-40/+3
|
* score: Replace STATES_DELAYINGSebastian Huber2017-01-121-1/+0
| | | | | | | | Replace STATES_DELAYING with STATES_WAITING_FOR_TIME. There is no need for separate timeout thread states. The Thread_Control::Timer::header and Watchdog_Control::cpu members can be used to figure out the kind of timeout.
* score: Add STATES_THREAD_QUEUE_WITH_IDENTIFIERSebastian Huber2017-01-111-10/+12
| | | | | Add thread state bit to identify thread queues that are embedded in an object with identifier.
* score: Delete STATES_WAITING_FOR_BUFFERSebastian Huber2017-01-111-2/+0
|
* score: Initialize thread queue context earlySebastian Huber2016-12-021-0/+1
| | | | | | | | Initialize thread queue context early preferably outside the critical section. Remove implicit _Thread_queue_Context_initialize() from _Thread_Wait_acquire().
* score: First part of new MrsP implementationSebastian Huber2016-11-021-1/+1
| | | | Update #2556.
* monitor: Support priority inheritance queuesSebastian Huber2016-09-301-0/+2
|
* score: Introduce _Thread_Get_priority()Sebastian Huber2016-09-081-1/+1
| | | | Avoid direct access to thread internal data fields.
* score: Turn thread lock into thread wait lockSebastian Huber2016-07-271-4/+3
| | | | | | | | | The _Thread_Lock_acquire() function had a potentially infinite run-time due to the lack of fairness at atomic operations level. Update #2412. Update #2556. Update #2765.
* score: Introduce map priority scheduler operationSebastian Huber2016-06-221-2/+4
| | | | | | | | | | | Introduce map/unmap priority scheduler operations to map thread priority values from/to the user domain to/from the scheduler domain. Use the map priority operation to validate the thread priority. The EDF schedulers use this new operation to distinguish between normal priorities and priorities obtain through a job release. Update #2173. Update #2556.
* rtems: Fix semaphore field nameSebastian Huber2016-05-301-2/+2
|
* rtems: Move MrsP semaphore operationsSebastian Huber2016-05-301-1/+1
| | | | | Move MrsP semaphore operations to a less prominent location. Fix field name.
* score: Rework CORE inherit priority mutexSebastian Huber2016-05-301-22/+72
| | | | | Provide dedicated seize and surrender methods for inherit priority mutexes. This eliminates CORE_mutex_Attributes.
* score: Add CORE mutex variantsSebastian Huber2016-05-301-2/+3
| | | | | | | | Add CORE_recursive_mutex_Control and CORE_ceiling_mutex_Control to avoid the run-time evaluation of attributes to figure out how a particular mutex methods should behave. Start with the no protocol variants. This eliminates the CORE_MUTEX_DISCIPLINES_FIFO and CORE_MUTEX_DISCIPLINES_PRIORITY disciplines.
* score: Rework _Thread_Restart_other()Sebastian Huber2016-05-201-1/+1
| | | | | | | | | Rework _Thread_Restart_other() to use _Thread_Change_life_locked(). Cope with concurrent change requests by means of a pending request counter. Update #2555. Update #2626.
* score: Add _Thread_Join() and _Thread_Cancel()Sebastian Huber2016-05-201-1/+0
| | | | | | | | Split _Thread_Close() into _Thread_Join() and _Thread_Cancel() to prepare for a re-use in pthread_join() and pthread_cancel(). Update #2555. Update #2626.
* score: Avoid Giant lock _Scheduler_Set_affinity()Sebastian Huber2016-05-121-1/+0
| | | | Update #2555.
* score: Simplify _Objects_Get_next()Sebastian Huber2016-04-211-2/+1
| | | | Remove unused location parameter.
* rtems: Delete Region_Control::page_sizeSebastian Huber2016-04-121-1/+1
|