Movatterモバイル変換


[0]ホーム

URL:


CN109213615A - A kind of error event processing method and electronic equipment - Google Patents

A kind of error event processing method and electronic equipment
Download PDF

Info

Publication number
CN109213615A
CN109213615ACN201710522976.9ACN201710522976ACN109213615ACN 109213615 ACN109213615 ACN 109213615ACN 201710522976 ACN201710522976 ACN 201710522976ACN 109213615 ACN109213615 ACN 109213615A
Authority
CN
China
Prior art keywords
error event
error
collection
recorded
event collection
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.)
Granted
Application number
CN201710522976.9A
Other languages
Chinese (zh)
Other versions
CN109213615B (en
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 LtdfiledCriticalLenovo Beijing Ltd
Priority to CN201710522976.9ApriorityCriticalpatent/CN109213615B/en
Publication of CN109213615ApublicationCriticalpatent/CN109213615A/en
Application grantedgrantedCritical
Publication of CN109213615BpublicationCriticalpatent/CN109213615B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The embodiment of the present invention provides a kind of error event processing method and electronic equipment, and the electronic equipment ignores the partial error event recorded in the error event collection according to a strategy on the basis of detection and misregistration event to error event collection;After operation is ignored in completion, when further detecting the error event collection satisfaction mistake report condition after ignoring partial error event, executes and report operation for the error event collection.

Description

A kind of error event processing method and electronic equipment
Technical field
The present invention relates to error detection techniques, and in particular to a kind of error event processing method and electronic equipment.
Background technique
Currently, in the system operation of electronic equipment, cause can check errors (correctable error) originalBecause mainly including following several: 1) inherent shortcoming of semiconductor material, charge electric leakage cause the retention time insufficient, lead to bit(bit) it jumps;2) cosmic ray radiation causes signal edge burr, leads to sample error;3) computer room other equipment moment orLasting Electro Magnetic Compatibility (Electro Magnetic Compatibility, EMC) problem;4) hardware deficiency, such as contact are notIt is good, dust etc..
In the related technology for can the statistical processing methods of check errors include:
Solution one: because can check errors be repairable mistake, system can oneself correct, do not need software and hardwareParticipate in, thus generally use can check errors do not count.However, the defect of the solution one is, when there is hardware deficiencyWhen leading to mistake, mistake is fixed to be occurred, can not be in time to system alarm;When occur largely can check errors when, described in correctionThe process of mistake can consume the resource of central processing unit (Central Processing Unit, CPU).
Solution two: the counter of one fixed capacity of design, after accumulative number of errors reaches counter capacity,Alarm prompt is triggered, further movement is done with system for prompting.However, the defect of the solution two is, when there is momentRather than be held constant for mistake when, fault alarm is triggered since number of errors reaches the capacity of counter, under serious conditionsIt will lead to system malfunction, user's impression is bad.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of error event processing to solve problems of the prior artMethod and electronic equipment.
The technical solution of the embodiment of the present invention is achieved in that
The embodiment of the present invention provides a kind of error event processing method, which comprises
Detect error event;
The error event is recorded to error event collection;
Ignore the partial error event recorded in the error event collection according to a strategy;
Detect whether the error event collection after ignoring partial error event meets wrong report condition;
When meeting wrong report condition, executes and report operation for the error event collection.
In one embodiment, described to ignore the partial error event recorded in the error event collection, packet according to a strategyIt includes:
The error event recorded in the error event collection is deleted with predetermined quantity according to prefixed time interval.
In one embodiment, it is described according to prefixed time interval to the error event recorded in the error event collection with pre-Fixed number amount is deleted, comprising:
Judge the type of error of recorded error event;
Time interval and predetermined quantity are determined according to the type of error;
According to identified time interval to recording in the error event collection and the matched mistake of the type of errorEvent is deleted with corresponding predetermined quantity.
In one embodiment, ignoring the partial error event recorded in the error event collection includes:
According to the sequencing of the error event correspondent time recorded to the mistake recorded in the error event collectionEvent is deleted;
Or, being deleted at random the error event recorded in the error event collection;
Or, first deleting according to the type of error of the error event recorded and having exceeded wrong class in the error event collectionThe error event of type predetermined quantity ratio.
In one embodiment, detect whether the error event collection after ignoring partial error event meets wrong report condition,Include:
Detect whether error event quantity in the error event collection exceeds preset quantity threshold value;
Or, whether the detection cumulative record time exceeds accumulated time threshold value;
Or, detecting the maximum storage sky whether error event quantity in the error event collection exceeds the error event collectionBetween predetermined stored ratio.
In one embodiment, the detection error event includes: to detect software and hardware by way of executing hardware layer identification codeError event;
The execution includes: by the error event in the error event collection for the operation that reports of the error event collectionIt is reported to operating system layer.
The embodiment of the present invention also provides a kind of electronic equipment, and the electronic equipment includes:
First detection module, for detecting error event;
Logging modle, for recording the error event to error event collection;
Ignore module, for ignoring the partial error event recorded in the error event collection according to a strategy;
Second detection module, for detecting whether the error event collection after ignoring partial error event meets tape in mistakePart;
Mistake reporting module, for executing and reporting behaviour for the error event collection when meeting wrong report conditionMake.
In one embodiment, described to ignore module, it is specifically used for according to prefixed time interval in the error event collectionThe error event of record is deleted with predetermined quantity.
In one embodiment, the module of ignoring includes:
Judging unit, for judging the type of error of recorded error event;
Determination unit, for determining time interval and predetermined quantity according to the type of error;
Delete unit, for according to identified time interval to recording in the error event collection and the wrong classThe matched error event of type is deleted with corresponding predetermined quantity.
In one embodiment, described to ignore module, for according to the successive suitable of the error event correspondent time recordedThe error event recorded in error event collection described in ordered pair is deleted;Or, for the mistake recorded in the error event collectionPart of causing delay is deleted at random;Or, first deleting the error event collection for the type of error according to the error event recordedIn exceeded the error event of type of error predetermined quantity ratio.
In one embodiment, second detection module is for detecting error event quantity in the error event collectionIt is no to exceed preset quantity threshold value;Or for detecting whether the cumulative record time exceeds accumulated time threshold value;Or it is described for detectingWhether error event quantity exceeds the predetermined stored ratio of the maximum memory space of the error event collection in error event collection.
In one embodiment, the first detection module, for detecting software and hardware by way of executing hardware layer identification codeError event;
The mistake reporting module, for the error event in the error event collection to be reported to operating system layer.
Error event processing method and electronic equipment described in the embodiment of the present invention, the electronic equipment are detecting and are recording mistakeIt causes delay on the basis of part to error event collection, the partial error event recorded in the error event collection is ignored according to a strategy;After operation is ignored in completion, when further detecting the error event collection satisfaction mistake report condition after ignoring partial error event, holdThe hand-manipulating of needle reports operation to the error event collection.In this way, the embodiment of the present invention, which is used, ignores the wrong thing according to a strategyThe mode of the partial error event recorded in part collection realizes the dynamic statistics of error event, so as to evade moment effectivelyError event on the basis of, will not omit be held constant for caused by hardware deficiency occur error event statistical report, fromAnd reaches comprehensive and take into account the error event for being held constant for occurring and its moment occurs and the statistical disposition of non-continuous error eventPurpose.
Detailed description of the invention
Fig. 1 is the implementation process schematic diagram one of error event processing method in the embodiment of the present invention;
Fig. 2 is the implementation process schematic diagram two of error event processing method in the embodiment of the present invention;
Fig. 3 is the implementation process schematic diagram deleted in the embodiment of the present invention error event;
Fig. 4 is the schematic diagram of error event dynamic statistics in one application example of the present invention;
Fig. 5 is the implementation process schematic diagram three of error event processing method in the embodiment of the present invention;
Fig. 6 is the implementation process schematic diagram four of error event processing method in the embodiment of the present invention;
Fig. 7 is the composed structure schematic diagram of electronic equipment in the embodiment of the present invention.
Specific embodiment
Invention is further described in detail in the following with reference to the drawings and specific embodiments.
Fig. 1 is the implementation process schematic diagram one of error event processing method in the embodiment of the present invention, as shown in Figure 1, describedMethod is applied in electronic equipment, and the error event processing method includes:
Step 101~102: detection error event;The error event is recorded to error event collection;
Here, the error event is divided from error event source angle, can be divided into hardware error event and softPart error event.The embodiment of the present invention in actual operation, can not distinguish hardware error event and software error event, as long asThe electronic equipment detects wrong event, is carried out the record to detected error event, by the error event store toError event collection.The embodiment of the present invention in actual operation, can also distinguish hardware error event and software error event, corresponding, error event collection also includes hardware error event collection and software error event set.In this way, when electronic equipment detection is wrongIt causes delay part, hardware error event and software error event can be distinguished to corresponding mistake by record storage according to error event typeAccidentally event set.
Here, the electronic equipment may include any form of terminal, such as smart phone, notebook, PC machine, purl machineAnd portable fill wears equipment etc.;The electronic equipment can also include any form of server, OA server of such as handling official businessThe service of (Office Automation System), Enterprise Resources Plan (Enterprise Resource Planning, ERP)Device, WEB server, database server, financial server, mail server, printing server cluster server, without disk handle official businessSystem, without flaking server, without disk tutoring system, video monitoring server and streaming media server etc..
Step 103: ignoring the partial error event recorded in the error event collection according to a strategy;
Here, the electronic equipment can be ignored by deleting mode according to a strategy and be recorded in the error event collectionPartial error event.
It is traditional can check errors one of statistical disposition scheme for can check errors do not count, the processing scheme forFor the fixed error event occurred caused by hardware deficiency, a large amount of wrong things are overstock since fault alarm can not be reported in timePart, to need serious consumption cpu resource to correct the error event.In addition, it is traditional can check errors statistical dispositionThe two of scheme are to trigger alarm prompt, the processing scheme is for occurring after accumulative number of errors reaches counter capacityMoment rather than for the error event that is held constant for, trigger fault alarm since number of errors reaches the capacity of counter, sternlyIt will lead to system malfunction in weight situation.
The error event for being held constant for occurring is taken into account and its moment occurs and the system of non-continuous error event in order to comprehensiveMeter processing, the embodiment of the present invention use the side for ignoring the partial error event recorded in the error event collection according to a strategyFormula realizes the dynamic statistics of error event, hard so as to omit on the basis of effectively evading the error event of momentThe statistical report of the error event occurred is held constant for caused by part defect.
Step 104: detecting whether the error event collection after ignoring partial error event meets wrong report condition;
Here, the wrong report condition can record data statistics empirical data according to history error event to determine.
Specifically, whether the error event collection that electronic equipment detects after ignoring partial error event meets tape in mistakePart, comprising:
Detect whether error event quantity in the error event collection exceeds preset quantity threshold value;
Whether the detection cumulative record time exceeds accumulated time threshold value;
Detect the maximum memory space whether error event quantity in the error event collection exceeds the error event collectionPredetermined stored ratio.
Step 105: when meeting wrong report condition, executing and report operation for the error event collection.
Specifically, described when detection has the error event collection after ignoring partial error event to meet wrong report conditionElectronic equipment executes in such a way that fault alarm prompts and reports operation for the error event collection, to be reported to operation systemLayer of uniting carries out further error checking processing.
Error event processing method described in the embodiment of the present invention, electronic equipment is in detection and misregistration event is to wrong thingOn the basis of part collection, the partial error event recorded in the error event collection is ignored according to a strategy;After operation is ignored in completion,When further detecting the error event collection satisfaction mistake report condition after ignoring partial error event, execute for the mistake thingPart collection reports operation.In this way, the embodiment of the present invention, which is used, ignores the part recorded in the error event collection according to a strategyThe mode of error event realizes the dynamic statistics of error event, so as on the basis for the error event for effectively evading momentOn, the statistical report for being held constant for the error event occurred caused by hardware deficiency will not be omitted, is taken into account admittedly to reach comprehensiveThe error event persistently occurred calmly and its moment occur and the purpose of the statistical disposition of non-continuous error event.
Fig. 2 is the implementation process schematic diagram two of error event processing method in the embodiment of the present invention, as shown in Fig. 2, describedMethod is applied in electronic equipment, and the error event processing method includes:
Step 101~102: detection error event;The error event is recorded to error event collection;
Here, the error event is divided from error event source angle, can be divided into hardware error event and softPart error event.The embodiment of the present invention in actual operation, can not distinguish hardware error event and software error event, as long asThe electronic equipment detects wrong event, is carried out the record to detected error event, by the error event store toError event collection.The embodiment of the present invention in actual operation, can also distinguish hardware error event and software error event, corresponding, error event collection also includes hardware error event collection and software error event set.In this way, when electronic equipment detection is wrongIt causes delay part, hardware error event and software error event can be distinguished to corresponding mistake by record storage according to error event typeAccidentally event set.
Here, the electronic equipment may include any form of terminal, such as smart phone, notebook, PC machine, purl machineAnd portable fill wears equipment etc.;The electronic equipment can also include any form of server, OA server of such as handling official business,ERP server, WEB server, database server, financial server, mail server, printing server cluster server,Without disk office system, without flaking server, without disk tutoring system, video monitoring server and streaming media server etc..
Step 203: according to prefixed time interval to the error event recorded in the error event collection with predetermined quantity intoRow is deleted;
Specifically, as shown in figure 3, the electronic equipment according to prefixed time interval to recording in the error event collectionError event is deleted with predetermined quantity, comprising:
Step 2031: the type of error of the recorded error event of judgement;
Specifically, the electronic equipment can be by detecting the error event source recorded in wrong reader, and judgement is trueThe type of error for making recorded error event is hardware error event or software error event.
Step 2032: time interval and predetermined quantity are determined according to the type of error;
Here, before the embodiment of the present invention realizes error event processing, the time interval and predetermined quantity are pre-History error event record data statistics empirical data statistics is first passed through to determine.The electronic equipment is being judged currently to be recordedError event type of error after, can be by searching for the time interval and predetermined number to match with determined type of errorAmount, the predetermined quantity is usually variable.
Step 2033: according to identified time interval to recording with the type of error in the error event collectionThe error event matched is deleted with corresponding predetermined quantity.
It is traditional can check errors one of statistical disposition scheme for can check errors do not count, the processing scheme forFor the fixed error event occurred caused by hardware deficiency, a large amount of wrong things are overstock since fault alarm can not be reported in timePart, to need serious consumption cpu resource to correct the error event.In addition, it is traditional can check errors statistical dispositionThe two of scheme are to trigger alarm prompt, the processing scheme is for occurring after accumulative number of errors reaches counter capacityMoment rather than for the error event that is held constant for, trigger fault alarm since number of errors reaches the capacity of counter, sternlyIt will lead to system malfunction in weight situation.
The error event for being held constant for occurring is taken into account and its moment occurs and the system of non-continuous error event in order to comprehensiveMeter processing, the embodiment of the present invention are used according to prefixed time interval to the error event recorded in the error event collection with predeterminedThe mode that quantity is deleted realizes the dynamic statistics of error event, so as to effectively evade the error event of momentOn the basis of, the statistical report that the error event occurred is held constant for caused by hardware deficiency will not be omitted.
In one example, as shown in figure 4, electronic device design has the counter 40 of a funnel shaped, i.e. error eventCollect (certain counter capacity can be set) to realize the dynamic statistics of error event.On the top of the counter 40 of funnel shapedPortion, the error event quantity that statistical system occurs;In the bottom of the counter 40 of funnel shaped, with a fixed slow rate(V/s, the rate are settable) leaks out, that is, uses according to prefixed time interval to the wrong thing recorded in the error event collectionPart is leaked out with predetermined quantity and (when certainly, funnel is empty, is stopped leaking out);When 40 capacity of counter of funnel shaped reaches pre- constant volumeAfter measuring ratio value, just error event can be reported to operating system.
Step 204: detecting whether the error event collection after ignoring partial error event meets wrong report condition;
Here, the wrong report condition can record data statistics empirical data according to history error event to determine.
Specifically, whether the error event collection that electronic equipment detects after ignoring partial error event meets tape in mistakePart, comprising:
Detect whether error event quantity in the error event collection exceeds preset quantity threshold value;
Or, whether the detection cumulative record time exceeds accumulated time threshold value;
Or, detecting the maximum storage sky whether error event quantity in the error event collection exceeds the error event collectionBetween predetermined stored ratio.
Step 205: when meeting wrong report condition, executing and report operation for the error event collection.
Specifically, described when detection has the error event collection after ignoring partial error event to meet wrong report conditionElectronic equipment executes in such a way that fault alarm prompts and reports operation for the error event collection, to be reported to operation systemLayer of uniting carries out further error checking processing.
Error event processing method described in the embodiment of the present invention, using according to prefixed time interval to the error event collectionIn the error event that records in such a way that predetermined quantity is deleted, the dynamic statistics of error event are realized, so as to haveOn the basis of effect evades the error event of moment, the system that the error event occurred is held constant for caused by hardware deficiency will not be omittedMeter reports, so that reaching comprehensive takes into account the error event for being held constant for occurring and its moment occurs and non-continuous error eventThe purpose of statistical disposition.
Fig. 5 is the implementation process schematic diagram three of error event processing method in the embodiment of the present invention, as shown in figure 5, describedMethod is applied in electronic equipment, and the error event processing method includes:
Step 501~502: detection error event;The error event is recorded to error event collection;
Here, the error event is divided from error event source angle, can be divided into hardware error event and softPart error event.The embodiment of the present invention in actual operation, can not distinguish hardware error event and software error event, as long asThe electronic equipment detects wrong event, is carried out the record to detected error event, by the error event store toError event collection.The embodiment of the present invention in actual operation, can also distinguish hardware error event and software error event, corresponding, error event collection also includes hardware error event collection and software error event set.In this way, when electronic equipment detection is wrongIt causes delay part, hardware error event and software error event can be distinguished to corresponding mistake by record storage according to error event typeAccidentally event set.
Here, the electronic equipment may include any form of terminal, such as smart phone, notebook, PC machine, purl machineAnd portable fill wears equipment etc.;The electronic equipment can also include any form of server, OA server of such as handling official business,ERP server, WEB server, database server, financial server, mail server, printing server cluster server,Without disk office system, without flaking server, without disk tutoring system, video monitoring server and streaming media server etc..
Step 503a: according to the sequencing of the error event correspondent time recorded to remembering in the error event collectionThe error event of record is deleted;
Step 503b: the error event recorded in the error event collection is deleted at random;
Step 503c: it according to the type of error of the error event recorded, first deletes and has exceeded in the error event collectionThe error event of type of error predetermined quantity ratio;
It is traditional can check errors one of statistical disposition scheme for can check errors do not count, the processing scheme forFor the fixed error event occurred caused by hardware deficiency, a large amount of wrong things are overstock since fault alarm can not be reported in timePart, to need serious consumption cpu resource to correct the error event.In addition, it is traditional can check errors statistical dispositionThe two of scheme are to trigger alarm prompt, the processing scheme is for occurring after accumulative number of errors reaches counter capacityMoment rather than for the error event that is held constant for, trigger fault alarm since number of errors reaches the capacity of counter, sternlyIt will lead to system malfunction in weight situation.
The error event for being held constant for occurring is taken into account and its moment occurs and the system of non-continuous error event in order to comprehensiveMeter processing, the embodiment of the present invention is by the dynamic statistics of error event, so as to effectively evade the error event of momentOn the basis of, the statistical report that the error event occurred is held constant for caused by hardware deficiency will not be omitted.
Step 504: detecting whether the error event collection after ignoring partial error event meets wrong report condition;
Here, the wrong report condition can record data statistics empirical data according to history error event to determine.
Specifically, whether the error event collection that electronic equipment detects after ignoring partial error event meets tape in mistakePart, comprising:
Detect whether error event quantity in the error event collection exceeds preset quantity threshold value;
Or, whether the detection cumulative record time exceeds accumulated time threshold value;
Or, detecting the maximum storage sky whether error event quantity in the error event collection exceeds the error event collectionBetween predetermined stored ratio.
Step 505: when meeting wrong report condition, executing and report operation for the error event collection.
Specifically, described when detection has the error event collection after ignoring partial error event to meet wrong report conditionElectronic equipment executes in such a way that fault alarm prompts and reports operation for the error event collection, to be reported to operation systemLayer of uniting carries out further error checking processing.
Error event processing method described in the embodiment of the present invention, electronic equipment correspond to the time according to the error event recordedThe sequencing of stamp deletes the error event recorded in the error event collection, or to recording in the error event collectionError event deleted at random, or according to the type of error of the error event recorded, first delete the error event collectionIn exceeded type of error predetermined quantity ratio error event mode, realize the dynamic statistics of error event, so as toOn the basis of effectively evading the error event of moment, the error event for being held constant for occurring caused by hardware deficiency will not be omittedStatistical report, so that reaching comprehensive takes into account the error event for being held constant for occurring and its moment occurs and non-continuous wrong thingThe purpose of the statistical disposition of part.
Fig. 6 is the implementation process schematic diagram four of error event processing method in the embodiment of the present invention, as shown in fig. 6, describedMethod is applied in electronic equipment, and the error event processing method includes:
Step 601: the error event of software and hardware is detected by way of executing hardware layer identification code;
Step 602: recording the error event to error event collection;
Here, the error event is divided from error event source angle, can be divided into hardware error event and softPart error event.The embodiment of the present invention in actual operation, can not distinguish hardware error event and software error event, as long asThe electronic equipment detects wrong event, is carried out the record to detected error event, by the error event store toError event collection.The embodiment of the present invention in actual operation, can also distinguish hardware error event and software error event, corresponding, error event collection also includes hardware error event collection and software error event set.In this way, when the electronic equipment passes through executionThe mode of hardware layer identification code detects wrong event, can be according to error event type by hardware error event and software error thingPart distinguishes record storage to corresponding error event collection.
Here, the electronic equipment may include any form of terminal, such as smart phone, notebook, PC machine, purl machineAnd portable fill wears equipment etc.;The electronic equipment can also include any form of server, OA server of such as handling official business,ERP server, WEB server, database server, financial server, mail server, printing server cluster server,Without disk office system, without flaking server, without disk tutoring system, video monitoring server and streaming media server etc..
Step 603: ignoring the partial error event recorded in the error event collection according to a strategy;
Here, the electronic equipment can be ignored by deleting mode according to a strategy and be recorded in the error event collectionPartial error event.
It is traditional can check errors one of statistical disposition scheme for can check errors do not count, the processing scheme forFor the fixed error event occurred caused by hardware deficiency, a large amount of wrong things are overstock since fault alarm can not be reported in timePart, to need serious consumption cpu resource to correct the error event.In addition, it is traditional can check errors statistical dispositionThe two of scheme are to trigger alarm prompt, the processing scheme is for occurring after accumulative number of errors reaches counter capacityMoment rather than for the error event that is held constant for, trigger fault alarm since number of errors reaches the capacity of counter, sternlyIt will lead to system malfunction in weight situation.
The error event for being held constant for occurring is taken into account and its moment occurs and the system of non-continuous error event in order to comprehensiveMeter processing, the embodiment of the present invention use the side for ignoring the partial error event recorded in the error event collection according to a strategyFormula realizes the dynamic statistics of error event, hard so as to omit on the basis of effectively evading the error event of momentThe statistical report of the error event occurred is held constant for caused by part defect.
Step 604: detecting whether the error event collection after ignoring partial error event meets wrong report condition;
Here, the wrong report condition can record data statistics empirical data according to history error event to determine.
Specifically, whether the error event collection that electronic equipment detects after ignoring partial error event meets tape in mistakePart, comprising:
Detect whether error event quantity in the error event collection exceeds preset quantity threshold value;
Whether the detection cumulative record time exceeds accumulated time threshold value;
Detect the maximum memory space whether error event quantity in the error event collection exceeds the error event collectionPredetermined stored ratio.
Step 605: when meeting wrong report condition, the error event in the error event collection being reported to operation systemSystem layer.
Specifically, described when detection has the error event collection after ignoring partial error event to meet wrong report conditionElectronic equipment executes in such a way that fault alarm prompts and reports operation for the error event collection, by the error eventError event in collection is reported to operating system layer, so that operating system carries out further error checking processing.
Error event processing method described in the embodiment of the present invention is remembered in the error event collection using ignoring according to a strategyThe mode of the partial error event of record, realizes the dynamic statistics of error event, so as in the wrong thing for effectively evading momentOn the basis of part, the statistical report that the error event occurred is held constant for caused by hardware deficiency will not be omitted, to reach comprehensiveConjunction takes into account the error event for being held constant for occurring and its moment occurs and the purpose of the statistical disposition of non-continuous error event.
Fig. 7 is the composed structure schematic diagram of electronic equipment in the embodiment of the present invention, as shown in fig. 7, the electronic equipment 70Include:
First detection module 701, for detecting error event;
Logging modle 702, for recording the error event to error event collection;
Ignore module 703, for ignoring the partial error event recorded in the error event collection according to a strategy;
Second detection module 704, for detecting whether the error event collection after ignoring partial error event meets mistakeTape part;
Mistake reporting module 705, for executing reporting for the error event collection when meeting wrong report conditionOperation.
In one embodiment, described to ignore module, it is specifically used for according to prefixed time interval in the error event collectionThe error event of record is deleted with predetermined quantity.
In one embodiment, the module of ignoring includes:
Judging unit, for judging the type of error of recorded error event;
Determination unit, for determining time interval and predetermined quantity according to the type of error;
Delete unit, for according to identified time interval to recording in the error event collection and the wrong classThe matched error event of type is deleted with corresponding predetermined quantity.
In one embodiment, described to ignore module, for according to the successive suitable of the error event correspondent time recordedThe error event recorded in error event collection described in ordered pair is deleted;Or, for the mistake recorded in the error event collectionPart of causing delay is deleted at random;Or, first deleting the error event collection for the type of error according to the error event recordedIn exceeded the error event of type of error predetermined quantity ratio.
In one embodiment, second detection module is for detecting error event quantity in the error event collectionIt is no to exceed preset quantity threshold value;Or for detecting whether the cumulative record time exceeds accumulated time threshold value;Or it is described for detectingWhether error event quantity exceeds the predetermined stored ratio of the maximum memory space of the error event collection in error event collection.
In one embodiment, the first detection module, for detecting software and hardware by way of executing hardware layer identification codeError event;
The mistake reporting module, for the error event in the error event collection to be reported to operating system layer.
It will be appreciated by those skilled in the art that each module and its each module are wrapped in electronic equipment described in the embodiment of the present inventionThe function of each unit included can refer to the associated description of aforementioned control method and understand, which is not described herein again.
Each unit included by each module and its each module can pass through institute in electronic equipment described in the embodiment of the present inventionThe processor stated in electronic equipment is realized, can also be realized by specific logic circuit;It, can be by for example, in practical applicationsCPU, microprocessor (Micro Processor Unit, MPU), digital signal processor in the electronic equipment(Digital Signal Processor, DSP) or field programmable gate array (Field Programmable GateArray, FPGA) etc. realize.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above method embodiment can pass throughThe relevant hardware of program instruction is completed, and program above-mentioned can be stored in a computer readable storage medium, the programWhen being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned include: movable storage device, it is read-onlyMemory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk orThe various media that can store program code such as person's CD.
If alternatively, the above-mentioned integrated unit of the present invention is realized in the form of software function module and as independent productWhen selling or using, it also can store in a computer readable storage medium.Based on this understanding, the present invention is implementedSubstantially the part that contributes to existing technology can be embodied in the form of software products the technical solution of example in other words,The computer software product is stored in a storage medium, including some instructions are used so that computer equipment (can be withIt is personal computer, server or network equipment etc.) execute all or part of each embodiment the method for the present invention.And storage medium above-mentioned includes: that movable storage device, ROM, RAM, magnetic or disk etc. are various can store program codeMedium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, anyThose familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all containLid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (12)

CN201710522976.9A2017-06-302017-06-30Error event processing method and electronic equipmentActiveCN109213615B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201710522976.9ACN109213615B (en)2017-06-302017-06-30Error event processing method and electronic equipment

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201710522976.9ACN109213615B (en)2017-06-302017-06-30Error event processing method and electronic equipment

Publications (2)

Publication NumberPublication Date
CN109213615Atrue CN109213615A (en)2019-01-15
CN109213615B CN109213615B (en)2021-03-19

Family

ID=64976854

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201710522976.9AActiveCN109213615B (en)2017-06-302017-06-30Error event processing method and electronic equipment

Country Status (1)

CountryLink
CN (1)CN109213615B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114443482A (en)*2022-01-272022-05-06上海哔哩哔哩科技有限公司Error reporting task processing method and device
CN117076182A (en)*2023-09-282023-11-17飞腾信息技术有限公司Error reporting method, system on chip, computer equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114443482A (en)*2022-01-272022-05-06上海哔哩哔哩科技有限公司Error reporting task processing method and device
CN117076182A (en)*2023-09-282023-11-17飞腾信息技术有限公司Error reporting method, system on chip, computer equipment and storage medium
CN117076182B (en)*2023-09-282024-01-19飞腾信息技术有限公司Error reporting method, system on chip, computer equipment and storage medium

Also Published As

Publication numberPublication date
CN109213615B (en)2021-03-19

Similar Documents

PublicationPublication DateTitle
CN104216811B (en)The log collecting method and system of application program
CN109947079A (en)Region method for detecting abnormality and edge calculations equipment based on edge calculations
CN102567185B (en)Monitoring method of application server
CN110224874A (en)A kind of processing method and processing device of equipment fault
CN103902442A (en)Method and system for evaluating cloud software health degree
CN103577658A (en)Method and system for evaluating intelligent terminal hardware
CN111949488A (en) A kind of hard disk failure prediction method, system and electronic device and storage medium
CN109684141A (en)A kind of disk failure diagnostic method, device, terminal and readable storage medium storing program for executing
CN108776634A (en)Cabinet environment abnormality eliminating method and device
CN106445938A (en)Data detection method and apparatus
CN109299012A (en)A kind of test method, device and electronic equipment
CN109213615A (en)A kind of error event processing method and electronic equipment
CN103336256B (en)WAT probe intelligent processing system and method
CN109039695B (en)Service fault processing method, device and equipment
CN109558299A (en)Business monitoring and the method, apparatus of early warning, equipment and storage medium
CN106358220B (en)The detection method of abnormal contact information, apparatus and system
CN107392328A (en)Fire extinguisher information maintenance method and system
CN108920326A (en)Determine system time-consuming abnormal method, apparatus and electronic equipment
CN109598525A (en)Data processing method and device
CN106970869A (en)The method of pressure test, apparatus and system
CN103390429B (en)The online test method of a kind of hard disk and server
CN110532139A (en)Method for early warning and device
CN116820885A (en) Artificial intelligence training platform alarm management method, device, equipment and storage medium
CN116680144A (en)eMMC-based data monitoring method and device and storage medium thereof
CN104461754B (en)A kind of method and apparatus for monitoring eMMC

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp