CN111858532B - Solid state disk log export method, system and device and readable storage medium - Google Patents

Solid state disk log export method, system and device and readable storage medium Download PDF

Info

Publication number
CN111858532B
CN111858532B CN202010692355.7A CN202010692355A CN111858532B CN 111858532 B CN111858532 B CN 111858532B CN 202010692355 A CN202010692355 A CN 202010692355A CN 111858532 B CN111858532 B CN 111858532B
Authority
CN
China
Prior art keywords
log
readable
nand flash
ddr
file
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
CN202010692355.7A
Other languages
Chinese (zh)
Other versions
CN111858532A (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 CN202010692355.7A priority Critical patent/CN111858532B/en
Publication of CN111858532A publication Critical patent/CN111858532A/en
Application granted granted Critical
Publication of CN111858532B publication Critical patent/CN111858532B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/1805Append-only file systems, e.g. using logs or journals to store data
    • G06F16/1815Journaling file systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application discloses a method, a system and a device for exporting solid state disk logs and a computer readable storage medium, comprising the following steps: reading the abnormal power failure times and the log storage state from eeprom; determining the physical address of each readable data block of the readable log in the NAND Flash by using the log storage state and the abnormal power failure times; reading all readable data blocks of the readable log in the NAND Flash into the DDR by using an existing interface of the NAND Flash in the current firmware according to the physical address of each readable data block of the readable log; exporting all readable data blocks of the readable log in the DDR to a file by using an existing DDR interface in the current firmware to obtain a log file; according to the method and the device, the interfaces of the NAND Flash and the DDR are set in the current firmware which does not change along with the change of the test version, all logs stored in the NAND Flash are exported, and a corresponding log export interface is not required to be specially set in each firmware version, so that the research and development amount is saved, the test and development speed is increased, and the working efficiency is improved.

Description

Solid state disk log export method, system and device and readable storage medium
Technical Field
The invention relates to the technical field of computer storage, in particular to a method, a system and a device for exporting solid state disk logs and a computer readable storage medium.
Background
In the industrial production process of the solid state disk, the solid state disk is tested in multiple stages to ensure that the factory-delivered solid state disk meets the relevant requirements in each aspect of pcb, DDR, NAND flash, basic function, system function and the like. The method comprises the steps of recording test firmware in certain test stages, storing important log information in the test process, recording formal firmware after the test is completed, and exporting logs stored in the test stages to analyze abnormal conditions in the test process.
In the existing method for exporting the log, an interface is generally additionally added in formal firmware, and the log is exported through the newly added interface. However, formal firmware versions of the solid state disk are numerous, some versions are still under development, and some versions are earlier, so that the interface needs to be added in multiple versions, the workload of developers is increased by arranging multiple interfaces, and the testing efficiency is reduced.
Therefore, a more convenient log calling method is needed to improve the working efficiency.
Disclosure of Invention
In view of this, the present invention provides a method, a system, a device and a computer readable storage medium for exporting logs of a solid state disk, which are more convenient and improve the work efficiency. The specific scheme is as follows:
a solid state disk log export method comprises the following steps:
reading the abnormal power failure times and the log storage state from eeprom;
determining the physical address of each readable data block of the readable log in the NAND Flash by using the log storage state and the abnormal power failure times;
reading all readable data blocks of the readable log in the NAND Flash into a DDR (double data rate) according to the physical address of each readable data block of the readable log by using the existing interface of the NAND Flash in the current firmware;
and exporting all readable data blocks of the readable log in the DDR to a file by using the existing DDR interface in the current firmware to obtain a log file.
Optionally, the process of determining a physical address of each readable data block of the readable log in the NAND Flash by using the log saving state and the abnormal power failure times includes:
determining the readable log in the NAND Flash by using the log storage state;
determining the number of readable data blocks of the readable log in the NAND Flash by using the abnormal power failure times and the preset length of the sub-log;
and determining the physical address of each readable data block of the readable log in the NAND Flash by using the pre-stored initial physical address of the first readable data block of the readable log, the preset length of each data block and the number of the readable data blocks.
Optionally, the reading, by using an existing interface of the NAND Flash in the current firmware, all readable data blocks of the readable log in the NAND Flash into the DDR according to a physical address of each readable data block of the readable log includes:
calling an interface of the NAND Flash existing in the current firmware by using an nvme-cli command, and sequentially reading all readable data blocks of the readable log in the NAND Flash one by one into the DDR according to the physical address of each readable data block of the readable log.
Optionally, the exporting all readable data blocks of the readable log in the DDR to a file by using an existing interface of the DDR in the current firmware to obtain a log file includes:
calling an existing interface of the DDR in the current firmware by using the nvme-cli command, and sequentially exporting the readable data blocks of the readable log in the DDR to a file one by one until all the readable data blocks of the readable log are exported to a file, so as to obtain the log file.
Optionally, the process of exporting the readable data blocks of the readable log in the DDR to a file one by one in sequence until all the readable data blocks of the readable log are exported to a file, and obtaining the log file includes:
leading out the readable data blocks of the readable log in the DDR to a file one by one in an additional form until all the readable data blocks of the readable log are led out to a file to obtain an original log file;
and decoding the original log file, and converting the original log file into an ASCII code to obtain the visualized log file.
The invention also discloses a system for exporting the logs of the solid state disk, which comprises the following steps:
the information reading module is used for reading the abnormal power failure times and the log storage state from the eeprom;
the physical address determining module is used for determining the physical address of each readable data block of the readable log in the NAND Flash by using the log storage state and the abnormal power failure times;
the NAND Flash data transfer module is used for reading all readable data blocks of the readable log in the NAND Flash into the DDR according to the physical address of each readable data block of the readable log by using the existing interface of the NAND Flash in the current firmware;
and the DDR data transfer module is used for exporting all readable data blocks of the readable log in the DDR to a file by utilizing the existing DDR interface in the current firmware to obtain a log file.
Optionally, the physical address determining module includes:
the readable state judging unit is used for determining the readable log in the NAND Flash by utilizing the log storage state;
the quantity determining unit is used for determining the quantity of the readable data blocks of the readable log in the NAND Flash by using the abnormal power failure times and the preset length of the sub-log;
and the physical address determining unit is used for determining the physical address of each readable data block of the readable log in the NAND Flash by using the pre-stored initial physical address of the first readable data block of the readable log, the preset length of each data block and the number of the readable data blocks.
Optionally, the DDR data transfer module is specifically configured to call an existing interface of the DDR in the current firmware by using the nvme-cli command, and sequentially export the readable data blocks of the readable log in the DDR to a file one by one until all the readable data blocks of the readable log are exported to a file, so as to obtain the log file.
The invention also discloses a solid state disk log exporting device, which comprises:
a memory for storing a computer program;
a processor for executing the computer program to implement the solid state disk log exporting method.
The invention also discloses a computer readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the solid state disk log export method as described above.
In the invention, the solid state disk log export method comprises the following steps: reading the abnormal power failure times and the log storage state from eeprom; determining the physical address of each readable data block of the readable log in the NAND Flash by using the log storage state and the abnormal power failure times; reading all readable data blocks of the readable log in the NAND Flash into the DDR according to the physical address of each readable data block of the readable log by using the existing interface of the NAND Flash in the current firmware; and exporting all readable data blocks of the readable log in the DDR to a file by using the existing DDR interface in the current firmware to obtain a log file. The invention utilizes the interface of NAND Flash and the interface of DDR already arranged in the current firmware which does not change along with the change of the test version to export all the logs stored in the NAND Flash without particularly arranging a corresponding log export interface in each firmware version, thereby saving the research and development amount, improving the test and research and development speed and improving the working efficiency.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic flowchart of a solid state disk log export method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of another solid state disk log export method disclosed in the embodiment of the present invention;
FIG. 3 is a schematic diagram of a storage form of a readable log in a NAND Flash according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a solid state disk log exporting system according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
The embodiment of the invention discloses a solid state disk log export method, which comprises the following steps of:
s11: reading the abnormal power failure times and the log storage state from eeprom;
s12: and determining the physical address of each readable data block of the readable log in the NAND Flash by using the log storage state and the abnormal power failure times.
Specifically, after the secondary Function Test (FT 2) is completed, a log needs to be derived for subsequent analysis and Test results are determined, including a built-in log generated during self-Test, i.e., a Test log.
Specifically, during each power-on test, a corresponding test log is generated, and during a complete test period, due to the fact that some BUGs may have abnormal power failure, the test log during the power-on period before the power failure is obtained after each abnormal power failure, therefore, multiple times of power failure can obtain multiple test logs generated during the corresponding complete test period, one complete readable log comprises multiple test logs, and one test log comprises 1 or more readable data blocks in the NAND Flash, so that in order to obtain all test logs during the test period, the number of times of abnormal power failure needs to be obtained, so that all readable data blocks can be obtained.
Specifically, in order to ensure that logs can be read, a plurality of backup logs can be set, the content of each log required to be stored is the same, the storage positions are different, once the log is read, only one readable log needs to be selected from the plurality of readable logs, when the plurality of readable logs can be selected according to a preset rule, for example, a log with a readable state confirmed through the log storage state is selected, and meanwhile, when abnormal power failure occurs, a writing error may occur to cause storage failure, so that the log is unreadable, therefore, 1 bit in the log storage state can be used for representing whether 1 log is readable, for example, 0 is readable and 1 is unreadable, and if a plurality of logs exist, one bit corresponding to each log represents the readable state of the log, so that the unreadable log is prevented from being read, the reading amount of the log is reduced, and the log export efficiency is improved.
Specifically, the physical address of the readable log in the NAND Flash is allocated in advance, the readable log comprises multiple sub-logs, namely a test log generated during one-time power-on period, one sub-log comprises multiple data blocks, and each data block is adjacent in sequence and has the same length, so that after the readable log is determined through the log storage state, the initial address of the readable log can be obtained, how many sub-logs and data blocks exist can be determined according to the abnormal power-down times, the physical address of each readable data block of the readable log can be obtained by matching the preset length of each data block with the initial address of the readable log, and all the readable data blocks in the readable log can be read subsequently according to the physical address of each readable data block.
For example, the starting address of the first readable data block is 1, each data block occupies 4 positions, and the starting physical address of the second readable data block is 5, so that the physical address of each data block can be acquired according to the abnormal power failure times and the log storage state.
The readable data block is a readable data block in the readable log for storing the sub-log; when the data blocks of the readable log are not completely written, other allocated data blocks may be further included, and the data blocks have no data, and certainly, because the time length of each power-on is different, the sub-log saved each time may not be able to completely write the corresponding data block, so that there may be data blocks without data in the readable data blocks, but there is certain data in a group of readable data blocks corresponding to the sub-log.
S13: and reading all readable data blocks of the readable log in the NAND Flash into the DDR by using an existing interface of the NAND Flash in the current firmware according to the physical address of each readable data block of the readable log.
Specifically, the interface of the NAND Flash already set in the current firmware that does not change with the change of the test version and the physical address of each acquired readable data block are used to read all the readable data blocks so as to transfer the content in the data blocks from the DDR.
S14: and exporting all readable data blocks of the readable log in the DDR to a file by using the existing DDR interface in the current firmware to obtain a log file.
Specifically, by using a DDR interface which is already set in the current firmware and does not change along with the change of the test version, all readable data blocks which are exported from the NAND Flash to the readable log in the DDR are exported from the DDR to the solid state disk and stored in a file form, so that a whole log file including all logs in the test period is obtained.
It should be noted that the NAND Flash interface and the DDR interface used in the above are interface settings that are carried in any version of firmware, and therefore, no new interface settings and corresponding codes are required to be added for calling the above two interfaces.
Therefore, the embodiment of the invention utilizes the interface of the NAND Flash and the interface of the DDR which are already set in the current firmware which does not change along with the change of the test version to export all the logs stored in the NAND Flash without particularly setting a corresponding log export interface in each firmware version, thereby saving the research and development amount, improving the test and research and development speed and improving the working efficiency.
The abnormal power failure times can be set to a certain threshold, and when the abnormal power failure times exceed the corresponding threshold, it indicates that the test has a larger problem, for example, the firmware version is unstable, the test environment has a problem, or the solid state disk hardware has a fault, and the like, and needs to be maintained, so that the threshold can be set, the test can be terminated in time, and the maintenance can be performed as soon as possible, for example, the threshold can be set to 10 times, and when the abnormal power failure times exceed 10 times, the test can be interrupted, the log can be called, and the corresponding maintenance can be performed according to the log.
The embodiment of the invention also discloses a specific power supply framework of the whole cabinet, and compared with the previous embodiment, the embodiment further explains and optimizes the technical scheme. Referring to fig. 2, specifically:
s21: reading the abnormal power failure times and the log storage state from eeprom;
s22: determining a readable log in the NAND Flash by using the log storage state;
s23: and determining the number of readable data blocks of the readable log in the NAND Flash by using the abnormal power failure times and the preset length of the sub-log.
All the test logs in the NAND Flash are stored in sequence, and corresponding data blocks for storing data are divided in advance for the test logs generated during each online period, after the test is finished, a plurality of data blocks for recording the test logs and respectively corresponding to different power-on tests are stored in the NAND Flash, for example, as shown in fig. 3, the first log to the fourth log are logs generated during one complete test period, the test contents recorded by the four logs are the same, wherein 3 logs are used for standby, when the logs are read, only any readable log needs to be selected, therefore, the readable state of each log recorded in the log storage state can be utilized, 1 log can be selected according to the preset rule for reading, as shown in fig. 3, each log includes a plurality of data blocks, and the physical address of each data block is a pca in the diagram, where [ x ] pca1 in each column is a starting physical address of a first data block of each log, and the length of a sub-log may be set according to actual application requirements, that is, one sub-log corresponds to several data blocks, for example, the length of a sub-log may be set to 4, and then each 4 adjacent pcas constitute one sub-log, if 3 times of abnormal power failure occurs, there are 3 sub-logs, and there are 12 data blocks, three times four, corresponding to [ x ] pca1 to [ x ] pca12, and the remaining [ x ] pca13 to [ x ] pca20 correspond to data blocks which have been planned but do not store sub-logs, where [ x ] refers to any one of [1], [2], [3] or [4] in fig. 3.
S24: determining the physical address of each readable data block of the readable log in the NAND Flash by using the initial physical address of the first readable data block of the pre-stored readable log, the preset length of each data block and the number of the readable data blocks;
s25: calling an interface of the NAND Flash existing in the current firmware by using an nvme-cli command, and sequentially reading all readable data blocks of the readable log in the NAND Flash one by one into the DDR according to the physical address of each readable data block of the readable log;
s26: calling an existing DDR interface in the current firmware by using an nvme-cli command, and sequentially exporting the readable data blocks of the readable log in the DDR to a file one by one until all the readable data blocks of the readable log are exported to a file to obtain a log file.
Specifically, the nvme-cli command can be used to write a corresponding interface call instruction, call the existing NAND Flash interface and DDR interface in the current firmware, export each readable data block one by one, and repeatedly execute S25 and S26 until all data blocks are exported.
Specifically, after all data blocks in the DDR are exported to a file in an additional form, the file is stored in a 16-ary form, so that transcoding is required, and the converted data blocks are converted into ASCII codes for an operating system to interpret, and then can be visually displayed to a user.
Correspondingly, the embodiment of the present invention further discloses a system for exporting logs from a solid state disk, as shown in fig. 4, the system includes:
the information reading module 11 is used for reading the abnormal power failure times and the log saving state from the eeprom;
the physical address determining module 12 is configured to determine a physical address of each readable data block of the readable log in the NAND Flash by using the log saving state and the abnormal power failure times;
the NAND Flash data transfer module 13 is used for reading all readable data blocks of the readable log in the NAND Flash into the DDR according to the physical address of each readable data block of the readable log by using the existing NAND Flash interface in the current firmware;
the DDR data transfer module 14 is configured to export all readable data blocks of the readable log in the DDR to a file by using an existing DDR interface in the current firmware, so as to obtain a log file.
Therefore, the embodiment of the invention utilizes the interface of the NAND Flash and the interface of the DDR which are already set in the current firmware which does not change along with the change of the test version to export all the logs stored in the NAND Flash without particularly setting a corresponding log export interface in each firmware version, thereby saving the research and development amount, improving the test and research and development speed and improving the working efficiency.
Specifically, the physical address determining module 12 may include a readable state determining unit, a quantity determining unit, and a physical address determining unit; wherein the content of the first and second substances,
the readable state judging unit is used for determining a readable log in the NAND Flash by using the log storage state;
the quantity determining unit is used for determining the quantity of the readable data blocks of the readable logs in the NAND Flash by using the abnormal power failure times and the preset length of the sub-logs;
and the physical address determining unit is used for determining the physical address of each readable data block of the readable log in the NAND Flash by using the initial physical address of the first readable data block of the prestored readable log, the preset length of each data block and the number of the readable data blocks.
Specifically, the NAND Flash data transfer module 13 may be specifically configured to call an existing NAND Flash interface in the current firmware by using an nvme-cli command, and sequentially read all readable data blocks of the readable log in the NAND Flash one by one to the DDR according to a physical address of each readable data block of the readable log.
Specifically, the DDR data transfer module 14 may be specifically configured to call an existing interface of the DDR in the current firmware by using the nvme-cli command, and sequentially export the readable data blocks of the readable log in the DDR to a file one by one until all the readable data blocks of the readable log are exported to a file, so as to obtain a log file.
Specifically, the DDR data transfer module 14 may include a DDR data transfer unit and a format conversion unit; wherein, the first and the second end of the pipe are connected with each other,
the DDR data transfer unit is used for exporting the readable data blocks of the readable log in the DDR to a file one by one in an additional mode in sequence until all the readable data blocks of the readable log are exported to a file to obtain an original log file;
and the format conversion unit is used for decoding the original log file and converting the original log file into an ASCII code to obtain a visual log file.
Correspondingly, the embodiment of the invention also discloses a solid state disk log exporting device, which comprises:
a memory for storing a computer program;
a processor for executing a computer program to implement the solid state disk log exporting method.
In addition, the embodiment of the invention also discloses a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when being executed by a processor, the computer program realizes the solid state disk log export method.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the technical solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The technical content provided by the present invention is described in detail above, and the principle and the implementation of the present invention are explained in this document by applying specific examples, and the above description of the examples is only used to help understanding the method of the present invention and the core idea thereof; 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, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (8)

1. A solid state disk log exporting method is characterized by comprising the following steps:
reading the abnormal power failure times and the log storage state from eeprom;
determining the physical address of each readable data block of the readable log in the NAND Flash by using the log storage state and the abnormal power failure times;
reading all readable data blocks of the readable log in the NAND Flash into a DDR (double data rate) according to the physical address of each readable data block of the readable log by utilizing the existing interface of the NAND Flash in the current firmware;
exporting all readable data blocks of the readable log in the DDR to a file by using an existing DDR interface in the current firmware to obtain a log file;
the process for determining the physical address of each readable data block of the readable log in the NAND Flash by using the log storage state and the abnormal power failure times comprises the following steps:
determining the readable log in the NAND Flash by using the log storage state;
determining the number of readable data blocks of the readable log in the NAND Flash by using the abnormal power failure times and the preset length of the sub-log;
and determining the physical address of each readable data block of the readable log in the NAND Flash by using the pre-stored initial physical address of the first readable data block of the readable log, the preset length of each data block and the number of the readable data blocks.
2. The method for exporting the logs from the solid state disk according to claim 1, wherein the step of reading all the readable data blocks of the readable logs in the NAND Flash into the DDR according to the physical address of each readable data block of the readable logs by using the existing interface of the NAND Flash in the current firmware comprises:
calling an interface of the NAND Flash existing in the current firmware by using an nvme-cli command, and sequentially reading all readable data blocks of the readable log in the NAND Flash one by one into the DDR according to the physical address of each readable data block of the readable log.
3. The method for exporting the logs of the solid state disk according to claim 2, wherein the process of exporting all the readable data blocks of the readable logs in the DDR to a file by using an existing interface of the DDR in the current firmware to obtain a log file comprises the following steps:
calling an existing interface of the DDR in the current firmware by using the nvme-cli command, and sequentially exporting the readable data blocks of the readable log in the DDR to a file one by one until all the readable data blocks of the readable log are exported to a file, so as to obtain the log file.
4. The method for exporting the logs of the solid state disk according to claim 3, wherein the step of exporting the readable data blocks of the readable logs in the DDR to a file one by one in sequence until all the readable data blocks of the readable logs are exported to a file to obtain the log file comprises the steps of:
leading out the readable data blocks of the readable log in the DDR to a file one by one in an additional form until all the readable data blocks of the readable log are led out to a file to obtain an original log file;
and decoding the original log file, and converting the original log file into ASCII (American standard code for information interchange) code to obtain a visualized log file.
5. A solid state disk log export system, comprising:
the information reading module is used for reading the abnormal power failure times and the log storage state from the eeprom;
the physical address determining module is used for determining the physical address of each readable data block of the readable log in the NAND Flash by using the log storage state and the abnormal power failure times;
the NAND Flash data transfer module is used for reading all readable data blocks of the readable log in the NAND Flash into the DDR according to the physical address of each readable data block of the readable log by using the existing interface of the NAND Flash in the current firmware;
the DDR data transfer module is used for exporting all readable data blocks of the readable log in the DDR to a file by using the existing DDR interface in the current firmware to obtain a log file;
wherein the physical address determination module includes:
the readable state judging unit is used for determining the readable log in the NAND Flash by utilizing the log storage state;
the quantity determining unit is used for determining the quantity of the readable data blocks of the readable log in the NAND Flash by using the abnormal power failure times and the preset length of the sub-log;
and the physical address determining unit is used for determining the physical address of each readable data block of the readable log in the NAND Flash by utilizing the pre-stored initial physical address of the first readable data block of the readable log, the preset length of each data block and the number of the readable data blocks.
6. The system of claim 5, wherein the DDR data transfer module is specifically configured to call an existing interface of the DDR in the current firmware by using an nvme-cli command, and export the readable data blocks of the readable log in the DDR to a file one by one in sequence until all the readable data blocks of the readable log are exported to a file, so as to obtain the log file.
7. A solid state disk log exporting apparatus, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the solid state disk log export method of any of claims 1 to 4.
8. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when executed by a processor, the computer program implements the solid state disk log exporting method according to any one of claims 1 to 4.
CN202010692355.7A 2020-07-17 2020-07-17 Solid state disk log export method, system and device and readable storage medium Active CN111858532B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010692355.7A CN111858532B (en) 2020-07-17 2020-07-17 Solid state disk log export method, system and device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010692355.7A CN111858532B (en) 2020-07-17 2020-07-17 Solid state disk log export method, system and device and readable storage medium

Publications (2)

Publication Number Publication Date
CN111858532A CN111858532A (en) 2020-10-30
CN111858532B true CN111858532B (en) 2023-01-10

Family

ID=73002077

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010692355.7A Active CN111858532B (en) 2020-07-17 2020-07-17 Solid state disk log export method, system and device and readable storage medium

Country Status (1)

Country Link
CN (1) CN111858532B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109117297A (en) * 2018-08-30 2019-01-01 浪潮电子信息产业股份有限公司 A kind of Fault Locating Method and device of solid state hard disk
CN110674008A (en) * 2019-09-06 2020-01-10 苏州浪潮智能科技有限公司 Problem disk log information collection method, device, equipment and medium of SSD
CN111274059A (en) * 2020-01-21 2020-06-12 浙江大华技术股份有限公司 Software exception handling method and device for slave equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109117297A (en) * 2018-08-30 2019-01-01 浪潮电子信息产业股份有限公司 A kind of Fault Locating Method and device of solid state hard disk
CN110674008A (en) * 2019-09-06 2020-01-10 苏州浪潮智能科技有限公司 Problem disk log information collection method, device, equipment and medium of SSD
CN111274059A (en) * 2020-01-21 2020-06-12 浙江大华技术股份有限公司 Software exception handling method and device for slave equipment

Also Published As

Publication number Publication date
CN111858532A (en) 2020-10-30

Similar Documents

Publication Publication Date Title
US8086919B2 (en) Controller having flash memory testing functions, and storage system and testing method thereof
CN101699402B (en) Multi-mode startup embedded system
CN101634960A (en) Method for revising BIOS parameter and regenerating checksum
CN102306122A (en) Automated testing method and equipment
CN109240870A (en) A kind of solid state hard disk Fault Locating Method and relevant apparatus
CN107633867B (en) SPI flash memory test system and method based on FT4222
CN110618892A (en) Bug positioning method and device for solid state disk, electronic equipment and medium
CN111552475B (en) Method, method and system for compiling work load test file for aging test of semiconductor memory
CN104375934A (en) Method for testing reliability of Android mobile phone software
CN103955371A (en) Design and development method for universal software module for performing data acquisition on serial-port instrument
CN103970665A (en) FPGA (field programmable gate array) system for simulating SPI (serial peripheral interface) FLASH and debugging method
CN101739322B (en) Test device and method of embedded system
CN111858532B (en) Solid state disk log export method, system and device and readable storage medium
CN101201750B (en) Method of providing data for encoding/decoding using syntax lexical analysis tool
CN112445670B (en) eMMC test method and device
CN102193860B (en) Microcontroller online debugging circuit and method as well as microcontroller
CN112216340A (en) Hard disk test method and device, storage medium and electronic equipment
CN109344083A (en) A kind of program debugging method, device, equipment and readable storage medium storing program for executing
CN110109679A (en) A kind of BIOS default value amending method, system, equipment and computer media
CN110673894A (en) Automatic loading method for BOB module ED of home gateway
KR20230082020A (en) Test methods, systems and equipment based on Excel file loading
CN111159123B (en) Embedded reliable parameter storage file system and method
CN105868092A (en) Log file processing method and device
CN117150987B (en) Initial value configuration method for register model
CN112530615B (en) Variable forcing method and system suitable for nuclear power station equipment

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