summaryrefslogtreecommitdiffstats
path: root/cpukit/libtrace (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-02-16base64: Move base64 encoding supportSebastian Huber2-7/+9
2023-07-28score: Move formatted I/O functionsSebastian Huber2-2/+2
These functions do not belong to an super core service.
2023-05-20Update company nameSebastian Huber13-13/+13
The embedded brains GmbH & Co. KG is the legal successor of embedded brains GmbH.
2021-02-27getgrent.c, record-client.c: Add missing includes for assert.hVijay Kumar Banerjee1-0/+1
2021-02-26record-client.c: Fix Unchecked return value (CID #1456677)Ryan Long1-1/+3
CID 1456677: Unchecked return value in resolve_hold_back(). Closes #4260
2020-11-09libtrace: Move _Record_Stream_header_initialize()Sebastian Huber2-106/+140
This fixes the build if no function sections are used.
2020-04-16Canonicalize config.h includeSebastian Huber12-12/+12
Use the following variant which was already used by most source files: #ifdef HAVE_CONFIG_H #include "config.h" #endif
2020-03-18record: Add rtems_record_dump()Sebastian Huber5-0/+480
Add rtems_record_dump_base64() and rtems_record_dump_base64_zlib(). Add CONFIGURE_RECORD_FATAL_DUMP_BASE64 and CONFIGURE_RECORD_FATAL_DUMP_BASE64_ZLIB configuration options. Update #3904.
2020-02-04Use RTEMS_SYSINIT_ORDER_LAST_BUT_5Sebastian Huber1-1/+1
Use RTEMS_SYSINIT_ORDER_LAST_BUT_5 instead of RTEMS_SYSINIT_ORDER_LAST to allow applications and support functions to place system initialization handlers behind the standard handlers. Update #3838.
2019-10-02Revert "record: Add wrappers for malloc() functions"Sebastian Huber1-145/+0
It was accidentally committed. This reverts commit a314544a278f1533ae001f742d7fe24fcee253e6.
2019-10-01record: Add wrappers for malloc() functionsSebastian Huber1-0/+145
Introduce new library librtemsrecordwrap.a which contains wrappers for operating system functions which produce entry/exit events. The wrappers can be selected during link time via the GNU ld --wrap option. Update #3665.
2019-09-02record: Add system eventsSebastian Huber1-3/+3
Update #3665.
2019-08-30record: Add system eventsSebastian Huber2-30/+570
Add system events for memory allocation/free. Update #3665.
2019-08-30record: Add system eventsSebastian Huber4-42/+129
Add system events to identify the target system. Add system events to transfer blocks of memory and register sets. Update #3665.
2019-08-30record: Simplify configurationSebastian Huber1-4/+8
Update #3665.
2019-08-30record: Introduce _Record_Drain()Sebastian Huber1-36/+44
This allows its use in crash dump procedures. Update #3665.
2019-08-29record: Add more system eventsSebastian Huber2-64/+768
Reduce the system dependencies to allow tracing of very low level functions, for example the interrupt disable/enable. Introduce general purpose RTEMS_RECORD_CALLER and RTEMS_RECORD_LINE events. Update #3665.
2019-08-28record: Introduce <rtems/recordserver.h>Sebastian Huber1-0/+1
This helps to get rid of the <rtems/rtems/tasks.h> dependency in <rtems/record.h>. Update #3665.
2019-08-28record: Use BSS section instead of per-CPU dataSebastian Huber2-8/+8
The .rtemsrwset section is used for the per-CPU data. This section has loadable content. Place the ring buffers in the BSS section to avoid large executable image sizes. Not using the per-CPU data makes it possible to initialize the record support earlier. Update #3665.
2019-08-27record: Add data size to clientSebastian Huber1-0/+8
This is necessary to get the thread names properly on 32-bit and 64-bit targets. Update #3665.
2019-08-27record: Fix thread names on 64-bit targetsSebastian Huber2-2/+8
Also fixes the thread names on signed char targets. Update #3665.
2019-08-26record: Improve overflow handlingSebastian Huber1-25/+58
Signal the accumulated item overflow count with the time of the first new item.
2019-08-26record: Fix off by one errorSebastian Huber1-1/+1
2019-08-17record: Pass bintime to client handlersSebastian Huber1-8/+1
This is a minor optimization.
2019-08-17record: Simplify client visit()Sebastian Huber1-14/+24
2019-08-17record: Remove superfluous castSebastian Huber1-1/+1
2019-08-17record: Increase client robustnessSebastian Huber1-10/+33
Do nothing after errors.
2019-08-17record: Improve overflow handlingSebastian Huber1-9/+198
In case of a ring buffer overflow, the rtems_record_drain() will push the complete ring buffer content to the client. While the items are processed by the client, new items may overwrite some items being processed. The overwritten items can be detected in the following iteration once the next tail/head information is pushed to the client.
2019-08-16record: Detect also large overflowsSebastian Huber1-18/+33
2019-08-16record: Simplify rtems_record_client_contextSebastian Huber1-17/+27
2019-08-06record: Change thread name encodingSebastian Huber2-2/+2
This scheme is easier to decode.
2019-07-30record: Add support for thread namesSebastian Huber3-6/+102
2019-04-09rtems: Add rtems_scheduler_get_processor_maximum()Sebastian Huber1-1/+1
Add rtems_scheduler_get_processor_maximum() as a replacement for rtems_get_processor_count(). The rtems_get_processor_count() is a bit orphaned. Adopt it by the Scheduler Manager. The count is also misleading, since the processor set may have gaps and the actual count of online processors may be less than the value returned by rtems_get_processor_count(). Update #3732.
2019-03-12record: Add more system eventsSebastian Huber1-57/+57
Update #3665.
2019-03-12record: Add system call entry/exit eventsSebastian Huber1-82/+82
This corresponds to the Linux syscall_entry_* and syscall_exit_* events. Update #3665.
2019-03-12record: Rename internal per-CPU eventsSebastian Huber4-11/+11
Update #3665.
2019-01-30record: Add enum value for each eventSebastian Huber2-10/+893
Update #3665.
2019-01-29Add low level event recording supportSebastian Huber6-0/+1320
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.