Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Log management method for embedded system

A technology of embedded systems and management methods, applied in the field of debugging and diagnosis of embedded systems, can solve problems such as difficult fast and accurate diagnosis and positioning, low efficiency and disorder, so as to reduce waste, reduce reading and writing, improve The effect of reading and writing efficiency

Active Publication Date: 2014-07-16
FENGHUO COMM SCI & TECH CO LTD
View PDF7 Cites 22 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This method needs to read and write the storage medium once for the reading and writing of log record information, which is inefficient; and all the log record information read is huge and disorderly, and it is impossible to distinguish whether the log belongs to the current system runtime. The log is still the log record information of the system history, it is difficult to realize the rapid and accurate diagnosis and positioning of the system

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Log management method for embedded system
  • Log management method for embedded system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] The present invention will be described in further detail below in conjunction with the accompanying drawings and embodiments.

[0021] The log management method of the embedded system of the present invention comprises steps:

[0022] S1. Obtain a log memory block from the system memory, that is, apply for a whole continuous memory block from the system memory to store the system log information. Record the starting address of the log memory block and the total size of the occupied memory space, and initialize the used log memory size to 0. Such as figure 1 Shown is a schematic diagram of the log memory block of the embedded system of the present invention.

[0023] S2. Dividing the log memory block into equal-sized and continuous log record areas, each log record area is used to store the same type of log records, and each log record area also includes a total control header describing the log record area . Each log recording area is further divided into different...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a log management method for an embedded system and relates to the technical field of debugging diagnosis of the embedded system. The log management method includes the steps of S1, acquiring a log memory block from a system memory and recording an initial address of the log memory block and the total size of occupied memory space; S2, dividing the log memory block into equal and continuous logging areas, wherein each logging area is divided into different partitions and comprises a total control head, and each partition further comprises a partition control head; S3, allocating the logging areas for all types of logs according to the above steps; S4, acquiring the initial memory address used for logging information in the current partition of the logging areas according to the initial address of the logging areas and logging portion of the current log and writing the log information to be recorded into the area where the initial memory address is located. By the log management method, reading and writing on storage medium are reduced, efficient management of the logging information is improved, and the system can be diagnosed and positioned rapidly and accurately.

Description

technical field [0001] The invention relates to the technical field of debugging and diagnosis of an embedded system, in particular to a log management method of an embedded system. Background technique [0002] Logs provide an important basis for embedded system diagnosis, and detailed log records provide important clues for monitoring, tracking, locating or managing system operations, especially for tracking and locating embedded devices where bugs are not easy to reproduce. [0003] At present, the general log management of embedded systems is to save the log record information sent by all the history and current tasks of the system by applying for memory, copy the log record information, and save it in a log file located in the storage medium. When the debugger needs to view the log record information, obtain all the log record information in the log file. This method needs to read and write the storage medium once for the reading and writing of log record information, ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F11/34
Inventor 刘应江徐鑫
Owner FENGHUO COMM SCI & TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products