Log processing method and device, electronic equipment, storage medium and vehicle
By employing a log processing method based on a dual-processor architecture, the system jitter and data loss issues caused by log information recording in embedded operating systems are resolved, achieving efficient and secure log information processing.
Patent Information
- Application Number
- CN202211195103.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-27
- Publication Date
- 2026-05-01
- Estimated Expiration
- 2042-09-27
AI Technical Summary
In embedded operating systems, the existing methods of recording log information can lead to race conditions in the critical sections of the cache, causing system thrashing. Furthermore, due to the limited size of the cache, log information is easily lost.
The system employs a dual-processor architecture. The first processor writes log information to the log buffer and triggers a log write message. The second processor responds to the message, reads from the buffer, and writes it to the storage device. Synchronous processing of log information is achieved through a shared memory area and an event notification mechanism.
It effectively avoids system jitter, improves log information processing efficiency, prevents log information loss, and ensures the security and real-time nature of log information.