CN115470053A - Debugging control method, debugging control system, device and readable storage medium - Google Patents
Debugging control method, debugging control system, device and readable storage medium Download PDFInfo
- Publication number
- CN115470053A CN115470053A CN202211012360.4A CN202211012360A CN115470053A CN 115470053 A CN115470053 A CN 115470053A CN 202211012360 A CN202211012360 A CN 202211012360A CN 115470053 A CN115470053 A CN 115470053A
- Authority
- CN
- China
- Prior art keywords
- flash memory
- virtual
- parameter value
- parameter
- command line
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
- G06F11/2221—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test input/output devices or peripheral units
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1448—Management of the data involved in backup or backup restore
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/0223—User address space allocation, e.g. contiguous or non contiguous base addressing
- G06F12/023—Free address space management
- G06F12/0238—Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory
- G06F12/0246—Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory in block erasable memory, e.g. flash memory
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/22—Microcontrol or microprogram arrangements
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- Debugging And Monitoring (AREA)
Abstract
The application discloses a debugging control method, a debugging control system, a debugging control device and a computer readable storage medium, which are applied to the debugging control system, wherein the debugging control system comprises virtual flash memory particles and a virtual micro control unit, and the method comprises the following steps: when the virtual micro control unit receives a test excitation, controlling the virtual flash memory particles to execute a test action based on the test excitation; acquiring parameter values of target parameters in the process of executing the test action by the virtual micro control unit and the virtual flash memory particles; and when the parameter value is in a preset early warning range, executing a data high-frequency backup action and/or operating a single-step mode. The method solves the technical problems of complicated method for positioning the wrong position of the parameter when the error occurs in the storage control program and high time cost in the related technology, and realizes the rapid positioning of the program command line position corresponding to the wrong parameter.
Description
Technical Field
The present application relates to the field of fast storage technologies, and in particular, to a debug control method, a debug control system, a debug control device, and a computer-readable storage medium.
Background
The flash memory is applied to more and more devices by virtue of excellent performance, and a general flash memory consists of memory particles and a control unit.
In the process of executing read-write operation by the storage particles, the read-write operation is often wrong due to abnormal parameters of the storage control program. At this time, the position where the parameter is wrong needs to be found for correction. In the related art, the error site is usually reproduced by waiting for the operation error of the storage control program and by means of snapshot recovery or rerun, so as to locate the position with the error parameter.
The technical problems of the related art are as follows: the method for positioning the wrong position of the parameter is complicated and has high time cost.
Disclosure of Invention
By providing a debugging control method, a debugging control system, a debugging control device and a computer readable storage medium, the embodiments of the present application solve the technical problems of a complicated method for locating a position where a parameter has a fault when a storage control program has a fault and a high time cost in the related art, and realize rapid location of a program command line position corresponding to a parameter having a fault.
The embodiment of the application provides a debugging control method, which is applied to a debugging control system, wherein the debugging control system comprises virtual flash memory particles and a virtual micro control unit, and the debugging control method comprises the following steps:
when the virtual micro-control unit receives a test excitation, controlling the virtual flash memory particles to execute a test action based on the test excitation;
acquiring parameter values of target parameters in the process of executing the test action by the virtual micro control unit and the virtual flash memory particles;
and when the parameter value is in a preset early warning range, executing a data high-frequency backup action and/or operating a single-step mode.
Optionally, the step of performing a high-frequency backup action and/or running a single-pacing mode includes:
determining backup frequency and current time;
determining backup time according to the backup frequency and the current time;
and storing the parameter value of the target parameter according to the backup moment.
Optionally, the step of performing a high-frequency backup action and/or running a single-pacing mode includes:
controlling the virtual flash memory particles to suspend executing the test action, and determining a target command line currently executed by the virtual flash memory particles in the test excitation;
determining a command line to be executed, wherein the command line to be executed is a next command line of the target command line;
executing the command line to be executed, and judging whether the parameter value is in the early warning range;
and if the parameter value is in the early warning range, executing the step of controlling the virtual flash memory particles to suspend executing the test action and determining a target command line currently executed by the virtual flash memory particles in the test excitation.
Optionally, the executing the command line to be executed and judging whether the parameter value is in the early warning range further include:
if the parameter value is in an abnormal range, controlling the virtual flash memory particles to stop executing the test action;
and if the parameter value is in a normal range, controlling the virtual flash memory particles to continuously execute the test action.
Optionally, the executing the command line to be executed and judging whether the parameter value is in the early warning range further include:
and updating the normal range, the abnormal range and the early warning range of the target parameter according to the parameter value and the execution result of the command line to be executed.
Optionally, before executing a high-frequency backup action and/or running a single-step mode when the parameter value is in a preset early warning range, the method further includes:
when the virtual micro control unit controls the virtual flash memory particles to execute read-write operation, acquiring a first parameter value of the target parameter in the process that the virtual micro control unit and the virtual flash memory particles execute the read-write operation;
determining flash memory granule parameters of the virtual flash memory granules;
and determining a normal range, an abnormal range and the early warning range of the target parameter based on the first parameter value and the flash memory particle parameter.
Optionally, the target parameter includes at least one of a number of writing times, a number of erasing times, an error rate, a number of empty blocks, and a voltage anomaly.
In addition, this application still proposes a debugging control system, the debugging control system includes:
the virtual host generates a test excitation and sends the test excitation to the virtual micro control unit;
the virtual micro-control unit controls the virtual flash memory particles to execute a test action corresponding to the test excitation, detects a parameter value of a target parameter, and updates a normal range, an abnormal range and an early warning range of the target parameter according to the parameter value and an execution result of the test action;
and the virtual flash memory particles receive the executable instruction sent by the virtual micro-control unit and execute the test action corresponding to the executable instruction.
In addition, the present application also provides a debugging control device, where the debugging control device includes a memory, a processor, and a debugging control program that is stored in the memory and can be run on the processor, and the processor implements the steps of the debugging control method described above when executing the debugging control program.
Furthermore, the present application also proposes a computer-readable storage medium, on which a debugging control program is stored, which, when executed by a processor, implements the steps of the debugging control method as described above.
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
1. due to the adoption of the method, when the virtual micro-control unit receives the test excitation, the virtual flash memory particles are controlled to execute the test action based on the test excitation; acquiring parameter values of target parameters in the process of executing the test action by the virtual micro control unit and the virtual flash memory particles; and when the parameter value is in a preset early warning range, executing a data high-frequency backup action and/or operating a single-step mode. Therefore, the technical problem that the method for positioning the wrong position of the parameter when the storage control program has a fault in the related technology is complex is effectively solved, and the program command line position corresponding to the wrong parameter is quickly positioned.
2. When the parameter value is in the early warning range, determining the backup frequency and the current time, and generating a backup timetable according to the current time and the backup frequency; and backing up the parameter values and the command line execution results according to the backup schedule, thereby effectively solving the technical problem that the wrong site can be reproduced only by running once again when the debugging of the storage control program is wrong in the related technology, and further realizing the rapid positioning of the program command line position corresponding to the wrong parameter and the corresponding parameter value.
3. When the parameter value is in the early warning range, the execution of the test action is suspended, the command line executed by the current virtual flash memory particle is determined as the target command line, and the next command line of the target command line is taken as the command line to be executed; executing the command line to be executed, and judging whether the parameter value is in the early warning range at the moment; and when the parameter value is in the early warning range, repeatedly executing the steps. Therefore, the technical problem that the method for positioning the wrong position of the parameter when the storage control program has errors in the related technology is complex is effectively solved, and the program command line position corresponding to the wrong parameter is quickly positioned.
4. The method comprises the steps of acquiring a parameter value of a target parameter during normal operation when a test action is executed each time, determining a normal range, an abnormal range and an early warning range of the parameter value by combining a flash memory particle parameter of a virtual flash memory particle, and storing the normal range, the abnormal range and the early warning range of the parameter value in a database; the database is updated according to the execution result when the test action is executed every time, so that the technical problem that the method for positioning the wrong position of the parameter when the storage control program is wrong in the related technology is complex is effectively solved, the early warning range of the parameter value is updated in real time, and the result of positioning the wrong position of the parameter is more accurate.
Drawings
Fig. 1 is a schematic flowchart of a first embodiment of a debugging control method of the present application;
FIG. 2 is a flowchart illustrating a second embodiment of a debugging control method of the present application;
fig. 3 is a schematic flowchart of a third embodiment of the debugging control method of the present application;
fig. 4 is a schematic diagram of a hardware structure according to an embodiment of the present application.
Detailed Description
In the process of executing read-write operation by the storage particles, the read-write operation is often made wrong when the parameters of the storage control program are abnormal. At this time, the position where the parameter is wrong needs to be found for correction. In the related art, the error site is usually reproduced by waiting for the operation error of the storage control program and by means of snapshot recovery or rerun, so as to locate the position with the error parameter. The embodiment of the application adopts the following main technical scheme: when the virtual micro-control unit receives a test excitation, controlling the virtual flash memory particles to execute a test action based on the test excitation; acquiring parameter values of target parameters in the process of executing the test action by the virtual micro control unit and the virtual flash memory particles; and when the parameter value is in a preset early warning range, executing a data high-frequency backup action and/or operating a single-step mode. Therefore, the program command line position corresponding to the error parameter and the corresponding parameter value are quickly positioned.
In order to better understand the above technical solutions, exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Example one
The embodiment of the application discloses a debugging control method, and with reference to fig. 1, the debugging control method includes:
step S110, when the virtual micro control unit receives a test excitation, controlling the virtual flash memory particles to execute a test action based on the test excitation;
step S120, acquiring parameter values of target parameters in the process of executing the test action by the virtual micro control unit and the virtual flash memory particles;
and step S130, executing a data high-frequency backup action and/or operating a single-step mode when the parameter value is in a preset early warning range.
In this embodiment, the debugging control method is applied to a storage device test system. The storage device testing system comprises a virtual flash memory particle and a virtual micro control unit. The storage device testing system may be run on a server or a computer, and is not particularly limited herein. And after receiving the executable instruction, the virtual micro control unit controls the virtual flash memory particles to execute corresponding read-write operation.
Optionally, the target parameters include, but are not limited to, parameters that can characterize the operating state of the flash memory particles, such as write times, erase times, error rate, number of empty blocks, and voltage anomaly.
Optionally, the target parameter includes at least one of a number of writing times, a number of erasing times, an error rate, a number of empty blocks, and a voltage anomaly.
As an optional implementation manner, when receiving a test excitation, the virtual micro-control unit sends a test instruction to the virtual flash memory particles according to the test excitation, so as to control the virtual flash memory particles to execute a test action corresponding to the test excitation; in the process that the virtual micro control unit and the virtual flash memory particles execute the test action, acquiring and storing parameter values of target parameters in real time; and when the virtual micro-control unit detects that the parameter value is in a preset early warning range, executing a data high-frequency backup action and/or operating a single-step mode.
Illustratively, the virtual micro-control unit matches the acquired parameter values with a pre-stored database, and executes a high-frequency backup action and/or a single-step operation mode when detecting that the parameter values of the number of empty blocks are within an early warning range.
Optionally, the pre-warning range is a pre-warning range of a parameter, the number of empty blocks in a pre-stored database is the pre-warning range of the parameter, the pre-stored database has a corresponding normal range, pre-warning range and abnormal range for each target parameter, and the pre-stored database is updated according to an execution result after each test action is executed.
Optionally, before step S130, the method further includes:
step S131, when the virtual micro control unit controls the virtual flash memory particles to execute read-write operation, acquiring a first parameter value of the target parameter in the process that the virtual micro control unit and the virtual flash memory particles execute the read-write operation;
step S132, determining flash memory granule parameters of the virtual flash memory granules;
step S133, determining a normal range, an abnormal range, and the warning range of the target parameter based on the first parameter value and the flash memory particle parameter.
In this embodiment, each time the storage device testing system executes a testing action, a parameter value of a target parameter in the execution process is obtained and stored in the pre-stored database, and the normal range, the abnormal range and the early warning range of the target parameter corresponding to the parameter value in the pre-stored database are updated according to the parameter value and the operation condition.
As an optional implementation manner, when the virtual micro control unit controls the virtual flash memory particle to execute a read-write operation and/or a test action corresponding to the test excitation, a parameter value of the target parameter in a process that the virtual micro control unit and the virtual flash memory particle execute the read-write operation and/or the test action is obtained and recorded as a first parameter value. Determining flash memory grain parameters of the virtual flash memory grain, wherein the flash memory grain parameters include but are not limited to related parameters for characterizing the working state of the flash memory grain; and determining a normal range, an abnormal range and an early warning range of the parameter value of each target parameter of the flash memory particles according to the flash memory particle parameters and the first parameter value.
As another optional implementation manner, after each execution of the test action and/or the read-write operation is completed, the normal range, the abnormal range, and the early warning range of the parameter value of the target parameter are updated according to the parameter value of the target parameter and the execution result in the execution process.
Illustratively, the normal range of the parameter value of the first target parameter is "0 to 5", the early warning range is "4 to 5", and the abnormal range is "other than 0 to 5". If the parameter value of the first target parameter is 6 in a certain execution process, but the read-write operation and/or the test action can be normally executed and a correct execution result is obtained, the normal range of the parameter value of the first target parameter in the pre-stored database is updated to be 0 to 6, the early warning range is 5 to 6, and the abnormal range is other values than 0 to 6.
Illustratively, similarly, when the parameter value of the second target parameter is in the normal range but an operation error occurs, the normal range, the abnormal range and the early warning range of the parameter value of the second target parameter are updated according to the execution result. I.e. the normal range of parameter values of said second target parameter is correspondingly narrowed.
The technical scheme in the embodiment of the application at least has the following technical effects or advantages:
when the virtual micro control unit receives the test excitation, the virtual flash memory particles are controlled to execute the test action based on the test excitation; acquiring parameter values of target parameters in the process of executing the test action by the virtual micro control unit and the virtual flash memory particles; and when the parameter value is in a preset early warning range, executing a data high-frequency backup action and/or operating a single-step mode. Therefore, the technical problem that the method for positioning the wrong position of the parameter when the storage control program has a fault in the related technology is complex is effectively solved, and the program command line position corresponding to the wrong parameter is quickly positioned.
The method comprises the steps of acquiring a parameter value of a target parameter during normal operation when a test action is executed each time, determining a normal range, an abnormal range and an early warning range of the parameter value by combining a flash memory particle parameter of a virtual flash memory particle, and storing the normal range, the abnormal range and the early warning range of the parameter value in a database; the database is updated according to the execution result when the test action is executed every time, so that the technical problem that the method for positioning the wrong position of the parameter when the storage control program is wrong in the related technology is complex is effectively solved, the early warning range of the parameter value is updated in real time, and the result of positioning the wrong position of the parameter is more accurate.
Example two
Based on the first embodiment, the second embodiment of the present application provides a debugging control method, and referring to fig. 2, step S130 includes:
step S210, determining backup frequency and current time;
step S220, determining a backup time according to the backup frequency and the current time;
step S230, storing the parameter value of the target parameter according to the backup time.
In this embodiment, when the virtual micro-control unit detects that the parameter value is in the early warning range, the test action can be normally executed; and executing corresponding data high-frequency backup action.
As an optional implementation manner, determining backup frequency, and acquiring current network time; establishing a backup time table according to backup frequency by taking the current network time as an initial time; and according to the backup time of the backup time table, when the network time is matched with the backup time, storing the parameter value of the target parameter and the current execution result.
Exemplarily, when the virtual micro-control unit detects that the parameter value is in the early warning range, determining that the backup frequency is 0.1 millisecond for one time of backup, acquiring the current time, taking the current time as the initial backup time, and establishing a backup time table according to the backup frequency of 0.1 millisecond; and backing up the parameter values and the command line execution results according to the backup time in the backup time table.
The technical scheme in the embodiment of the application at least has the following technical effects or advantages:
when the parameter value is in the early warning range, determining the backup frequency and the current time, and generating a backup timetable according to the current time and the backup frequency; and backing up the parameter values and the command line execution results according to the backup schedule, thereby effectively solving the technical problem that the wrong site can be reproduced only by running once again when the debugging of the storage control program is wrong in the related technology, and further realizing the rapid positioning of the program command line position corresponding to the wrong parameter and the corresponding parameter value.
EXAMPLE III
Based on the first embodiment, the third embodiment of the present application provides a debugging control method, and referring to fig. 3, step S130 includes:
step S310, controlling the virtual flash memory particles to suspend executing the test action, and determining a target command line currently executed by the virtual flash memory particles in the test excitation;
step S320, determining a command line to be executed, wherein the command line to be executed is the next command line of the target command line;
step S330, executing the command line to be executed, and judging whether the parameter value is in the early warning range;
step S340, if the parameter value is in the early warning range, executing the step of controlling the virtual flash memory granule to suspend executing the test action, and determining a target command line currently executed by the virtual flash memory granule in the test excitation.
In this embodiment, when the virtual micro-control unit detects that the parameter value is in the early warning range, the virtual flash memory granule is controlled to suspend executing the test action; and taking the currently executed command line as a test breakpoint to execute the single-step operation mode.
As an optional implementation manner, the single-step mode is to execute command lines one by one, after the execution of each command line is finished, whether a parameter value is in an early warning range is determined, if the parameter value is in the early warning range, the single-step mode is repeatedly executed, if the parameter value is in a normal range, the normal execution of the test action is resumed, and if the parameter value is in an abnormal range, the test action is finished.
Illustratively, when the virtual micro-control unit detects that the parameter is in the early warning range, the virtual micro-control unit suspends the execution of the test action; taking a command line corresponding to the test excitation currently executed by the virtual flash memory particles as a target command line, and taking a next command line of the target command line as a command line to be executed; executing the command line to be executed, and judging whether the parameter value is in the early warning range; if the parameter value is in the early warning range, a single-step mode is repeatedly executed, namely the command line to be executed is used as a new target command line, and the next command line of the new target command line is used as a new command line to be executed.
Optionally, the single-tuning mode may be performed simultaneously with the high-frequency backup action of the data.
As an optional implementation manner, when the single-pacing mode is operated, a backup is performed once when each command line is executed, and the parameter value and the command line execution result are stored in association.
Optionally, after step S330, the method further includes:
and updating the normal range, the abnormal range and the early warning range of the target parameter according to the parameter value and the execution result of the command line to be executed.
Optionally, after step S330, the method further includes:
if the parameter value is in an abnormal range, controlling the virtual flash memory particles to stop executing the test action;
and if the parameter value is in a normal range, controlling the virtual flash memory particles to continuously execute the test action.
As an optional implementation manner, after the virtual micro control unit controls the virtual flash memory granule to execute the command line to be executed, if the parameter value is in the abnormal range, the virtual flash memory granule is controlled to suspend executing the test action, and prompt information of test failure is output.
For example, after the virtual micro control unit controls the virtual flash memory particles to execute the command line to be executed, if the parameter value is in the abnormal range but the execution result of the command line to be executed is correct, the normal range, the abnormal range and the early warning range of the target parameter are modified according to the parameter value. And if the parameter value is in the abnormal range and the execution result of the command line to be executed is an error, controlling the virtual flash memory particles to suspend executing the test action.
As another optional implementation manner, after the virtual micro control unit controls the virtual flash memory granule to execute the command line to be executed, if the parameter value is in the normal range, the virtual flash memory granule is controlled to continue to execute the test action.
For example, after the virtual micro control unit controls the virtual flash memory particles to execute the command line to be executed, if the parameter value is in the normal range but the execution result of the command line to be executed is an error, the normal range, the abnormal range, and the early warning range of the target parameter are modified according to the parameter value. And if the parameter value is in a normal range and the execution result of the command line to be executed is correct, controlling the virtual flash memory particles to continue executing the test action.
The technical scheme in the embodiment of the application at least has the following technical effects or advantages:
when the parameter value is in the early warning range, the execution of the test action is suspended, the command line executed by the current virtual flash memory particle is determined as the target command line, and the next command line of the target command line is taken as the command line to be executed; executing the command line to be executed, and judging whether the parameter value is in the early warning range at the moment; and when the parameter value is in the early warning range, repeatedly executing the steps. Therefore, the technical problem that the method for positioning the wrong position of the parameter when the storage control program has errors in the related technology is complex is effectively solved, and the program command line position corresponding to the wrong parameter is quickly positioned.
The present application further provides a debugging control device, and referring to fig. 4, fig. 4 is a schematic structural diagram of the debugging control device in a hardware operating environment according to the embodiment of the present application.
As shown in fig. 4, the debug control apparatus may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WIreless-FIdelity (WI-FI) interface). The Memory 1005 may be a Random Access Memory (RAM) Memory, or may be a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in fig. 4 does not constitute a limitation of the debug control apparatus, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
Optionally, the memory 1005 is electrically connected to the processor 1001, and the processor 1001 may be configured to control the operation of the memory 1005 and also read data in the memory 1005 to implement the debugging control.
Alternatively, as shown in fig. 4, the memory 1005, which is a storage medium, may include therein an operating system, a data storage module, a network communication module, a user interface module, and a debugging control program.
Alternatively, in the debugging control apparatus shown in fig. 4, the network interface 1004 is mainly used for data communication with other apparatuses; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the debug control apparatus according to the present application may be provided in the debug control apparatus.
As shown in fig. 4, the debugging control method is applied to a debugging control system, where the debugging control system includes a virtual flash granule and a virtual micro control unit, and the debugging control device invokes, through a processor 1001, a debugging control program stored in a memory 1005 and executes related operations of the debugging control method provided in the embodiment of the present application:
when the virtual micro-control unit receives a test excitation, controlling the virtual flash memory particles to execute a test action based on the test excitation;
acquiring parameter values of target parameters in the process of executing the test action by the virtual micro control unit and the virtual flash memory particles;
and when the parameter value is in a preset early warning range, executing a data high-frequency backup action and/or operating a single-step mode.
Alternatively, the processor 1001 may call a debugging control program stored in the memory 1005, and further perform the following operations:
determining backup frequency and current time;
determining backup time according to the backup frequency and the current time;
and storing the parameter value of the target parameter according to the backup moment.
Alternatively, the processor 1001 may call a debug control program stored in the memory 1005, and further perform the following operations:
controlling the virtual flash memory particles to suspend executing the test action, and determining a target command line currently executed by the virtual flash memory particles in the test excitation;
determining a command line to be executed, wherein the command line to be executed is a next command line of the target command line;
executing the command line to be executed, and judging whether the parameter value is in the early warning range;
and if the parameter value is in the early warning range, executing the step of controlling the virtual flash memory particles to suspend executing the test action and determining a target command line currently executed by the virtual flash memory particles in the test excitation.
Alternatively, the processor 1001 may call a debugging control program stored in the memory 1005, and further perform the following operations:
if the parameter value is in an abnormal range, controlling the virtual flash memory particles to stop executing the test action;
and if the parameter value is in a normal range, controlling the virtual flash memory particles to continue to execute the test action.
Alternatively, the processor 1001 may call a debugging control program stored in the memory 1005, and further perform the following operations:
and updating the normal range, the abnormal range and the early warning range of the target parameter according to the parameter value and the execution result of the command line to be executed.
Alternatively, the processor 1001 may call a debugging control program stored in the memory 1005, and further perform the following operations:
when the virtual micro control unit controls the virtual flash memory particles to execute read-write operation, acquiring a first parameter value of the target parameter in the process that the virtual micro control unit and the virtual flash memory particles execute the read-write operation;
determining flash memory grain parameters of the virtual flash memory grains;
and determining a normal range, an abnormal range and the early warning range of the target parameter based on the first parameter value and the flash memory particle parameter.
Alternatively, the processor 1001 may call a debugging control program stored in the memory 1005, and further perform the following operations: the target parameters include at least one of write times, erase times, error rates, number of empty blocks, and voltage anomalies.
In addition, an embodiment of the present application further provides a debug control system, where the debug control system includes:
the virtual host generates a test excitation and sends the test excitation to the virtual micro control unit;
the virtual micro-control unit controls the virtual flash memory particles to execute a test action corresponding to the test excitation, detects a parameter value of a target parameter, and updates a normal range, an abnormal range and an early warning range of the target parameter according to the parameter value and an execution result of the test action;
and the virtual flash memory particles receive the executable instruction sent by the virtual micro-control unit and execute the test action corresponding to the executable instruction.
In addition, an embodiment of the present application further provides a computer-readable storage medium, where a debugging control program is stored on the computer-readable storage medium, and when the debugging control program is executed by a processor, the relevant steps of any embodiment of the debugging control method described above are implemented.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The application can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.
Claims (10)
1. A debugging control method is characterized by being applied to a debugging control system, wherein the debugging control system comprises virtual flash memory particles and a virtual micro control unit, and the method comprises the following steps:
when the virtual micro-control unit receives a test excitation, controlling the virtual flash memory particles to execute a test action based on the test excitation;
acquiring parameter values of target parameters in the process of executing the test action by the virtual micro control unit and the virtual flash memory particles;
and when the parameter value is in a preset early warning range, executing a data high-frequency backup action and/or operating a single-step mode.
2. The debug control method of claim 1, wherein said step of performing a high frequency backup action of data and/or running a single-pacing mode comprises:
determining backup frequency and current time;
determining backup time according to the backup frequency and the current time;
and storing the parameter value of the target parameter according to the backup moment.
3. The debug control method of claim 1, wherein said step of performing a high frequency backup action of data and/or running a single-pacing mode comprises:
controlling the virtual flash memory particles to suspend executing the test action, and determining a target command line currently executed by the virtual flash memory particles in the test excitation;
determining a command line to be executed, wherein the command line to be executed is a next command line of the target command line;
executing the command line to be executed, and judging whether the parameter value is in the early warning range;
and if the parameter value is in the early warning range, executing the step of controlling the virtual flash memory particles to suspend executing the test action and determining a target command line currently executed by the virtual flash memory particles in the test excitation.
4. The debugging control method of claim 3, wherein the executing the command line to be executed and determining whether the parameter value is in the pre-warning range further comprises:
if the parameter value is in an abnormal range, controlling the virtual flash memory particles to stop executing the test action;
and if the parameter value is in a normal range, controlling the virtual flash memory particles to continue to execute the test action.
5. The debugging control method of claim 3, wherein the executing the command line to be executed, after determining whether the parameter value is in the pre-warning range, further comprises:
and updating the normal range, the abnormal range and the early warning range of the target parameter according to the parameter value and the execution result of the command line to be executed.
6. The debugging control method of claim 1, wherein before executing a data high frequency backup action and/or running a single-step mode when the parameter value is within a preset early-warning range, the method further comprises:
when the virtual micro control unit controls the virtual flash memory particles to execute read-write operation, acquiring a first parameter value of the target parameter in the process that the virtual micro control unit and the virtual flash memory particles execute the read-write operation;
determining flash memory grain parameters of the virtual flash memory grains;
and determining a normal range, an abnormal range and the early warning range of the target parameter based on the first parameter value and the flash memory particle parameter.
7. The debug control method of claim 1, wherein said target parameters comprise at least one of a number of writes, a number of erases, an error rate, a number of empty blocks, and a voltage anomaly.
8. A commissioning control system, comprising:
the virtual host generates a test excitation and sends the test excitation to the virtual micro control unit;
the virtual micro-control unit controls the virtual flash memory particles to execute a test action corresponding to the test excitation, detects a parameter value of a target parameter, and updates a normal range, an abnormal range and an early warning range of the target parameter according to the parameter value and an execution result of the test action;
and the virtual flash memory particles receive the executable instruction sent by the virtual micro-control unit and execute the test action corresponding to the executable instruction.
9. A debugging control device comprising a memory, a processor and a debugging control program stored in the memory and executable on the processor, wherein the processor implements the steps of the debugging control method according to any one of claims 1 to 7 when executing the debugging control program.
10. A computer-readable storage medium, having a debugging control program stored thereon, which when executed by a processor implements the steps of the debugging control method according to any of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211012360.4A CN115470053A (en) | 2022-08-23 | 2022-08-23 | Debugging control method, debugging control system, device and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211012360.4A CN115470053A (en) | 2022-08-23 | 2022-08-23 | Debugging control method, debugging control system, device and readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115470053A true CN115470053A (en) | 2022-12-13 |
Family
ID=84366341
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211012360.4A Pending CN115470053A (en) | 2022-08-23 | 2022-08-23 | Debugging control method, debugging control system, device and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115470053A (en) |
-
2022
- 2022-08-23 CN CN202211012360.4A patent/CN115470053A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6002869A (en) | System and method for automatically testing software programs | |
US20120331449A1 (en) | Device, method and computer program product for evaluating a debugger script | |
CN110930131A (en) | Vehicle maintenance method, device, equipment and medium | |
CN105209925A (en) | Implementing edit and update functionality within a development environment used to compile test plans for automated semiconductor device testing | |
TWI759719B (en) | Flash memory controller and method used in flash memory controller | |
JP2017201470A (en) | Setting support program, setting support method, and setting support device | |
CN110597675B (en) | Chip testing method, device, storage medium and burner | |
CN112015447B (en) | System updating method and device of electronic equipment, electronic equipment and storage medium | |
US20100312541A1 (en) | Program test device and program | |
CN115269544A (en) | Database cluster upgrading method and device, electronic equipment and storage medium | |
US8799608B1 (en) | Techniques involving flaky path detection | |
US8762781B2 (en) | Method and apparatus useful in manufacturing test case operations | |
KR20000053588A (en) | Testing system for circuit board self-test | |
CN110704236B (en) | On-line checking method for chip flash data and computer storage medium | |
CN115470141A (en) | Fault simulation method, device and related equipment | |
US20240320082A1 (en) | Systems and methods for pause-correct-replay workflow customization | |
US10847245B2 (en) | Failure indicator predictor (FIP) | |
CN101178660A (en) | Memory data automatic update method | |
CN112445670B (en) | eMMC test method and device | |
CN115470053A (en) | Debugging control method, debugging control system, device and readable storage medium | |
CN115576766A (en) | Flash memory management algorithm debugging method, system, device and readable storage medium | |
CN103294606A (en) | Methods and devices for allocating memories and detecting overflow thereof | |
CN115391110A (en) | Test method of storage device, terminal device and computer readable storage medium | |
CN104678292A (en) | Test method and device for CPLD (Complex Programmable Logic Device) | |
CN115757099A (en) | Automatic test method and device for platform firmware protection recovery function |
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 |