CN113051096A - Processing method and device - Google Patents

Processing method and device Download PDF

Info

Publication number
CN113051096A
CN113051096A CN202110346712.9A CN202110346712A CN113051096A CN 113051096 A CN113051096 A CN 113051096A CN 202110346712 A CN202110346712 A CN 202110346712A CN 113051096 A CN113051096 A CN 113051096A
Authority
CN
China
Prior art keywords
electronic equipment
abnormal
determining
target
system resource
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110346712.9A
Other languages
Chinese (zh)
Inventor
林泽波
胡斌
杨坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202110346712.9A priority Critical patent/CN113051096A/en
Publication of CN113051096A publication Critical patent/CN113051096A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/079Root cause analysis, i.e. error or fault diagnosis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0766Error or fault reporting or storing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application discloses a processing method and a processing device, wherein log information of electronic equipment operation is obtained by responding to the determined abnormal operation of the electronic equipment, and a target component with abnormal operation in the electronic equipment is determined at least according to the log information of the electronic equipment operation and the obtained system resource allocation information.

Description

Processing method and device
Technical Field
The present application relates to the field of computer technologies, and in particular, to a processing method and apparatus.
Background
When a system of an electronic device is down, a root cause of the problem causing the down often needs to be located to perform system recovery. At present, the problem source is generally positioned in a problem recurrence and cross validation mode when the system is down, however, the problem source is difficult to be quickly positioned in the solution mode, and the problem recurrence and cross validation processes are relatively complex, so that the workload for positioning the problem source is high.
Disclosure of Invention
Therefore, the application discloses the following technical scheme:
one aspect of the present application provides a processing method, including:
responding to the abnormal operation of the electronic equipment, and obtaining log information of the operation of the electronic equipment;
and determining a target component with abnormal operation in the electronic equipment at least according to the log information of the electronic equipment operation and the obtained system resource allocation information.
Wherein, the obtaining log information of the operation of the electronic device in response to the determination that the operation of the electronic device is abnormal includes:
in response to detecting a predetermined event or level signal change triggered by a processor of the electronic equipment, acquiring log information of the operation of the electronic equipment from a corresponding register in the processor;
the processor triggers the predetermined event or the level signal change when detecting that the electronic equipment operates abnormally.
The log information of the electronic device operation is as follows: and log information generated at the abnormal operation time or the preset time period of the electronic equipment.
The method for determining the target component with abnormal operation in the electronic equipment at least according to the log information of the electronic equipment operation and the obtained system resource allocation information comprises the following steps:
determining the use state information of different system resources when being called according to the log information;
determining a target system resource with abnormal use according to the use state information when different system resources are called;
determining a target hardware component corresponding to the target system resource according to the system resource allocation information;
wherein the system resource allocation information is used for indicating the system resources allocated to each hardware component of the electronic equipment.
Wherein, when there are a plurality of target system resources with abnormal usage, the determining a target hardware component corresponding to the target system resource according to the system resource allocation information includes:
determining a first target system resource which has a dependency relationship with each target system resource in the target system resources with abnormal use, and determining a component corresponding to the first target system resource as the target hardware component according to the system resource allocation information; or the like, or, alternatively,
and determining a second target system resource recorded in the log information at first in the plurality of target system resources with abnormal use, and determining a component corresponding to the second target system resource as the target hardware component according to the system resource allocation information.
Wherein, still include:
the method comprises the steps of acquiring system resource allocation information generated by allocating system resources to each hardware component of the electronic equipment when the electronic equipment is started each time.
Before determining a target component with abnormal operation in the electronic device at least according to the log information of the electronic device operation and the obtained system resource allocation information, the method further comprises the following steps:
determining an abnormal reason of the abnormal operation of the electronic equipment according to the log information of the operation of the electronic equipment;
under the condition that the abnormality reason is hardware abnormality, triggering the step of determining a target component with abnormal operation in the electronic equipment at least according to the log information of the electronic equipment operation and the obtained system resource allocation information;
wherein the exception cause is a hardware exception or a software exception.
The determining of the abnormal reason of the abnormal operation of the electronic equipment according to the log information of the operation of the electronic equipment includes:
determining whether an internal error occurs in a processor of the electronic equipment according to log information of the electronic equipment;
if an internal error occurs, determining that the abnormal reason of the abnormal operation of the electronic equipment is the hardware abnormality;
if no internal error occurs: determining whether a machine detection error occurred with the processor;
if a machine detection error occurs, determining that the abnormal reason of the abnormal operation of the electronic equipment is software abnormity; and/or the presence of a gas in the atmosphere,
if the machine detection error does not occur, determining whether the electronic equipment is switched from a current first operation abnormal state to a second operation abnormal state, if the electronic equipment is switched to the second operation abnormal state, determining that an abnormal reason of the abnormal operation of the electronic equipment is hardware abnormity, and/or if the electronic equipment is not switched to the second operation abnormal state, determining that the abnormal reason of the abnormal operation of the electronic equipment is software abnormity;
wherein the power consumption of the electronic device in the second abnormal operation state is less than the power consumption in the first abnormal operation state.
When the abnormality is caused by hardware abnormality, before determining a target component with abnormal operation in the electronic device according to at least log information of the electronic device and the obtained system resource allocation information, the method further includes:
sequentially determining a target hardware exception type corresponding to the current hardware exception from a plurality of hardware exception types included in a hardware exception type set according to the priority order;
the method for determining the target component with abnormal operation in the electronic equipment at least according to the log information of the electronic equipment operation and the obtained system resource allocation information comprises the following steps:
and determining a target component with abnormal operation in the electronic equipment at least according to the log information in the target register determined by the target hardware abnormal type and the obtained system resource allocation information.
Another aspect of the present application provides a processing apparatus comprising:
the obtaining module is used for responding to the determination that the electronic equipment operates abnormally and obtaining log information of the electronic equipment;
and the determining module is used for determining the target component with abnormal operation in the electronic equipment at least according to the log information of the electronic equipment operation and the obtained system resource allocation information.
According to the scheme, the log information of the electronic equipment operation is obtained in response to the fact that the electronic equipment is determined to be abnormal, the target component with the abnormal operation in the electronic equipment is determined at least according to the log information of the electronic equipment operation and the obtained system resource allocation information, and the target component with the abnormal operation in the electronic equipment can be determined more quickly and accurately due to the fact that the information based on which the target component with the abnormal operation in the electronic equipment is determined is more comprehensive.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a schematic flow chart of a treatment method provided in example 1 of the present application;
FIG. 2 is a schematic flow chart of a processing method provided in embodiment 2 of the present application;
FIG. 3 is a schematic flow chart of a processing method provided in embodiment 3 of the present application;
FIG. 4 is a schematic flow chart of a processing method provided in embodiment 4 of the present application;
FIG. 5 is a schematic flow chart of a processing method provided in embodiment 5 of the present application;
FIG. 6 is a schematic flow chart of a processing method provided in embodiment 6 of the present application;
FIG. 7 is a schematic flow chart of a processing method provided in embodiment 7 of the present application;
FIG. 8 is a schematic flow chart of a processing method provided in embodiment 8 of the present application;
FIG. 9 is a schematic flow chart of a processing method provided in embodiment 9 of the present application;
FIG. 10 is a schematic flow chart of a processing method provided in example 10 of the present application;
FIG. 11 is a schematic diagram of a processing apparatus provided herein;
fig. 12 is a schematic structural diagram of an electronic device provided in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description.
Referring to fig. 1, a schematic flow chart of a processing method provided in embodiment 1 of the present application is shown, where the processing method provided in the present application may be applied to an electronic device, and the present application does not limit a product type of the electronic device, and as shown in fig. 1, the method may include, but is not limited to, the following steps:
and step S101, responding to the fact that the electronic equipment is determined to be abnormal in operation, and obtaining log information of the electronic equipment in operation.
In the running process of the electronic device, the electronic device monitors or records running data of software (such as an operating system or an application process) and hardware (such as a memory, a network card or a display card) to generate log information.
If the electronic equipment is determined to be abnormal in operation (for example, abnormal hardware operation (for example, downtime or shutdown) or abnormal software operation) in the operation process of the electronic equipment, the log information of the electronic equipment operation is obtained in response to the determination of the abnormal electronic equipment operation, wherein the log information of the electronic equipment operation at least comprises the log information of the software operation and the log information of the hardware operation of the electronic equipment.
In this embodiment, the process of obtaining the log information of the operation of the electronic device in response to determining that the electronic device is abnormal may include, but is not limited to:
s10101, in response to the detection of a predetermined event triggered by a processor of the electronic device, acquiring log information of the operation of the electronic device from a corresponding register in the processor.
The processor triggers a preset event when detecting that the electronic equipment operates abnormally. The predetermined event may be, but is not limited to: the electronic device is restarted or the software is reinstalled.
In response to determining that the electronic device is abnormally operated, another embodiment of obtaining log information of the operation of the electronic device may include:
s10102, responding to the detected level signal change triggered by the processor of the electronic equipment, and acquiring log information of the electronic equipment from a corresponding register in the processor;
when the processor detects that the electronic equipment operates abnormally, the level signal is triggered to change.
The trigger level signal changes may include, but are not limited to: triggering the CPU CatError pin to pull low.
And S102, determining a target component with abnormal operation in the electronic equipment at least according to the log information of the electronic equipment operation and the obtained system resource allocation information.
The electronic device may allocate system resources (e.g., memory resources and/or IO resources, etc.) to each hardware component, and record information related to the system resources allocated to each hardware component. The information related to the system resources to which each hardware component is assigned may include: the information of the system resource allocated to each hardware component and the corresponding relationship between the information of each hardware component and the system resource allocated to it.
Wherein the system resource allocation information may represent system resources allocated to respective hardware components of the electronic device. The system resource allocation information contains information relating to the system resources to which each hardware component is allocated.
In this embodiment, the process of determining the target component with abnormal operation in the electronic device at least according to the log information of the electronic device operation and the obtained system resource allocation information may include, but is not limited to:
s10201, determining the use state information of different system resources when called according to the log information of the electronic device.
The usage state information when the system resource is invoked may characterize the usage state when the system resource is invoked. The usage state when a system resource is called may include: a normal use state or an abnormal use state.
S10202, according to the use state information when different system resources are called, determining the target system resource with abnormal use.
And when the use state information when the system resource is called represents that the system resource is in an abnormal use state when the system resource is called, determining that the system resource is a target system resource with abnormal use.
S10203, according to the system resource allocation information, determining a target hardware component corresponding to the target system resource.
Under the condition that a plurality of abnormal target system resources are used, the target hardware component corresponding to each target system resource can be respectively determined according to the system resource allocation information, and the accuracy of positioning the hardware component causing abnormal operation is ensured.
Of course, when there are a plurality of abnormally used target system resources, a first target system resource having a dependency relationship with each target system resource among the plurality of abnormally used target system resources may be specified, and a component corresponding to the first target system resource may be specified as the target hardware component based on the system resource allocation information.
When a first system resource in the plurality of system resources has a dependency relationship with each system resource, a hardware component corresponding to the first system resource is abnormal, which may cause an abnormality in the hardware component corresponding to the system resource having the dependency relationship. Specifically, when there are a plurality of target system resources with abnormal use, a first target system resource having a dependency relationship with each target system resource among the plurality of target system resources with abnormal use may be determined, a component corresponding to the first target system resource may be determined as a target hardware component according to the system resource allocation information, an operation exception canceling operation may be performed according to the target hardware component, and an operation exception caused by a hardware component corresponding to the first target system resource may be cancelled on the basis of cancellation of the operation exception caused by the hardware component corresponding to the first target system resource, thereby improving efficiency.
In the case that there are multiple target system resources that use an exception, this embodiment further provides another implementation manner for determining a target hardware component, which may specifically be:
and when the number of the target system resources with abnormal use is multiple, determining a second target system resource which is recorded in the log information at first in the multiple target system resources with abnormal use, and determining a component corresponding to the second target system resource as a target hardware component according to the system resource allocation information.
The target system resource recorded first in the log information is generally the target system resource with the earliest abnormal use, and among the target system resources with the abnormal use, the hardware component corresponding to the target system resource except the target system resource recorded first in the log information is abnormal, and may be caused by the abnormal operation of the hardware component corresponding to the target system resource recorded first in the log information.
Specifically, hardware component information corresponding to the target system resource can be searched in the system resource allocation information, and based on the hardware component information, a target hardware component with abnormal operation in the electronic device can be determined.
Taking a network card and a video card as examples, steps S10201-S10203 are described, for example, if the electronic device allocates a first memory resource to the network card, and allocates a second memory resource to the video card, the system resource allocation information includes information of the network card and a corresponding relationship between the network card and the first memory resource, and information of the video card and a corresponding relationship between the video card and the second memory resource, and according to the log information, first usage state information when the first memory resource is called and second usage state information when the second memory resource is called are determined, and if the first usage state information represents that the first memory resource is called, the first memory resource is in an abnormal usage state, and the second usage state information represents that the second memory resource is called, the second memory resource is in a normal usage state, the network card can be determined to be a target component with abnormal operation according to the system resource allocation information.
In the method, the log information of the electronic equipment operation is obtained in response to the determination of the electronic equipment operation abnormity, the target component with abnormal operation in the electronic equipment is determined at least according to the log information of the electronic equipment operation and the obtained system resource allocation information, and the target component with abnormal operation in the electronic equipment can be determined more quickly and accurately due to the fact that the information based on which the target component with abnormal operation in the electronic equipment is determined is more comprehensive.
As another alternative embodiment of the present application, referring to fig. 2, a schematic flow chart of a processing method provided in embodiment 2 of the present application is provided, and this embodiment mainly relates to a refinement of the processing method described in embodiment 1 above, as shown in fig. 2, the method may include, but is not limited to, the following steps:
step S201, in response to determining that the electronic device is abnormally operated, obtaining log information generated in a preset time period.
The preset time period may be, but is not limited to: and the time period comprises the abnormal operation time of the electronic equipment.
During the operation of the electronic device, the software (e.g., an operating system or an application process) and the hardware (e.g., a memory, a network card or a video card) of the electronic device generate log information. When it is determined that the electronic device is abnormally operated, log information generated in a preset time period including a time when the electronic device is abnormally operated may be obtained from the log information.
Step S201 is a specific implementation manner of step S101 in example 1.
Step S202, determining a target component with abnormal operation in the electronic equipment at least according to the log information generated in the preset time period and the obtained system resource allocation information.
Determining a target component with abnormal operation in the electronic device at least according to the log information generated in the preset time period and the obtained system resource allocation information, which may include but is not limited to:
s2021, determining the use state information when the different system resources are called according to the log information generated in the preset time period.
The usage state information when the system resource is invoked may characterize the usage state when the system resource is invoked. The usage state when a system resource is called may include: a normal use state or an abnormal use state.
S2022, according to the use state information when the different system resources are called, determining the target system resource with abnormal use.
And when the use state information when the system resource is called represents that the system resource is in an abnormal use state when the system resource is called, determining that the system resource is a target system resource with abnormal use.
S2023, determining a target hardware component corresponding to the target system resource according to the system resource allocation information.
Specifically, hardware component information corresponding to the target system resource can be searched in the system resource allocation information, and based on the hardware component information, a target hardware component with abnormal operation in the electronic device can be determined.
In this embodiment, because the log information generated in the preset time period can accurately convey the abnormality occurring when the electronic device operates, in response to determining that the electronic device operates abnormally, the log information generated in the preset time period can be obtained, the log information obtaining amount is reduced, and according to the log information generated in the preset time period and the obtained system resource allocation information, the efficiency of determining the target component operating abnormally in the electronic device can be further improved on the basis of ensuring the accuracy of determining the target component operating abnormally in the electronic device.
As another alternative embodiment of the present application, referring to fig. 3, a schematic flow chart of a processing method provided in embodiment 3 of the present application is provided, and this embodiment mainly relates to a refinement of the processing method described in embodiment 1 above, as shown in fig. 3, the method may include, but is not limited to, the following steps:
step S301, responding to the fact that the electronic equipment is determined to be abnormal in operation, obtaining log information generated when the electronic equipment is abnormal in operation.
In the running process of the electronic device, software (e.g., an operating system or an application process) and hardware (e.g., a memory, a network card or a video card) of the electronic device may generate different types of log information, and may write the different types of log information into different registers. Specifically, when the electronic device is abnormally operated, the Log information generated at the time of the abnormal operation of the electronic device may be written into a register (e.g., a MCERR Source Log register) for storing the Log information generated at the time of the abnormal operation.
In this embodiment, in the case where it is determined that the electronic device is abnormally operated, the log information generated at the time of the operation abnormality of the electronic device may be obtained from a register for storing the log information generated at the time of the operation abnormality in response to the determination that the electronic device is abnormally operated.
Step S301 is a specific implementation manner of step S101 in example 1.
Step S302, determining a target component with abnormal operation in the electronic equipment at least according to the log information generated at the time when the electronic equipment has abnormal operation and the obtained system resource allocation information.
Determining a target component with abnormal operation in the electronic device at least according to log information generated at the time of the abnormal operation of the electronic device and the obtained system resource allocation information, which may include but is not limited to:
and S3021, determining the use state information when different system resources are called according to the log information generated when the electronic equipment abnormally operates.
The usage state information when the system resource is invoked may characterize the usage state when the system resource is invoked. The usage state when a system resource is called may include: a normal use state or an abnormal use state.
And S3022, determining the target system resource with abnormal use according to the use state information when the different system resources are called.
And when the use state information when the system resource is called represents that the system resource is in an abnormal use state when the system resource is called, determining that the system resource is a target system resource with abnormal use.
And S3023, determining a target hardware component corresponding to the target system resource according to the system resource allocation information.
Specifically, hardware component information corresponding to the target system resource can be searched in the system resource allocation information, and based on the hardware component information, a target hardware component with abnormal operation in the electronic device can be determined.
In this embodiment, because the log information generated at the time of the abnormal operation of the electronic device can more accurately convey the abnormality occurring when the electronic device operates, in response to determining that the electronic device operates abnormally, the log information generated at the time of the abnormal operation of the electronic device can be obtained, the log information obtaining amount can be further reduced, and according to the log information generated at the time of the abnormal operation of the electronic device and the obtained system resource allocation information, the efficiency of determining the target component that operates abnormally in the electronic device can be further improved on the basis of ensuring the accuracy of determining the target component that operates abnormally in the electronic device.
As another alternative embodiment of the present application, referring to fig. 4, a schematic flow chart of a processing method provided in embodiment 4 of the present application is provided, and this embodiment is mainly an extension of the processing method described in embodiment 1 above, as shown in fig. 4, the method may include, but is not limited to, the following steps:
step S401, when the electronic device is turned on each time, acquiring system resource allocation information generated by allocating system resources to each hardware component of the electronic device.
It should be noted that, the electronic device may adjust the system resources allocated to each hardware component of the electronic device according to needs, so that the system resource allocation information generated by allocating the system resources to each hardware component of the electronic device may be obtained when the electronic device is turned on each time, and accuracy of the obtained system resource allocation information is ensured.
S402, responding to the fact that the electronic equipment is determined to be abnormal in operation, and obtaining log information of the electronic equipment in operation;
and S403, determining a target component with abnormal operation in the electronic equipment at least according to the log information of the electronic equipment operation and the obtained system resource allocation information.
The detailed processes of steps S402-S403 can refer to the related descriptions of steps S101-S102 in embodiment 1, and are not described herein again.
In this embodiment, when the electronic device is turned on each time, the system resource allocation information generated by allocating the system resources to each hardware component of the electronic device is acquired, so that the accuracy of the acquired system resource allocation information can be ensured, and the accuracy of determining the target component which is abnormally operated in the electronic device is further improved.
As another alternative embodiment of the present application, referring to fig. 5, a schematic flow chart of a processing method provided in embodiment 5 of the present application is provided, and this embodiment is mainly an extension of the processing method described in embodiment 1 above, as shown in fig. 5, the method may include, but is not limited to, the following steps:
step S501, responding to the fact that the electronic equipment is determined to be abnormal in operation, and obtaining log information of the electronic equipment in operation.
The detailed process of step S501 can refer to the related description of step S101 in embodiment 1, and is not described herein again.
Step S502, determining whether the abnormal reason of the abnormal operation of the electronic equipment is the hardware abnormality or not according to the log information of the operation of the electronic equipment.
In this embodiment, the log information of the electronic device may include, but is not limited to: first log information containing a type of machine-detected error and second log information containing information on a location where the machine-detected error occurred.
In a case that the log information of the electronic device operation includes the first log information and the second log information, determining whether an abnormal cause of the electronic device operation abnormality is a hardware abnormality according to the log information of the electronic device operation may include:
and determining whether the abnormal reason of the abnormal operation of the electronic equipment is the hardware abnormality or not according to the first log information of the electronic equipment.
Since the first log information contains the machine detection error type, it is possible to determine whether the abnormality cause of the operation abnormality of the electronic apparatus is a hardware abnormality or a software abnormality, based on the first log information.
It can be understood that, according to the first log information of the electronic device, whether the abnormal reason of the abnormal operation of the electronic device is the hardware abnormality is determined, and compared with the determination of the abnormal reason of the abnormal operation of the electronic device according to all the log information of the operation of the electronic device, the workload of analyzing the log information can be reduced, and the efficiency of determining the abnormal reason of the abnormal operation of the electronic device can be improved.
The register for recording the second log information and the register for recording the first log information can be different, so that the storage pressure of each register is reduced, and the reading and writing speed of the first log information and the second log information is ensured.
If yes, go to step S503.
And S503, determining a target component with abnormal operation in the electronic equipment at least according to the log information of the electronic equipment operation and the obtained system resource allocation information.
The log information executed at the electronic device includes: in the case where the first log information including the type of the machine detection error and the second log information including the information on the location where the machine detection error has occurred are included, the method may include the step of determining a target component of the electronic device, which is abnormally operated, based on at least the log information on the operation of the electronic device and the obtained system resource allocation information, and the method may include the step of:
and determining a target component with abnormal operation in the electronic equipment at least according to the second log information of the electronic equipment and the obtained system resource allocation information.
Compared with the method for determining the target component with abnormal operation in the electronic equipment at least according to the log information of the electronic equipment and the obtained system resource allocation information, the method can reduce the workload of log information analysis and improve the efficiency of determining the target component with abnormal operation in the electronic equipment.
A detailed process of determining a target component with abnormal operation in the electronic device at least according to the second log information of the electronic device and the obtained system resource allocation information may still refer to the related description of step S102 in embodiment 1, and is not described herein again.
In this embodiment, whether the abnormal reason of the abnormal operation of the electronic device is the hardware abnormality is determined according to the first log information of the electronic device, and compared with determining the abnormal reason of the abnormal operation of the electronic device according to all log information of the operation of the electronic device, the workload of analyzing the log information can be reduced, the efficiency of determining the abnormal reason of the abnormal operation of the electronic device can be improved, and the efficiency of determining the target component of the abnormal operation of the electronic device can be improved. And compared with the method for determining the target component with abnormal operation in the electronic equipment at least according to the log information of the electronic equipment and the obtained system resource allocation information, the method can further reduce the workload of log information analysis and further improve the efficiency of determining the target component with abnormal operation in the electronic equipment.
As another alternative embodiment of the present application, referring to fig. 6, a schematic flow chart of a processing method provided in embodiment 6 of the present application is provided, and this embodiment mainly relates to a refinement of the processing method described in embodiment 5 above, as shown in fig. 6, the method may include, but is not limited to, the following steps:
step S601, responding to the fact that the electronic equipment is determined to be abnormal in operation, and obtaining log information of the electronic equipment in operation.
In this embodiment, the log information of the electronic device may include, but is not limited to: first log information containing a type of machine-detected error and second log information containing information on a location where the machine-detected error occurred.
The first Log information may be, but is not limited to being, recorded in a Machine-detected error (MCERR) Source Log (Source Log) register, and the second Log information may be recorded in a register other than the Machine-detected error Source Log register.
Step S602, determining whether an internal error occurs in a processor of the electronic device according to the log information of the electronic device.
In this embodiment, whether an Internal Error (IERR) occurs in a processor of the electronic device may be determined according to the first log information of the electronic device.
If yes, go to step S603; if not, go to step S605.
Step S603, determining that the abnormality cause of the abnormal operation of the electronic device is a hardware abnormality.
And step S604, determining a target component with abnormal operation in the electronic equipment at least according to the log information of the electronic equipment operation and the obtained system resource allocation information.
In this embodiment, determining a target component with abnormal operation in the electronic device at least according to the log information of the electronic device and the obtained system resource allocation information may include:
and determining a target component with abnormal operation in the electronic equipment at least according to the second log information of the electronic equipment and the obtained system resource allocation information.
Step S605 determines whether a machine detection error occurs in the processor.
On the basis that the processor of the electronic device is determined not to have the internal error in the previous step, whether the processor has the machine detection error or not can be further determined according to the first log information of the electronic device.
If yes, go to step S606.
Step S606, determining that the abnormal reason of the abnormal operation of the electronic equipment is software abnormity.
The method includes the steps of determining that an internal error does not occur in a processor of the electronic equipment according to first log information of the electronic equipment, namely determining that a non-hardware exception is an exception cause of the abnormal operation of the electronic equipment, and determining that a software exception is a cause of the abnormal operation of the electronic equipment if a machine detection error occurs in the processor according to the first log information of the electronic equipment.
Under the condition that the abnormal reason of the abnormal operation of the electronic equipment is determined to be the software abnormality, the target software with the abnormal operation in the electronic equipment can be determined at least according to the log information of the operation of the electronic equipment. Specifically, the target software running abnormally in the electronic device may be determined according to the second log information of the electronic device.
In the embodiment, the comprehensiveness of the positioning of the operation abnormity of the electronic equipment is ensured by determining the abnormity reason of the operation abnormity of the electronic equipment and carrying out hardware abnormity positioning or software abnormity positioning according to the abnormity reason.
As another alternative embodiment of the present application, referring to fig. 7, a schematic flow chart of a processing method provided in embodiment 7 of the present application is provided, and this embodiment mainly relates to a refinement of the processing method described in the foregoing embodiment 5, as shown in fig. 7, the method may include, but is not limited to, the following steps:
step S701, responding to the fact that the electronic equipment is determined to be abnormal in operation, and obtaining log information of the electronic equipment in operation.
Step S702, determining whether an internal error occurs in a processor of the electronic device according to the log information of the electronic device.
If yes, go to step S702; if not, go to step S705.
Step S703, determining that the abnormality cause of the abnormal operation of the electronic device is a hardware abnormality.
Step S704, determining a target component with abnormal operation in the electronic device according to at least the log information of the electronic device operation and the obtained system resource allocation information.
The detailed processes of steps S701-S704 can refer to the related descriptions of steps S601-S604 in embodiment 6, and are not described herein again.
Step S705, determine whether a machine detection error occurs in the processor.
If not, go to step S706.
Step S706, determining whether the electronic device is switched from the current first abnormal operation state to the second abnormal operation state.
And the power consumption of the electronic equipment in the second abnormal operation state is less than that in the first abnormal operation state.
The first operating abnormal state may be, but is not limited to: the down state, the second abnormal operation state may be, but is not limited to: and (4) a shutdown state.
If yes, go to step S703; if not, step S707 is executed.
And step S707, determining that the abnormal reason of the abnormal operation of the electronic equipment is software abnormity.
Under the condition that the abnormal reason of the abnormal operation of the electronic equipment is determined to be the software abnormality, the target software with the abnormal operation in the electronic equipment can be determined at least according to the log information of the operation of the electronic equipment.
In this embodiment, whether an internal error occurs in a processor of the electronic device is determined according to log information of operation of the electronic device, if the internal error occurs, it may be determined that an abnormal cause of the abnormal operation of the electronic device is a hardware abnormality, and a reason of the abnormal operation of the electronic device is accurately located.
As another alternative embodiment of the present application, referring to fig. 8, a schematic flow chart of a processing method provided in embodiment 8 of the present application is provided, and this embodiment mainly relates to a refinement of the processing method described in the foregoing embodiment 5, as shown in fig. 8, the method may include, but is not limited to, the following steps:
step S801, in response to determining that the electronic device is abnormal in operation, obtaining log information of the electronic device in operation.
Step S802, determining whether an internal error occurs in a processor of the electronic equipment according to the log information of the electronic equipment.
If yes, go to step S802; if not, go to step S805.
Step S803, determining that the abnormality cause of the abnormal operation of the electronic device is a hardware abnormality.
Step S804, determining a target component with abnormal operation in the electronic equipment at least according to the log information of the electronic equipment operation and the obtained system resource allocation information.
The detailed processes of steps S801 to S804 can refer to the related descriptions of steps S601 to S604 in embodiment 6, and are not described herein again.
Step S805, determining whether a machine detection error occurs in the processor.
If yes, go to step S806; if not, step S807 is executed.
Step 806, determining that the abnormal reason of the abnormal operation of the electronic equipment is software abnormity.
Under the condition that the abnormal reason of the abnormal operation of the electronic equipment is determined to be the software abnormality, the target software with the abnormal operation in the electronic equipment can be determined at least according to the log information of the operation of the electronic equipment.
Step S807, determining whether the electronic device is switched from the current first operation abnormal state to the second operation abnormal state.
And the power consumption of the electronic equipment in the second abnormal operation state is less than that in the first abnormal operation state.
The first operating abnormal state may be, but is not limited to: the down state, the second abnormal operation state may be, but is not limited to: and (4) a shutdown state.
If yes, go to step S803; if not, go to step S806.
In this embodiment, whether an internal error occurs in a processor of the electronic device is determined according to log information of the operation of the electronic device, if the internal error occurs, it may be determined that an abnormal cause of the abnormal operation of the electronic device is a hardware abnormality, and the cause of the abnormal operation of the electronic device is accurately located. If the machine detection error does not occur, whether the electronic equipment is switched from the current first operation state to the second operation abnormal state or not is further determined, omission of abnormal operation positioning of the electronic equipment is avoided, and positioning accuracy is improved.
As another alternative embodiment of the present application, referring to fig. 9, a schematic flow chart of a processing method provided in embodiment 9 of the present application is provided, and this embodiment is mainly an extension of the processing method described in embodiment 8 above, as shown in fig. 9, the method may include, but is not limited to, the following steps:
step S901, in response to determining that the electronic device is abnormal in operation, obtaining log information of the operation of the electronic device.
Step S902, determining whether an internal error occurs in a processor of the electronic device according to the log information of the electronic device.
If yes, go to step S902; if not, go to step S906.
And step S903, determining that the abnormal reason of the abnormal operation of the electronic equipment is the hardware abnormality.
Step S904, sequentially determining a target hardware exception type corresponding to the current hardware exception from a plurality of hardware exception types included in the hardware exception type set according to the priority order.
In this embodiment, the hardware exception type set includes at least one hardware exception type, each hardware exception type corresponds to a different target register, and log information corresponding to the hardware exception type is stored in the target register.
The influence degrees of the hardware exception types in the hardware exception type set on the operation of the electronic equipment may be different, and the priority of the hardware exception types may be sorted according to the influence degrees of the hardware exception types on the operation of the electronic equipment to obtain a priority order.
Specifically, the priority of the hardware exception type may be sorted to obtain the priority order, but not limited to, according to the order of the influence degree of the hardware exception type on the operation of the electronic device from high to low.
On the basis that the abnormality cause of the operation abnormality of the electronic device is determined to be the hardware abnormality in the foregoing steps, the target hardware abnormality type corresponding to the current hardware abnormality may be sequentially determined from the plurality of hardware abnormality types included in the hardware abnormality type set according to the priority order.
Step S905, determining a target component with abnormal operation in the electronic equipment at least according to the log information in the target register determined according to the target hardware abnormal type and the obtained system resource allocation information.
It can be understood that, the target component with abnormal operation in the electronic device is determined at least according to the log information in the target register determined by the target hardware abnormal type and the obtained system resource allocation information, so that the target component corresponding to the high-priority hardware abnormal type is positioned first, the target component corresponding to the high-priority hardware abnormal type is guaranteed to be debugged first, the problem of abnormal operation of the electronic device caused by the high-priority hardware abnormal type is solved, and on the basis that the problem of abnormal operation of the electronic device caused by the high-priority hardware abnormal type is solved, the problem of abnormal operation of the electronic device caused by the low-priority hardware abnormal type may disappear at the same time, so that the problem solving efficiency is improved.
Step S905 is a specific implementation manner of step S804 in embodiment 8.
And step S906, determining whether the processor generates a machine detection error.
If yes, go to step S907; if not, go to step S908.
And step S907, determining that the abnormal reason of the abnormal operation of the electronic equipment is software abnormality.
Under the condition that the abnormal reason of the abnormal operation of the electronic equipment is determined to be the software abnormality, the target software with the abnormal operation in the electronic equipment can be determined at least according to the log information of the operation of the electronic equipment.
Step S908, determining whether the electronic device is switched from the current first abnormal operation state to the second abnormal operation state.
And the power consumption of the electronic equipment in the second abnormal operation state is less than that in the first abnormal operation state.
The first operating abnormal state may be, but is not limited to: the down state, the second abnormal operation state may be, but is not limited to: and (4) a shutdown state.
If yes, go to step S903; if not, step S907 is executed.
In this embodiment, whether an internal error occurs in a processor of the electronic device is determined according to log information of the operation of the electronic device, if the internal error occurs, it may be determined that an abnormal cause of the abnormal operation of the electronic device is a hardware abnormality, and the cause of the abnormal operation of the electronic device is accurately located. If the machine detection error does not occur, whether the electronic equipment is switched from the current first operation state to the second operation abnormal state or not is further determined, omission of abnormal operation positioning of the electronic equipment is avoided, and positioning accuracy is improved.
And determining a target component with abnormal operation in the electronic equipment at least according to the log information in the target register determined by the target hardware abnormal type and the obtained system resource allocation information, so as to ensure that the target component corresponding to the high-priority hardware abnormal type is debugged first, solve the problem of the abnormal operation of the electronic equipment caused by the high-priority hardware abnormal type, and on the basis of solving the problem of the abnormal operation of the electronic equipment caused by the high-priority hardware abnormal type, the problem of the abnormal operation of the electronic equipment caused by the low-priority hardware abnormal type can disappear at the same time, thereby improving the efficiency of solving the problems.
As another alternative embodiment of the present application, referring to fig. 10, a schematic flow chart of a processing method provided in embodiment 10 of the present application is provided, and this embodiment mainly relates to a refinement of the processing method described in the foregoing embodiment 9, as shown in fig. 10, the method may include, but is not limited to, the following steps:
and step S1001, responding to the fact that the electronic equipment is determined to be abnormal in operation, and obtaining log information of the electronic equipment in operation.
Step S1002, determining whether an internal error occurs in a processor of the electronic equipment according to the log information of the electronic equipment.
If yes, go to step S1002; if not, step S1009 is executed.
And step S1003, determining that the abnormal reason of the abnormal operation of the electronic equipment is the hardware abnormality.
Step S1004, determining whether the target hardware exception type corresponding to the current hardware exception is a triple-click timeout.
In this embodiment, the hardware exception type set includes, but is not limited to: three-hit timeout (3-strike timeout), Power Control Unit (PCU) Error (Error), and Nested Machine detection exception or Error (Nested MCE). The priority of the triple-click timeout is higher than the power control unit error, and the power control unit error is higher than the nested machine detection exception or error.
The processor of the electronic device may set three levels of timers, which are a CBO timer, a TOR (Table of request out) timer, and a controller timer. The controller timer is set to a constant start. The CBO timer, the TOR timer and the controller timer are respectively provided with different set timing durations and respectively time different operations, and corresponding timeout information is recorded when the timing duration exceeds the set timing duration. When the timing duration of the CBO timer, the TOR timer, and the controller timer all exceed the set timing duration, it can be considered that the triple-click is over time.
If yes, go to step S1005; if not, go to step S1006.
Step S1005, determining a target component with abnormal operation in the electronic device according to at least the address in the target cache agent register and the obtained system resource allocation information.
In this embodiment, the electronic device may allocate a system resource (e.g., a memory resource and/or an IO resource) to each hardware component, where the system resource corresponds to a resource address range. Furthermore, the electronic device is provided with a plurality of cache Agent (CBO) registers, and each CBO register has the capability of storing at least one piece of information.
When the electronic equipment is abnormally operated due to the abnormal operation of the hardware component, the resource address of the code or data causing the abnormal operation of the hardware component is written into the CBO register.
Under the condition that the target hardware exception type corresponding to the current hardware exception is determined to be the three-click timeout, the resource address is determined to be written in the CBO register, and different resource addresses are possibly written in a plurality of CBO registers of the electronic equipment, so that the target CBO register which records the resource address at first can be determined from the CBO registers, the resource address is read out from the target CBO register, the information of the hardware component corresponding to the read resource address is searched in the system resource allocation information, and the target component which runs abnormally in the electronic equipment is determined based on the searched information of the hardware component.
It should be noted that, because the information recorded in the TOR timer can represent the execution sequence of the code or data that causes the hardware component to operate abnormally, it is necessary to ensure that the TOR timer is in the on state, and when the target CBO register that records the resource address first is determined from the plurality of CBO registers, the target CBO register that records the resource address first can be determined from the plurality of CBO registers based on the execution sequence of the code or data that causes the hardware component to operate abnormally according to the representation recorded by the TOR timer.
Taking the network card and the video card as examples, step S1005 is described, for example, if the electronic device allocates a first memory resource to the network card, a memory address range corresponding to the first memory resource is 0x10-0x20, allocates a second memory resource to the video card, a memory address range corresponding to the second memory resource is 0x30-0x35, the system resource allocation information includes information of the network card and a corresponding relationship between the network card and the first memory resource, and information of the video card and a corresponding relationship between the video card and the second memory resource, if the address in the CBO register is 0x32, the target component with abnormal operation in the electronic device may be determined to be the video card according to the address 0x32 in the CBO register and the memory address range corresponding to the second memory resource in the system resource allocation information being 0x30-0x 35.
Step S1006, determining whether the target hardware exception type corresponding to the current hardware exception is a power control unit error.
If yes, go to step S1007; if not, go to step S1008.
Step 1007, determining whether the target component with abnormal operation in the electronic device is a voltage regulator or a direct media interface according to the log information in the target register corresponding to the power control unit error.
Step S1008, determining whether the target hardware exception type corresponding to the current hardware exception is a nested machine check exception or error.
If yes, go to step S1005.
Step S1009, determine whether a machine detection error occurs in the processor.
If yes, go to step S1010; if not, step S1011 is executed.
Step S1010, determining that the abnormal reason of the abnormal operation of the electronic equipment is software abnormity.
Under the condition that the abnormal reason of the abnormal operation of the electronic equipment is determined to be the software abnormality, the target software with the abnormal operation in the electronic equipment can be determined at least according to the log information of the operation of the electronic equipment.
Step S1011, determining whether the electronic device is switched from the current first operation abnormal state to the second operation abnormal state.
And the power consumption of the electronic equipment in the second abnormal operation state is less than that in the first abnormal operation state.
The first operating abnormal state may be, but is not limited to: the down state, the second abnormal operation state may be, but is not limited to: and (4) a shutdown state.
If yes, go to step S1003; if not, go to step S1010.
In this embodiment, it is first determined whether a target hardware exception type corresponding to a current hardware exception is a triple-click timeout, and a target component with abnormal operation in the electronic device is determined at least according to an address in the target cache proxy register and the obtained system resource allocation information, so that it is ensured that the target component corresponding to the triple-click timeout with high priority is debugged first, and thus the problem of the abnormal operation of the electronic device caused by the triple-click timeout with high priority is solved. And when the target hardware exception type is not the triple-click timeout, continuously determining whether the target hardware exception type corresponding to the current hardware exception is a power control unit error.
Corresponding to the embodiment of the processing method provided by the application, the application also provides an embodiment of a processing device.
As shown in fig. 11, which is a schematic structural diagram of embodiment 1 of a processing apparatus provided in the present application, the processing apparatus may include the following structures: a modulus 100 and a first determination module 200 are obtained.
The obtaining module 100 is configured to obtain log information of the operation of the electronic device in response to determining that the electronic device is abnormal in operation.
The first determining module 200 is configured to determine a target component with abnormal operation in the electronic device at least according to the log information of the electronic device and the obtained system resource allocation information.
In this embodiment, the obtaining module 100 may be specifically configured to:
in response to detecting a predetermined event or level signal change triggered by a processor of the electronic device, acquiring log information of the operation of the electronic device from a corresponding register in the processor;
when the processor detects that the electronic equipment operates abnormally, a preset event or a level signal change is triggered.
The log information of the electronic device may be: and log information generated at the abnormal operation time or the preset time period of the electronic equipment.
In this embodiment, the first determining module 200 may be specifically configured to:
determining the use state information of different system resources when being called according to the log information;
determining a target system resource with abnormal use according to the use state information when different system resources are called;
determining a target hardware component corresponding to the target system resource according to the system resource allocation information;
wherein the system resource allocation information is used to indicate system resources allocated to the respective hardware components of the electronic device.
When a plurality of abnormally used target system resources are used, the process of determining, by the first determining module, the target hardware component corresponding to the target system resource according to the system resource allocation information may specifically include:
determining a target system resource which is recorded in log information firstly in a plurality of target system resources with abnormal use;
and determining a target hardware component corresponding to the target system resource which is recorded in the log information firstly according to the system resource allocation information.
In this embodiment, the processing apparatus may further include:
the acquisition module is used for acquiring system resource allocation information generated by allocating system resources to each hardware component of the electronic equipment when the electronic equipment is started up each time.
In this embodiment, the processing apparatus may further include:
the second determining module is used for determining the abnormal reason of the abnormal operation of the electronic equipment according to the log information of the operation of the electronic equipment before determining the target component with the abnormal operation in the electronic equipment according to at least the log information of the operation of the electronic equipment and the obtained system resource allocation information, and triggering the first determining module to determine the target component with the abnormal operation in the electronic equipment according to at least the log information of the operation of the electronic equipment and the obtained system resource allocation information under the condition that the abnormal reason is hardware abnormity;
the exception reason is a hardware exception or a software exception.
The second determining module may be specifically configured to:
determining whether an internal error occurs in a processor of the electronic equipment according to log information of the electronic equipment;
if an internal error occurs, determining that the abnormal reason of the abnormal operation of the electronic equipment is the hardware abnormality;
if no internal error occurs: determining whether a machine detection error occurs in the processor;
if a machine detection error occurs, determining that the abnormal reason of the abnormal operation of the electronic equipment is software abnormity; and/or the presence of a gas in the atmosphere,
if the machine detection error does not occur, determining whether the electronic equipment is switched from the current first operation abnormal state to the second operation abnormal state, if the electronic equipment is switched to the second operation abnormal state, determining that the abnormal reason of the abnormal operation of the electronic equipment is hardware abnormity, and/or if the electronic equipment is not switched to the second operation abnormal state, determining that the abnormal reason of the abnormal operation of the electronic equipment is software abnormity;
and the power consumption of the electronic equipment in the second abnormal operation state is less than that in the first abnormal operation state.
In this embodiment, the processing apparatus may further include:
a third determining module, configured to, when a cause of the abnormality is a hardware abnormality, sequentially determine, according to a priority order, a target hardware abnormality type corresponding to a current hardware abnormality from among multiple hardware abnormality types included in a hardware abnormality type set before determining, according to at least log information of an operation of the electronic device and obtained system resource allocation information, a target component of the electronic device that is abnormally operated;
accordingly, the first determining module 200 may specifically be configured to:
and determining a target component with abnormal operation in the electronic equipment at least according to the log information in the target register determined by the target hardware abnormal type and the obtained system resource allocation information.
Corresponding to the embodiment of the processing method provided by the application, the application also provides an embodiment of the electronic device applying the processing method.
As shown in fig. 12, which is a schematic structural diagram of embodiment 1 of an electronic device provided in the present application, the electronic device may include the following structures:
a memory 300 and a processor 400.
A memory 300 for storing at least one set of instructions;
a processor 400 for calling and executing the instruction set in the memory 300, and performing the following processing by executing the instruction set:
responding to the abnormal operation of the electronic equipment, and obtaining log information of the operation of the electronic equipment;
and determining a target component with abnormal operation in the electronic equipment at least according to the log information of the electronic equipment operation and the obtained system resource allocation information.
Corresponding to the embodiment of the processing method provided by the application, the application also provides an embodiment of a storage medium.
In this embodiment, the storage medium stores a computer program for implementing the processing method described in any one of the foregoing embodiments, and the computer program is executed by the processor to implement the steps of the processing method described in any one of the foregoing embodiments.
It should be noted that, in the present specification, each embodiment is mainly described as a difference from the other embodiments, and the same and similar parts between the embodiments may be referred to each other.
For convenience of description, the above system or apparatus is described as being divided into various modules or units by function, respectively. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
From the above description of the embodiments, it is clear to those skilled in the art that the present application can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present application may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments of the present application.
Finally, it is further noted that, herein, relational terms such as first, second, third, fourth, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (10)

1. A method of processing, comprising:
responding to the abnormal operation of the electronic equipment, and obtaining log information of the operation of the electronic equipment;
and determining a target component with abnormal operation in the electronic equipment at least according to the log information of the electronic equipment operation and the obtained system resource allocation information.
2. The method of claim 1, wherein the obtaining log information of electronic device operations in response to determining that the electronic device is operating abnormally comprises:
in response to detecting a predetermined event or level signal change triggered by a processor of the electronic equipment, acquiring log information of the operation of the electronic equipment from a corresponding register in the processor;
the processor triggers the predetermined event or the level signal change when detecting that the electronic equipment operates abnormally.
3. The method of claim 1, wherein the log information of the electronic device operation is: and log information generated at the abnormal operation time or the preset time period of the electronic equipment.
4. The method of claim 1, wherein the determining a target component with abnormal operation in the electronic device according to at least log information of the operation of the electronic device and the obtained system resource allocation information comprises:
determining the use state information of different system resources when being called according to the log information;
determining a target system resource with abnormal use according to the use state information when different system resources are called;
determining a target hardware component corresponding to the target system resource according to the system resource allocation information;
wherein the system resource allocation information is used for indicating the system resources allocated to each hardware component of the electronic equipment.
5. The method according to claim 4, wherein, when there are a plurality of target system resources with abnormal usage, the determining, according to system resource allocation information, a target hardware component corresponding to the target system resource includes:
determining a first target system resource which has a dependency relationship with each target system resource in the target system resources with abnormal use, and determining a component corresponding to the first target system resource as the target hardware component according to the system resource allocation information; or the like, or, alternatively,
and determining a second target system resource recorded in the log information at first in the plurality of target system resources with abnormal use, and determining a component corresponding to the second target system resource as the target hardware component according to the system resource allocation information.
6. The method of claim 1, further comprising:
the method comprises the steps of acquiring system resource allocation information generated by allocating system resources to each hardware component of the electronic equipment when the electronic equipment is started each time.
7. The method of claim 1, wherein before determining the target component with abnormal operation in the electronic device according to at least the log information of the operation of the electronic device and the obtained system resource allocation information, the method further comprises:
determining an abnormal reason of the abnormal operation of the electronic equipment according to the log information of the operation of the electronic equipment;
under the condition that the abnormality reason is hardware abnormality, triggering the step of determining a target component with abnormal operation in the electronic equipment at least according to the log information of the electronic equipment operation and the obtained system resource allocation information;
wherein the exception cause is a hardware exception or a software exception.
8. The method of claim 7, wherein the determining the abnormal reason of the abnormal operation of the electronic device according to the log information of the operation of the electronic device comprises:
determining whether an internal error occurs in a processor of the electronic equipment according to log information of the electronic equipment;
if an internal error occurs, determining that the abnormal reason of the abnormal operation of the electronic equipment is the hardware abnormality;
if no internal error occurs: determining whether a machine detection error occurred with the processor;
if a machine detection error occurs, determining that the abnormal reason of the abnormal operation of the electronic equipment is software abnormity; and/or the presence of a gas in the atmosphere,
if the machine detection error does not occur, determining whether the electronic equipment is switched from a current first operation abnormal state to a second operation abnormal state, if the electronic equipment is switched to the second operation abnormal state, determining that an abnormal reason of the abnormal operation of the electronic equipment is hardware abnormity, and/or if the electronic equipment is not switched to the second operation abnormal state, determining that the abnormal reason of the abnormal operation of the electronic equipment is software abnormity;
wherein the power consumption of the electronic device in the second abnormal operation state is less than the power consumption in the first abnormal operation state.
9. The method according to claim 7 or 8, wherein, in a case that the abnormality is caused by a hardware abnormality, before determining a target component of the electronic device, which runs abnormally, according to at least log information of the electronic device running and the obtained system resource allocation information, further comprising:
sequentially determining a target hardware exception type corresponding to the current hardware exception from a plurality of hardware exception types included in a hardware exception type set according to the priority order;
the method for determining the target component with abnormal operation in the electronic equipment at least according to the log information of the electronic equipment operation and the obtained system resource allocation information comprises the following steps:
and determining a target component with abnormal operation in the electronic equipment at least according to the log information in the target register determined by the target hardware abnormal type and the obtained system resource allocation information.
10. A processing apparatus, comprising:
the obtaining module is used for responding to the determination that the electronic equipment operates abnormally and obtaining log information of the electronic equipment;
and the first determining module is used for determining a target component with abnormal operation in the electronic equipment at least according to the log information of the electronic equipment and the obtained system resource allocation information.
CN202110346712.9A 2021-03-31 2021-03-31 Processing method and device Pending CN113051096A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110346712.9A CN113051096A (en) 2021-03-31 2021-03-31 Processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110346712.9A CN113051096A (en) 2021-03-31 2021-03-31 Processing method and device

Publications (1)

Publication Number Publication Date
CN113051096A true CN113051096A (en) 2021-06-29

Family

ID=76516630

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110346712.9A Pending CN113051096A (en) 2021-03-31 2021-03-31 Processing method and device

Country Status (1)

Country Link
CN (1) CN113051096A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6463550B1 (en) * 1998-06-04 2002-10-08 Compaq Information Technologies Group, L.P. Computer system implementing fault detection and isolation using unique identification codes stored in non-volatile memory
CN105589776A (en) * 2015-12-23 2016-05-18 华为技术有限公司 Fault location method and server
CN108920314A (en) * 2018-06-26 2018-11-30 郑州云海信息技术有限公司 A kind of faulty hardware localization method, device, system and readable storage medium storing program for executing
CN111209153A (en) * 2019-12-31 2020-05-29 联想(北京)有限公司 Abnormity detection processing method and device and electronic equipment
CN112416634A (en) * 2019-08-22 2021-02-26 中移(苏州)软件技术有限公司 File processing method and device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6463550B1 (en) * 1998-06-04 2002-10-08 Compaq Information Technologies Group, L.P. Computer system implementing fault detection and isolation using unique identification codes stored in non-volatile memory
CN105589776A (en) * 2015-12-23 2016-05-18 华为技术有限公司 Fault location method and server
CN108920314A (en) * 2018-06-26 2018-11-30 郑州云海信息技术有限公司 A kind of faulty hardware localization method, device, system and readable storage medium storing program for executing
CN112416634A (en) * 2019-08-22 2021-02-26 中移(苏州)软件技术有限公司 File processing method and device and storage medium
CN111209153A (en) * 2019-12-31 2020-05-29 联想(北京)有限公司 Abnormity detection processing method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN109284269B (en) Abnormal log analysis method and device, storage medium and server
US7991961B1 (en) Low-overhead run-time memory leak detection and recovery
CN114168222B (en) Method and device for acquiring time consumption during starting, terminal equipment and storage medium
US8448138B2 (en) Recording user-driven events within a computing system
US20120180057A1 (en) Activity Recording System for a Concurrent Software Environment
CN109753378A (en) A kind of partition method of memory failure, device, system and readable storage medium storing program for executing
JP2010086364A (en) Information processing device, operation state monitoring device and method
CN113032215A (en) Thread snapshot analysis method, device, equipment and storage medium
WO2012095762A1 (en) Activity recording system for a concurrent software environment
US20220197779A1 (en) Reducing trace recording overheads with targeted recording via partial snapshots
CN108628726B (en) CPU state information recording method and device
US20130013963A1 (en) Diagnostic data capture in a computing environment
CN112306989A (en) Database instance processing method and device, storage medium and electronic device
CN113051096A (en) Processing method and device
JP2005149501A (en) System and method for testing memory with expansion card using dma
CN108197041B (en) Method, device and storage medium for determining parent process of child process
CN108009039B (en) Terminal information recording method, device, storage medium and electronic equipment
CN115858211A (en) Method and device for processing machine check errors
CN112650613B (en) Error information processing method and device, electronic equipment and storage medium
WO2019054434A1 (en) Failure sign detection device, failure sign detection method, and recording medium in which failure sign detection program is stored
CN113485846A (en) Memory processing method and device
JP2005149503A (en) System and method for testing memory using dma
CN113820649A (en) Method and device for testing service life reliability of electric energy meter firmware
CN118409940B (en) Handle alarm method, device, electronic equipment, storage medium and program product
US20120158661A1 (en) Context-specific rollback

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination