CN112783683A - Data processing method, device, equipment and storage medium - Google Patents

Data processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN112783683A
CN112783683A CN202110163633.4A CN202110163633A CN112783683A CN 112783683 A CN112783683 A CN 112783683A CN 202110163633 A CN202110163633 A CN 202110163633A CN 112783683 A CN112783683 A CN 112783683A
Authority
CN
China
Prior art keywords
error
data
node
memory space
nodes
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110163633.4A
Other languages
Chinese (zh)
Inventor
曹廷鸿
袁浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Coretek Systems Technology Co ltd
Original Assignee
Beijing Coretek Systems Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Coretek Systems Technology Co ltd filed Critical Beijing Coretek Systems Technology Co ltd
Priority to CN202110163633.4A priority Critical patent/CN112783683A/en
Publication of CN112783683A publication Critical patent/CN112783683A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0766Error or fault reporting or storing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0766Error or fault reporting or storing
    • G06F11/0778Dumping, i.e. gathering error/state information after a fault for later diagnosis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying

Abstract

The embodiment of the invention discloses a data processing method, a data processing device, data processing equipment and a storage medium. The method comprises the following steps: when a system error occurs, acquiring error data of the system error; and generating an error node according to the error data, and storing the error node into a preset memory space. The embodiment of the invention realizes the quick and accurate query of the system error data and improves the efficiency of troubleshooting of the system error.

Description

Data processing method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of embedded systems, in particular to a data processing method, a data processing device, data processing equipment and a storage medium.
Background
After an error occurs, the embedded system usually prints error information data on a user screen to notify the user of the occurrence of the abnormality. However, when the application in the system has a large amount of output, it is difficult for the user to find out the error data from all the output data, and the large amount of data output immediately is likely to overwrite the output error data, which is very unfavorable for error checking.
Disclosure of Invention
Embodiments of the present invention provide a data processing method, apparatus, device, and storage medium, so as to implement fast and accurate query of system error data and improve system error troubleshooting efficiency.
In a first aspect, an embodiment of the present invention provides a data processing method, including:
when a system error occurs, acquiring error data of the system error;
and generating an error node according to the error data, and storing the error node into a preset memory space.
In a second aspect, an embodiment of the present invention further provides a data processing apparatus, including:
the data acquisition module is used for acquiring error data of the system error when the system error occurs;
and the data storage module is used for generating an error node according to the error data and storing the error node into a preset memory space.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the data processing method provided by any embodiment of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a computer storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the data processing method provided in any embodiment of the present invention.
According to the embodiment of the invention, the error node is generated according to the acquired error data, and the error node is stored in the preset memory space, so that the error generated by the system is recorded, a user is allowed to check the error data whenever the user wants to acquire the error data, the quick and accurate query of the system error data is realized, and the troubleshooting efficiency of the system error is improved.
Drawings
Fig. 1 is a flowchart of a data processing method according to an embodiment of the present invention.
Fig. 2 is a flowchart of a data processing method according to a second embodiment of the present invention.
Fig. 3 is a schematic flow chart of a data saving method according to a second embodiment of the present invention.
Fig. 4 is a schematic flowchart of a data query method according to a second embodiment of the present invention.
Fig. 5 is a schematic structural diagram of a data processing apparatus according to a third embodiment of the present invention.
Fig. 6 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention.
It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example one
Fig. 1 is a flowchart of a data processing method according to an embodiment of the present invention, where the embodiment is applicable to a case where error data is recorded when a system error occurs, and the method may be executed by a data processing apparatus according to an embodiment of the present invention, where the apparatus may be implemented by software and/or hardware, and may be generally integrated in an electronic device. Accordingly, as shown in fig. 1, the method comprises the following operations:
s110, when a system error occurs, acquiring error data of the system error.
The system error may be any error occurring during the program execution process of the embedded system. The error data may be any data related to the system error, and may include, for example, data that may describe the system error, such as the type, severity, and occurrence location of the system error, and may also include data that describes a system state when the system error occurs, where the specific content of the error data is not limited in this embodiment.
Correspondingly, when a system error occurs, the system is running the program, the running result can output relevant error information, and error data of the system error can be timely acquired from the output error information. The error data may include data required by any user in the process of performing error checking and correction, and the specific content of the error data may be predetermined according to the need. Alternatively, different system errors may correspond to different error data.
Optionally, when a system error occurs, before error data of the system error is acquired, error information output by the system running Program may be printed on a user screen, for example, the output error information may include a PC (Program Counter) value of a next instruction of an instruction for generating the system error, and the output PC value may be printed to notify the user of an abnormality.
And S120, generating an error node according to the error data, and storing the error node into a preset memory space.
Wherein the error node may be a collection including all error data. The predetermined memory space may be a portion of a fixed-size memory space pre-allocated in the memory space of the system for storing the error node.
Accordingly, a preset memory space can be allocated in the memory space of the system before the system is started. Optionally, a block of memory may be allocated at the top of the physical address of the memory space of the system as a preset memory space, so that the preset memory space does not affect the use of the memory space in the system operation process. After obtaining the error data of the current system error each time, an error node may be generated according to the error data, where each error node corresponds to one system error. The error node can be stored in a preset memory space and can occupy a part of a complete memory space in the preset memory space, so that when a user queries error data of system errors, all the error data of each system error can be rapidly and completely acquired. The error node may also have a preset format, and for example, may include a node data header, which is used to store data such as the size of a memory occupied by the error node, the type of the corresponding system error, and the like.
The embodiment of the invention provides a data processing method, which is characterized in that an error node is generated according to acquired error data, the error node is stored in a preset memory space to record the error generated by a system, a user is allowed to check the error data whenever the user wants to acquire the error data, the quick and accurate query of the system error data is realized, and the efficiency of troubleshooting the system error is improved.
Example two
Fig. 2 is a flowchart of a data processing method according to a second embodiment of the present invention. The embodiment of the present invention is embodied on the basis of the above-described embodiment, and in the embodiment of the present invention, a specific optional implementation manner for updating error header data according to a storage result of an error node is provided.
As shown in fig. 2, the method of the embodiment of the present invention specifically includes:
s210, when a system error occurs, acquiring error data of the system error.
In an optional embodiment of the present invention, the acquiring error data of the system error may include: acquiring error identification data, register data and stack level data corresponding to the system error; and determining the error identification data, the register data and the stack layer time data as the error data.
The error identification data may be any collection of data that may describe a system error. The register data may be register context data when a system error occurs. The stack level data may be a stack level of a system error.
Correspondingly, when a system error occurs, the system running program outputs error information, and data which can describe the system error can be acquired from the output error information as error identification data. The error identification data may be stored in the memory occupied by the error data. Optionally, the error identification data may be stored in a location that is preferentially accessed as a node data header of the error node, and when the user needs to query the error data of the system error, the system may preferentially obtain the error identification data of the system error, so as to determine a basic situation of the system error according to the error identification data.
Further, deep level acquisition of data related to the system error can be performed, including acquisition of register data and stack level data of the system error. Specifically, the register data may describe the environment and the state of the program itself in which the system runs when the system error occurs. The stack level data may describe various information in the system error, in the function call process, and may include parameters, return addresses, and the like, for example.
In an optional embodiment of the invention, the error identification data comprises: error type data, error degree data and error position data of the error data.
The error type data may be data describing a type of the system error, and may include a system layer error type and an application layer error type, for example. The error level data may be data describing the severity of the system error, and may include, for example, a degree of lethality and a degree of non-lethality. The error location data may be data describing a location where the system error occurred.
Accordingly, when a system error occurs, the error identification data can be obtained from the error information output by the system running program. Specifically, the error type data may be a system-level error type or an application-level error type, where the system-level error may be an error caused by a failure of the system program itself, and the application-level error may be an error caused by a failure of an application program operated by the system. The error level data may be a fatal level or a non-fatal level, wherein a fatal error may cause the system to fail to perform a recovery action, requiring the program to be terminated, and a non-fatal error may allow the system to perform the recovery action after a delay. The error location data may be the specific location where the system error occurred, for example, may be a dynamic library or a loadable plug-in the system, etc.
According to the embodiment, the error type data, the error degree data, the error position data, the register data and the stack level data are acquired, so that the comprehensive and deep acquisition of the related data of the system errors is realized, meanwhile, the general record of the system errors can be realized according to the error identification data, the labeling management of the related data of the errors is realized, and the classification of the system errors is facilitated.
S220, generating an error node according to the error data, and storing the error node into a preset memory space.
In an optional embodiment of the invention, generating an error node according to the error data comprises: determining the error identification data as node header data; and generating an error node according to the node head data, the register data and the stack layer data.
Wherein the node header data may be data stored in a preferentially accessed position in the error node.
Correspondingly, in the process of generating the error node, the error identification data can be determined as the node head data of the error node and added to the head position of the error node, so that when a user needs to query the error data of the system error, the system can preferentially acquire the node head data of the error node, and the basic condition of the system error is determined according to the error identification data in the node head data.
And S230, acquiring a storage result of the error node.
Wherein the storage result can be storage success or storage failure.
Correspondingly, if all error data are successfully acquired, error nodes are generated, and the error nodes are stored in the preset memory space, the storage result is determined to be successful. And if any data in the error data fails to be acquired, or the error node is failed to be generated according to the error data, or the error node is not stored in a preset memory space, determining that the storage result is storage failure.
S240, judging whether the storage result is successful, if so, executing S250-S260, otherwise, executing S270. Wherein:
and S250, acquiring memory data occupied by the error node in the preset memory space and the number of the nodes.
The occupied memory data may be the current time, and the total memory size occupied by all the error nodes in the preset memory space. The number of nodes may be the total number of all error nodes in the preset memory space at the current time.
Correspondingly, after the error node is successfully stored in the preset memory space each time, the total memory and the total number of the error nodes in the preset memory space can be changed, and the memory data occupied by the error node in the preset memory space and the number of the nodes can be obtained under the condition that the storage result of the error node is determined to be successful storage, so that the total memory and the total number of the changed error nodes are obtained.
And S260, updating error head data in the preset memory space according to the occupied memory data and the number of the nodes.
The error header data may be any set of data that can describe the storage condition of the error node in the preset memory space. Specifically, the error header data may include, but is not limited to, memory data occupied by an error node in a preset memory space and the number of nodes.
Correspondingly, the error header data may be data that is stored in a preset memory space and occupies a preset memory size, and optionally, may be stored in a position that can be preferentially accessed in the preset memory space, so that when a user queries the preset memory space, the system may preferentially obtain the error header data, thereby determining, according to the error header data, a storage condition of an error node in the preset memory space at the current time. Specifically, after acquiring memory data occupied by the error node and the number of nodes in the preset memory space, the newly acquired memory data occupied by the error node and the number of nodes may be stored in the preset memory space as error header data, and the original data may be replaced, so as to complete updating of the error header data in the preset memory space.
In the embodiment, the error header data is set and updated, so that the statistical data of the error nodes updated in real time is stored in the error header data, and a user can know the storage condition of the error nodes in the preset memory space at the current time by inquiring the error header data.
And S270, storing the storage failure data of the error node into a preset memory space.
The storage failure data may be any data related to the storage failure condition of the error node, and may be used to record the storage failure condition of the error node.
Correspondingly, in the processes of acquiring error data, generating error nodes according to the error data and storing the error nodes to a preset memory space, failure may occur, so that the storage result of the error nodes is storage failure. Therefore, data related to the failure condition, for example, error data which cannot be successfully acquired, can be acquired and stored in the preset memory space as storage failure data, so that a user can acquire the storage failure data and know the specific failure condition according to the storage failure data, thereby performing troubleshooting.
Fig. 3 is a schematic flow chart of a data saving method according to an embodiment of the present invention. As shown in fig. 3, when an error occurs, basic information of the error output by the system may be printed to inform the user of the error. Furthermore, the related data of the error can be acquired deeply. After all data are successfully acquired, error data are obtained, and then error nodes can be generated and stored, so that error information can be stored. When any erroneous data acquisition fails, failure information may be saved.
In an optional embodiment of the present invention, may further include: acquiring a first error data query command; and determining a target error node in all the error nodes according to the first error data query command, and outputting the target error node.
The first error data query command may be a query instruction input by a user, and is used to request to query an error node stored in a preset memory space. The target error node may be all or a portion of the error node specified in the first error data query command to be queried.
Correspondingly, after the user knows that the system error occurs, the user can actively acquire the error node stored in the preset memory space through the first error data query command. The first error data query command may include a target error node that a user needs to query, and may be all error nodes or any part of error nodes in a preset memory space at the current time. Optionally, the first error data query command may include a classification selection instruction of the target error node, which is used to filter the error nodes and determine a part of the error nodes as the target error data.
In an optional embodiment of the present invention, determining a target error node among all the error nodes according to the first error data query command, and outputting the target error node may include: determining each error node as a node to be filtered in sequence; acquiring node head data in the node to be filtered; and under the condition that the node head data in the node to be filtered is determined to meet the error data query command, determining the node to be filtered as the target error node, and outputting the target error node.
Wherein, the node to be filtered can be an error node which is not filtered according to the error data query command.
Correspondingly, each error node may be determined as a node to be filtered in sequence, and the node to be filtered corresponds to a system error, and then the node header data of the node to be filtered may include error type data, error degree data, and error position data of the system error. Further, the error data acquisition command may include a classification selection instruction of the target error data, and the to-be-filtered nodes may be filtered according to the error type data, the error degree data, or the error position data until all the error nodes are filtered. Alternatively, when the error data acquisition command does not include any sort selection instruction of the target error data, all error nodes are determined as target error nodes by default.
For example, the error data obtaining command may include an instruction to screen the system error of the system-level error type and the system error of the fatal degree as the target error data, and then, according to the error type data and the error degree data of the node to be filtered, of which the error type data is the system-level error type and the error degree data is the fatal degree, is determined as the target error node.
According to the embodiment, the error data query command of the user is obtained, the user can actively query the system error related data, further, the error data is screened and obtained according to the command, the system error data is rapidly and accurately queried, and the system error troubleshooting efficiency is further improved.
In an optional embodiment of the present invention, may further include: acquiring a second error data query command; and outputting the error head data according to the second error query command.
The second error data query command may be a query instruction input by a user, and is used to request to query error header data stored in a preset memory space.
Correspondingly, if the user only needs to check the storage condition of the error node in the preset memory space at the current time, the error head data can be inquired through the second error data inquiry command. After the second error data query command of the user is obtained, the error header data at the current time can be output, so that the memory data occupied by the error nodes in the preset memory space and the number of the nodes are provided for the user.
The embodiment enables a user to actively inquire the preset storage space through a command, and the storage condition of the error node is updated in real time, so that the user can conveniently know the error condition of the system.
Fig. 4 is a schematic flowchart of a data query method according to an embodiment of the present invention. As shown in fig. 4, when the user needs to check the error record, if the user needs to check the summary information of the error, the error information may be directly printed, and at this time, the error information includes information in the error header data. If the user does not need to check the wrong summary information, all information nodes can be judged in a traversal mode, filtering nodes needing to be checked by the user are screened out, and printing is carried out.
The embodiment of the invention provides a data processing method, which comprises the steps of generating error nodes according to acquired error data, storing the error nodes in a preset memory space to record errors generated by a system, allowing a user to check the error nodes whenever the user wants to acquire the error data, realizing quick and accurate inquiry of the system error data and improving the efficiency of troubleshooting the system errors; furthermore, statistics and classification management of error related data are realized through error header data and node header data, so that a user is allowed to actively inquire the error data, and partial error data can be accurately inquired through classification screening.
EXAMPLE III
Fig. 5 is a schematic structural diagram of a data processing apparatus according to a third embodiment of the present invention, as shown in fig. 5, the apparatus includes: a data acquisition module 310 and a data storage module 320.
The data obtaining module 310 is configured to obtain error data of a system error when the system error occurs.
The data storage module 320 is configured to generate an error node according to the error data, and store the error node in a preset memory space.
In an optional implementation manner of the embodiment of the present invention, the data obtaining module 310 may be specifically configured to: acquiring error identification data, register data and stack level data corresponding to the system error; and determining the error identification data, the register data and the stack layer time data as the error data.
In an optional implementation manner of the embodiment of the present invention, the data storage module 320 may be specifically configured to: determining the error identification data as node header data; and generating an error node according to the node head data, the register data and the stack layer data.
In an optional implementation manner of the embodiment of the present invention, the apparatus may further include: the error head data updating module is used for acquiring a storage result of the error node; acquiring memory data occupied by error nodes and the number of the nodes in the preset memory space under the condition that the storage result is determined to be successful; and updating error head data in the preset memory space according to the occupied memory data and the number of the nodes.
In an optional implementation manner of the embodiment of the present invention, the apparatus may further include: the first command acquisition module is used for acquiring a first error data query command; and the error node output module is used for determining a target error node in all the error nodes according to the first error data query command and outputting the target error node.
In an optional implementation manner of the embodiment of the present invention, the apparatus may further include: the second command acquisition module is used for acquiring a second error data query command; and the error head data output module is used for outputting the error head data according to the second error data query command.
In an optional implementation manner of the embodiment of the present invention, the error node output module may be specifically configured to: determining each error node as a node to be filtered in sequence; acquiring node head data in the node to be filtered; and under the condition that the node head data in the node to be filtered is determined to meet the error data query command, determining the node to be filtered as the target error node, and outputting the target error node.
The device can execute the data processing method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the data processing method.
The embodiment of the invention provides a data processing device, which generates error nodes according to acquired error data, stores the error nodes in a preset memory space to record errors generated by a system, allows a user to check the error nodes whenever the user wants to acquire the error data, realizes quick and accurate inquiry of the system error data, and improves the efficiency of troubleshooting the system errors.
Example four
Fig. 6 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention. FIG. 6 illustrates a block diagram of an exemplary electronic device 12 suitable for use in implementing embodiments of the present invention. The electronic device 12 shown in fig. 6 is only an example and should not bring any limitation to the function and the scope of use of the embodiment of the present invention. The electronic device may be a terminal device or a server device, and the embodiment of the present invention does not limit the specific type of the electronic device.
As shown in FIG. 6, electronic device 12 is embodied in the form of a general purpose computing device. The components of electronic device 12 may include, but are not limited to: one or more processors 16, a memory 28, and a bus 18 that connects the various system components (including the memory 28 and the processors 16).
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by electronic device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. The electronic device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, and commonly referred to as a "hard drive"). Although not shown in FIG. 6, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with electronic device 12, and/or with any devices (e.g., network card, modem, etc.) that enable electronic device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the electronic device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 via the bus 18. It should be appreciated that although not shown in FIG. 6, other hardware and/or software modules may be used in conjunction with electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processor 16 executes various functional applications and data processing by executing programs stored in the memory 28, thereby implementing the data processing method provided by the embodiment of the present invention: when a system error occurs, acquiring error data of the system error; and generating an error node according to the error data, and storing the error node into a preset memory space.
EXAMPLE five
Fifth embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where when the computer program is executed by a processor, the computer program implements a data processing method provided in the fifth embodiment of the present invention: when a system error occurs, acquiring error data of the system error; and generating an error node according to the error data, and storing the error node into a preset memory space.
Any combination of one or more computer-readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or computer device. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A data processing method, comprising:
when a system error occurs, acquiring error data of the system error;
and generating an error node according to the error data, and storing the error node into a preset memory space.
2. The method of claim 1, wherein the obtaining error data for the system error comprises:
acquiring error identification data, register data and stack level data corresponding to the system error;
and determining the error identification data, the register data and the stack layer time data as the error data.
3. The method of claim 2, wherein generating an error node from the error data comprises:
determining the error identification data as node header data;
and generating an error node according to the node head data, the register data and the stack layer data.
4. The method of claim 1, further comprising, after storing the error node in a predetermined memory space:
obtaining a storage result of the error node;
under the condition that the storage result is determined to be successful, acquiring memory data occupied by error nodes in the preset memory space and the number of the nodes;
and updating error head data in the preset memory space according to the occupied memory data and the number of the nodes.
5. The method of claim 1, further comprising:
acquiring a first error data query command;
and determining a target error node in all the error nodes according to the first error data query command, and outputting the target error node.
6. The method of claim 4, further comprising:
acquiring a second error data query command;
and outputting the error head data according to the second error data query command.
7. The method of claim 5, wherein the determining a target error node among all the error nodes according to the first error data query command and outputting the target error node comprises:
determining each error node as a node to be filtered in sequence;
acquiring node head data in the node to be filtered;
and under the condition that the node head data in the node to be filtered is determined to meet the error data query command, determining the node to be filtered as the target error node, and outputting the target error node.
8. A data processing apparatus, comprising:
the data acquisition module is used for acquiring error data of the system error when the system error occurs;
and the data storage module is used for generating an error node according to the error data and storing the error node into a preset memory space.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a data processing method as claimed in any one of claims 1-7.
10. A computer storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the data processing method of any one of claims 1 to 7.
CN202110163633.4A 2021-02-05 2021-02-05 Data processing method, device, equipment and storage medium Pending CN112783683A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110163633.4A CN112783683A (en) 2021-02-05 2021-02-05 Data processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110163633.4A CN112783683A (en) 2021-02-05 2021-02-05 Data processing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112783683A true CN112783683A (en) 2021-05-11

Family

ID=75761011

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110163633.4A Pending CN112783683A (en) 2021-02-05 2021-02-05 Data processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112783683A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113868007A (en) * 2021-10-09 2021-12-31 中国建设银行股份有限公司 Method for determining component fault influence range and related device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050229020A1 (en) * 2004-04-06 2005-10-13 International Business Machines (Ibm) Corporation Error handling in an embedded system
CN102043712A (en) * 2009-10-19 2011-05-04 杭州华三通信技术有限公司 Error message output method and device
US20160041887A1 (en) * 2014-08-07 2016-02-11 Pure Storage, Inc. Error Recovery in a Storage Cluster
US20180081776A1 (en) * 2016-09-21 2018-03-22 Dell Products, L.P. Automated System-Level Failure and Recovery
CN109726091A (en) * 2018-12-28 2019-05-07 乐蜜有限公司 A kind of blog management method and relevant apparatus
CN110750375A (en) * 2019-07-16 2020-02-04 许昌许继软件技术有限公司 Embedded equipment and abnormal information processing method thereof
CN111163513A (en) * 2018-10-22 2020-05-15 中国移动通信有限公司研究院 Method for measuring, reporting and calculating synchronous error between base stations and network node
CN112162696A (en) * 2020-09-11 2021-01-01 北京浪潮数据技术有限公司 Method and device for allocating head capacity of thin self-compaction volume and computer readable storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050229020A1 (en) * 2004-04-06 2005-10-13 International Business Machines (Ibm) Corporation Error handling in an embedded system
CN102043712A (en) * 2009-10-19 2011-05-04 杭州华三通信技术有限公司 Error message output method and device
US20160041887A1 (en) * 2014-08-07 2016-02-11 Pure Storage, Inc. Error Recovery in a Storage Cluster
US20180081776A1 (en) * 2016-09-21 2018-03-22 Dell Products, L.P. Automated System-Level Failure and Recovery
CN111163513A (en) * 2018-10-22 2020-05-15 中国移动通信有限公司研究院 Method for measuring, reporting and calculating synchronous error between base stations and network node
CN109726091A (en) * 2018-12-28 2019-05-07 乐蜜有限公司 A kind of blog management method and relevant apparatus
CN110750375A (en) * 2019-07-16 2020-02-04 许昌许继软件技术有限公司 Embedded equipment and abnormal information processing method thereof
CN112162696A (en) * 2020-09-11 2021-01-01 北京浪潮数据技术有限公司 Method and device for allocating head capacity of thin self-compaction volume and computer readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113868007A (en) * 2021-10-09 2021-12-31 中国建设银行股份有限公司 Method for determining component fault influence range and related device

Similar Documents

Publication Publication Date Title
CN110990411B (en) Data structure generation method and device, and calling method and device
CN111459982A (en) Data query method and device, terminal device and storage medium
CN109471851B (en) Data processing method, device, server and storage medium
CN112181854B (en) Method, device, equipment and storage medium for generating process automation script
CN110647318A (en) Method, device, equipment and medium for creating instance of stateful application
CN111694684B (en) Abnormal construction method and device of storage device, electronic device and storage medium
CN111274130A (en) Automatic testing method, device, equipment and storage medium
CN112783683A (en) Data processing method, device, equipment and storage medium
CN114490394A (en) Test range determining method, device, equipment and medium
CN115617819B (en) Data storage method, system, computer device and storage medium
US7047447B2 (en) Method and system for postmortem object type identification
CN112069158A (en) Data restoration method, device, equipment and storage medium
CN111290881A (en) Data recovery method, device, equipment and storage medium
CN112395141B (en) Data page management method and device, electronic equipment and storage medium
CN115022201A (en) Data processing function test method, device, equipment and storage medium
CN112818204A (en) Service processing method, device, equipment and storage medium
CN115374074A (en) Log processing method and device, storage medium and electronic equipment
CN113238940A (en) Interface test result comparison method, device, equipment and storage medium
CN113010208A (en) Version information generation method, version information generation device, version information generation equipment and storage medium
CN113760781A (en) Data processing method and device, electronic equipment and storage medium
CN113760696A (en) Program problem positioning method and device, electronic equipment and storage medium
CN114201240B (en) Method and device for configuring helm chart
CN111078570A (en) Parameter format detection method, device, equipment and medium based on interface framework
CN112650445B (en) Method and device for executing Trim by solid state disk
CN114900468B (en) Rule matching method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination