Event processing method and device, chip, electronic equipment and storage medium
By receiving and parsing event information sent by the source subsystem at one time in the chip, and directly processing events, the problem of high interaction delay between subsystems is solved and system performance is improved.
Patent Information
- Application Number
- CN202510229073.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-27
- Publication Date
- 2025-07-25
AI Technical Summary
The information interaction between subsystems in existing chips has a high delay, which affects system performance.
By receiving event information sent at one time by the source subsystem, the event information is directly analyzed to obtain event analysis results, and event processing is performed based on the analysis results to reduce the number of interactions.
Reduces information interaction delay and improves system performance.
Smart Images

Figure CN120371561A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technologies, and in particular, to an event processing method, apparatus, chip, electronic device, and storage medium. Background Art
[0002] With the continuous progress of information technology, as the core component of an electronic device, the performance, function, and integration degree of a chip are constantly improving. Multiple complex subsystems are integrated inside a modern chip, and the event processing mechanism enables efficient transmission and processing of data between the subsystems. This mechanism ensures the rapid flow and processing of data inside the chip, thereby improving the performance of the entire system. Therefore, how to implement event processing in a chip is very important. Summary of the Invention
[0003] The present disclosure aims to solve one of the technical problems in the related art to a certain extent.
[0004] To this end, the present disclosure provides an event processing method, apparatus, chip, electronic device, and storage medium. By receiving event information sent by a source subsystem at one time and directly parsing the event information to obtain an event parsing result, for example, the event parsing result includes the event type and how the event is to be processed, etc. Furthermore, according to the event parsing result, event processing is performed on the event to be processed in the event information, which realizes obtaining the event parsing result and the event to be processed without multiple interactions with the source subsystem, reduces the number of interactions, thereby reducing the information interaction delay and improving the system performance.
[0005] An embodiment of one aspect of the present disclosure provides an event processing method, including:
[0006] In response to receiving event information sent by a source subsystem in a chip, parsing the event information to obtain an event parsing result of the event to be processed in the event information;
[0007] According to the event parsing result, performing event processing on the event to be processed.
[0008] An embodiment of another aspect of the present disclosure provides a chip, including: a source subsystem and a destination subsystem; wherein, the source subsystem is configured to send event information to the destination subsystem; the destination subsystem is configured to, in response to receiving the event information, parse the event information to obtain an event parsing result of the event to be processed in the event information, and perform event processing on the event to be processed according to the event parsing result.
[0009] An embodiment of another aspect of the present disclosure provides an event processing apparatus, including:
[0010] A parsing module, configured to parse the event information received from the source subsystem in the chip in response to the received event information, so as to obtain an event parsing result of the event to be processed in the event information;
[0011] A processing module, configured to perform event processing on the event to be processed according to the event parsing result.
[0012] Another embodiment of the present disclosure provides an electronic device, including: a processor, and a memory communicatively connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the event processing method as described in the foregoing embodiment of one aspect.
[0013] Another embodiment of the present disclosure provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, they are used to implement the event processing method as described in the foregoing embodiment of one aspect.
[0014] Another embodiment of the present disclosure provides a computer program product, on which a computer program is stored, and when the program is executed by a processor, it implements the event processing method as described in the foregoing embodiment of one aspect.
[0015] The event processing method provided by the present disclosure, in response to receiving event information sent by the source subsystem in the chip, parses the event information to obtain an event parsing result of the event to be processed in the event information; according to the event parsing result, performs event processing on the event to be processed. Thus, by receiving the event information sent by the source subsystem at one time and directly parsing the event information to obtain the event parsing result, for example, the event parsing result includes the event type and how the event is to be processed, etc., and performs event processing on the event to be processed in the event information according to the event parsing result, it is realized that there is no need to interact with the source subsystem multiple times to obtain the event parsing result and the event to be processed, reducing the number of interactions, thereby reducing the information interaction delay and improving the system performance.
[0016] The additional aspects and advantages of the present disclosure will be partially given in the following description, partially become obvious from the following description, or be understood through the practice of the present disclosure. Description of the Drawings
[0017] The above and / or additional aspects and advantages of the present disclosure will become obvious and easy to understand from the following description of the embodiments in conjunction with the drawings, where:
[0018] Figure 1 A schematic diagram of the interaction between subsystems in a chip provided by the related art;
[0019] Figure 2Flow chart of an event processing method provided by an embodiment of the present disclosure;
[0020] Figure 3 Interaction schematic diagram of subsystems in a chip provided by an embodiment of the present disclosure;
[0021] Figure 4 Flow chart of another event processing method provided by an embodiment of the present disclosure;
[0022] Figure 5 Flow chart of another event processing method provided by an embodiment of the present disclosure;
[0023] Figure 6 Flow chart of another event processing method provided by an embodiment of the present disclosure;
[0024] Figure 7 Schematic diagram of the structure of a chip provided by an embodiment of the present disclosure;
[0025] Figure 8 Schematic diagram of the structure of an event processing device provided by an embodiment of the present disclosure;
[0026] Figure 9 Block diagram of an electronic device provided by an embodiment of the present disclosure. Detailed implementation manners
[0027] The embodiments of the present disclosure will be described in detail below. The examples of the embodiments are shown in the accompanying drawings, where the same or similar reference numerals denote the same or similar elements or elements with the same or similar functions from beginning to end. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to explain the present disclosure, but should not be construed as a limitation to the present disclosure.
[0028] Currently, as Figure 1 shown, in a chip (such as, a System on Chip (SoC)), a large amount of information interaction occurs between various subsystems through hardware interrupts and software paths, and the information interaction delay is relatively high. For example, in the processing method where sysA first sends an event to sysB (such as, an event interrupt), then sysB reads the event matching this processing method from sysA, sysA sends the event to sysB, and sysB processes the obtained event. Among them, the event interrupt belongs to hardwiring, and reading the event and returning the event belong to software paths. The delay of the software path is relatively large, which has a significant impact on the performance of the entire system.
[0029] In view of the above problems, the present disclosure proposes an event processing method, device, electronic device, chip, and storage medium.
[0030] The event processing method, apparatus, electronic device, chip, and storage medium according to embodiments of the present disclosure will be described below with reference to the accompanying drawings.
[0031] Figure 2 It is a schematic flowchart of an event processing method provided by an embodiment of the present disclosure.
[0032] In this embodiment, the event processing method is configured in an event processing apparatus as an example. The event processing apparatus can be applied to any electronic device with computing capabilities, so that the electronic device can execute the event processing function.
[0033] As Figure 2 shown, the event processing method may include the following steps:
[0034] Step 201, in response to receiving event information sent by a source subsystem in a chip, parse the event information to obtain an event parsing result of the event to be processed in the event information.
[0035] In order to reduce the number of interactions between subsystems in the chip, in embodiments of the present disclosure, as Figure 3 shown, the source subsystem can send the event information to the destination subsystem in the chip at one time. The event information includes the event to be processed and information associated with the event to be processed.
[0036] In order to obtain event description information associated with the event to be processed, in embodiments of the present disclosure, parse the event information to obtain an event parsing result of the event to be processed. The event parsing result includes: event type, how the event is processed, etc. For example, whether an interrupt needs to be generated, whether corresponding flag information needs to be generated, etc.
[0037] Step 202, perform event processing on the event to be processed according to the event parsing result.
[0038] Furthermore, based on the event parsing result, perform event processing on the event to be processed in the event information.
[0039] The event processing method according to embodiments of the present disclosure, in response to receiving event information sent by a source subsystem in a chip, parses the event information to obtain an event parsing result of the event to be processed in the event information; performs event processing on the event to be processed according to the event parsing result. Thus, by receiving the event information sent by the source subsystem at one time and directly parsing the event information to obtain the event parsing result, for example, the event parsing result includes the event type and how the event is processed, etc., and performing event processing on the event to be processed in the event information according to the event parsing result, it is realized that there is no need to interact with the source subsystem multiple times to obtain the event parsing result and the event to be processed, reducing the number of interactions, thereby reducing the information interaction delay and improving the system performance.
[0040] To clearly illustrate how to parse event information when receiving the event information sent by the source subsystem in the chip in the above embodiments to obtain the event parsing result of the event to be processed in the event information, the present disclosure proposes another event processing method.
[0041] Figure 4 It is a schematic flowchart of another event processing method provided by the embodiments of the present disclosure.
[0042] As Figure 4 shown, the event processing method may include the following steps:
[0043] Step 401, in response to receiving the event information sent by the source subsystem in the chip, extract the information header and the information body from the event information.
[0044] Among them, the information header is used to indicate the event description information of the event to be processed, and the information body is used to indicate the event detail information of the event to be processed.
[0045] In order to reduce the number of interactions, in the embodiments of the present disclosure, the source subsystem sends the event description information and the event detail information of the event at one time in the manner that the event information includes the information header and the information body. Among them, the information header is used to indicate the event description information of the event to be processed, and the information body is used to indicate the event detail information of the event to be processed.
[0046] Therefore, when receiving the event information sent by the source subsystem, in order to quickly identify and distinguish the description information and the detailed content of the event to be processed, the event information is extracted, and the event information is decomposed into an information header and an information body. Among them, the information header is used to indicate the event description information of the event to be processed, and the information body is used to indicate the event detail information of the event to be processed.
[0047] Step 402, store the information body in the local cache.
[0048] In order to achieve the orderly execution of data and avoid data loss caused by the inability to process data in time, in the embodiments of the present disclosure, the information body is stored in the local cache. Among them, in order to facilitate data management, the information body is stored in the local cache in the form of a queue.
[0049] Step 403, parse the information header to obtain the event parsing result of the event to be processed.
[0050] In order to reduce the total delay of event processing, in the embodiments of the present disclosure, while storing the information body in the local cache, the information header is parsed to obtain the event parsing result of the event to be processed. Among them, the event parsing result includes: the event type and how the event is processed, etc. For example, whether an interrupt needs to be generated, whether a corresponding flag information needs to be generated, etc.
[0051] Step 404: Perform event processing on the event to be processed according to the event parsing result.
[0052] In order to avoid resource consumption, in the embodiments of the present disclosure, based on the event parsing result, the event to be processed is obtained from the local cache, so as to perform event processing on the event to be processed.
[0053] For example, by parsing the information header, the priority and type of the event can be obtained, so as to determine whether the event needs to be processed immediately. For example, for low-priority or non-urgent events, the system can choose to temporarily store them in the cache and process them when the system is idle, thus avoiding unnecessary power consumption.
[0054] The event processing method of the embodiments of the present disclosure extracts an information header and an information body from the event information in response to receiving the event information sent by the source subsystem in the chip; wherein, the information header is used to indicate the event description information of the event to be processed, and the information body is used to indicate the event detail information of the event to be processed; the information body is stored in the local cache; the information header is parsed to obtain the event parsing result of the event to be processed. Thus, while parsing the information header, the information body can be asynchronously stored in the local cache. This parallel processing method reduces the total latency of event processing, improves the real-time performance of the system, optimizes resource utilization and power consumption management, and enhances the reliability and stability of the system.
[0055] To clearly illustrate how to perform event processing on the event to be processed according to the event parsing result in the above embodiments, the present disclosure proposes another event processing method.
[0056] Figure 5 It is a schematic flowchart of another event processing method provided by the embodiments of the present disclosure.
[0057] As Figure 5 shown, the event processing method may include the following steps:
[0058] Step 501: In response to receiving the event information sent by the source subsystem in the chip, extract an information header and an information body from the event information.
[0059] Wherein, the information header is used to indicate the event description information of the event to be processed, and the information body is used to indicate the event detail information of the event to be processed.
[0060] Step 502: Store the information body in the local cache.
[0061] Step 503: Parse the information header to obtain the event parsing result of the event to be processed.
[0062] Step 504: According to the event parsing result, read the information body adapted to the event parsing result from the local cache.
[0063] In order to improve the accuracy and efficiency of event processing, in the embodiments of the present disclosure, an information body adapted to the event parsing result can be obtained from the local cache.
[0064] As a possible implementation manner, an event reading instruction is generated according to the event parsing result; wherein, the event parsing result is carried in the event reading instruction; based on the event reading instruction, an information body adapted to the event parsing result is read from the local cache.
[0065] That is to say, based on the event parsing result, an event reading instruction is generated, and the event reading instruction includes the event parsing result, such as the type and source of the event, etc. Among them, the function of the event reading instruction is to guide how to read the detailed information (i.e., the information body) related to the event from the local cache. Among them, the steps for obtaining the event to be processed are as follows:
[0066] 1. Send the event reading instruction to the local cache;
[0067] In the embodiments of the present disclosure, after the event reading instruction is generated, it is sent to the local cache. By sending the event reading instruction to the cache, the local cache is instructed to prepare and provide the data related to the event.
[0068] 2. Receive the information body adapted to the event parsing result in the event reading instruction sent by the local cache.
[0069] Furthermore, after the local cache receives the event reading instruction, according to the information in the event reading instruction, the corresponding event detail information (i.e., the information body) is found and prepared.
[0070] Step 505, perform event processing based on the information body adapted to the event parsing result.
[0071] In order to improve the precision and accuracy of event processing, in the embodiments of the present disclosure, the data to be processed is extracted based on the event parsing result, avoiding unnecessary data processing.
[0072] It should be noted that different event types require different data to be processed. Therefore, according to the event parsing result, the data to be processed in the event to be processed is obtained, and event processing is performed on the data to be processed.
[0073] In the embodiments of the present disclosure, based on the event parsing result, the data to be processed is extracted from the information body adapted to the event parsing result; event processing is performed based on the data to be processed.
[0074] It should be noted that the execution processes of step 501 and step 503 can be implemented by any one of the embodiments of the present disclosure respectively. The embodiments of the present disclosure do not make any limitations in this regard and will not be elaborated further.
[0075] The event processing method according to the embodiments of the present disclosure reads, according to the event parsing result, an information body adapted to the event parsing result from the local cache; and performs event processing based on the information body adapted to the event parsing result. Thereby, the accuracy and efficiency of event processing are improved, while resource utilization is optimized, and the flexibility and maintainability of the system are enhanced.
[0076] In any embodiment of the present disclosure, as Figure 6 shown, taking the destination subsystem as the execution subject of event processing as an example, the destination subsystem mainly includes: an event receiving module, an event caching module, an event parsing module, and an event preprocessing module; wherein,
[0077] The event receiving module is configured to receive event information (including an information header and an information body) sent by the source subsystem (sysA);
[0078] The event caching module is configured to store the information body in the event information;
[0079] Event parsing: configured to parse the information header in the event information to obtain an event parsing result;
[0080] The event preprocessing module is configured to send a read event instruction (event read instruction) to the cache after receiving event parsing, the cache returns the event, and reads the data to be processed from the event, so as to implement the processing of the data to be processed.
[0081] To implement the above embodiments, the embodiments of the present disclosure also propose a chip.
[0082] Figure 7 It is a schematic structural diagram of a chip provided by the embodiments of the present disclosure.
[0083] As Figure 7 shown, the chip includes: a source subsystem 710 and a destination subsystem 720.
[0084] Wherein, the source subsystem 710 is configured to send event information to the destination subsystem; the destination subsystem 720 is configured to, in response to receiving the event information, parse the event information to obtain an event parsing result of the event to be processed in the event information, and perform event processing on the event to be processed according to the event parsing result.
[0085] It should be noted that the explanation of the event processing method executed by the destination subsystem 720 in any of the foregoing Figures 2 to 5 also applies to this chip, and its implementation principle is similar, which will not be elaborated here.
[0086] In the chip according to the embodiments of the present disclosure, the source subsystem sends event information to the destination subsystem. The target subsystem receives the event information sent by the source subsystem at one time and directly parses the event information to obtain an event parsing result. For example, the event parsing result includes the event type and how the event is to be processed, etc. Furthermore, according to the event parsing result, the event to be processed in the event information is processed, realizing that there is no need to interact with the source subsystem multiple times to obtain the event parsing result and the event to be processed, reducing the number of interactions, thereby reducing the information interaction delay and improving the system performance.
[0087] To implement the above embodiments, the embodiments of the present disclosure also propose an event processing device.
[0088] Figure 8 It is a schematic structural diagram of an event processing device provided by the embodiments of the present disclosure.
[0089] As Figure 8 shown, the event processing device 800 includes: a parsing module 810 and a processing module 820.
[0090] Among them, the parsing module 810 is configured to, in response to receiving the event information sent by the source subsystem in the chip, parse the event information to obtain an event parsing result of the event to be processed in the event information; the processing module 820 is configured to, according to the event parsing result, perform event processing on the event to be processed.
[0091] As a possible implementation manner, the parsing module 810 is configured to, in response to receiving the event information sent by the source subsystem in the chip, extract an information header and an information body from the event information; wherein, the information header is used to indicate the event description information of the event to be processed, and the information body is used to indicate the event detail information of the event to be processed; store the information body in the local cache; and parse the information header to obtain an event parsing result of the event to be processed.
[0092] As a possible implementation manner, the processing module 820 is configured to, according to the event parsing result, read the information body adapted to the event parsing result from the local cache; and perform event processing based on the information body adapted to the event parsing result.
[0093] As a possible implementation manner, the processing module 820 is configured to, according to the event parsing result, generate an event reading instruction; wherein, the event parsing result is carried in the event reading instruction; and based on the event reading instruction, read the information body adapted to the event parsing result from the local cache.
[0094] As a possible implementation manner, the processing module 820 is configured to, based on the event parsing result, extract the data to be processed from the information body adapted to the event parsing result; and perform event processing based on the data to be processed.
[0095] As a possible implementation manner, the processing module 820 is configured to send an event reading instruction to the local cache; and receive the information body adapted to the event parsing result in the event reading instruction sent by the local cache.
[0096] In the event processing device according to the embodiment of the present disclosure, in response to receiving event information sent by a source subsystem in a chip, the event information is parsed to obtain an event parsing result of the event to be processed in the event information; and according to the event parsing result, event processing is performed on the event to be processed. Thus, by receiving the event information sent by the source subsystem at one time and directly parsing the event information to obtain the event parsing result. For example, the event parsing result includes the event type and how the event is to be processed, etc., and event processing is performed on the event to be processed in the event information according to the event parsing result, which realizes that there is no need to interact with the source subsystem multiple times to obtain the event parsing result and the event to be processed, reduces the number of interactions, thereby reducing the information interaction delay and improving the system performance.
[0097] To implement the above embodiment, the present disclosure also provides an electronic device, including a processor and a memory communicatively connected to the processor; the memory stores computer-executable instructions; and the processor executes the computer-executable instructions stored in the memory to implement the event processing method as described in the foregoing method embodiment.
[0098] To implement the above embodiment, the present disclosure also provides a computer-readable storage medium storing computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the event processing method as described in the foregoing method embodiment.
[0099] To implement the above embodiment, the present disclosure also provides a computer program product having a computer program stored thereon, and when the computer program is executed by a processor, it implements the event processing method as described in the foregoing method embodiment.
[0100] Figure 9 It is a block diagram of an electronic device provided by an embodiment of the present disclosure. For example, the electronic device 900 may be a mobile phone, a computer, a digital broadcast terminal, an information transceiver device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0101] Referring to Figure 9 , the electronic device 900 may include one or more of the following components: a processing component 902, a memory 904, a power component 906, a multimedia component 908, an audio component 910, an input / output (I / O) interface 912, a sensor component 914, and a communication component 916.
[0102] The processing component 902 generally controls the overall operation of the electronic device 900, such as operations associated with display, telephone calls, data communication, camera operations, and recording operations. The processing component 902 may include one or more processors 920 to execute instructions to complete all or part of the steps of the above methods. In addition, the processing component 902 may include one or more modules to facilitate the interaction between the processing component 902 and other components. For example, the processing component 902 may include a multimedia module to facilitate the interaction between the multimedia component 908 and the processing component 902.
[0103] The memory 904 is configured to store various types of data to support the operation of the electronic device 900. Examples of such data include instructions for any application or method operating on the electronic device 900, contact data, phone book data, messages, pictures, videos, etc. The memory 904 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disks, or optical disks.
[0104] The power component 906 provides power to various components of the electronic device 900. The power component 906 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the electronic device 900.
[0105] The multimedia component 908 includes a screen that provides an output interface between the electronic device 900 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can not only sense the boundaries of touch or swipe actions, but also detect the duration and pressure associated with the touch or swipe operations. In some embodiments, the multimedia component 908 includes a front camera and / or a rear camera. When the electronic device 900 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
[0106] The audio component 910 is configured to output and / or input audio signals. For example, the audio component 910 includes a microphone (MIC) that is configured to receive external audio signals when the electronic device 900 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 904 or transmitted via the communication component 916. In some embodiments, the audio component 910 further includes a speaker for outputting audio signals.
[0107] The I / O interface 912 provides an interface between the processing component 902 and a peripheral interface module, and the peripheral interface module can be a keyboard, a click wheel, buttons, etc. These buttons can include but are not limited to: a home button, a volume button, a power button, and a lock button.
[0108] The sensor component 914 includes one or more sensors for providing status assessments of various aspects of the electronic device 900. For example, the sensor component 914 can detect the on / off state of the electronic device 900, the relative positioning of components, such as the display and keypad of the electronic device 900. The sensor component 914 can also detect a change in the position of the electronic device 900 or a component of the electronic device 900, the presence or absence of user contact with the electronic device 900, the orientation or acceleration / deceleration of the electronic device 900, and the temperature change of the electronic device 900. The sensor component 914 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component 914 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 914 can further include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0109] The communication component 916 is configured to facilitate communication between the electronic device 900 and other devices in a wired or wireless manner. The electronic device 900 can access a wireless network based on a communication standard, such as WiFi, 4G, or 5G, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 further includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0110] In an exemplary embodiment, the electronic device 900 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above method.
[0111] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 904 including instructions, and the above instructions can be executed by a processor 920 of the electronic device 900 to complete the above method. For example, the non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.
[0112] In the description of this specification, the description with reference to the terms "an embodiment", "some embodiments", "example", "specific example", or "some examples", etc. means that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present disclosure. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, without contradiction, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples.
[0113] In addition, the terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, "a plurality" means at least two, such as two, three, etc., unless otherwise specifically defined.
[0114] Any process or method description in a flowchart or described in other ways herein may be understood to represent a module, segment, or portion of code including one or more executable instructions for implementing a customized logic function or process, and the scope of the preferred embodiments of the present disclosure includes additional implementations, where the functions may be executed in a substantially simultaneous manner or in an order opposite to that shown or discussed, according to the functions involved, which should be understood by those skilled in the art to which the embodiments of the present disclosure pertain.
[0115] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a definitional sequence list of executable instructions for implementing logical functions, and can be embodied specifically in any computer-readable medium for use by an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processor, or other systems that can fetch and execute instructions from the instruction execution system, apparatus, or device), or in conjunction with these instruction execution systems, apparatus, or devices. For the purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium include the following: an electrical connection portion having one or more wirings (electronic device), a portable computer diskette (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium can even be paper or other suitable medium on which the program can be printed, because the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpretation, or otherwise processing as appropriate, and then storing it in a computer memory.
[0116] It should be understood that various parts of the present disclosure can be implemented by hardware, software, firmware, or a combination thereof. In the above-described embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or a combination of the following techniques well known in the art can be used: discrete logic circuits having logic gate circuits for implementing logical functions on data signals, application specific integrated circuits having appropriate combinational logic gate circuits, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), and the like.
[0117] Those of ordinary skill in the art of this technology can understand that all or part of the steps carried by the method of implementing the above embodiments can be completed by a program instructing relevant hardware, and the program can be stored in a computer-readable storage medium. When the program is executed, it includes one or a combination of the steps of the method embodiments.
[0118] In addition, each functional unit in various embodiments of the present disclosure may be integrated into one processing module, may exist separately as individual physical units, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. When the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0119] The above-mentioned storage medium may be a read-only memory, a magnetic disk, an optical disc, etc. Although the embodiments of the present disclosure have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limiting the present disclosure. Those of ordinary skill in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of the present disclosure.
Claims
1. An event handling method, characterized in that, including: in response to receiving event information sent by a source subsystem in a chip, parsing the event information to obtain an event parsing result of a to-be-processed event in the event information; performing event processing on the to-be-processed event according to the event parsing result.
2. The method according to claim 1, wherein The step of, in response to receiving event information sent by a source subsystem in a chip, parsing the event information to obtain an event parsing result of a to-be-processed event in the event information includes: in response to receiving event information sent by a source subsystem in a chip, extracting a message header and a message body from the event information; wherein, the message header is used to indicate event description information of the to-be-processed event, and the message body is used to indicate event detail information of the to-be-processed event; storing the message body into a local cache; parsing the message header to obtain an event parsing result of the to-be-processed event.
3. The method according to claim 2, wherein The step of performing event processing on the to-be-processed event according to the event parsing result includes: according to the event parsing result, reading a message body adapted to the event parsing result from the local cache; performing event processing based on the message body adapted to the event parsing result.
4. The method according to claim 3, characterized in that, The step of, according to the event parsing result, reading a message body adapted to the event parsing result from the local cache includes: according to the event parsing result, generating an event reading instruction; wherein, the event parsing result is carried in the event reading instruction; based on the event reading instruction, reading a message body adapted to the event parsing result from the local cache.
5. The method according to claim 3, characterized in that, The step of performing event processing based on the message body adapted to the event parsing result includes: based on the event parsing result, extracting to-be-processed data from the message body adapted to the event parsing result; performing event processing based on the to-be-processed data.
6. The method according to claim 4, characterized in that, The step of, based on the event reading instruction, reading a message body adapted to the event parsing result from the local cache includes: sending the event reading instruction to the local cache; receiving a message body adapted to the event parsing result in the event reading instruction sent by the local cache.
7. A chip, characterized in that, including: a source subsystem and a destination subsystem; wherein, the source subsystem is configured to send event information to the destination subsystem; the destination subsystem is configured to, in response to receiving the event information, parse the event information to obtain an event parsing result of a to-be-processed event in the event information, and perform event processing on the to-be-processed event according to the event parsing result.
8. An event processing device, characterized in that, including: a parsing module, configured to, in response to receiving event information sent by a source subsystem in a chip, parse the event information to obtain an event parsing result of a to-be-processed event in the event information; a processing module, configured to perform event processing on the to-be-processed event according to the event parsing result.
9. An electronic device, characterized in that, including: a processor and a memory communicatively connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1-6.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions that, when executed by a processor, are used to implement the method according to any one of claims 1-6.