Crash detection and analysis method, device and storage medium

The BIOS retains and dumps the pre-crash driver log when the computing device is turned on, solves the problem of difficulty in obtaining logs after the crash, improves analysis efficiency and equipment applicability, and simplifies the crash analysis process.

CN117608906BActive Publication Date: 2024-11-15MOORE THREADS TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202311754345.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-19
Publication Date
2024-11-15
Estimated Expiration
2043-12-19

AI Technical Summary

Technical Problem

After the computing device crashes, the existing technology requires the use of a debugger to obtain the driver log, which makes it difficult to analyze and cannot be used on devices without a debugger, limiting the analysis and acquisition efficiency of the cause of the crash.

Method used

The target physical memory is reserved for storing the working status log of the driver before the crash and dumping it to the hard disk by booting up and responding to the memory retention indication.

Benefits of technology

It realizes the acquisition of driver logs after a crash without using a debugger, improves the log acquisition efficiency, reduces the usage threshold and scenario restrictions, and simplifies the crash analysis process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117608906B_ABST
    Figure CN117608906B_ABST
Patent Text Reader

Abstract

The present disclosure relates to the field of computer technology, and in particular to a method, device and storage medium for detecting and analyzing a computer crash. The method comprises: starting the BIOS when the computer is turned on; in response to a memory retention indication, reserving a target physical memory through the BIOS, the target physical memory being used to store a target driver log, the target driver log indicating the working status of the target driver before the computer crashes; and dumping the target driver log to a hard disk. The embodiment of the present disclosure provides a function of reserving a target physical memory through the BIOS, the target physical memory being used to store a target driver log, so that when the BIOS is started when the computer is turned on, in response to a memory retention indication, the target physical memory can be reserved through the BIOS, thereby dumping the target driver log to a hard disk, thereby avoiding the situation in the related art where a debugger is required to obtain the driver log. The method is simple to use and can be used right out of the box, thereby improving the efficiency of obtaining the driver log.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a method, device and storage medium for detecting and analyzing a computer crash. Background Art

[0002] Currently, computing devices have more and more functions and are becoming more and more complex. Such complex computing devices are bound to crash during use. There are many reasons for crashes, especially the memory data of the computing device before the crash records the driver log of the computing device, which is very useful for analyzing the cause of the crash, so it needs to be saved.

[0003] In the related art, after a computing device crashes, a debugger is needed to obtain a driver log. For example, the debugger includes a dedicated machine and dedicated software for obtaining the driver log, which brings obstacles to the analysis of the crash problem of the computing device, and the technology cannot be used on some product machines that are not equipped with a debugger. Summary of the invention

[0004] In view of this, the present disclosure proposes a method, device and storage medium for detecting and analyzing a system crash. The technical solution includes:

[0005] According to one aspect of the present disclosure, a method for detecting and analyzing a system crash is provided, the method comprising:

[0006] Start the Basic Input Output System (BIOS) when you turn on the computer;

[0007] In response to the memory reservation indication, the target physical memory is reserved by the BIOS, the target physical memory is used to store a target driver log, the target driver log indicates the working state of the target driver before the crash;

[0008] Dump the target drive log to the hard disk.

[0009] In a possible implementation, the memory reservation indication is an indication when the target identifier indicates that the BIOS needs to reserve physical memory, and the step of reserving the target physical memory by the BIOS in response to the memory reservation indication includes:

[0010] Reading the target identifier through the BIOS, where the target identifier is used to indicate whether the BIOS needs to reserve physical memory;

[0011] When the target identifier indicates that the BIOS needs to reserve physical memory, the target physical memory is reserved by the BIOS.

[0012] In another possible implementation, the method further includes:

[0013] The first physical memory is submitted to the kernel of the operating system through the BIOS, and the first physical memory is the physical memory that does not need to be reserved.

[0014] In another possible implementation, dumping the target drive log to a hard disk includes:

[0015] After the operating system is initialized, the target driver is loaded;

[0016] When the target driver queries that the BIOS has the reserved target physical memory, the target physical memory is acquired and mapped;

[0017] When the target driver detects that the target driver log exists in the target physical memory, the target driver log is dumped to the hard disk.

[0018] In another possible implementation, the method further includes:

[0019] The target drive log is redirected to the target physical memory reserved by the BIOS.

[0020] In another possible implementation, the method further includes:

[0021] When a crash occurs and the system restarts, the power-saving operation of the BIOS is executed;

[0022] The step of reserving the target physical memory by the BIOS in response to the memory reservation indication is restarted.

[0023] In another possible implementation, the method further includes:

[0024] The target drive log is extracted from the hard disk and detected and analyzed.

[0025] According to another aspect of the present disclosure, a device for detecting and analyzing a system crash is provided, the device comprising:

[0026] The startup module is used to start the BIOS when the computer is turned on;

[0027] A reservation module, for reserving a target physical memory through the BIOS in response to a memory reservation indication, wherein the target physical memory is used to store a target drive log, wherein the target drive log indicates a working state of the target drive before the crash;

[0028] The dump module is used to dump the target drive log to the hard disk.

[0029] In a possible implementation, the memory reservation indication is an indication when the target identifier indicates that the BIOS needs to reserve physical memory, and the reservation module is further used to:

[0030] Reading the target identifier through the BIOS, where the target identifier is used to indicate whether the BIOS needs to reserve physical memory;

[0031] When the target identifier indicates that the BIOS needs to reserve physical memory, the target physical memory is reserved by the BIOS.

[0032] In another possible implementation, the device further includes: a submitting module, configured to:

[0033] The first physical memory is submitted to the kernel of the operating system through the BIOS, and the first physical memory is the physical memory that does not need to be reserved.

[0034] In another possible implementation, the dump module is further used to:

[0035] After the operating system is initialized, the target driver is loaded;

[0036] When the target driver queries that the BIOS has the reserved target physical memory, the target physical memory is acquired and mapped;

[0037] When the target driver detects that the target driver log exists in the target physical memory, the target driver log is dumped to the hard disk.

[0038] In another possible implementation, the device further includes: a redirection module, configured to:

[0039] The target drive log is redirected to the target physical memory reserved by the BIOS.

[0040] In another possible implementation, the device further includes: an execution module, configured to:

[0041] When a crash occurs and the system restarts, the power-saving operation of the BIOS is executed;

[0042] The step of reserving the target physical memory by the BIOS in response to the memory reservation indication is restarted.

[0043] In another possible implementation, the device further includes: an extraction module, configured to:

[0044] The target drive log is extracted from the hard disk and detected and analyzed.

[0045] According to another aspect of the present disclosure, a computing device is provided, the user device comprising: a processor; a memory for storing processor-executable instructions;

[0046] Wherein, the processor is configured to:

[0047] Start the basic input and output system BIOS when booting up;

[0048] In response to the memory reservation indication, the target physical memory is reserved by the BIOS, the target physical memory is used to store a target driver log, the target driver log indicates the working state of the target driver before the crash;

[0049] Dump the target drive log to the hard disk.

[0050] According to another aspect of the present disclosure, a non-volatile computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the method provided by the first aspect or any possible implementation manner of the first aspect is implemented.

[0051] The disclosed embodiment provides a function of retaining target physical memory through BIOS. When the BIOS is started at boot time, in response to the memory retention indication, the target physical memory can be retained through the BIOS. The target physical memory is used to store the target driver log. The target driver log indicates the working status of the target driver before the crash, thereby dumping the target driver log to the hard disk so that the target driver log can be subsequently extracted from the hard disk for detection and analysis, avoiding the situation in the related art where a debugger is needed to obtain the driver log. The system is simple to use and can be used out of the box, thereby improving the efficiency of obtaining the driver log.

[0052] Further features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate exemplary embodiments, features, and aspects of the disclosure and, together with the description, serve to explain the principles of the disclosure.

[0054] Figure 1 A flowchart of a method for detecting and analyzing a system crash provided by an exemplary embodiment of the present disclosure is shown.

[0055] Figure 2 A schematic diagram showing the principle of a method for detecting and analyzing a system crash provided by an exemplary embodiment of the present disclosure is shown.

[0056] Figure 3 A flowchart of a method for detecting and analyzing a system crash provided by another exemplary embodiment of the present disclosure is shown.

[0057] Figure 4 A schematic structural diagram of a device for detecting and analyzing a system crash provided by an exemplary embodiment of the present disclosure is shown.

[0058] Figure 5 It is a block diagram of a device according to an exemplary embodiment. DETAILED DESCRIPTION

[0059] Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.

[0060] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.

[0061] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present disclosure.

[0062] In the related art, after a computing device crashes, a debugger is needed to obtain a driver log, which is difficult to debug and has limitations on the device used. However, the disclosed embodiment provides a function of retaining the target physical memory through BIOS, and can obtain the driver log after the crash without using the above debugger, that is, when the BIOS is started at startup, in response to the memory retention indication, the target physical memory can be reserved by BIOS, and the target physical memory is used to store the target driver log, so that the target driver log is dumped to the hard disk. It is simple to use and can be used immediately, which improves the efficiency of obtaining the driver log, and reduces the use threshold and the limitation of the use scenario, and can be used in various types of computing devices.

[0063] In an exemplary application scenario, when a computing device is turned on, the computing device enters a power-on initialization process. In the power-on initialization process, the computing device starts the BIOS, and the BIOS enters the initialization process. After the BIOS initialization process is completed, the operating system initialization process is performed. After the operating system initialization process is completed, other initialization processes such as hardware and service initialization processes are performed until the power-on initialization process is completed. In this exemplary application scenario, the embodiment of the present application can complete the steps of reserving the target physical memory through the BIOS and dumping the target drive log to the hard disk in the above-mentioned power-on initialization process.

[0064] Below, taking the above application scenario as an example, an exemplary embodiment is used to introduce the method for detecting and analyzing a system crash provided by an embodiment of the present disclosure.

[0065] Please refer to Figure 1 , which shows a flowchart of a method for detecting and analyzing a computer crash provided by an exemplary embodiment of the present disclosure, and this embodiment is illustrated by using the method in a computing device. The method includes the following steps.

[0066] Step 101, start BIOS when booting up.

[0067] The "startup" in step 101 can be, for example, a normal manual startup. A crash may have occurred before startup, for example, the computing device crashes and is forced to shut down, and then it is manually started up, and the process can proceed to step 101; or no crash may have occurred, for example, the computing device is shut down normally and then manually started up again, and the process can also proceed to step 101.

[0068] Optionally, the BIOS is stored in a read-only memory (ROM) in which data is not lost after power failure. BIOS is also called a boot loader. BIOS includes programs for basic input and output of computing devices, hardware self-test programs after power-on, and operating system self-starting programs. BIOS can read basic startup information of computing devices from complementary metal oxide semiconductors (CMOS). The main functions of BIOS include providing the lowest-level and most direct hardware settings and controls for computing devices. In the disclosed embodiment, BIOS provides the function of reserving target physical memory.

[0069] Step 102, in response to the memory reservation instruction, the target physical memory is reserved by the BIOS, the target physical memory is used to store the target driver log, and the target driver log indicates the working status of the target driver before the crash.

[0070] The target physical memory may be a pre-set physical memory for storing the target drive log. Optionally, the target physical memory is a default setting or a custom setting. This embodiment of the present disclosure does not limit this.

[0071] The memory reservation indication is an indication when the target identifier indicates that the BIOS needs to reserve physical memory. Optionally, the memory reservation indication can be indicated by a "target identifier". For example, when a predetermined target identifier is read through the BIOS, it can be regarded as obtaining the memory reservation indication. The computing device reserves the target physical memory through the BIOS in response to the memory reservation indication, which may include: the computing device reads the target identifier through the BIOS, and the target identifier is used to indicate whether the BIOS needs to reserve physical memory; when the target identifier indicates that the BIOS needs to reserve physical memory, the target physical memory is reserved through the BIOS.

[0072] Optionally, the target identifier is stored in CMOS, and the computing device reads the target identifier through BIOS, including: the computing device reads the target identifier from CMOS through BIOS.

[0073] Optionally, when the target identifier is a first value, it is used to indicate that the BIOS needs to reserve physical memory, and when the target identifier is a second value, it is used to indicate that the BIOS does not need to reserve physical memory. For example, the first value is 1 and the second value is 0. The present disclosure embodiment is not limited to this. Optionally, the target identifier can be pre-set as needed. Schematically, the target identifier is set by default or is custom set. For example, the target identifier can be pre-set to 1 to perform step 102 by default.

[0074] In an exemplary application scenario, after the computing device is powered on and the BIOS is started, the BIOS enters an initialization process. During the BIOS initialization process, the computing device reads the target identifier through the BIOS. When the target identifier is 1, the BIOS obtains a memory retention indication. The computing device responds to the memory retention indication and reserves a pre-set target physical memory through the BIOS. The target physical memory is used to store the target drive log.

[0075] The disclosed embodiment sets a target identifier to indicate whether the BIOS needs to reserve physical memory, so that the BIOS can determine whether the physical memory needs to be reserved by reading the target identifier, further ensuring the accuracy of the memory reservation indication and the timeliness of responding to the memory reservation indication.

[0076] Optionally, the computing device may further submit the first physical memory to the kernel of the operating system through the BIOS, and the first physical memory is the physical memory that does not need to be reserved. That is to say, when the target identifier indicates that the BIOS needs to reserve the physical memory, the target physical memory is reserved through the BIOS, and other physical memories except the target physical memory are submitted to the kernel of the operating system. In this case, the first physical memory is other physical memories except the target physical memory. When the target identifier indicates that the BIOS does not need to reserve the physical memory, all physical memories are submitted to the kernel of the operating system through the BIOS. In this case, the first physical memory is all physical memories. The embodiment of the present disclosure submits the first physical memory, i.e., the physical memory that does not need to be reserved, to the kernel of the operating system through the BIOS, so that these physical memories can be reallocated and utilized by the operating system, thereby improving the overall performance of the system.

[0077] Step 103: Dump the target drive log to the hard disk.

[0078] Through the above step 102, the target physical memory is reserved by BIOS, and the computing device can dump the target driver log stored in the target physical memory to the hard disk. The target driver log is a driver log automatically generated when the computing device crashes. The target driver log includes the working status information of the target driver before the computing device crashes.

[0079] Optionally, the target driver is a driver of the target hardware device, and the target driver may be a graphics card driver, a sound card driver, a network card driver, etc. The operating system communicates with the target hardware device through the target driver, for example, the operating system communicates with the graphics card through the graphics card driver.

[0080] Optionally, the computing device can dump the target driver log to the hard disk in the following manner: after the operating system initialization is completed, load the target driver; when the target driver queries the BIOS to find that there is a reserved target physical memory, obtain the target physical memory and map it; when the target driver detects that there is a target driver log in the target physical memory, dump the target driver log to the hard disk.

[0081] In one example, after the target driver is loaded, the target driver queries the BIOS whether there is a reserved target physical memory. For example, the target driver can query the BIOS through the Advanced Configuration and Power Management Interface (ACPI) whether there is a reserved target physical memory. When it is queried that the BIOS has a reserved target physical memory, the reserved target physical memory in the BIOS is obtained, the target physical memory is mapped to the virtual address space, and then the target physical memory is detected to see whether there is a target driver log. For example, referring to the description of step 101, since a crash may or may not have occurred before booting, the target driver log may or may not exist in the target physical memory. When it is detected that there is a target driver log in the target physical memory, the target driver log is dumped to the hard disk. When it is detected that there is no target driver log in the target physical memory, the power-on initialization process of the computing device is continued to complete the power-on process. When it is queried that there is no reserved target physical memory in the BIOS, the power-on initialization process of the computing device is continued to complete the power-on process.

[0082] After the above steps, the computing device has dumped the target drive log to the hard disk through the BIOS. Optionally, the computing device extracts the target drive log from the hard disk and performs detection and analysis. The analysis can be performed at any time after the target drive log is dumped to the hard disk.

[0083] Optionally, the computing device detects and analyzes the target drive log, including: the computing device screens the target keyword in the target drive log, and determines the target crash cause corresponding to the target keyword according to a preset correspondence, wherein the preset correspondence includes a correspondence between multiple preset keywords and multiple preset crash causes. Illustratively, the multiple preset crash causes include target drive overheating, target drive incompatibility with the operating system, target drive virus infection, target drive obsolescence, unstable power supply of the target drive, etc. The disclosed embodiments are not limited to this.

[0084] When the target drive log stored in the hard disk is no longer needed, the target drive log can be optionally redirected to the target physical memory reserved by the BIOS, that is, the target drive log is rewritten to the target physical memory reserved by the BIOS. The redirection process can also be performed at any time as required. By redirecting the target drive log to the target physical memory reserved by the BIOS, the disclosed embodiment can flexibly manage and control the storage location of the target drive log, providing a prerequisite for the subsequent acquisition of the target drive log when the computing device crashes and restarts.

[0085] Illustratively, when the computing device completes the power-on initialization process and enters a normal working state, the target driver log can be redirected to the target physical memory reserved by the BIOS through a log redirection switch, which is a preset switch for indicating that the target driver log is to be redirected.

[0086] Optionally, when the computing device freezes and restarts, a power preservation operation of the BIOS is executed; the above step 102 is restarted, i.e., the step of reserving the target physical memory through the BIOS in response to the memory retention indication.

[0087] A computer freeze may generally refer to a state in which a computing device fails to work properly, such as a black screen, an inability of the computing device's processor to execute instructions of the computing device, or a failure of an input device such as a mouse or keyboard to accept input.

[0088] A crash may occur at any stage of the use of a computing device. Schematically, during the process of testing a target driver, when the computing device crashes and is forced to restart, a BIOS power-saving operation may be executed. At this time, since the BIOS power-saving operation has been executed, there is no need to return to step 101 to start the BIOS, and the process may return to step 102 to start execution. The disclosed embodiment further improves the convenience of analyzing a crash problem by executing a BIOS power-saving operation when a crash occurs and the system is restarted, resuming execution in response to a memory retention indication, reserving the target physical memory through the BIOS, and dumping the target driver log to a hard disk.

[0089] Please refer to Figure 2 , which shows a schematic diagram of the principle of a method for detecting and analyzing a dead system provided by an exemplary embodiment of the present disclosure. In an illustrative example, as Figure 2 As shown, the computing device includes: physical memory 21 available to the operating system, target physical memory 22, driver 23 and hard disk 24. When the BIOS is started, the target identifier 25 is read from the CMOS by the BIOS, and the target identifier 25 is used to indicate whether the BIOS needs to reserve the physical memory; when the target identifier 25 indicates that the BIOS needs to reserve the physical memory, the target physical memory 22 is reserved by the BIOS, and the target physical memory 22 is used to store the driver log of the driver 23; and the driver log of the driver 23 is dumped to the hard disk 24.

[0090] Please refer to Figure 3 , which shows a flowchart of a method for detecting and analyzing a computer crash provided by another exemplary embodiment of the present disclosure, and this embodiment is illustrated by using the method in a computing device. The method includes the following steps.

[0091] Step 301, start BIOS when booting up.

[0092] Step 302, the BIOS enters an initialization process and reads a target identifier. When the target identifier indicates that the BIOS needs to reserve physical memory, the target physical memory is reserved by the BIOS.

[0093] Optionally, the target identifier is read from the CMOS by the BIOS, and when the target identifier indicates that the BIOS needs to reserve the physical memory, the target physical memory is reserved by the BIOS, and other physical memories except the target physical memory are submitted to the kernel of the operating system. When the target identifier indicates that the BIOS does not need to reserve the physical memory, all the physical memories are submitted to the kernel of the operating system by the BIOS.

[0094] The target physical memory is used to store a target driver log, and the target driver log indicates the working state of the target driver before the crash.

[0095] Step 303: After the operating system is initialized, the target driver is loaded.

[0096] Step 304: When the target driver queries that the BIOS has a reserved target physical memory, the target physical memory is obtained and mapped.

[0097] When it is found that the BIOS has a reserved target physical memory, the target physical memory reserved in the BIOS is obtained, the target physical memory is mapped to the virtual address space, and then the target drive log is detected in the target physical memory. When it is found that the BIOS does not have a reserved target physical memory, the initialization continues to complete the boot process.

[0098] Step 305: When it is detected that the target drive log exists in the target physical memory, the target drive log is dumped to the hard disk.

[0099] When it is detected that the target drive log exists in the target physical memory, the target drive log is dumped to the hard disk. When it is detected that the target drive log does not exist in the target physical memory, the initialization continues to complete the boot process.

[0100] Step 306: extract the target drive log from the hard disk and perform detection and analysis.

[0101] Step 307: When the system enters a normal working state, the target driver log is redirected to the target physical memory reserved by the BIOS.

[0102] Step 308, when the computing device freezes and restarts, the BIOS power preservation operation is executed and the above step 302 is restarted.

[0103] It should be noted that the relevant details of each step in this embodiment can be referred to the relevant description in the above embodiment, and will not be repeated here.

[0104] In summary, the embodiment of the present disclosure provides a function of reserving a target physical memory through BIOS. When the BIOS is started at power-on, in response to a memory reservation indication, the target physical memory can be reserved through the BIOS. The target physical memory is used to store a target driver log, thereby dumping the target driver log to a hard disk, so that the target driver log can be subsequently extracted from the hard disk for detection and analysis, thereby avoiding the need to use a debugger to obtain the driver log in the related art. The embodiment is simple to use and ready to use, which improves the efficiency of obtaining the driver log and reduces the usage threshold and restrictions on usage scenarios. The embodiment can be used in various types of computing devices.

[0105] The following is an apparatus embodiment of the present disclosure. For parts not described in detail in the apparatus embodiment, reference may be made to the technical details disclosed in the above method embodiment.

[0106] Please refer to Figure 4 , which shows a schematic diagram of the structure of a crash detection and analysis device provided by an exemplary embodiment of the present disclosure. The crash detection and analysis device can be implemented as all or part of a computing device through software, hardware, or a combination of both. The device includes: a startup module 410, a retention module 420, and a dump module 430.

[0107] A startup module 410, used to start the BIOS when the computer is turned on;

[0108] A reservation module 420, for reserving a target physical memory through the BIOS in response to a memory reservation instruction, wherein the target physical memory is used to store a target driver log, and the target driver log indicates a working state of the target driver before the crash;

[0109] The dump module 430 is used to dump the target drive log to the hard disk.

[0110] In a possible implementation, the memory reservation indication is an indication when the target identifier indicates that the BIOS needs to reserve physical memory, and the reservation module 420 is further used to:

[0111] The target identifier is read by the BIOS, and the target identifier is used to indicate whether the BIOS needs to reserve the physical memory;

[0112] When the target identifier indicates that the BIOS needs to reserve the physical memory, the target physical memory is reserved by the BIOS.

[0113] In another possible implementation, the device further includes: a submitting module, configured to:

[0114] The first physical memory is submitted to the kernel of the operating system through the BIOS, and the first physical memory is a physical memory that does not need to be reserved.

[0115] In another possible implementation, the dump module 430 is further configured to:

[0116] After the operating system is initialized, load the target driver;

[0117] When the target driver queries that the BIOS has reserved target physical memory, it obtains the target physical memory and maps it;

[0118] When the target driver detects that the target driver log exists in the target physical memory, the target driver log is dumped to the hard disk.

[0119] In another possible implementation, the device further includes: a redirection module, configured to:

[0120] Redirect the target driver log to the target physical memory reserved by BIOS.

[0121] In another possible implementation, the device further includes: an execution module, configured to:

[0122] When a crash occurs and the system restarts, the BIOS power-saving operation is executed;

[0123] The step of reserving the target physical memory by the BIOS in response to the memory reservation instruction is restarted.

[0124] In another possible implementation, the device further includes: an extraction module, configured to:

[0125] Extract the target drive log from the hard disk and perform detection and analysis.

[0126] It should be noted that the device provided in the above embodiment only uses the division of the above-mentioned functional modules as an example to implement its functions. In practical applications, the above-mentioned functions can be assigned to different functional modules according to actual needs, that is, the content structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0127] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0128] The embodiment of the present disclosure also provides a non-volatile computer-readable storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the above method is implemented. The computer-readable storage medium can be a volatile or non-volatile computer-readable storage medium.

[0129] The embodiment of the present disclosure also proposes a computing device, comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to implement the above method when executing the instructions stored in the memory.

[0130] The embodiments of the present disclosure also provide a computer program product, including a computer-readable code, or a non-volatile computer-readable storage medium carrying the computer-readable code. When the computer-readable code runs in a processor of a computing device, the processor in the computing device executes the above method.

[0131] Figure 5 1 is a block diagram of a device 500 according to an exemplary embodiment. The device 500 is used to execute the method for detecting and analyzing a deadlock provided in the embodiment of the present disclosure. For example, the device 500 can be provided as a server or a terminal device. The server can be a server, or a server cluster composed of several servers, or a cloud computing service center. The terminal device includes a mobile terminal or a fixed terminal, such as a mobile phone, a tablet computer, a laptop computer, a desktop computer, etc.

[0132] Reference Figure 5 , the apparatus 500 includes a processing component 522, which further includes one or more processors, and a memory resource represented by a memory 532 for storing instructions, such as an application, that can be executed by the processing component 522. The application stored in the memory 532 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 522 is configured to execute the instructions to perform the above method.

[0133] The device 500 may also include a power supply component 526 configured to perform power management of the device 500, a wired or wireless network interface 550 configured to connect the device 500 to a network, and an input / output interface 558 (I / O interface). The device 500 may operate based on an operating system stored in the memory 532, such as Windows Server™, Mac OSX™, Unix™, Linux™, FreeBSD™ or the like.

[0134] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 532 including computer program instructions that can be executed by the processing component 522 of the device 500 to perform the above method.

[0135] The present disclosure may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present disclosure.

[0136] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.

[0137] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0138] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.

[0139] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.

[0140] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0141] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0142] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.

[0143] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A method for detecting and analyzing a system crash, characterized in that: The method comprises: Start the basic input and output system BIOS when booting up; In response to the memory reservation indication, the target physical memory is reserved by the BIOS, the target physical memory is used to store a target driver log, the target driver log indicates the working state of the target driver before the crash; Dumping the target drive log to a hard disk; The memory reservation indication is an indication when the target identifier indicates that the BIOS needs to reserve physical memory, and the responding to the memory reservation indication, reserving the target physical memory by the BIOS, includes: Reading the target identifier through the BIOS, where the target identifier is used to indicate whether the BIOS needs to reserve physical memory; When the target identifier indicates that the BIOS needs to reserve physical memory, the target physical memory is reserved by the BIOS.

2. The method according to claim 1, characterized in that The method further comprises: The first physical memory is submitted to the kernel of the operating system through the BIOS, and the first physical memory is the physical memory that does not need to be reserved.

3. The method according to claim 1, characterized in that The step of dumping the target drive log to the hard disk includes: After the operating system is initialized, the target driver is loaded; When the target driver queries that the BIOS has the reserved target physical memory, the target physical memory is acquired and mapped; When the target driver detects that the target driver log exists in the target physical memory, the target driver log is dumped to the hard disk.

4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: The target drive log is redirected to the target physical memory reserved by the BIOS.

5. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: When a crash occurs and the system restarts, the power-saving operation of the BIOS is executed; The step of reserving the target physical memory by the BIOS in response to the memory reservation indication is restarted.

6. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: The target drive log is extracted from the hard disk and detected and analyzed.

7. A device for detecting and analyzing a system crash, characterized in that: The device comprises: The startup module is used to start the BIOS when the computer is turned on; A reservation module, for reserving a target physical memory through the BIOS in response to a memory reservation indication, wherein the target physical memory is used to store a target drive log, wherein the target drive log indicates a working state of the target drive before the crash; A dump module, used for dumping the target drive log to a hard disk; The memory reservation indication is an indication when the target identifier indicates that the BIOS needs to reserve physical memory, and the reservation module is further used to: Reading the target identifier through the BIOS, where the target identifier is used to indicate whether the BIOS needs to reserve physical memory; When the target identifier indicates that the BIOS needs to reserve physical memory, the target physical memory is reserved by the BIOS.

8. A computing device, characterized in that The computing device comprises: a processor; a memory for storing instructions executable by the processor; Wherein, the processor is configured to: Start the basic input and output system BIOS when booting up; In response to the memory reservation indication, the target physical memory is reserved by the BIOS, the target physical memory is used to store a target driver log, the target driver log indicates the working state of the target driver before the crash; Dumping the target drive log to a hard disk; The memory reservation indication is an indication when the target identifier indicates that the BIOS needs to reserve physical memory, and the responding to the memory reservation indication, reserving the target physical memory by the BIOS, includes: Reading the target identifier through the BIOS, where the target identifier is used to indicate whether the BIOS needs to reserve physical memory; When the target identifier indicates that the BIOS needs to reserve physical memory, the target physical memory is reserved by the BIOS.

9. A non-volatile computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Work log generation method, computing device and storage medium

    CN112906009A

  • Method and device for acquiring startup log and method for transmitting startup log

    CN116383012A

  • Persistent logical to virtual table

    US20200379915A1