summaryrefslogtreecommitdiffstats
path: root/cpukit/libtrace/record/record-client.c (unfollow)
Commit message (Collapse)AuthorFilesLines
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-04-16Canonicalize config.h includeSebastian Huber1-1/+1
Use the following variant which was already used by most source files: #ifdef HAVE_CONFIG_H #include "config.h" #endif
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-26record: Improve overflow handlingSebastian Huber1-25/+58
Signal the accumulated item overflow count with the time of the first new item.
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-03-12record: Rename internal per-CPU eventsSebastian Huber1-4/+4
Update #3665.
2019-01-29Add low level event recording supportSebastian Huber1-0/+448
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.