summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/record.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Update company nameSebastian Huber2023-05-201-1/+1
| | | | | The embedded brains GmbH & Co. KG is the legal successor of embedded brains GmbH.
* config: Add CONFIGURE_RECORD_INTERRUPTS_ENABLEDSebastian Huber2022-12-021-0/+2
| | | | | | | | This enables the tracing of interrupt entry/exit events through an application configuration option. The interrupt processing can be viewed with Trace Compass using rtems-record-lttng from the RTEMS Tools. Update #4769.
* Do not use RTEMS_INLINE_ROUTINESebastian Huber2022-09-191-11/+11
| | | | | | | Directly use "static inline" which is available in C99 and later. This brings the RTEMS implementation closer to standard C. Close #3935.
* record: Add rtems_record_dump()Sebastian Huber2020-03-181-16/+16
| | | | | | | | | 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.
* record: Add system eventsSebastian Huber2019-08-301-41/+866
| | | | | | Add system events for memory allocation/free. Update #3665.
* record: Add system eventsSebastian Huber2019-08-301-1/+10
| | | | | | | Add system events to identify the target system. Add system events to transfer blocks of memory and register sets. Update #3665.
* record: Simplify configurationSebastian Huber2019-08-301-2/+2
| | | | Update #3665.
* record: Introduce _Record_Drain()Sebastian Huber2019-08-301-0/+7
| | | | | | This allows its use in crash dump procedures. Update #3665.
* record: Add more system eventsSebastian Huber2019-08-291-8/+742
| | | | | | | | | | 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.
* record: Add variants for critical sectionsSebastian Huber2019-08-281-3/+43
| | | | Update #3665.
* record: Introduce <rtems/recordserver.h>Sebastian Huber2019-08-281-34/+0
| | | | | | | This helps to get rid of the <rtems/rtems/tasks.h> dependency in <rtems/record.h>. Update #3665.
* record: Use BSS section instead of per-CPU dataSebastian Huber2019-08-281-10/+9
| | | | | | | | | | | 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.
* Add low level event recording supportSebastian Huber2019-01-291-0/+334
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.