Supercharge Your Innovation With Domain-Expert AI Agents!

Log storage method and system of embedded system

An embedded system and system memory technology, applied in the field of data processing, can solve problems such as untimely log storage, and achieve the effect of quick positioning and solution

Pending Publication Date: 2018-10-16
SHANGHAI SAIZHI INFORMATION TECH CO LTD
View PDF6 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the present invention is to solve the problem that the system log is not saved in time when the system is quickly reset by providing a log storage method and system for an embedded 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 storage method and system of embedded system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] The present invention will be further described below in conjunction with accompanying drawing.

[0019] Such as figure 1 Shown is a flow chart of a log storage method for an embedded system according to an embodiment of the present invention. First, power on the system and the system initializes. When the system is initialized, a memory area will be allocated in the system memory as reserved memory.

[0020] The reserved memory is specially used to record the stack information of the faulty task when the task crashes. Specifically, during normal operation, the operating system will not manage this reserved memory, nor will it be allocated to other modules for use. After the system is warm reset, the operating system will not clear this reserved memory, and the data before the reset will be retained.

[0021] The reserved memory is initialized, the system runs normally, and services are provided. When a task or thread executes an abnormal instruction or accesses an...

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 provides a log storage method and system of an embedded system. The log storage method comprises the following steps that step 1, a system is initialized, a memory region is separated from the memory of the system to serve as reserved memory; step 2, when it is detected that the system is interrupted abnormally, a log is recorded into the reserved memory; step 3, the system is rebooted, and the log in the reserved memory is dumped into a log file. The log storage method of the embedded system has the advantages that the log is firstly written into the reserved memory, and then dumped into the log file, so that when a serious problem of the system occurs, the log information is recorded quickly, and the problem of being not capable of storing the log file after the abnormal running of the system is solved.

Description

technical field [0001] The invention relates to the technical field of data processing, in particular to a log storage method and system for an embedded system. Background technique [0002] At present, in the embedded system, there are mainly two storage methods for log storage: 1) stored in RAM (random access memory, random access memory) connected to the CPU, and 2) stored under the non-volatile file system. For the first case, the log file is directly stored in RAM, and the log is easy to lose after the system is powered off or restarted, which is not suitable for some embedded systems that need to provide services for a long time, and the second method, when When an abnormal instruction or access exception occurs, it will generally cause the task to crash and then be interrupted abnormally. In order not to affect the normal operation of the system, the usual solution is to reset the system as soon as possible. However, the fast reset request will be too late to save...

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 Applications(China)
IPC IPC(8): G06F17/30G06F11/14
CPCG06F11/1441
Inventor 王辉林
Owner SHANGHAI SAIZHI INFORMATION TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More