summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests (follow)
Commit message (Collapse)AuthorAgeFilesLines
* libdl: Do not access the ELF file while the allocator is locked.Chris Johns2019-05-034-3/+4
| | | | | | | | | | | | | - Load symbols before allocation. - Parse reloc records and place any reloc recs in a cache to use while the allocator is locked. - Relocate symbols after section allocation. - Split section loading into allocation/locating and loading. - Update all arch back-ends with a new reloc interface to control tramp handling. - Add `-a` and `-t` to the object list shell command. Closes #3741
* ttest01: New testSebastian Huber2019-03-277-0/+347
| | | | | | | | | | | This is an example test using the RTEMS Test Framework. It tests also the framework itself. Add T_FILE_NAME command line define to get rid of the full file path. This is important to reduce the read-only data of test files and make them build system independent. Update #3199.
* libdl: Add an archive commandChris Johns2019-03-2218-0/+771
| | | | | | | - The archive command lists archives, symbols and any duplicate symbols. - Change the RTL shell commands to the rtems_printer to allow the output to be captured.
* record: Rename internal per-CPU eventsSebastian Huber2019-03-121-11/+11
| | | | Update #3665.
* libdl: Add powerpc large memory and small data support.Chris Johns2019-02-0928-177/+519
| | | | | | | | | | | | | | | | | - Add support for architecure sections that can be handled by the architecture back end. - Add trampoline/fixup support for PowerPC. This means the PowerPC now supports large memory loading of applications. - Add a bit allocator to manage small block based regions of memory. - Add small data (sdata/sbss) support for the PowerPC. The support makes the linker allocated small data region of memory a global resource available to libdl loaded object files. Updates #3687 Updates #3685
* libdl: Add support for large memory programsChris Johns2019-02-094-9/+21
| | | | | | | | | | | | | | | - Add trampolines to support relocs that are out of range on support architectures. - Support not loading separate text/data sections in an object file if the symbol provided in the section is a duplicate. A base image may have pulled in part of an object and another part needs to be dynamically loaded. - Refactor the unresolved handling to scale to hundreds of unresolved symbols when loading large number of files. Updates #3685
* libdl: Add support for trampolinesChris Johns2019-02-0919-20/+1163
| | | | | | | | | | | | | - Trampolines or fixups for veneers provide long jump support for instruciton sets that implement short relative address branches. The linker provides trampolines when creating a static image. This patch adds trampoline support to libdl and the ARM architecture. - The dl09 test requires enough memory so modules are outside the relative branch instruction ranges for the architecture. Updates #3685
* libdl: Fix the support for constructors and desctructors.Chris Johns2019-02-091-1/+1
| | | | | | | - Fix the handling of pending objects. - Add a constructor flags in objects to track then being called. Closes #2921
* libtest/dl08: Add a test for archives.Chris Johns2019-02-0919-1/+1010
| | | | | | | - Create 2 archives. - Load 1 object file which loads 6 object files from the libraries. Updates #3686
* libtests/dl02: Update the rtl-shell path. More verbose test.Chris Johns2019-02-091-9/+12
| | | | Updates #3686
* libtests/dl02: Update the rtl-shell path.Chris Johns2019-02-091-0/+1
| | | | Updates #3686
* build: Do not install test programsSebastian Huber2019-01-301-2/+1
|
* record: Add enum value for each eventSebastian Huber2019-01-302-10/+7
| | | | Update #3665.
* Add low level event recording supportSebastian Huber2019-01-298-0/+982
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add low level event recording infrastructure for system and user defined events. The infrastructure is able to record high frequency events such as * SMP lock acquire/release, * interrupt entry/exit, * thread switches, * UMA zone allocate/free, and * Ethernet packet input/output, etc. It allows post-mortem analysis in fatal error handlers, e.g. the last events are in the record buffer, the newest event overwrites the oldest event. It is possible to detect record buffer overflows for consumers that expect a continuous stream of events, e.g. to display the system state in real-time. The implementation supports high-end SMP machines (more than 1GHz processor frequency, more than four processors). Add a new API instead. The implementation uses per-processor data structures and no atomic read-modify-write operations. It is uses per-processor ring buffers to record the events. The CPU counter is used to get the time of events. It is combined with periodic uptime events to synchronize it with CLOCK_REALTIME. The existing capture engine tries to solve this problem also, but its performance is not good enough for high-end production systems. The main issues are the variable-size buffers and the use of SMP locks for synchronization. To fix this, the API would change significantly. Update #3665.
* build: Add missing $(LDADD) for dependenciesSebastian Huber2019-01-141-6/+6
|
* libtests/stackchk: Fix for 64-bit targetsSebastian Huber2019-01-091-22/+11
|
* build: Call rtems-ld with the $(CC) of the buildSebastian Huber2019-01-081-2/+3
| | | | | This enables support for non-standard compiler names, e.g. sparc-rtems6-gcc.
* build: Call rtems-syms with the $(CC) of the buildSebastian Huber2019-01-081-6/+6
| | | | | This enables support for non-standard compiler names, e.g. sparc-rtems6-gcc.
* score: Introduce <rtems/score/heapinfo.h>Sebastian Huber2018-11-261-0/+1
| | | | | | | Move Heap_Information_block to separate header file to hide heap implementation details from <rtems.h>. Update #3598.
* libdl: Add object file dependencies to track referencesChris Johns2018-11-2217-2/+1234
| | | | | | | | | | Tracking references lets us manage when an object file can be unloaded. If an object file has references to it, it cannot be unloaded. Modules that depend on each other cannot be unloaded. Updates #3605
* Misc: Minor English fixes (GCI 2018)kuaLeYi2018-11-201-3/+4
|
* Add rtems_malloc() and rtems_calloc()Sebastian Huber2018-11-121-0/+51
| | | | Close #3583.
* build: Fix library orderSebastian Huber2018-11-081-47/+47
| | | | Update #3551.
* Move default config to librtemsdefaultconfig.aSebastian Huber2018-10-291-0/+47
| | | | | | | | | | | | | | | | | | | | | | | An RTEMS application default configuration is contained in cpukit/libmisc/dummy/default-configuration.c. This default configuration was contained in librtemscpu.a. This had at least two problems: 1. Application configuration errors may have pulled in the default configuration which in turn lead to multiply define symbols error. This was quite confusing. You had to consult the linker map file to figure out what cased the pull in of the default configuration. You needed to know what a linker map file is and how you generate it with your build system. This was not very user friendly. 2. It prevented the use of default configuration items for each subsystem in librtemscpu.a. This may be used to reduce the size of the configuration itself. Move the default configuration to the separate library librtemsdefaultconfig.a. Close #3551.
* malloctest: Hide NULL pointer from compilerSebastian Huber2018-10-241-6/+5
| | | | | Disabling a warning does not prevent the compiler from reasoning what it is supposed to do with a somewhat undefined function call.
* libtests/Makefile.am: Add CPU_CFLAGS to rtems-ld invocationJoel Sherrill2018-10-141-1/+2
| | | | closes #3401, #3402.
* telnetd: Add server port to configurationSebastian Huber2018-10-111-1/+1
| | | | Close #3543.
* telnetd: Create sessions at startSebastian Huber2018-10-112-5/+6
| | | | Update #3543.
* telnetd: Remove keep stdio featureSebastian Huber2018-10-105-0/+167
| | | | | | | | | | | | | | The Telnet service started via rtems_telnetd_start() had a keep stdio feature. This just created a task and executed the command function in a loop. For this kind of service we do not library support. This can be done by an application task on its own. Remove this feature and provide only the real Telnet server functionality. Use syslog() for error and status messages. Add test program for the Telnet server. Close #3542.
* build: Remove local.amSebastian Huber2018-10-101-1/+0
|
* build: Directly reference libraries in testsSebastian Huber2018-10-101-4/+4
| | | | Remove use of TMPINSTALL_FILES.
* ftpd: Remove FTPD_SessionInfo_t::pass memberSebastian Huber2018-10-052-7/+50
| | | | | | There is no need to keep the password throughout the session. Update #3530.
* tests: Use rtems_task_exit()Sebastian Huber2018-10-0513-38/+33
| | | | Update #3533.
* dl06/dl06-o1.c: Remove set, not used warningJoel Sherrill2018-08-151-1/+4
|
* libtests/POSIX: Fix warnings and style.Joel Sherrill2018-08-1046-148/+140
|
* tests: Remove CONFIGURE_MAXIMUM_DRIVERSSebastian Huber2018-08-079-23/+0
| | | | This configuration is superfluous in these tests.
* libblock: Add RTEMS_DEPRECATEDSebastian Huber2018-08-072-4/+5
| | | | Close #3358.
* tests: Avoid deprecated rtems_disk_io_initialize()Sebastian Huber2018-08-073-16/+0
| | | | Update #3358.
* libtests/block15: Use rtems_blkdev_create()Sebastian Huber2018-08-071-18/+24
| | | | Update #3358.
* libtests/block14: Use rtems_blkdev_create()Sebastian Huber2018-08-071-19/+25
| | | | Update #3358.
* libtests/block13: Use rtems_blkdev_create()Sebastian Huber2018-08-071-19/+25
| | | | Update #3358.
* libtests/block12: Use rtems_blkdev_create()Sebastian Huber2018-08-071-18/+25
| | | | Update #3358.
* libtests/block10: Use rtems_blkdev_create()Sebastian Huber2018-08-071-41/+28
| | | | Update #3358.
* libtests/block09: Use rtems_blkdev_create()Sebastian Huber2018-08-071-40/+25
| | | | Update #3358.
* libtests/block08: Use rtems_blkdev_create()Sebastian Huber2018-08-074-77/+27
| | | | Update #3358.
* libtests/block06: Use rtems_blkdev_create()Sebastian Huber2018-08-072-555/+499
| | | | Update #3358.
* libtests/block05: Avoid uninitialized variableSebastian Huber2018-08-071-1/+1
| | | | Update #3358.
* flashdisk: Use rtems_blkdev_create()Sebastian Huber2018-08-071-8/+1
| | | | Update #3358.
* ramdisk: Use rtems_blkdev_create()Sebastian Huber2018-08-075-80/+140
| | | | Update #3358.
* libtests: Use CONFIGURE_INIT_TASK_TABLE_SIZESebastian Huber2018-07-307-28/+17
| | | | | | | | Using CONFIGURE_MINIMUM_TASK_STACK_SIZE increases also the interrupt stack size. This is an issue on some BSPs. Use CONFIGURE_INIT_TASK_TABLE_SIZE instead. Update #3433.