summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* shell: Fix format specifiersSebastian Huber2017-05-021-3/+3
|
* xz/xz_config.h: Address unable to inline warningJoel Sherrill2017-04-241-0/+5
|
* libmisc/monitor: Correctly print unlimited configuration table entries.Chris Johns2017-04-191-12/+22
| | | | Closes #2997.
* rtems/inttypes.h: New file. Uses contents from cpukitJoel Sherrill2017-04-181-9/+1
| | | | | | | | Provide extentions to <inttpes.h> PRIxxx constants for more POSIX types. Start with existing definitions found in RTEMS Project owned code in cpukit/. updates #2983.
* xz_config.h: Define XZ_USE_CRC64Joel Sherrill2017-04-061-1/+1
| | | | close #2909.
* monitor: Do not zero sema id and nameSebastian Huber2017-03-071-1/+5
|
* shell: Fix warningsSebastian Huber2017-02-152-4/+8
|
* monitor: Print short and long task namesSebastian Huber2017-02-142-26/+53
| | | | | | Print wait object identifier only if it exists. Update #2858.
* Rename CONFIGURE_SMP_MAXIMUM_PROCESSORSSebastian Huber2017-02-141-1/+1
| | | | | | | Rename CONFIGURE_SMP_MAXIMUM_PROCESSORS to CONFIGURE_MAXIMUM_PROCESSORS since the SMP part is superfluous. Update #2894.
* shell: Fix warningsSebastian Huber2017-02-141-2/+0
|
* Remove CONFIGURE_SMP_APPLICATIONSebastian Huber2017-02-021-2/+0
| | | | | | Enable the SMP support if CONFIGURE_SMP_MAXIMUM_PROCESSORS > 1. Update #2893.
* 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.
* Complete STACK_CHECKER_EXTENSION. Fixes #2889Stavros Passas2017-01-301-0/+1
|
* Use <sys/endian.h>Sebastian Huber2017-01-241-2/+2
| | | | Update #2803.
* score: Add and use _Thread_Get_name()Sebastian Huber2017-01-134-36/+37
| | | | Update #2858.
* cpuuse: Call printer only onceSebastian Huber2017-01-121-14/+7
|
* 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
|
* Rename is_internal to always_set_to_falseSebastian Huber2016-12-123-4/+4
| | | | Update #2825.
* 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().
* Fix untar mkdir when the directory exists.Chris Johns2016-11-181-3/+5
|
* testsupport: Determine worker index via processorSebastian Huber2016-11-032-40/+36
| | | | | Determine worker index via the current processor index to get consistent job runs with respect to the cache topology.
* score: Introduce Thread_Scheduler_control::homeSebastian Huber2016-11-022-2/+2
| | | | | | | | Replace Thread_Scheduler_control::control and Thread_Scheduler_control::own_control with new Thread_Scheduler_control::home. Update #2556.
* score: First part of new MrsP implementationSebastian Huber2016-11-021-1/+1
| | | | Update #2556.
* cpuuse: Use rtems_task_iterate()Sebastian Huber2016-11-021-58/+59
| | | | Update #2423.
* rtems: Add rtems_task_iterate()Sebastian Huber2016-11-025-88/+57
| | | | Update #2423.
* libmisc/xz: Add xz decompression.Chris Johns2016-10-1314-1/+3181
| | | | Add support to untar XZ compressed files.
* monitor: Support priority inheritance queuesSebastian Huber2016-09-301-0/+2
|
* score: Rework thread priority managementSebastian Huber2016-09-212-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | 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.
* score: Introduce _Thread_Get_priority()Sebastian Huber2016-09-083-4/+8
| | | | Avoid direct access to thread internal data fields.
* stackchk: Fix stack checker thread initializationSebastian Huber2016-09-082-30/+4
| | | | | | | Commit 0fd6f25507fbea5f4892b71b58837cdda17856b4 relaxed the thread begin extension execution environment. This broke the stack check which only partially initialized the stack pattern in its create extension. Move the part of the begin extension to the create extension.
* stackchk: Use a const pattern to checkSebastian Huber2016-09-081-89/+42
|
* stackchk: Remove superfluous internal header fileSebastian Huber2016-09-083-103/+26
|
* capture: Use proper accessor functionsSebastian Huber2016-09-061-4/+4
|
* capture: Workaround to avoid misaligned accessSebastian Huber2016-09-061-1/+1
| | | | | Move the 64-bit field to a not 64-bit aligned structure offset to stop the compiler from generating 64-bit load/store operations.
* libmisc/capture: Remove the reserved _t in the types.Chris Johns2016-09-018-271/+252
|
* libmisc/capture: Fix the capture engine on SMP.Chris Johns2016-09-019-666/+880
| | | | | | | | | | | | | | | | | | | | | | | This patches some issues with the capture engine: 1. Check is the engine is open in ctrace commands. 2. Check all record open and appends for overflow. 3. Fix the record open to take the size of user data and not the record header. 4. Use packed structs for data being written to the per cpu buffers. 5. Remove direct struct access to the capture buffers to avoid misaligned accesses. 6. Add support to extract records, no struct access to the capture buffers. 7. Update ctrace to extract records from the capture buffers. 8. Add support to ctrace to always print the task name if it has one. 9. Add support to manage names or the lack of a name. 10. Range of minor fixes. 11. Fix a long standing bug in ctset's handling of args. Closes #2780.
* libmisc/untar: Set the perms to the value in the tar file.Chris Johns2016-08-092-20/+34
| | | | | | | This patch parses the mode field in the tar header and sets the directory or file to the mode value in the header. Closes #2768.
* 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.
* Add Untar_FromGzChunk_Print() + TestAlexander Krutwig2016-07-263-1/+123
|
* Add Untar_FromChunk_Print() + TestAlexander Krutwig2016-07-262-1/+197
|
* 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: Rework RTEMS API to SuperCore prioritySebastian Huber2016-06-222-6/+6
| | | | | Use same structure as POSIX API for thread priority conversion to/from SuperCore.
* Rename rtems_test_print() into rtems_test_printf()Sebastian Huber2016-06-222-2/+2
|
* Move printer initialization to separate headerSebastian Huber2016-06-2212-1/+12
| | | | | | 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>.
* Make rtems/print.h independent of rtems/bspIo.hSebastian Huber2016-06-222-0/+2
|
* Rename and move RTEMS_PRINTF_ATTRIBUTE()Sebastian Huber2016-06-221-1/+1
| | | | | Rename RTEMS_PRINTF_ATTRIBUTE() into RTEMS_PRINTFLIKE() (similar to <sys/cdefs.h> __printflike()) and move it to <rtems/score/basedefs.h>.