CN113704020B - Method and device for analyzing error field data of solid state disk - Google Patents

Method and device for analyzing error field data of solid state disk Download PDF

Info

Publication number
CN113704020B
CN113704020B CN202111268018.6A CN202111268018A CN113704020B CN 113704020 B CN113704020 B CN 113704020B CN 202111268018 A CN202111268018 A CN 202111268018A CN 113704020 B CN113704020 B CN 113704020B
Authority
CN
China
Prior art keywords
target
file
error field
field data
kernel
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.)
Active
Application number
CN202111268018.6A
Other languages
Chinese (zh)
Other versions
CN113704020A (en
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202111268018.6A priority Critical patent/CN113704020B/en
Publication of CN113704020A publication Critical patent/CN113704020A/en
Application granted granted Critical
Publication of CN113704020B publication Critical patent/CN113704020B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/079Root cause analysis, i.e. error or fault diagnosis
    • 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/0706Error 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 the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/0727Error 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 the processing taking place on a specific hardware platform or in a specific software environment in a storage system, e.g. in a DASD or network based storage system

Abstract

The invention relates to a method and a device for analyzing error field data of a solid state disk, wherein the method comprises the following steps: when the solid state disk has an error, determining a target error field data file corresponding to a target kernel according to an original error field data file of each kernel acquired from the solid state disk; traversing a pre-established corresponding relation table of preset data types and preset analysis codes of all data types of each kernel to be analyzed after the solid state disk goes wrong to determine a target data type and a target analysis code corresponding to a target kernel; the target file containing the target data value corresponding to the target data type is obtained by analyzing the target error field data file according to the target analysis code, research personnel do not need to manually check the data type to be analyzed by the target kernel, the time of the research personnel for analyzing the error field data is saved, and the analysis efficiency is also improved.

Description

Method and device for analyzing error field data of solid state disk
Technical Field
The invention relates to the technical field of solid state disks, in particular to a method and a device for analyzing error field data of a solid state disk.
Background
With the increasing degree of informatization of modern society, more and more data needs to be generated and stored. Solid state disks are widely used as high-performance, large-capacity storage media. The main control of the solid state disk usually includes a plurality of cores (a plurality of complete computing engines integrated in the CPU, that is, cores), each core runs a firmware (firmware generated by compiling codes is burned into the solid state disk), and the plurality of cores are mutually matched to realize the functions of the solid state disk. In the use process of the solid state disk, each core generates runtime information in a local ram (local storage space), when an error occurs in the solid state disk, the runtime information in the local ram is flushed to a NAND Flash (a type of Flash memory, a data storage module in the solid state disk), the runtime information derived from the local ram or the NAND Flash is a binary file, which is hereinafter referred to as a bin file, that is, error field data, and each core has a bin file. Correspondingly, when the firmware is compiled, each core also has a map file, wherein the map file stores information such as the address value of each variable or structure after the firmware is compiled.
Generally, a bin file includes a plurality of structural bodies or a plurality of variables and corresponding values thereof, and if the cause of an error is located by error field data, some specific structural bodies or values of the variables need to be parsed from the bin file. The current commonly used method for analyzing error field data is to export a bin file from a local ram or a NAND Flash, research personnel need to manually check a structural body or a variable to be analyzed, then find an address value of the structural body or the variable to be analyzed in a map file, and then analyze the value of the structural body or the variable from the bin file according to the address value.
Disclosure of Invention
In order to solve the technical problems, the invention provides a method and a device for analyzing error field data of a solid state disk, which can automatically analyze the error field data of the solid state disk, save labor cost and improve analysis efficiency, and the specific scheme is as follows:
in a first aspect, a method for analyzing error field data of a solid state disk is provided, and is applied to a device for analyzing error field data of a solid state disk, and the method includes:
when the solid state disk has an error, determining a target error field data file corresponding to a target kernel according to an original error field data file of each kernel acquired from the solid state disk;
traversing a pre-constructed corresponding relation table of preset data types and preset analysis codes of all data types of each kernel to be analyzed after the solid state disk goes wrong to determine a target data type and a target analysis code corresponding to the target kernel;
and analyzing the target error field data file according to the target analysis code to obtain a target file containing the target data value corresponding to the target data type.
In a preferred embodiment, before analyzing the target error field data file according to the target analysis code to obtain a target file including the target data value corresponding to the target data type, the method further includes:
determining a target address value file corresponding to the target kernel according to the original address value file of each kernel acquired from the solid state disk;
and the original address value file comprises address values corresponding to all the data types in the corresponding kernel.
In a preferred embodiment, before analyzing the target error field data file according to the target analysis code to obtain a target file including the target data value corresponding to the target data type, the method further includes:
and traversing the target address value file to obtain a target address value corresponding to the target data type.
In a preferred embodiment, the parsing the target error field data file according to the target parsing code to obtain a target file including the target data value corresponding to the target data type includes:
determining a target data value corresponding to the target data type in a target error field data file according to the target address value;
and resolving the target data value according to the target resolving code to obtain the target file.
In a preferred embodiment, the determining, according to the original erroneous field data file of each core acquired from the solid state disk, a target erroneous field data file corresponding to a target core includes:
arranging the original error field data file according to the kernel name corresponding to the original error field data file to obtain an original error field data folder;
and determining the target error field data file from the original error field data folder according to the target kernel name of the target kernel.
In a second aspect, an apparatus for analyzing faulty field data of a solid state disk is provided, where the apparatus includes:
the determining module is used for determining a target error field data file corresponding to a target kernel according to the original error field data file of each kernel acquired from the solid state disk after the solid state disk has an error;
the traversing module is used for traversing a pre-established corresponding relation table of preset data types and preset analysis codes of all data types of each kernel which need to be analyzed after the solid state disk goes wrong to determine a target data type and a target analysis code corresponding to the target kernel;
and the analysis module is used for analyzing the target error field data file according to the target analysis code to obtain a target file containing the target data value corresponding to the target data type.
In a preferred embodiment, the determining module includes a target address value file determining unit, configured to determine, according to an original address value file of each core acquired from the solid state disk, a target address value file corresponding to the target core;
and the original address value file comprises address values corresponding to all the data types in the corresponding kernel.
In a preferred embodiment, the traversal module is further configured to traverse the target address value file to obtain a target address value corresponding to the target data type.
In a preferred embodiment, the parsing module further includes a target data value determining unit, configured to determine, according to the target address value, a target data value corresponding to the target data type in a target error field data file;
and the target data value analyzing unit is used for analyzing the target data value according to the target analyzing code to obtain the target file.
In a preferred embodiment, the determining module further includes an original error field data folder determining unit, configured to arrange the original error field data file according to a kernel name corresponding to the original error field data file to obtain an original error field data folder;
and the target error field data file determining unit is used for determining the target error field data file from the original error field data folder according to the target kernel name of the target kernel.
The invention automatically acquires the original error field data after the solid state disk has errors through the error field data analysis device of the solid state disk, automatically determines the target error field data file of the solid state disk aiming at the target kernel which needs to be analyzed currently, then traverses the pre-established corresponding relation table of the preset data type which needs to be analyzed after the solid state disk has errors and the preset analysis code of each kernel, determines the target data type and the target analysis code which correspond to the target kernel, and analyzes the target error field data file according to the target analysis code, thereby obtaining the target file containing the target data value which corresponds to the target data type, on one hand, research and development personnel do not need to manually find out the data type which needs to be analyzed by the target kernel, the time of the research and development personnel for analyzing the error field data is saved, the analysis efficiency is also improved, on the other hand, the method is suitable for various types of solid state disks, when the type of the data to be analyzed by the kernel changes, only the preset data type needs to be modified, and a convenient way is provided for subsequent analysis.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a method for analyzing error field data of a solid state disk according to an embodiment of the present invention;
fig. 2 is a schematic diagram of an apparatus for analyzing error field data of a solid state disk according to an embodiment of the present invention;
fig. 3 is an architecture diagram of an electronic device in an embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the detailed description and specific examples, while indicating the scope of the invention, are intended for purposes of illustration only and are not intended to limit the scope of the invention.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "or/and" includes any and all combinations of one or more of the associated listed items.
As shown in fig. 1, the present invention provides an analysis method for error field data of a solid state disk, which is applied to an analysis device for error field data of a solid state disk, and the method includes:
s101, when the solid state disk has an error, determining a target error field data file corresponding to a target kernel according to an original error field data file of each kernel acquired from the solid state disk.
In practical application, after the solid state disk firmware is operated, a memory space is allocated to a used structural body or a used variable, the memory space is identified in an address value mode, the address value mode is similar to a room number in a hotel, various data such as the value of the structural body or the variable are stored in the memory space, when an error occurs in the solid state disk, the firmware stops operating, the memory space of each kernel is an error site, data in the memory space is original error site data, the original error site data can be the address value of the structural body or the variable and the corresponding value of the structural body or the variable, the original error site data can be stored in an original error site data file, and the original error site data file can be a bin file.
Each core in the solid state disk corresponds to an original error field data file, and the analysis of the error field data is analyzed from the original error field data file corresponding to each core, so that when the target core error field data is analyzed, a target error field data file needs to be determined from all the original error field data files, and the target error field data file can be a target bin file.
S102, traversing a pre-established corresponding relation table of preset data types and preset analysis codes of all data types of each kernel which need to be analyzed after the solid state disk goes wrong, and determining a target data type and a target analysis code corresponding to the target kernel.
In general, the capacities of the solid state disk may be various, structural bodies or variables that may need to be analyzed due to different capacities of each core are also different, and analysis codes of each structural body or variable are different, so that, in this step, a developer may pre-configure a preset data type and a preset analysis code that each core needs to analyze after an error occurs in the solid state disk according to an actual situation of each core, and establish a corresponding relationship table according to a corresponding relationship between the core and the preset data type and the preset analysis code, where the preset data type is a preset structural body or variable type that needs to be analyzed in each core. When the error field data of the target kernel needs to be analyzed, the corresponding relation table can be traversed according to the target kernel, so that the type of the target data and the target analysis code are determined, and research personnel do not need to manually check the type of the structural body or the variable needing to be analyzed by the target kernel and the analysis code.
S103, analyzing the target error field data file according to the target analysis code to obtain a target file containing a target data value corresponding to the target data type.
In this step, the target data value may be a value of a target structure or a variable, for example, a value of a target structure or a variable corresponding to a target preset structure or a variable type may be parsed from a target bin file according to a target parsing code, so as to obtain a target file containing the value of the target structure or the variable, for a subsequent analysis by a developer.
In the invention, original error field data are automatically obtained by an error field data analysis device of the solid state disk after the solid state disk has an error, a target error field data file of the solid state disk is automatically determined according to a target kernel which needs to be analyzed currently of the solid state disk, then a target data type and a target analysis code which correspond to the target kernel are determined by traversing a preset data type and a preset analysis code corresponding relation table which are constructed in advance and are needed to be analyzed after the solid state disk has an error, and then the target error field data file is analyzed according to the target analysis code, so that a target data value corresponding to the target preset data is analyzed from the target error field data file, and a target file containing the target data value is obtained, on one hand, the target data type and the target analysis code are obtained by traversing the corresponding relation table, and a research and development personnel is not needed to manually search out the data type to be analyzed by the target kernel, the time of the research personnel for analyzing the error field data is saved, and compared with manual investigation, the method can accurately determine the type and the target analysis code of the target data, so that the target data value can be accurately analyzed, the accuracy of the error field data analysis is improved, repeated analysis is avoided, and the analysis efficiency is improved.
In a preferred embodiment, S103, before analyzing the target error field data file according to the target analysis code to obtain a target file containing a target data value corresponding to the target data type, further includes:
determining a target address value file corresponding to a target kernel according to the original address value file of each kernel acquired from the solid state disk;
the original address value file comprises address values corresponding to all data types in the corresponding kernel.
In this embodiment, after the firmware of the solid state disk is run, the firmware is compiled to form map files, and each kernel corresponds to one map file and is used for storing information such as address values of each structure or variable after the firmware is compiled. Each kernel in the solid state disk corresponds to an original address value file, the original address value file contains address values corresponding to all data types, and the original address value file can be a map file.
When the field data with errors is analyzed, a target address value file corresponding to a target kernel needs to be determined from all original address value files, specifically, after the original address value file is obtained from a solid state disk, the original address value file is placed into a folder and arranged according to the corresponding kernel name to obtain the original address value folder, and when the field data with errors is analyzed for the target kernel, the target address value file can be determined by indexing in the original address value folder according to the target kernel name of the target kernel.
In the invention, after the original address value file is obtained, the original address value folder is obtained according to the arrangement of the corresponding kernel names by the analysis device, and then when each kernel in the solid state disk is subjected to error data analysis subsequently, the target address value file can be determined from the original address value folder by the target kernel name of the target kernel, so that research personnel do not need to manually find the target map file corresponding to the target kernel from all map files, and the analysis efficiency is improved.
In a preferred embodiment, S103, before parsing the target error field data file according to the target parsing code to obtain a target file including a target data value corresponding to the target data type, includes:
and traversing the target address value file to obtain a target address value corresponding to the target data type.
In this embodiment, the target address value file has target address values corresponding to different data types, and therefore, in order to further obtain the target address values, the target address value file is traversed, so as to obtain the target address values corresponding to the target data types.
In the invention, the target address value file is automatically traversed according to the analysis device, so that the target address value corresponding to the target data type is obtained, and research personnel do not need to manually search the address value corresponding to the target preset structure or variable type from the map file, thereby improving the accuracy and efficiency of determining the address value.
In a preferred embodiment, the step S103 of parsing the target error field data file according to the target parsing code to obtain a target file including a target data value corresponding to the target data type includes:
determining a target data value corresponding to the target data type in the target error field data file according to the target address value;
and resolving the target data value according to the target resolving code to obtain a target file.
In this embodiment, the parsing device is configured with a command for obtaining a corresponding target data value from a target error field data file according to an address value in advance, so that after the target address value and a target parsing code are obtained, the parsing device automatically determines a target data value corresponding to a target data type according to the target address value, and then parses the target data value according to the target parsing code to obtain the target file.
The method for analyzing the error field data of the solid state disk is suitable for different kernels, target data values corresponding to target data types can be analyzed from the target error field data folder according to the target address values and the target analysis codes for different kernels, the method has strong universality, and for the same kernel, when the data types needing to be analyzed are changed, only the preset data types need to be modified, so that later maintenance is facilitated, and the later-period error data analysis efficiency of research personnel is further improved.
In a preferred embodiment, the step S101 of determining, according to the original error field data file of each core acquired from the solid state disk, a target error field data file corresponding to the target core includes:
arranging the original error field data file according to the kernel name corresponding to the original error field data file to obtain an original error field data folder;
and determining the target error field data file from the original error field data folder according to the target kernel name of the target kernel.
In this embodiment, each kernel of the solid state disk corresponds to an original error field data file, and then, after the original error field data file is obtained from the solid state disk, the original error field data file is placed into a folder and arranged according to the corresponding kernel name to obtain the original error field data folder. When the error field data of the target kernel is analyzed, the target error field data file can be determined by indexing in the original error field data folder according to the target kernel name of the target kernel.
In the invention, after the original error field data is obtained, the original error field data folder is obtained according to the arrangement of the corresponding kernel names by the analysis device, and then when the error data is analyzed for each kernel in the solid state disk, the target error field data file can be determined from the original error field data folder through the target kernel name of the target kernel without manually finding the target bin file corresponding to the target kernel from all bin files by research personnel, thereby improving the analysis efficiency.
As shown in fig. 2, the present invention further provides an apparatus for analyzing error field data of a solid state disk, where the apparatus includes:
the determining module 201 is configured to determine, after the solid state disk has an error, a target error field data file corresponding to the target kernel according to the original error field data file of each kernel acquired from the solid state disk;
the traversing module 202 is configured to traverse a pre-established correspondence table of preset data types and preset analysis codes, which are required to be analyzed by each core in all data types after the solid state disk goes wrong, to determine a target data type and a target analysis code corresponding to the target core;
and the analysis module 203 is used for analyzing the target error field data file according to the target analysis code to obtain a target file containing a target data value corresponding to the target data type.
In a preferred embodiment, the apparatus determining module 201 includes a target address value file determining unit, configured to determine, according to an original address value file of each core acquired from the solid state disk, a target address value file corresponding to the target core; the original address value file comprises address values corresponding to all data types in the corresponding kernel.
In a preferred embodiment, the traversal module 202 is further configured to traverse the target address value file; a target address value corresponding to the target data type is obtained.
In a preferred embodiment, the parsing module 203 further includes a target data value determining unit, configured to determine, according to the target address value, a target data value corresponding to the target data type in the target error field data file;
and the target data value analyzing unit is used for analyzing the target data value according to the target analyzing code to obtain a target file.
In a preferred embodiment, the determining module 201 further includes an original error field data folder determining unit, configured to arrange original error field data files according to kernel names corresponding to the original error field data files to obtain original error field data folders;
and the target error field file determining unit is used for determining a target error field data file from the original error field data folder according to the target kernel name of the target kernel.
For technical effects that can be achieved by this embodiment, please refer to the description of the method for analyzing the error field data of the solid state disk, which is not described herein again.
The present invention also provides an electronic device, comprising:
one or more processors; and a memory associated with the one or more processors, where the memory is used to store program instructions, and the program instructions, when being read and executed by the one or more processors, execute a method for analyzing error field data of a solid state disk.
Fig. 3 schematically shows an architecture of an electronic device, which may specifically include a processor 310, a video display adapter 311, a disk drive 312, an input/output interface 313, a network interface 314, and a memory 320. The processor 310, the video display adapter 311, the disk drive 312, the input/output interface 313, the network interface 314, and the memory 320 may be communicatively connected by a communication bus 330.
The processor 310 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits, and is configured to execute related programs to implement the technical solution provided by the present invention.
The Memory 320 may be implemented in the form of a ROM (Read Only Memory), a RAM (Random Access Memory), a static storage device, a dynamic storage device, or the like. The memory 320 may store an operating system 321 for controlling the operation of the computer system, a Basic Input Output System (BIOS)322 for controlling low-level operations of the computer system. In addition, a web browser 323, a data storage management system 324, and a device identification information processing system 325, and the like may also be stored. The device identification information processing system 325 may be an application program that implements the operations of the foregoing steps in the embodiment of the present invention. In summary, when the technical solution provided by the present invention is implemented by software or firmware, the relevant program code is stored in the memory 320 and called for execution by the processor 310.
The input/output interface 313 is used for connecting an input/output module to realize information input and output. The i/o module may be configured as a component in a device (not shown) or may be external to the device to provide a corresponding function. The input devices may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output devices may include a display, a speaker, a vibrator, an indicator light, etc.
The network interface 314 is used for connecting a communication module (not shown in the figure) to realize communication interaction between the device and other devices. The communication module can realize communication in a wired mode (such as USB, network cable and the like) and also can realize communication in a wireless mode (such as mobile network, WIFI, Bluetooth and the like).
Bus 330 includes a path that transfers information between various components of the device, such as processor 310, video display adapter 311, disk drive 312, input/output interface 313, network interface 314, and memory 320.
In addition, the electronic device may further obtain information of specific pickup conditions from the virtual resource object pickup condition information database for performing condition judgment, and the like.
It should be noted that although the above devices only show the processor 310, the video display adapter 311, the disk drive 312, the input/output interface 313, the network interface 314, the memory 320, the bus 330, etc., in a specific implementation, the devices may also include other components necessary for normal operation. Furthermore, it will be understood by those skilled in the art that the apparatus described above may also include only the components necessary to implement the inventive arrangements, and need not include all of the components shown in the figures.
The invention also provides a computer storage medium for executing the method for analyzing the error field data of the solid state disk.
Embodiments of the invention include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means, or installed from the memory, or installed from the ROM. The computer program, when executed by a processor, performs the functions defined above in the method of embodiments of the invention.
It should be noted that the computer readable medium of the embodiments of the present invention may be a computer readable signal medium or a computer readable storage medium or any combination of the two. 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 of the computer readable storage medium may include, but are not limited to: 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 embodiments of the invention, 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. In embodiments of the present invention, however, a computer readable signal medium may comprise 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: electrical wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the server; or may exist separately and not be assembled into the server. The computer readable medium carries one or more programs which, when executed by the server, cause the server to: when the peripheral mode of the terminal is detected to be not activated, acquiring a frame rate of an application on the terminal; when the frame rate meets the screen information condition, judging whether a user is acquiring the screen information of the terminal; and controlling the screen to enter an immediate dimming mode in response to the judgment result that the user does not acquire the screen information of the terminal.
Computer program code for carrying out operations for embodiments 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 server. 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).
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the system or system embodiments are substantially similar to the method embodiments and therefore are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described system and system embodiments are only illustrative, wherein the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The method and the device for analyzing the error field data of the solid state disk provided by the invention are described in detail, a specific example is applied in the text to explain the principle and the implementation mode of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed. In view of the above, the present disclosure should not be construed as limiting the invention.

Claims (8)

1. The method for analyzing the error field data of the solid state disk is applied to a device for analyzing the error field data of the solid state disk, and comprises the following steps:
when the solid state disk has an error, determining a target error field data file corresponding to a target kernel according to an original error field data file of each kernel acquired from the solid state disk;
traversing a pre-constructed corresponding relation table of preset data types and preset analysis codes of all data types of each kernel to be analyzed after the solid state disk goes wrong to determine a target data type and a target analysis code corresponding to the target kernel;
analyzing the target error field data file according to the target analysis code to obtain a target file containing a target data value corresponding to the target data type;
the determining a target error field data file corresponding to a target kernel according to the original error field data file of each kernel acquired from the solid state disk comprises:
arranging the original error field data file according to the kernel name corresponding to the original error field data file to obtain an original error field data folder;
and determining the target error field data file from the original error field data folder according to the target kernel name of the target kernel.
2. The method of claim 1, wherein before parsing the target error field data file according to the target parsing code to obtain a target file containing a target data value corresponding to the target data type, the method further comprises:
determining a target address value file corresponding to the target kernel according to the original address value file of each kernel acquired from the solid state disk;
and the original address value file comprises address values corresponding to all the data types in the corresponding kernel.
3. The method of claim 2, wherein before parsing the target error field data file according to the target parsing code to obtain a target file containing the target data value corresponding to the target data type, the method further comprises:
and traversing the target address value file to obtain a target address value corresponding to the target data type.
4. The method of claim 3, wherein the parsing the target error field data file according to the target parsing code to obtain a target file containing a target data value corresponding to the target data type comprises:
determining a target data value corresponding to the target data type in a target error field data file according to the target address value;
and resolving the target data value according to the target resolving code to obtain the target file.
5. An apparatus for analyzing error field data of a solid state disk, the apparatus comprising:
the determining module is used for determining a target error field data file corresponding to a target kernel according to the original error field data file of each kernel acquired from the solid state disk after the solid state disk has an error;
the traversing module is used for traversing a pre-established corresponding relation table of preset data types and preset analysis codes of all data types of each kernel which need to be analyzed after the solid state disk goes wrong to determine a target data type and a target analysis code corresponding to the target kernel;
the analysis module is used for analyzing the target error field data file according to the target analysis code to obtain a target file containing the target data value corresponding to the target data type;
the determining module further comprises an original error field data folder determining unit, wherein the original error field data folder determining unit is used for arranging the original error field data files according to the kernel names corresponding to the original error field data files to obtain original error field data folders;
and the target error field data file determining unit is used for determining the target error field data file from the original error field data folder according to the target kernel name of the target kernel.
6. The apparatus according to claim 5, wherein the determining module includes a target address value file determining unit, configured to determine, according to an original address value file of each of the cores obtained from the solid state disk, a target address value file corresponding to the target core;
and the original address value file comprises address values corresponding to all the data types in the corresponding kernel.
7. The apparatus of claim 6, wherein the traversal module is further configured to traverse the target address value file to obtain a target address value corresponding to the target data type.
8. The apparatus according to claim 7, wherein the parsing module further comprises a target data value determining unit, configured to determine, according to the target address value, a target data value corresponding to the target data type in a target error field data file;
and the target data value analyzing unit is used for analyzing the target data value according to the target analyzing code to obtain the target file.
CN202111268018.6A 2021-10-29 2021-10-29 Method and device for analyzing error field data of solid state disk Active CN113704020B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111268018.6A CN113704020B (en) 2021-10-29 2021-10-29 Method and device for analyzing error field data of solid state disk

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111268018.6A CN113704020B (en) 2021-10-29 2021-10-29 Method and device for analyzing error field data of solid state disk

Publications (2)

Publication Number Publication Date
CN113704020A CN113704020A (en) 2021-11-26
CN113704020B true CN113704020B (en) 2022-02-18

Family

ID=78647466

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111268018.6A Active CN113704020B (en) 2021-10-29 2021-10-29 Method and device for analyzing error field data of solid state disk

Country Status (1)

Country Link
CN (1) CN113704020B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109558269A (en) * 2018-12-05 2019-04-02 郑州云海信息技术有限公司 A kind of detection method, device and the medium of solid state hard disk state
CN111291103A (en) * 2020-01-19 2020-06-16 北京无限光场科技有限公司 Interface data analysis method and device, electronic equipment and storage medium
CN111708680A (en) * 2020-06-12 2020-09-25 北京字节跳动网络技术有限公司 Error reporting information analysis method and device, electronic equipment and storage medium
CN112579382A (en) * 2021-01-22 2021-03-30 苏州浪潮智能科技有限公司 NVMe solid state disk bad block analysis method, device, terminal and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109558269A (en) * 2018-12-05 2019-04-02 郑州云海信息技术有限公司 A kind of detection method, device and the medium of solid state hard disk state
CN111291103A (en) * 2020-01-19 2020-06-16 北京无限光场科技有限公司 Interface data analysis method and device, electronic equipment and storage medium
CN111708680A (en) * 2020-06-12 2020-09-25 北京字节跳动网络技术有限公司 Error reporting information analysis method and device, electronic equipment and storage medium
CN112579382A (en) * 2021-01-22 2021-03-30 苏州浪潮智能科技有限公司 NVMe solid state disk bad block analysis method, device, terminal and storage medium

Also Published As

Publication number Publication date
CN113704020A (en) 2021-11-26

Similar Documents

Publication Publication Date Title
CN107506300B (en) User interface testing method, device, server and storage medium
US8949799B2 (en) Program log record optimization
CN105183592B (en) Method and apparatus for supporting performance evaluation
CN112100072B (en) Static detection method, device, equipment and medium for application program code
CN108241720B (en) Data processing method, device and computer readable storage medium
CN112395253B (en) Index file generation method, terminal device, electronic device and medium
US10713237B2 (en) Automatically correcting invalid scripts in web applications
CN110659210A (en) Information acquisition method and device, electronic equipment and storage medium
JP5976209B2 (en) Program analysis apparatus, program analysis method, and program analysis program
CN109710523B (en) Visual draft test case generation method and device, storage medium and electronic equipment
CN114116505A (en) Code testing method and device
CN115495082B (en) TLV format data automatic conversion method and related equipment
CN113704020B (en) Method and device for analyzing error field data of solid state disk
US11182272B2 (en) Application state monitoring
CN116450511A (en) Information updating method, device, electronic equipment and computer readable medium
CN115080113A (en) Item code detection method and device, readable storage medium and electronic equipment
CN109697141B (en) Method and device for visual testing
CN114090514A (en) Log retrieval method and device for distributed system
CN110753136B (en) Domain name resolution method, device, equipment and storage medium
CN111309583B (en) Interface overdrawing detection method, device, medium and computing equipment
CN109358972B (en) Log management method and device of middleware client and computer system
CN111444161A (en) Data processing method and device, electronic equipment and storage medium
CN111151008A (en) Game operation data verification method, device, configuration background and medium
CN116661758B (en) Method, device, electronic equipment and medium for optimizing log framework configuration
US11847448B2 (en) Automatic generation of exporter configuration rules

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
GR01 Patent grant
GR01 Patent grant