Memory System Binary Logging with Static Variable Identifiers
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The presence of large numbers of log files in memory systems affects program running efficiency and storage resources, necessitating a solution to manage and store these files efficiently.
Innovation Solution
A memory system that utilizes local static variables as identifiers for format strings, eliminating the need for extra tools to generate and maintain identifier associations, and records timestamps and compilation addresses to minimize log data volume.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If large numbers of log files are stored in memory systems, then event tracing capability is improved, but program running efficiency deteriorates and storage resources are consumed
Solution Approach 1:
The patent extracts only the essential information from log files (timestamps and compilation addresses of format strings) while excluding unnecessary data. This extraction approach maintains the core event tracing capability while significantly reducing the volume of stored data, thereby improving program running efficiency and reducing storage resource consumption.
Solution Approach 2:
The patent creates a simplified copy of log data that retains only the critical identifiers (timestamps and compilation addresses) rather than copying complete log files. This selective copying maintains the ability to trace events while minimizing the storage footprint and improving system performance.
2Loss of information
If complete log files are stored, then event information is preserved, but storage resource consumption increases
Solution Approach 1:
The patent extracts only the essential identifiers from complete log files - specifically timestamps and compilation addresses of format strings - while discarding redundant information. This extraction preserves the core event information needed for tracing while dramatically reducing storage resource consumption.
Solution Approach 2:
The patent changes the representation parameters of log data from complete file formats to condensed identifier formats. By transforming log entries into a more compact parameter set (timestamp + compilation address), the system maintains information integrity while reducing storage requirements.
3Reliability
If traditional log storage methods are used, then log data is stored, but extra tools are needed to generate and maintain identifier associations
Solution Approach 1:
The patent implements self-service by using the compiler itself to generate and store the association between format strings and their compilation addresses. The compiler automatically creates this mapping during the compilation process, eliminating the need for external tools to generate and maintain these associations. This integration of the function into the compilation process reduces device complexity while maintaining reliable log storage.
Data Source
AI summary
An example memory system includes: a memory configured to store a first instruction set for performing an operation for tracing an event during firmware running; and one or more processors coupled with the memory and configured to perform the first instruction set, wherein the first instruction set includes instructions that are able to cause the memory system to perform at least the following operations: in response to triggering of a binary log including a plurality of event items, determining a timestamp and a format string describing an event, which are included in each of the plurality of event items, wherein the event items belong to events that occur during running of firmware in the memory system; and recording, as the binary log, at least a compilation address of a local static variable corresponding to the format string describing an event and the timestamp of each event item.


