A blue screen callback method, device, equipment and computer readable storage medium
By obtaining the blue screen callback request instruction in the diskless system and calling the preset driver to extract the blue screen linked list structure, the problem of the blue screen callback not being triggered in the diskless system is solved, the accurate callback of the blue screen information and the stability of the linked list are realized, ensuring Efficient data recovery and analysis when blue screens occur.
Patent Information
- Application Number
- CN202111043294.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-07
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2041-09-07
AI Technical Summary
In a diskless system, the blue screen callback cannot be triggered after the system blue screen, causing the network dump process to fail. It is difficult for R&D to locate the specific cause of the blue screen. This is mainly due to the damage of the blue screen linked list or driver registration issues.
By obtaining the callback request instruction of the diskless system after the blue screen, calling the preset blue screen processing driver, extracting and writing the blue screen linked list structure to refresh and restore the blue screen callback linked list, ensuring that the blue screen information callback is performed as soon as possible.
It realizes accurate blue screen callback in diskless systems, improves the stability and reliability of blue screen callback, and ensures that when a blue screen occurs, linked list repair and data callback can be carried out immediately to avoid data tampering.
Smart Images

Figure CN113778870B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of diskless systems, and in particular to a blue screen callback method, a blue screen callback device, a blue screen callback equipment and a computer-readable storage medium. Background Art
[0002] With the development of computer science, computer performance is also constantly improving. Game and video rendering and editing is an important application scenario of computers. These games and rendering and editing software can render realistic pictures, giving players an excellent gaming experience. But at the same time, these games and rendering and editing software generally have high requirements for computer performance. Many players cannot experience the above games and software due to the limitations of low-end devices, and buying a computer that can run the above games and rendering and editing software smoothly will be a considerable expense, so a large number of players can only give up. The emergence of cloud computers has solved the above problems very well.
[0003] Cloud PC is a new type of cloud host that has emerged with the development of network technology and cloud computing technology. In the cloud PC mode, all games and rendering and editing programs are run on the cloud host provided by the cloud game service provider. The cloud host is responsible for rendering the game screen and video content using its high-performance CPU and GPU. The video streaming program will compress the screen displayed by the cloud host and then transmit it to the user through the network. In this way, users only need to have a device with basic video decompression capabilities to smoothly experience various games that require high-performance hardware, and can also happily and efficiently perform video editing and rendering operations. Of course, they can also perform almost all computer operations, just like the local system. The only difference is that everything is faster and more efficient.
[0004] As a cloud computer provider, cloud hosts can be fully controlled by users, and even various applications and drivers can be installed on them, which greatly increases the instability of the system and the probability of system blue screen. Since cloud hosts work without disks, it is impossible to use the blue screen dump method that comes with Windows to retain the information at the blue screen site after the blue screen occurs. However, engineers need to use the blue screen dump information to analyze the specific cause of the blue screen in order to optimize the subsequent system and drivers, improve the user experience, and provide continuous and stable services.
[0005] In actual practice, we need to register a callback for the blue screen. When the system blue screens, we save the dump data information in the callback to the pre-applied memory cache and send the relevant information to the server through the network packet. However, in some cases, the blue screen callback is not triggered after the system blue screens, causing the entire network dump process to fail, making it difficult for R&D to locate the specific cause of the blue screen. The reason why most blue screen callbacks are not triggered is that the system's blue screen linked list is damaged or there is a problem with the blue screen callback processing registered after our driver, resulting in the blue screen callback of our driver not being triggered. Therefore, how to provide a blue screen callback solution for diskless environments is a problem that technicians in this field continue to solve. Summary of the invention
[0006] The purpose of the present invention is to provide a blue screen callback method, which can ensure accurate blue screen callback of a diskless system; the present invention also provides a blue screen callback device, a blue screen callback equipment and a computer-readable storage medium, which can ensure accurate blue screen callback of a diskless system.
[0007] In order to solve the above technical problems, the present invention provides a blue screen callback method, comprising:
[0008] Get the callback request instruction sent by the diskless system after a blue screen occurs;
[0009] Calling a preset blue screen processing driver according to the callback request instruction to extract a pre-saved blue screen linked list structure;
[0010] Writing the blue screen linked list structure into the blue screen linked list header to refresh the blue screen callback linked list;
[0011] The blue screen information is called back according to the refreshed blue screen callback linked list.
[0012] Optionally, before obtaining the callback request instruction sent by the diskless system after a blue screen occurs, the method further includes:
[0013] Loading a blue screen processing driver into the memory of the diskless system;
[0014] The calling of a preset blue screen processing driver according to the callback request instruction and extracting a pre-saved blue screen linked list structure comprises:
[0015] Calling a driver entry point of the blue screen processing driver according to the callback request instruction;
[0016] A pre-saved blue screen linked list structure is extracted in the driver entry point.
[0017] Optionally, before obtaining the callback request instruction sent by the diskless system after a blue screen occurs, the method further includes:
[0018] The kernel driver linked list in the diskless system is traversed to query the blue screen processing driver from the kernel driver linked list.
[0019] Optionally, after traversing the kernel driver linked list in the diskless system to query the blue screen processing driver from the kernel driver linked list, the method further includes:
[0020] Parsing a global variable from a loading base address of the blue screen processing driver as the blue screen linked list structure;
[0021] The blue screen linked list structure is saved to the blue screen processing driver.
[0022] The present invention also provides a blue screen callback device, comprising:
[0023] The instruction acquisition module is used to acquire the callback request instruction sent by the diskless system after a blue screen occurs;
[0024] An extraction module, used to call a preset blue screen processing driver according to the callback request instruction, and extract a pre-saved blue screen linked list structure;
[0025] A refresh module, used for writing the blue screen linked list structure into the blue screen linked list header to refresh the blue screen callback linked list;
[0026] The callback module is used to call back the blue screen information according to the refreshed blue screen callback linked list.
[0027] Optionally, also include:
[0028] A loading module, used for loading a blue screen processing driver into the memory of the diskless system;
[0029] The extraction module comprises:
[0030] A calling unit, configured to call a driver entry point of the blue screen processing driver according to the callback request instruction;
[0031] The extraction unit is used to extract the pre-saved blue screen linked list structure in the driver entry point.
[0032] Optionally, also include:
[0033] The query module is used to traverse the kernel driver linked list in the diskless system to query the blue screen processing driver from the kernel driver linked list.
[0034] Optionally, also include:
[0035] A parsing module, used for parsing a global variable from a loading base address of the blue screen processing driver as the blue screen linked list structure;
[0036] A saving module is used to save the blue screen linked list structure to the blue screen processing driver.
[0037] The present invention also provides a blue screen callback device, the device comprising:
[0038] Memory: used to store computer programs;
[0039] Processor: used to implement the steps of the blue screen callback method as described in any one of the above items when executing the computer program.
[0040] The present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the blue screen callback method as described in any one of the above items are implemented.
[0041] A blue screen callback method provided by the present invention comprises obtaining a callback request instruction sent by a diskless system after a blue screen occurs; calling a preset blue screen processing driver according to the callback request instruction to extract a pre-saved blue screen linked list structure; writing the blue screen linked list structure into a blue screen linked list header to refresh the blue screen callback linked list; and calling back the blue screen information according to the refreshed blue screen callback linked list.
[0042] By directly driving the preset blue screen processing driver according to the callback request instruction sent by the diskless system when a blue screen occurs, and extracting the pre-stored blue screen linked list structure through the blue screen processing driver, it can be ensured that the blue screen processing driver is driven at the first time when the blue screen occurs, and the blue screen callback linked list is refreshed at the first time through the extracted blue screen linked list structure, thereby ensuring the availability of the blue screen callback linked list at the first time, and clearing the blue screen callback process of other software at the same time, so that this blue screen callback has high stability, and ensures the accurate blue screen callback of the diskless system.
[0043] The present invention also provides a blue screen callback device, a blue screen callback equipment and a computer-readable storage medium, which also have the above-mentioned beneficial effects and will not be described in detail here. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0045] Figure 1 A flowchart of a blue screen callback method provided by an embodiment of the present invention;
[0046] Figure 2A flowchart of a specific blue screen callback method provided by an embodiment of the present invention;
[0047] Figure 3 A structural block diagram of a blue screen callback device provided by an embodiment of the present invention;
[0048] Figure 4 The present invention provides a structural block diagram of a blue screen callback device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0049] The core of the present invention is to provide a blue screen callback method. In the prior art, the blue screen callback is not triggered after the system blue screen, resulting in the failure of the entire network dump process, so that it is difficult for research and development to locate the specific cause of the blue screen. Most of the reasons why the blue screen callback is not triggered are because the system's blue screen callback linked list is damaged or there is a problem with the blue screen callback processing registered after our driver, resulting in the blue screen callback of our driver not being triggered.
[0050] The blue screen callback method provided by the present invention includes obtaining a callback request instruction sent by a diskless system after a blue screen occurs; calling a preset blue screen processing driver according to the callback request instruction to extract a pre-saved blue screen linked list structure; writing the blue screen linked list structure into a blue screen linked list header to refresh the blue screen callback linked list; and calling back the blue screen information according to the refreshed blue screen callback linked list.
[0051] By directly driving the preset blue screen processing driver according to the callback request instruction sent by the diskless system when a blue screen occurs, and extracting the pre-stored blue screen linked list structure through the blue screen processing driver, it can be ensured that the blue screen processing driver is driven at the first time when the blue screen occurs, and the blue screen callback linked list is refreshed at the first time through the extracted blue screen linked list structure, thereby ensuring the availability of the blue screen callback linked list at the first time, and clearing the blue screen callback process of other software at the same time, so that this blue screen callback has high stability, and ensures the accurate blue screen callback of the diskless system.
[0052] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0053] Please refer to Figure 1 , Figure 1 The present invention provides a flowchart of a blue screen callback method.
[0054] See also Figure 1In an embodiment of the present invention, the blue screen callback method includes:
[0055] S101: Acquire a callback request instruction sent by the diskless system after a blue screen occurs.
[0056] In an embodiment of the present invention, during the restart process after the blue screen, the diskless system of the cloud host will first send a callback request instruction to call back the blue screen information. Specifically, when the diskless system of the cloud host is started, during the process of its C disk, that is, the system disk, outputting the disk through the network, the diskless system will actively request the IOCTL_SCSI_GET_DUMP_POI-NTERS device control code of the IRP_MJ_DEVICE_CONTROL type to the diskless driver vdiskbus64.sys to obtain the blue screen processing port driver called by the system initialization when the system blue screen occurs, so as to finally obtain the information generated when the blue screen occurs. The above-mentioned IRP_MJ_DEVICE_CONTROL type is specifically a request method defined by the Windows system, and IOCTL_SCSI_GET_DUMP_POINTERS is a request for obtaining the dump driver defined by the Windows system, that is, the callback request instruction in this step. The above-mentioned call request is requested by crashdmp.sys provided by Windows and performs subsequent processing.
[0057] In this step, the callback request instruction sent by the diskless system in the cloud host after the blue screen is obtained in order to execute the subsequent steps. It should be noted that before this step, the blue screen callback needs to be registered, that is, the corresponding information is added to the blue screen callback list, so as to implement the blue screen callback function in the subsequent steps.
[0058] S102: calling a preset blue screen processing driver according to the callback request instruction, and extracting a pre-saved blue screen linked list structure.
[0059] In the embodiment of the present invention, the blue screen processing driver used in this step is first pre-loaded into the kernel of the diskless system, so that the blue screen processing driver is called in this step.
[0060] In this step, the blue screen processing driver pre-loaded in the diskless system kernel will be called according to the callback request instruction. When calling the blue screen processing driver, the pre-saved blue screen linked list structure will be extracted first. The blue screen linked list structure can be understood as the specific content in the blue screen callback linked list, and the blue screen linked list structure is usually specifically stored in the blue screen processing driver. Usually, in the embodiment of the present invention, a blue screen linked list header is also stored, so that the blue screen callback linked list can be refreshed in subsequent steps according to the blue screen linked list header and the blue screen linked list structure extracted in this step.
[0061] It should be noted that, since in this step the preset blue screen processing driver is directly called according to the callback request instruction, it can be ensured that the blue screen callback list is repaired through subsequent steps as soon as possible after the blue screen, thereby ensuring the normal execution of subsequent blue screen callbacks.
[0062] S103: Writing the blue screen linked list structure into the blue screen linked list header to refresh the blue screen callback linked list.
[0063] In this step, the blue screen linked list structure extracted in the above S102 will be rewritten into the blue screen linked list header to complete the refresh of the blue screen callback linked list. It should be noted that, since the blue screen linked list structure will be rewritten into the blue screen linked list header in this step, the previously stored content in the blue screen callback linked list will be replaced, that is, the content originally written in the blue screen callback linked list will be deleted. At this time, most of the callbacks registered after saving the blue screen linked list structure can be removed, so that the stability of the entire blue screen callback process is greatly guaranteed. It should be noted that, in combination with the above S102 and S103, it can be ensured that a blue screen callback method provided in an embodiment of the present invention will be called first, and the data obtained must be the original and correct data, avoiding possible data tampering in the middle.
[0064] It should be noted that the above-mentioned repaired blue screen callback linked list only has the information corresponding to the blue screen information callback to be performed in the following S104, so as to ensure that the following S104 can accurately perform the callback of the blue screen information.
[0065] S104: Call back the blue screen information according to the refreshed blue screen callback list.
[0066] In this step, the blue screen information is called back according to the refreshed blue screen callback list to ensure that the above S103 can complete the repair of the blue screen callback list before the blue screen information is called back, thereby ensuring the normal execution of the blue screen callback in this step. The specific content of calling back the blue screen information according to the blue screen callback list can refer to the existing technology and will not be repeated here.
[0067] A blue screen callback method provided by an embodiment of the present invention includes obtaining a callback request instruction sent by a diskless system after a blue screen occurs; calling a preset blue screen processing driver according to the callback request instruction to extract a pre-saved blue screen linked list structure; writing the blue screen linked list structure into a blue screen linked list header to refresh the blue screen callback linked list; and calling back the blue screen information according to the refreshed blue screen callback linked list.
[0068] By directly driving the preset blue screen processing driver according to the callback request instruction sent by the diskless system when a blue screen occurs, and extracting the pre-stored blue screen linked list structure through the blue screen processing driver, it can be ensured that the blue screen processing driver is driven at the first time when the blue screen occurs, and the blue screen callback linked list is refreshed at the first time through the extracted blue screen linked list structure, thereby ensuring the availability of the blue screen callback linked list at the first time, and clearing the blue screen callback process of other software at the same time, so that this blue screen callback has high stability, and ensures the accurate blue screen callback of the diskless system.
[0069] The specific content of a blue screen callback method provided by an embodiment of the present invention will be described in detail in the following invention embodiments.
[0070] Please refer to Figure 2 , Figure 2 The present invention provides a flowchart of a specific blue screen callback method.
[0071] See also Figure 2 In an embodiment of the present invention, the blue screen callback method includes:
[0072] S201: Loading a blue screen processing driver into the memory of the diskless system.
[0073] In this step, the blue screen processing driver is pre-loaded into the kernel of the diskless system, usually into the memory of the diskless system, so that the blue screen processing driver can be called in subsequent steps.
[0074] Specifically, since the above callback request instruction is specifically requested by crashdmp.sys provided by Windows and performs subsequent processing, when the crashdmp driver obtains the port driver for blue screen processing that needs to be loaded through IOCTL_SCSI_GET_DUMP_POINTERS, the driver obtained at this time is specifically the vdiskbusdump.sys driver provided to the system by our vdiskbus64 driver, that is, the blue screen processing driver. The above crashdmp driver will actively load the blue screen processing driver mapping into the system kernel, and specifically load the blue screen processing driver into the memory of the diskless system so that it can be called when a blue screen is actually encountered. Generally speaking, as long as the blue screen related settings are not actively adjusted later, such as but not limited to: paging file settings, blue screen file storage directory, etc., the blue screen processing stack for processing the blue screen callback function in the above diskless system in the embodiment of the present invention has been completed.
[0075] S202: Traverse the kernel driver linked list in the diskless system to query the blue screen processing driver from the kernel driver linked list.
[0076] In actual situations, after the blue screen stack of S201 is constructed, in order to ensure that the subsequent blue screen callback of the embodiment of the present invention can be processed first when a blue screen occurs and to meet certain call requirements, in the embodiment of the present invention, it is necessary to notify the vdiskbusdump driver from the vdiskbus64 driver of the blue screen callback linked list related data, that is, the blue screen linked list structure. The above-mentioned blue screen linked list structure can ensure that the original data can be used to repair the blue screen callback table data after the blue screen occurs, and clean up the blue screen callback processing program registered after saving the above-mentioned blue screen linked list structure, so as to ensure that the blue screen callback processing joint debugging is simple and accessible.
[0077] In order to realize the above functions, in this step, it is first necessary to ensure that the above blue screen stack has been normally constructed in the diskless system kernel. Therefore, in this step, the kernel driver linked list is traversed to check whether the above blue screen processing driver can be queried from the kernel driver linked list. When the above blue screen processing driver can be queried from the kernel driver linked list, it means that the above blue screen stack has been normally constructed in the diskless system kernel, and the subsequent process can be continued.
[0078] Specifically, in this step, when the dump_vdiskbusdump.sys driver is traversed, it can be considered that the diskless system has built a blue screen stack. It should be noted that the name traversed at this time is different from the name registered with the diskless system above, because the crashdump driver will add the dump_ prefix in front of the driver name to indicate that the related driver is used for blue screen processing logic.
[0079] It should be noted that before this step, the blue screen callback needs to be registered, that is, the corresponding information is added to the blue screen callback list, so that after the Lang Ping callback list is refreshed in the subsequent steps, the blue screen callback function can still be implemented.
[0080] S203: Parse the global variable from the loading base address of the blue screen processing driver as a blue screen linked list structure.
[0081] In this step, the loading base address of the dump_vdiskbusdump.sys driver can be actively obtained, and its PE (Portable Executable) file is parsed to obtain the g_dumpVars global variable. In this step, the global variable is specifically used as the above-mentioned blue screen linked list structure.
[0082] S204: Save the blue screen linked list structure to the blue screen processing driver.
[0083] Specifically, the above-mentioned global variables are global variables exported by the dump_vdiskbusdump driver during the code writing process. After obtaining the global variables, we usually save the blue screen list header and the global variables, that is, the blue screen list structure. These two pieces of data are used to repair the blue screen callback list in the dump_vdiskbudump driver. Usually, in this step, the blue screen list structure and the blue screen list header are specifically saved to the blue screen processing driver for easy calling. The above data comes from the internal parameters returned after our system API (Application Programming Interface) calls KeRegisterBugCheckReasonCallback. The above-mentioned KeRegisterBugCheckReasonCallback is the system call function for the aforementioned registration of the blue screen callback. After successful registration, the function will insert the relevant blue screen callback into the blue screen callback list.
[0084] S205: Acquire a callback request instruction sent by the diskless system after a blue screen occurs.
[0085] This step is basically the same as S101 in the above-mentioned embodiment of the invention. Please refer to the above-mentioned embodiment of the invention for details, and will not be described again here.
[0086] S206: Calling a driver entry point of the blue screen processing driver according to the callback request instruction.
[0087] When a blue screen occurs, the dump_vdiskbusdump driver registered and loaded into the diskless system, that is, the blue screen processing driver, will be called. Because the driver was only loaded into the memory by the system before, and even the DriverEntry call was not performed, the DriverEntry driver entry point of the driver will be called at this time in this step.
[0088] S207: Extracting a pre-saved blue screen linked list structure in the driver entry point.
[0089] In the driver entry point, this step will take out the data in g_dumpVars, that is, take out the pre-saved blue screen linked list structure, so as to repair the blue screen callback linked list in the subsequent steps.
[0090] S208: Writing the blue screen linked list structure into the blue screen linked list header to refresh the blue screen callback linked list.
[0091] S209: Call back the blue screen information according to the refreshed blue screen callback list.
[0092] The above S208 to S209 are basically the same as S103 to S104 in the above invention embodiment. Please refer to the above invention embodiment for details, which will not be repeated here.
[0093] A blue screen callback method provided by an embodiment of the present invention can achieve 100% linked list repair at the first time of the blue screen, that is, when the callback process is not executed, without the possibility of timing and probability failure; at the same time, most of the callbacks registered after us are removed, so that the stability of the entire blue screen callback process is greatly guaranteed; it ensures that we will be the first to be called and the original and correct data obtained must be avoided to avoid possible data tampering in the middle.
[0094] A blue screen callback device provided by an embodiment of the present invention is introduced below. The blue screen callback device described below and the blue screen callback method described above can be referred to each other.
[0095] Please refer to Figure 3 , Figure 3 This is a structural block diagram of a blue screen callback device provided by an embodiment of the present invention. Figure 3 , the blue screen callback device may include:
[0096] The instruction acquisition module 100 is used to acquire the callback request instruction sent by the diskless system after a blue screen occurs.
[0097] The extraction module 200 is used to call the preset blue screen processing driver according to the callback request instruction and extract the pre-saved blue screen linked list structure.
[0098] The refresh module 300 is used to write the blue screen linked list structure into the blue screen linked list header to refresh the blue screen callback linked list.
[0099] The callback module 400 is used to call back the blue screen information according to the refreshed blue screen callback list.
[0100] Preferably, in the embodiment of the present invention, it also includes:
[0101] A loading module, used for loading a blue screen processing driver into the memory of the diskless system;
[0102] The extraction module comprises:
[0103] A calling unit, configured to call a driver entry point of the blue screen processing driver according to the callback request instruction;
[0104] The extraction unit is used to extract the pre-saved blue screen linked list structure in the driver entry point.
[0105] Preferably, in the embodiment of the present invention, it also includes:
[0106] The query module is used to traverse the kernel driver linked list in the diskless system to query the blue screen processing driver from the kernel driver linked list.
[0107] Preferably, in the embodiment of the present invention, it also includes:
[0108] A parsing module, used for parsing a global variable from a loading base address of the blue screen processing driver as the blue screen linked list structure;
[0109] A saving module is used to save the blue screen linked list structure to the blue screen processing driver.
[0110] The blue screen callback device of this embodiment is used to implement the aforementioned blue screen callback method. Therefore, the specific implementation method of the blue screen callback device can be seen in the embodiment part of the blue screen callback method in the previous text. For example, the instruction acquisition module 100, the extraction module 200, the refresh module 300, and the callback module 400 are respectively used to implement steps S101 to S104 in the above-mentioned blue screen callback method. Therefore, its specific implementation method can refer to the description of the corresponding embodiments of each part, which will not be repeated here.
[0111] A blue screen callback device provided by an embodiment of the present invention is introduced below. The blue screen callback device described below and the blue screen callback method and blue screen callback device described above can be referenced to each other.
[0112] Please refer to Figure 4 , Figure 4 The present invention provides a structural block diagram of a blue screen callback device according to an embodiment of the present invention.
[0113] Reference Figure 4 , the blue screen callback device may include a processor 11 and a memory 12.
[0114] The memory 12 is used to store computer programs; the processor 11 is used to implement the specific content of the blue screen callback method described in the above-mentioned embodiment of the invention when executing the computer program.
[0115] The processor 11 in the blue screen callback device of this embodiment is used to install the blue screen callback device described in the above invention embodiments, and the processor 11 combined with the memory 12 can implement the blue screen callback method described in any of the above invention embodiments. Therefore, the specific implementation of the blue screen callback device can be seen in the embodiment of the blue screen callback method in the above text, and its specific implementation can refer to the description of the corresponding embodiments of each part, which will not be repeated here.
[0116] The present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, a blue screen callback method described in any of the above-mentioned embodiments of the invention is implemented. The rest of the content can refer to the prior art and will not be described in detail here.
[0117] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0118] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0119] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0120] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0121] The above is a detailed introduction to a blue screen callback method, a blue screen callback device, a blue screen callback equipment and a computer-readable storage medium provided by the present invention. This article uses specific examples to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, the present invention can also be improved and modified, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.
Claims
1. A blue screen callback method, It is characterized in that include: Obtaining a callback request instruction sent by the diskless system after a blue screen occurs; the callback request instruction is a device control code IOCTL_SCSI_GET_DUMP_POINTERS; Calling a preset blue screen processing driver according to the callback request instruction, extracting a pre-saved blue screen linked list structure and a blue screen linked list header; the blue screen linked list structure is the specific content in the blue screen callback linked list, and the blue screen linked list structure is stored in the blue screen processing driver; Writing the blue screen linked list structure into the blue screen linked list header to refresh the blue screen callback linked list and clear the blue screen callback process of other software; Calling back the blue screen information according to the refreshed blue screen callback linked list; Calling a preset blue screen processing driver according to the callback request instruction includes: According to the callback request instruction, a blue screen processing port driver called during system initialization when the system blue screen occurs is obtained.
2. The method according to claim 1, It is characterized in that Before obtaining the callback request instruction sent by the diskless system after a blue screen occurs, the method further includes: Loading a blue screen processing driver into the memory of the diskless system; The calling of a preset blue screen processing driver according to the callback request instruction and extracting a pre-saved blue screen linked list structure comprises: Calling a driver entry point of the blue screen processing driver according to the callback request instruction; A pre-saved blue screen linked list structure is extracted in the driver entry point.
3. The method according to claim 2, It is characterized in that Before obtaining the callback request instruction sent by the diskless system after a blue screen occurs, the method further includes: The kernel driver linked list in the diskless system is traversed to query the blue screen processing driver from the kernel driver linked list.
4. The method according to claim 3, It is characterized in that After traversing the kernel driver linked list in the diskless system to query the blue screen processing driver from the kernel driver linked list, the method further includes: Parsing a global variable from a loading base address of the blue screen processing driver as the blue screen linked list structure; The blue screen linked list structure is saved to the blue screen processing driver.
5. A blue screen callback device, It is characterized in that include: The instruction acquisition module is used to acquire the callback request instruction sent by the diskless system after a blue screen occurs; the callback request instruction is the device control code IOCTL_SCSI_GET_DUMP_POINTERS; An extraction module, used to call a preset blue screen processing driver according to the callback request instruction, and extract a pre-saved blue screen linked list structure and a blue screen linked list header; the blue screen linked list structure is the specific content in the blue screen callback linked list, and the blue screen linked list structure is stored in the blue screen processing driver; A refresh module is used to write the blue screen linked list structure into the blue screen linked list header to refresh the blue screen callback linked list and clear the blue screen callback process of other software; A callback module, used for calling back the blue screen information according to the refreshed blue screen callback linked list; The extraction module is specifically used for: According to the callback request instruction, a blue screen processing port driver called during system initialization when the system blue screen occurs is obtained.
6. The device according to claim 5, It is characterized in that Also includes: A loading module, used for loading a blue screen processing driver into the memory of the diskless system; The extraction module comprises: A calling unit, configured to call a driver entry point of the blue screen processing driver according to the callback request instruction; The extraction unit is used to extract the pre-saved blue screen linked list structure in the driver entry point.
7. The device according to claim 6, It is characterized in that Also includes: The query module is used to traverse the kernel driver linked list in the diskless system to query the blue screen processing driver from the kernel driver linked list.
8. The device according to claim 7, It is characterized in that Also includes: A parsing module, used for parsing a global variable from a loading base address of the blue screen processing driver as the blue screen linked list structure; A saving module is used to save the blue screen linked list structure to the blue screen processing driver.
9. A blue screen callback device, It is characterized in that The device comprises: Memory: used to store computer programs; Processor: used to implement the steps of the blue screen callback method as described in any one of claims 1 to 4 when executing the computer program.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the blue screen callback method according to any one of claims 1 to 4 are implemented.
