An embedded system log recording method and log recording system

An embedded system and log technology, applied in special data processing applications, instruments, electrical digital data processing, etc., can solve the problems of reducing system business execution efficiency, limited internal RAM, and character string space, etc., to improve business execution efficiency. , The effect of reducing the amount of interface data and saving costs

Active Publication Date: 2017-11-21
HUNAN GOKE MICROELECTRONICS
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The existing technology is to output the complete log information through the interface, so taking the above log information as an example, the fixed string information of "Invalid Power State: 0x" should be stored in the ram of the embedded system, and at the same time Store the output variable value FF, the storage of the variable only needs 1 byte, and the corresponding string information will occupy 22 bytes, the fixed string takes up a lot of space, and in the embedded system The internal storage space is precious and limited, especially the size of the internal ram in the ASIC chip is closely related to the cost of the chip, so the internal RAM in the ASIC chip is generally very limited. Generally, the space occupied by these string information occupies more than the program About 20% of the total space, it is very unreasonable from the perspective of cost to use very limited ram to store these string information that is fixed and takes up a lot of space; It will also be transmitted, which will occupy considerable peripheral interface resources and CPU computing resources. When the peripheral interface is slow, such as a serial port, a large amount of log information may affect the normal business of the embedded system and reduce the business of the entire system. Execution efficiency, because the function of the log system affects the normal business of the entire system, which is also unacceptable

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
  • An embedded system log recording method and log recording system
  • An embedded system log recording method and log recording system
  • An embedded system log recording method and log recording system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] The present invention is realized in following three stages:

[0023] 1) Embedded software compilation target file generation settings

[0024] When generating the target bin file of embedded software, the general mode is to put the instruction into the address segment of iram (command Ram), and put the data into the address segment of dram (data Ram). Both the address segment of iram and the address segment of dram Actually corresponds to the ram (random access memory) address in the embedded system. In this invention, it is necessary to modify the link configuration file (refer to: "Compilation Principles", authors: Alfred V.Aho, Ravi Sethi, Jeffrey D.Ullman), and put the string information in the log into a str address segment Among them, the address segment of str is a virtual address segment. There is no actual ram corresponding to it in the embedded system. Each string information in the log will have a one-to-one corresponding virtual address. At this time, the ...

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 an embedded system log recording method and a log recording system. The method comprises the steps that a link configuration file is modified, a virtual address field, namely, an str address field, is set in a bin file, character string information in a log is put into the str address field, instructions, except the character string information, in the log are put into an iram address field, and data in the log is put into a dram address field; a virtual address of the character string information and variable values in the log are output. According to the embedded system log recording method and the log recording system, the character string information is put into the str address field, an ram space of the embedded system is not occupied, and the cost is greatly reduced; only the virtual address of the character string information and the variable values in the log are output, the interface data volume is decreased, loads of a system CPU and peripheral interfaces are reduced, and the service execution efficiency of the whole system is improved.

Description

technical field [0001] The invention relates to an embedded system log recording method and a log recording system. Background technique [0002] In embedded systems, logging is essential, and the existing logging solutions such as figure 1 shown. In an embedded system, when a log needs to be output, the CPU will combine the data content in Iram and Dram into a complete log message, such as "Invalid Power State: 0xFF", and then output the log information through the log output interface (serial port, network port, etc.) ) is transmitted to the log display terminal, and the corresponding log is finally displayed on the log display terminal. [0003] The existing technology is to output the complete log information through the interface, so taking the above log information as an example, the fixed string information of "Invalid Power State: 0x" should be stored in the ram of the embedded system, and at the same time Store the output variable value FF, the storage of the var...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/30G06F11/34G06F17/30
CPCG06F11/3013G06F11/3476G06F16/1815
Inventor 游毓杨万云马翼田达海彭鹏向平周士兵
Owner HUNAN GOKE MICROELECTRONICS
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products