Event recording method and electronic device

By creating virtual memory on the substrate management controller, using the allowable write instructions of bus information and event storage address, the problem that BMC cannot accurately record the microprocessor abnormal event time is solved, and efficient and accurate event recording is achieved.

CN115033283BActive Publication Date: 2025-08-19LENOVO (BEIJING) LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210744123.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-27
Publication Date
2025-08-19
Estimated Expiration
2042-06-27

AI Technical Summary

Technical Problem

In the prior art, when recording the occurrence time of microprocessor abnormal events, the substrate management controller (BMC) has the problem that the time cannot be determined in time or the need to increase the interrupt pin connection leads to high costs.

Method used

By creating virtual memory on the substrate management controller and sending allowed write instructions to the microprocessor through the virtual memory, including bus information and event storage address, to ensure that the write time of event information is the same as the occurrence time, and then translating the event information to the management interface.

Benefits of technology

It realizes accurate recording of the occurrence time of abnormal events without increasing costs, improving the real-time and efficiency of event recording.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115033283B_ABST
    Figure CN115033283B_ABST
Patent Text Reader

Abstract

The present application discloses an event recording method and electronic device. The event recording method includes: sending a write permission instruction to a microprocessor through a virtual memory; wherein the write permission instruction includes bus information corresponding to the microprocessor and an event storage address; determining that the microprocessor writes event information; wherein the write time of the event information is the same as the occurrence time of the event; and translating the event information from the virtual memory to a management interface, wherein the management interface is an interface of a baseboard management controller. The present application configures a processor to write event information to a pre-created virtual memory and translates the event information from the virtual memory to the management interface to ensure that the baseboard management controller can accurately record the occurrence time of abnormal events. At the same time, no additional cost is added, which is time-saving and efficient.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of information processing of electronic devices, and in particular to an event recording method and electronic device. Background Art

[0002] The Baseboard Management Controller (BMC) is a dedicated service processor that connects to multiple microcontrollers such as FPGAs, CPLDs, switch chips, expanders, IOCs, and PICs. If a microcontroller detects an abnormal event, the BMC must respond to the event through its interface.

[0003] In traditional technology, one method is to poll the microprocessor through the BMC so that the BMC records the abnormal event of the microprocessor after determining that an abnormal event has occurred in the microprocessor. However, the BMC polls the microprocessor in sequence, which makes it impossible to determine the occurrence time of the abnormal event in a timely manner. Another method is to notify the BMC through an interrupt signal after the microprocessor detects the abnormal event, so that the BMC actively accesses the microprocessor and records the abnormal event of the microprocessor. However, this method requires adding an interrupt pin to connect to the BMC, and the BMC must immediately access the microprocessor, resulting in high costs, and the recorded occurrence time of the abnormal event may still be inaccurate. Summary of the Invention

[0004] The purpose of the embodiments of the present application is to provide an event recording method and electronic device, which can accurately record the occurrence time of abnormal events without increasing costs.

[0005] In a first aspect, an embodiment of the present application provides an event recording method, comprising:

[0006] Sending a write permission instruction to the microprocessor through the virtual memory; wherein the write permission instruction includes bus information and event storage address corresponding to the microprocessor;

[0007] Determining that the microprocessor writes event information; wherein the writing time of the event information is the same as the occurrence time of the event;

[0008] The event information is translated from the virtual memory to a management interface, wherein the management interface is an interface of a baseboard management controller.

[0009] In a possible implementation, the event recording method further includes:

[0010] The virtual memory is created on the baseboard management controller.

[0011] In a possible implementation, before sending a write permission instruction to the microprocessor through the virtual memory, the method further includes:

[0012] Mapping the virtual memory to the memory of the baseboard management controller; or

[0013] The virtual memory is mapped to a non-volatile memory.

[0014] In a possible implementation, sending a write permission instruction to the microprocessor through the virtual memory further includes:

[0015] Acquiring the microprocessor and its corresponding bus information, and acquiring the event storage address;

[0016] A write enable instruction of the microprocessor is generated based on the bus information of the microprocessor and the event storage address.

[0017] In a possible implementation, obtaining the event storage address includes:

[0018] Based on the bus information of the microprocessor, the event storage address of the microprocessor is filtered from all events of the virtual memory.

[0019] In a possible implementation, obtaining the event storage address further includes:

[0020] Determining an offset address written by the microprocessor;

[0021] An event storage address of the microprocessor is determined based on the offset address.

[0022] In a possible implementation manner, after translating the event information from the virtual memory to the management interface, the method further includes:

[0023] The write permission instruction is again sent to the microprocessor through the virtual memory.

[0024] In a second aspect, an embodiment of the present application further provides an electronic device, including:

[0025] A sending module configured to send a write-enable instruction to the microprocessor through the virtual memory; wherein the write-enable instruction includes bus information and an event storage address corresponding to the microprocessor;

[0026] a determination module configured to determine that the microprocessor writes event information; wherein the writing time of the event information is the same as the occurrence time of the event;

[0027] The translation module is configured to translate the event information from the virtual memory to a management interface, wherein the management interface is an interface of a baseboard management controller.

[0028] In a possible implementation, the electronic device further includes a creation module configured to:

[0029] The virtual memory is created on the baseboard management controller.

[0030] In a possible implementation, after translating the event information from the virtual memory to the management interface, the sending module is further configured to:

[0031] The write permission instruction is again sent to the microprocessor through the virtual memory.

[0032] In an embodiment of the present application, a processor is configured to write event information into a pre-created virtual memory, and to translate the event information from the virtual memory to a management interface to ensure that the baseboard management controller can accurately record the time of occurrence of abnormal events without incurring additional costs, saving time and being efficient. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the technical solutions in this application or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments recorded in this application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0034] Figure 1 A flow chart of an event recording method provided by the present application is shown;

[0035] Figure 2 A flowchart showing a method for recording an event provided by the present application, wherein a write permission instruction is sent to a microprocessor via a virtual memory;

[0036] Figure 3 A schematic structural diagram of an electronic device provided by the present application is shown;

[0037] Figure 4 A schematic structural diagram of another electronic device provided in this application is shown. DETAILED DESCRIPTION

[0038] Various aspects and features of the present application are described herein with reference to the accompanying drawings.

[0039] It should be understood that various modifications may be made to the embodiments of the present application. Therefore, the above description should not be considered as limiting, but merely as an example of an embodiment. Other modifications within the scope and spirit of the present application will occur to those skilled in the art.

[0040] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the present application and, together with the general description of the present application given above and the detailed description of the embodiments given below, serve to explain the principles of the present application.

[0041] These and other characteristics of the present application will become apparent from the following description of a preferred form of embodiment given as a non-limiting example with reference to the accompanying drawings.

[0042] It should also be understood that although the present application has been described with reference to certain specific examples, those skilled in the art will be able to implement many other equivalent forms of the present application that have the features described in the claims and are therefore within the scope of protection defined thereby.

[0043] The above and other aspects, features and advantages of the present application will become more apparent from the following detailed description when taken in conjunction with the accompanying drawings.

[0044] Specific embodiments of the present application will be described hereinafter with reference to the accompanying drawings; however, it should be understood that the embodiments described are merely examples of the present application and may be implemented in a variety of ways. Familiar and / or repetitive functions and structures are not described in detail to avoid obscuring the present application with unnecessary or redundant details. Therefore, the specific structural and functional details described herein are not intended to be limiting, but rather serve merely as a basis and representative basis for the claims to teach those skilled in the art to variously utilize the present application with substantially any suitable detailed structure.

[0045] This specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," which may all refer to one or more of the same or different embodiments according to the present application.

[0046] The event recording method provided in the embodiment of the present application can accurately record the occurrence time of abnormal events without increasing costs. To facilitate understanding of the present application, an event recording method provided in the present application is first introduced in detail.

[0047] like Figure 1 As shown, it is a flowchart of the event recording method provided in an embodiment of the present application, wherein the specific steps include S101-S103.

[0048] S101, sending a write permission instruction to a microprocessor via a virtual memory; wherein the write permission instruction includes bus information and an event storage address corresponding to the microprocessor.

[0049] In a specific implementation, a virtual memory is pre-created on the baseboard management controller, which means that the virtual memory can be driven to run when the baseboard management controller is powered on. As an example, the baseboard management controller itself simulates and creates an electrically erasable programmable read-only memory (EEPROM). The EEPROM can be used as the virtual memory in the embodiment of the present application. In addition, the EEPROM is a binary file, and its storage path can be set to / var / bmc / home / vireeprom. At the same time, the I2C multiple master function is used to serve the reading and writing of information between the EEPROM and multiple microcontrollers. Therefore, the baseboard management controller does not need to actively inquire about the status of the microprocessor. The microprocessor can record events in the virtual memory on the baseboard management controller on its own, reducing resource consumption and improving the real-time performance of event recording.

[0050] In a specific implementation, since the virtual memory is connected to multiple microprocessors through a bus, and each bus is connected to only one microprocessor, the write permission instruction in the embodiment of the present application includes the bus information and event storage address corresponding to the microprocessor, so as to determine whether the microprocessor can write the event and its event storage address; accordingly, after the microprocessor writes the event to the virtual memory through the bus, the baseboard management controller can determine the microprocessor that sent the event based on the transmitted bus.

[0051] Optionally, Figure 2 A flow chart of a method for sending a write-enable instruction to a microprocessor via a virtual memory is shown, wherein the specific steps include S201 and S202.

[0052] S201, obtaining information about a microprocessor and its corresponding bus, and obtaining an event storage address.

[0053] S202: Generate a write permission instruction of the microprocessor based on the bus information of the microprocessor and the event storage address.

[0054] In a specific implementation, when obtaining the microprocessor and its corresponding bus information, the correspondence between the microprocessor and the bus information designed by the engineer can be directly read to determine the microprocessor and its corresponding bus information; the microprocessor and its corresponding bus information can also be determined by sending a detection signal and receiving a feedback signal returned by the microprocessor based on the detection signal, and the feedback information includes the bus information; wherein the bus information includes the bus number, bus identifier, etc., and each bus information is unique.

[0055] Furthermore, the present embodiment provides two methods for obtaining the event storage address, wherein the first method for obtaining the event storage address is:

[0056] For each microprocessor, based on the bus information of the microprocessor, the event storage address of the microprocessor is filtered from all events in the virtual memory. Considering that all events occurring in the microprocessor are written to the virtual memory, at this time, all corresponding events can be found based on the bus information of each microprocessor, that is, the events occurring in the corresponding microprocessor. From all events, the event with the shortest time interval between its write time and the current time point can be filtered out, and the storage address of this event is used as the event storage address of the microprocessor corresponding to the bus.

[0057] The second way to get the event storage address:

[0058] Each microprocessor will write an offset address. Therefore, the offset address written by the microprocessor is determined for each microprocessor, and the event storage address of the microprocessor is determined based on the offset address. For example, the event storage address of the microprocessor is obtained by adding the current storage address to the offset address.

[0059] After obtaining the microprocessor, the bus information corresponding to each microprocessor and the event storage address corresponding to each microprocessor, a write enable instruction of the microprocessor is generated based on the bus information and event storage address of the microprocessor, so as to send the corresponding write enable instruction to the microprocessor through the virtual memory.

[0060] S102, determining whether the microprocessor writes event information; wherein the writing time of the event information is the same as the occurrence time of the event.

[0061] In a specific implementation, for each microprocessor, after receiving the write-allowed instruction, the microprocessor can first verify the bus information included in the write-allowed instruction to determine whether the bus information included in the write-allowed instruction is consistent with the bus information stored in itself. If the bus information included in the write-allowed instruction is consistent with the bus information stored in itself, the event storage address included in the write-allowed instruction is stored. If the bus information included in the write-allowed instruction is inconsistent with the bus information stored in itself, a prompt message is generated and returned to the baseboard management controller so that the baseboard management controller regenerates and sends the write-allowed instruction corresponding to the microprocessor. It can also be determined whether the bus currently connected to the microprocessor meets the bus information included in the write-allowed instruction. If the bus currently connected to the microprocessor meets the bus information included in the write-allowed instruction, the event storage address included in the write-allowed instruction is stored. Similarly, if the bus currently connected to the microprocessor does not meet the bus information included in the write-allowed instruction, a prompt message is generated and returned to the baseboard management controller so that the baseboard management controller regenerates and sends the write-allowed instruction corresponding to the microprocessor.

[0062] After the microprocessor completes verification of the bus information included in the write permission instruction, it monitors whether any abnormalities occur during the system operation, such as voltage and / or current abnormalities, excessive temperature, power consumption overload, etc. It is worth noting that the conditions for determining whether an abnormality has occurred are pre-written in the firmware or settings of the microprocessor. For example, if the temperature is greater than the preset temperature, a temperature abnormality is determined.

[0063] When the microprocessor determines that an abnormality occurs in the system, the event information of the abnormal event is written into its corresponding event storage address.

[0064] The baseboard management controller monitors the virtual memory to determine whether the microprocessor has written event information; the event information is written at the same time as the event occurrence time. Of course, the microprocessor can also write all events to the virtual memory and set the event information to include not only the same event occurrence time but also the severity of the event, for example, 0 indicates that the event is in a normal state, 1 indicates that the event is in a warning state, 2 indicates that the event is in a dangerous state, etc. This embodiment of the application does not specifically limit this.

[0065] S103: Translate the event information from the virtual memory to the management interface, wherein the management interface is an interface of the baseboard management controller.

[0066] After confirming that the microprocessor has written event information, the baseboard management controller translates the event information from the virtual memory to the management interface, where the management interface is the interface of the baseboard management controller. The baseboard management controller can then directly transmit the event information to the upper layer for processing by the upper layer.

[0067] Furthermore, after the event information is translated from the virtual memory to the management interface, a write permission instruction is sent to the microprocessor again through the virtual memory so that the microprocessor can write new event information again.

[0068] As one example, after the baseboard management controller translates the event information from the virtual memory to the management interface, all event information can be stored in the baseboard management controller's own memory or non-volatile memory, etc. Therefore, after creating the virtual memory and before sending a write permission instruction to the microprocessor through the virtual memory, it is necessary to map the virtual memory with the baseboard management controller's memory; or map the virtual memory with the non-volatile memory, so that the virtual memory can be completely and accurately transferred to the baseboard management controller's own memory or non-volatile memory.

[0069] In an embodiment of the present application, a processor is configured to write event information into a pre-created virtual memory, and to translate the event information from the virtual memory to a management interface to ensure that the baseboard management controller can accurately record the time of occurrence of abnormal events without incurring additional costs, saving time and being efficient.

[0070] Based on the same inventive concept, the second aspect of this application also provides an electronic device corresponding to an event recording method. Since the principle of solving the problem by the electronic device in this application is similar to the above-mentioned event recording method of this application, the implementation of the electronic device can refer to the implementation of the method, and the repeated parts will not be repeated.

[0071] Figure 3 A schematic diagram of an electronic device provided in an embodiment of the present application is shown, specifically including:

[0072] The sending module 301 is configured to send a write permission instruction to the microprocessor through the virtual memory; wherein the write permission instruction includes bus information and event storage address corresponding to the microprocessor;

[0073] A determination module 302 is configured to determine that the microprocessor writes event information; wherein the writing time of the event information is the same as the occurrence time of the event;

[0074] The translation module 303 is configured to translate the event information from the virtual memory to a management interface, wherein the management interface is an interface of a baseboard management controller.

[0075] In yet another embodiment, the electronic device further includes a creation module 304 configured to:

[0076] The virtual memory is created on the baseboard management controller.

[0077] In yet another embodiment, the electronic device further includes a mapping module 305 configured to:

[0078] Mapping the virtual memory to the memory of the baseboard management controller; or

[0079] The virtual memory is mapped to a non-volatile memory.

[0080] In another embodiment, the sending module 301 is specifically configured as follows:

[0081] Acquiring the microprocessor and its corresponding bus information, and acquiring the event storage address;

[0082] A write enable instruction of the microprocessor is generated based on the bus information of the microprocessor and the event storage address.

[0083] In another embodiment, when the sending module 301 obtains the event storage address, it includes:

[0084] Based on the bus information of the microprocessor, the event storage address of the microprocessor is filtered from all events of the virtual memory.

[0085] In another embodiment, when the sending module 301 obtains the event storage address, it further includes:

[0086] Determining an offset address written by the microprocessor;

[0087] An event storage address of the microprocessor is determined based on the offset address.

[0088] In another embodiment, after translating the event information from the virtual memory to the management interface, the sending module 301 is further configured to:

[0089] The write permission instruction is again sent to the microprocessor through the virtual memory.

[0090] In an embodiment of the present application, a processor is configured to write event information into a pre-created virtual memory, and to translate the event information from the virtual memory to a management interface to ensure that the baseboard management controller can accurately record the time of occurrence of abnormal events without incurring additional costs, saving time and being efficient.

[0091] An embodiment of the present application provides a storage medium, which is a computer-readable medium and stores a computer program. When the computer program is executed by a processor, the method provided in any embodiment of the present application is implemented, including the following steps S11 to S13:

[0092] S11, sending a write permission instruction to the microprocessor through the virtual memory; wherein the write permission instruction includes bus information and event storage address corresponding to the microprocessor;

[0093] S12, determining that the microprocessor writes event information; wherein the writing time of the event information is the same as the occurrence time of the event;

[0094] S13: Translate the event information from the virtual memory to a management interface, wherein the management interface is an interface of a baseboard management controller.

[0095] When the computer program is executed by the processor to perform the event recording method, the processor specifically performs the following steps: creating the virtual memory on the baseboard management controller.

[0096] Before the computer program is executed by the processor and a write permission instruction is sent to the microprocessor through the virtual memory, the processor also executes the following steps: mapping the virtual memory with the memory of the baseboard management controller; or mapping the virtual memory with the non-volatile memory.

[0097] When the computer program is executed by the processor and sends a write-enable instruction to the microprocessor through the virtual memory, the processor also executes the following steps: obtaining the bus information of the microprocessor and its corresponding bus, and obtaining the event storage address; and generating a write-enable instruction for the microprocessor based on the bus information of the microprocessor and the event storage address.

[0098] When the computer program is executed by the processor to obtain the event storage address, the processor also executes the following steps: based on the bus information of the microprocessor, filtering the event storage address of the microprocessor from all events in the virtual memory.

[0099] When the computer program is executed by the processor to obtain the event storage address, the processor also executes the following steps: determining the offset address written by the microprocessor; and determining the event storage address of the microprocessor based on the offset address.

[0100] After the computer program is executed by the processor to translate the event information from the virtual memory to the management interface, the processor further executes the following steps: sending a write permission instruction to the microprocessor through the virtual memory again.

[0101] In an embodiment of the present application, a processor is configured to write event information into a pre-created virtual memory, and to translate the event information from the virtual memory to a management interface to ensure that the baseboard management controller can accurately record the time of occurrence of abnormal events without incurring additional costs, saving time and being efficient.

[0102] Optionally, in this embodiment, the above-mentioned storage medium may include, but is not limited to, various media that can store program codes, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk. Optionally, in this embodiment, the processor executes the method steps recorded in the above-mentioned embodiment according to the program code stored in the storage medium. Optionally, the specific examples in this embodiment can refer to the examples described in the above-mentioned embodiment and the optional implementation mode, and this embodiment will not be repeated here. Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present application can be implemented using a general-purpose computing device, which can be concentrated on a single computing device or distributed on a network composed of multiple computing devices. Optionally, they can be implemented using program codes executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be performed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the present application is not limited to any specific combination of hardware and software.

[0103] An embodiment of the present application provides an electronic device. The structural diagram of the electronic device can be as follows: Figure 4 As shown, the electronic device comprises at least a memory 401 and a processor 402. The memory 401 stores a computer program. The processor 402 implements the method provided by any embodiment of the present application when executing the computer program on the memory 401. For example, the steps of the electronic device computer program are as follows S21 to S23:

[0104] S21, sending a write permission instruction to the microprocessor through the virtual memory; wherein the write permission instruction includes bus information and event storage address corresponding to the microprocessor;

[0105] S22, determining that the microprocessor writes event information; wherein the writing time of the event information is the same as the occurrence time of the event;

[0106] S23: Translate the event information from the virtual memory to a management interface, wherein the management interface is an interface of a baseboard management controller.

[0107] When executing the event recording method stored in the memory, the processor further executes the following computer program: creating the virtual memory on the baseboard management controller.

[0108] Before sending a write permission instruction stored in the execution memory to the microprocessor through the virtual memory, the processor also executes the following computer program: mapping the virtual memory with the memory of the baseboard management controller; or mapping the virtual memory with the non-volatile memory.

[0109] When the processor sends a write-enable instruction to the microprocessor through the virtual memory stored in the execution memory, it also executes the following computer program: obtaining the bus information of the microprocessor and its corresponding bus, and obtaining the event storage address; based on the bus information of the microprocessor and the event storage address, generating a write-enable instruction for the microprocessor.

[0110] When acquiring the event storage address stored in the execution memory, the processor further executes the following computer program: based on the bus information of the microprocessor, the event storage address of the microprocessor is filtered from all events in the virtual memory.

[0111] When acquiring the event storage address stored in the execution memory, the processor further executes the following computer program: determining the offset address written by the microprocessor; and determining the event storage address of the microprocessor based on the offset address.

[0112] After translating the event information from the virtual memory to the management interface, the processor further executes the following computer program stored in the execution memory: sending a write permission instruction to the microprocessor through the virtual memory again.

[0113] In an embodiment of the present application, a processor is configured to write event information into a pre-created virtual memory, and to translate the event information from the virtual memory to a management interface to ensure that the baseboard management controller can accurately record the time of occurrence of abnormal events without incurring additional costs, saving time and being efficient.

[0114] In addition, although exemplary embodiments have been described herein, the scope includes any and all embodiments based on the present application with equivalent elements, modifications, omissions, combinations (e.g., solutions that intersect various embodiments), adaptations, or changes. The elements in the claims are to be interpreted broadly based on the language employed in the claims and are not limited to the examples described in this specification or during the prosecution of this application, which examples are to be interpreted as non-exclusive. Therefore, this specification and examples are intended to be considered as examples only, with the true scope and spirit being indicated by the following claims and the full scope of their equivalents.

[0115] The above description is intended to be illustrative and not restrictive. For example, the above examples (or one or more of their solutions) can be used in combination with each other. For example, those of ordinary skill in the art may use other embodiments when reading the above description. In addition, in the above-mentioned specific embodiments, various features can be grouped together to simplify the application. This should not be interpreted as an intention that a disclosed feature that is not required to be protected is necessary for any claim. On the contrary, the subject matter of the present application may be less than all the features of a specific disclosed embodiment. Thus, the following claims are incorporated into the specific embodiments as examples or embodiments, wherein each claim is independently a separate embodiment, and it is considered that these embodiments can be combined with each other in various combinations or arrangements. The scope of this application should be determined with reference to the appended claims and the full scope of equivalents to which these claims are entitled.

[0116] The above describes in detail several embodiments of the present application, but the present application is not limited to these specific embodiments. Those skilled in the art can make various variations and modifications to the embodiments based on the concept of the present application, and these variations and modifications should all fall within the scope of protection claimed by the present application.

Claims

1. An event recording method, comprising: Sending a write permission instruction to the microprocessor through the virtual memory; wherein the write permission instruction includes bus information and event storage address corresponding to the microprocessor; Determining that the microprocessor writes event information; wherein the writing time of the event information is the same as the occurrence time of the event; The event information is translated from the virtual memory to a management interface, wherein the management interface is an interface of a baseboard management controller.

2. The event recording method according to claim 1, further comprising: The virtual memory is created on the baseboard management controller.

3. The event recording method according to claim 1 , further comprising: before sending the write permission instruction to the microprocessor through the virtual memory; Mapping the virtual memory to the memory of the baseboard management controller; or The virtual memory is mapped to a non-volatile memory.

4. The event recording method according to claim 1, wherein the step of sending a write permission instruction to the microprocessor through the virtual memory further comprises: Acquiring the microprocessor and its corresponding bus information, and acquiring the event storage address; A write enable instruction of the microprocessor is generated based on the bus information of the microprocessor and the event storage address.

5. The event recording method according to claim 4, wherein obtaining the event storage address comprises: Based on the bus information of the microprocessor, the event storage address of the microprocessor is filtered from all events of the virtual memory.

6. The event recording method according to claim 4, wherein obtaining the event storage address further comprises: Determining an offset address written by the microprocessor; An event storage address of the microprocessor is determined based on the offset address.

7. The event recording method according to claim 1, further comprising: after translating the event information from the virtual memory to the management interface; The write permission instruction is again sent to the microprocessor through the virtual memory.

8. An electronic device comprising: A sending module configured to send a write-enable instruction to the microprocessor through the virtual memory; wherein the write-enable instruction includes bus information and an event storage address corresponding to the microprocessor; a determination module configured to determine that the microprocessor writes event information; wherein the writing time of the event information is the same as the occurrence time of the event; The translation module is configured to translate the event information from the virtual memory to a management interface, wherein the management interface is an interface of a baseboard management controller.

9. The electronic device according to claim 8, further comprising a creation module configured to: The virtual memory is created on the baseboard management controller.

10. The electronic device according to claim 8, wherein after translating the event information from the virtual memory to the management interface, the sending module is further configured to: The write permission instruction is again sent to the microprocessor through the virtual memory.

Citation Information

Patent Citations

  • Event processing method and server thereof

    CN102347851A

  • Tiered data storage system with data management and method of operation thereof

    CN103348331A