summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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>.
* shell: Add rtems_shell_wait_for_explicit_input()Alexander Krutwig2016-06-062-4/+40
|
* libmisc/untar: Support directory create and overwrites. Share the common code.Chris Johns2016-06-032-127/+343
| | | | | | | | | | | | | | | | | | | Support creating directories for files with a path depth greater than 1. Some tar files can have files with a path depth greater than 1 and no directory entry in the tar file to create a directory. Support overwriting existing files and directories failing in a similar way to tar on common hosts. If a file is replaced with a file delete the file and create a new file. If a directory replaces a file remove the file and create the directory. If a file replaces a directory remove the directory, and if the directory is not empty and cannot be removed report an error. If a directory alreday exists do nothing leaving the contents untouched. The untar code now shares the common header parsing and initial processing with the actual writes still separate. No changes to the IMFS have been made. Updates #2415. Closes #2207.
* libmisc/stackchk: Fix printk warnings.Chris Johns2016-06-031-6/+6
|
* smptests/smpatomic01: New test casesSebastian Huber2016-06-011-1/+3
| | | | | Demonstrate that a read-modify-write atomic operation may be necessary on some archtitectures to observe the latest value written.
* shell: Add CPUINFO commandSebastian Huber2016-05-315-0/+139
| | | | Update #2723.
* cpuuse: Hide implementation detailsSebastian Huber2016-05-316-5/+33
|
* 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.
* libmisc: Fix printk format warnings.Chris Johns2016-05-252-3/+3
|
* cpukit, testsuite: Add rtems_printf and rtems_printer support.Chris Johns2016-05-2516-227/+172
| | | | | | | | | | | | | | | | | | | 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.
* 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.
* capture: Fix use of per-processor dataSebastian Huber2016-05-122-27/+31
| | | | | | Get the current processor index only once and with interrupts disabled. Close #2707.
* capture: Remove superfluous includesSebastian Huber2016-05-121-3/+0
|
* capture: Compact rtems_capture_record_tSebastian Huber2016-05-121-1/+1
| | | | | Order fields according to alignment to reduce structure internal padding.
* capture: Fix buffer allocation and freeSebastian Huber2016-05-122-11/+11
| | | | | | | Do not use function static variables. Remove superfluous volatile qualifiers. Use proper integer types. Close #2706.
* score: Avoid Giant lock _Scheduler_Set_affinity()Sebastian Huber2016-05-121-1/+0
| | | | Update #2555.
* score: Use thread state lock for current stateSebastian Huber2016-05-121-3/+10
| | | | | | | In addition protect scheduler of thread by thread state lock. Enables use of scheduler per-instance locks. Update #2555.
* score: Simplify _Objects_Get_next()Sebastian Huber2016-04-211-2/+1
| | | | Remove unused location parameter.
* shell: Fix warning visible with latest NewlibSebastian Huber2016-04-121-0/+2
| | | | Works also with previous Newlib versions.
* rtems: Delete Region_Control::page_sizeSebastian Huber2016-04-121-1/+1
|
* rtems: Delete Region_Control::lengthSebastian Huber2016-04-121-1/+1
|
* rtems: Delete Region_Control::starting_addressSebastian Huber2016-04-121-1/+1
|
* rtems: Delete Region_Control::number_of_used_blocksSebastian Huber2016-04-121-1/+2
| | | | Use Heap_Statistics::used_blocks instead.
* score: Delete Thread_Wait_information::idSebastian Huber2016-04-061-6/+26
| | | | | | | | | | | This field was only by the monitor in non-multiprocessing configurations. Add new field Thread_Wait_information::remote_id in multiprocessing configurations and use it for the remote procedure call thread queue. Add _Thread_Wait_get_id() to obtain the object identifier for debug and system information tools. Ensure the object layout via static asserts. Add test cases to sptests/spthreadq01.
* score: Use constant for maximum count of CORE semaSebastian Huber2016-03-291-5/+2
|
* shell/hexdump-odsyntax.c: Add define of _GNU_SOURCE to avoid warningsJoel Sherrill2016-03-241-0/+3
|
* shell/hexdump-conv.c: Disable sccsid to avoid unused warningJoel Sherrill2016-03-241-0/+2
|
* libmisc/shell/main_hexdump.c: Disable unused copyright stringJoel Sherrill2016-03-241-0/+2
|
* libmisc/monitor/mon-prmisc.c: Remove unused rtems_monitor_events_assocJoel Sherrill2016-03-241-36/+0
|
* cpuuse/cpuusagetop.c: Fix unused variable warningJoel Sherrill2016-03-241-1/+0
|
* score: Fix CPU time used by executing threadsSebastian Huber2016-03-173-54/+27
| | | | | | | | | | | | | | 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.
* monitor: Use object allocator lockSebastian Huber2016-03-146-6/+6
| | | | | | Use object allocator lock instead of disabled thread dispatching. Update #2555.
* score: Use ISR lock for IO driver registrationSebastian Huber2016-03-141-0/+1
| | | | | | Create implementation header file. Update #2555.
* score: Delete Thread_CPU_usage_tSebastian Huber2016-03-011-7/+7
| | | | | This type is superfluous since all operations with it are done via the _Timestamp_*() functions.
* score: Introduce Thread_Entry_informationSebastian Huber2016-01-113-5/+3
| | | | | | | This avoids potential dead code in _Thread_Handler(). It gets rid of the dangerous function pointer casts. Update #2514.
* api: Remove deprecated NotepadsAun-Ali Zaidi2015-12-241-1/+0
| | | | | | | | | | | | | | | | | | | | | | | Notepads where a feature of RTEMS' tasks that simply functioned in the same way as POSIX keys or threaded local storage (TLS). They were introduced well before per task variables, which are also deprecated, and were barely used in favor of their POSIX alternatives. In addition to their scarce usage, Notepads took up unnecessary memory. For each task: - 16 32-bit integers were allocated. - A total of 64 bytes per task per thread. This is especially critical in low memory and safety-critical applications. They are also defined as uint32_t, and therefore are not guaranteed to hold a pointer. Lastly, they are not portable solutions for SMP and uniprocessor systems, like POSIX keys and TLS. updates #2493.
* libmisc: Include missing header file, fix warningsNick Withers2015-12-152-6/+7
|
* untar: do not exit with error when created directory already exists.Pavel Pisa2015-11-231-1/+29
| | | | | | | | | | | | | | The problem exists for both RTEMS untar implementations and their variants: Untar_FromMemory(), Untar_FromFile() and rtems_tarfs_load(). If filesystem object already exists at extracted directory path then if it is directory, creation is ignored. Attempt to delete/unlink object and make directory is tried for other cases. This simple approach problem reported in ticket fixes #2413. Behavior follows GNU tar and BSD tar practice for directories but much more work is required to achieve full semantics of the full featured tar implementation still.
* basdefs.h: Add and use RTEMS_UNUSEDSebastian Huber2015-10-2641-108/+111
|
* basedefs.h: Add and use RTEMS_NO_RETURNSebastian Huber2015-10-261-1/+1
|
* cpukit/libmisc/dumpbuf/dumpbuf.c: Fix compilation warningsMartin Galvan2015-09-031-1/+1
| | | | | | | | | | Compiling dumpbuf.c causes the following warning to be issued: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] This happens because line_buffer is declared as unsigned. Closes #2411.