CN104268081B - A kind of software operation state monitoring method and device - Google Patents

A kind of software operation state monitoring method and device Download PDF

Info

Publication number
CN104268081B
CN104268081B CN201410499789.XA CN201410499789A CN104268081B CN 104268081 B CN104268081 B CN 104268081B CN 201410499789 A CN201410499789 A CN 201410499789A CN 104268081 B CN104268081 B CN 104268081B
Authority
CN
China
Prior art keywords
counter
initial value
predetermined threshold
value
threshold value
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.)
Active
Application number
CN201410499789.XA
Other languages
Chinese (zh)
Other versions
CN104268081A (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.)
Shenzhen Skyworth Digital Technology Co Ltd
Shenzhen Skyworth Software Co Ltd
Original Assignee
Shenzhen Skyworth Digital Technology Co Ltd
Shenzhen Skyworth Software Co 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 Shenzhen Skyworth Digital Technology Co Ltd, Shenzhen Skyworth Software Co Ltd filed Critical Shenzhen Skyworth Digital Technology Co Ltd
Priority to CN201410499789.XA priority Critical patent/CN104268081B/en
Publication of CN104268081A publication Critical patent/CN104268081A/en
Application granted granted Critical
Publication of CN104268081B publication Critical patent/CN104268081B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of software operation state monitoring method and device, wherein method includes:Assign counter initial value;Start the counter to start counting up from the initial value;The counter initialization requests that tested program is submitted are received, the counter is initialized to obtain the initial value;Whether timing detection counter count value meets predetermined threshold value requirement;If so, perform default processing strategy.Using the present invention can real off the shelf software analog hardware house dog counter circuit come the running status of monitoring system, have more versatility than traditional hardware watchdog counter circuit supervisory control system running state and saved hardware cost.

Description

A kind of software operation state monitoring method and device
Technical field
The present invention relates to computer security technique field, more particularly to a kind of software operation state monitoring method and device.
Background technology
In microcomputer system, its work can usually be disturbed by external electromagnetic field, cause program fleet and fall into Enter endless loop, now, cause system can not normal operation, influence the reliability of product.House dog is a kind of supervisory control system running The method of state, traditional house dog monitors the operation of main program by designing a hardware timer circuit, for example, guarding the gate An I/O (Input/Output, input/output interface) pin of dog chip and single-chip microcomputer is connected, and the pin passes through programme-control Periodically Watch Dog Timer is reset to this pin input high level, when program enters endless loop state, watchdog circuit When cannot get the set signal that single-chip microcomputer is sent, timer, which overflows, causes house dog interruption generation one is non-maskable to reset letter Command system reset.Traditional hardware watchdog needs certain hardware cost, and different hardware products needs to debug not Same hardware watchdog circuit, without versatility.
The content of the invention
For overcome the deficiencies in the prior art, the invention provides a kind of software operation state monitoring method and device to be used for By software analog hardware house dog counter circuit come the running status of monitoring system.
In a first aspect, the present invention provides a kind of software operation state monitoring method, this method includes:
Assign counter initial value;
Start the counter to start counting up from the initial value;
Receive the counter initialization requests that tested program is submitted, by the counter initialize to obtain it is described just Value;
Whether timing detection counter count value meets predetermined threshold value requirement;
If so, perform default processing strategy.
On the other hand, the present invention provides a kind of device for being used to realize software operation state monitoring, and described device includes:
Assignment module, assign counter initial value;
Counting module, started counting up for starting counter from the initial value;
Initialization module, for receiving the counter initialization requests of tested program submission, by the counter Initialization obtains the initial value;
Detection module, for regularly detecting whether the counter meets predetermined threshold value requirement;
Processing module, for when detecting that the counter meets predetermined threshold value requirement, performing default Processing strategy.
Software operation state monitoring process starts counting up to obtain counter counts by starting counter from initial value in the present invention Numerical value, counter is initialized into simultaneously timing detection counter when counter initialization requests are received in counting process Whether count value meets predetermined threshold value requirement, is seen if so, performing default processing strategy to realize by software analog hardware Door dog counter circuit carrys out the running status of monitoring system, than traditional hardware watchdog counter circuit supervisory control system running shape State has more versatility and has saved hardware cost.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of flow chart of software operation state monitoring method provided by the invention;
Fig. 2 is the flow chart of another software operation state monitoring method provided by the invention;
Fig. 3 is the flow chart of another software operation state monitoring method provided by the invention;
Fig. 4 is a kind of structure drawing of device for realizing software operation state monitoring provided by the invention.
Embodiment
To make the objects, technical solutions and advantages of the present invention clearer, the present invention is carried out below in conjunction with accompanying drawing detailed Thin introduction, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of protection of the invention.
The software operation state monitoring method referred in the embodiment of the present invention is commonly referred to as house dog, for monitoring system Running status, when system running state is unsatisfactory for normal condition, such as:Program fleet, which is absorbed in endless loop or hardware fault, to be made The system of obtaining enters dead state, and house dog just triggers default action (such as alarm pop-up, system reset).
Tested program mentioned in the embodiment of the present invention needs be any one program according to user, such as uses C The keyword search program of language realization, with VHDL, (Verilog Hardware Description Language, hardware are retouched Predicate is sayed) the horse race lamp program realized, stopwatch program etc. for being realized with assembler language.
Fig. 1 is a kind of flow chart of software operation state monitoring method provided by the invention, running software as depicted Method for monitoring state may comprise steps of:
S101, assign counter initial value.
In the specific implementation, start software operation state monitoring process, software operation state when tested program needs monitoring Monitoring process is used to monitor tested program.Start software operation state monitoring process, running software after tested program is started Condition monitoring process then assigns initial value to its internal timer after start-up, if initial value is 0 or 100.Also need to explanation It is that the priority of the software operation state monitoring process is set lower than tested program not influence the normal fortune of tested program OK, such as:The software operation state monitoring process and the tested program are run in terminal, sets the software to transport The priority of row condition monitoring process can be by into task manager, selecting the software operation state in option Monitoring process and right button, priority is set in the option selection that right button occurs, then set according to the priority of the tested program The priority of the software operation state monitoring process is put to realize.
S102, start the counter and started counting up from the initial value.
In the specific implementation, the counting mode of counter include two kinds, it is a kind of for monotonic increase mode (as gradually add one, Gradually plus second-class mode), another kind for monotone decreasing mode (as gradually subtracted one, gradually subtracting second-class mode).Such as software fortune Counter described in row condition monitoring process initiation is according to CPU (Central Processing Unit, central processing unit) clock frequency The time cycle of rate or setting carries out gradually plus a mode counts, if counter uses gradually adds one according to cpu clock frequency When mode counts and cpu clock frequency is 50MHz, counter is performed once plus in a manner of an operation since initial value by every 20ns Gradually obtain each count value;If counter use according to the time cycle of setting gradually add a mode count and it is set when Between the cycle be 1s, counter is performed once by every 1s since initial value plus is gradually obtained each count value in a manner of an operation;If Initial value is 0, as each counting is carried out plus an operation count value will gradually be changed into 1,2,3 etc., and during counting etc. Pending step S103.
S103, the counter initialization requests that tested program is submitted are received, the counter is initialized to obtain The initial value.
It is positioned over inside tested program, and ensures in tested program in the specific implementation, counter initialization requests are scattered The run time of program is less than software operation state monitoring between adjacent counter initialization requests under normal operation Process Counter count down to the time up to predetermined threshold value from initial value, soft to prevent triggering under tested program normal operation Part running state monitoring process enters interrupt service routine.Software operation state monitoring process starts after counting since counter The counter initialization requests for waiting tested program to submit, will when receiving the counter initialization requests of tested program submission Counter initializes to obtain initial value, and counter continues since the initial value with predetermined counting mode counting.
Whether S104, timing detection counter count value meet predetermined threshold value requirement.
In the specific implementation, after starting counter and being counted according to preset count mode, timing detection counter count value is It is no meet predetermined threshold value requirement, if such as counter using gradually plus one by the way of count, whenever count value carry out once add All carry out whether one-time detection counter meets predetermined threshold value requirement or whenever the counting accordingly after one operation Value carries out all carrying out whether one-time detection counter meets predetermined threshold value requirement accordingly twice plus after an operation.Can Choosing, if counter is counted by the way of monotonic increase, whether the timing detection counter count value meets pre-determined threshold Value requires whether be more than predetermined threshold value for timing detection counter count value;If counter meter by the way of monotone decreasing Number, whether the timing detection counter count value meets predetermined threshold value requirement small for timing detection counter count value In predetermined threshold value.
S105, if so, performing default processing strategy.
In the specific implementation, when detecting that counter meets predetermined threshold value requirement, software operation state monitoring Process enters interrupt service routine and performs default processing strategy.The default processing strategy includes but is not limited to:Triggering is pre- Alert action, preserve system running state or triggering system reset operation.Wherein, the early warning action includes pop-up warning, sound Sound alarm etc. can prompt the prompt action that tested program running status described in user is unsatisfactory for normal condition.The preservation system fortune Row state be when the system where the tested program has a peripheral hardware can in peripheral hardware writing system and tested program it is current Running status, for example, tested program is that MPC, software operation state monitoring process are run under Windows-XP systems Sometime detecting that counter is more than predetermined threshold value, now software operation state monitoring process enters to interrupt and taken The progress or MPC for the video that the utilization rate of business program record current hosts CPU and internal memory, MPC play are damaged Internal file etc. characterize the information of current system and tested program running status and generate printing of the journal file by connection Machine is printed or is stored in connected USB device so that user subsequently carries out inquiry maintenance work.Optionally, if No, then the counter continues to count according to predetermined counting mode since current count value and waits following time interval Whether detection counter count value meets predetermined threshold value requirement.
Present example embodiment, rolling counters forward is started by software operation state monitoring process, in counting process When receiving counter initialization requests by counter initialize and timing detection counter count value whether meet it is pre- Gating limit value is required to realize by software come analog hardware house dog counter circuit come the running status of monitoring system, can saved Hardware cost strengthens the versatility of house dog.
Fig. 2 is the flow chart of another software operation state monitoring method provided by the invention, software fortune as depicted Row method for monitoring state may comprise steps of:
S201, assign counter initial value.
This step can be found in the step S101 in embodiment illustrated in fig. 1.
S202, start the counter and started counting up from the initial value by gradually plus in a manner of one.
Software operation state monitoring process then starts after software operation state monitoring process assigns initial value to counter Counter starts to be carried out gradually according to the time cycle of cpu clock frequency or setting plus a mode counts, such as works as counter Use and carried out gradually according to the time cycle of setting plus a mode counts and when the time cycle of the setting is 1s, counter from Initial value is started to be performed once by every 1s plus gradually obtains each count value in a manner of an operation;If initial value is 0, performs and once count Numerical value adds an operation count value automatically plus 1, therefore counter gradually becomes since initial value 0 and turns to 1,2,3 etc., and is counting The pending step S203 such as in several processes.
S203, the counter initialization requests that tested program is submitted are received, the counter is initialized to obtain The initial value.
It is positioned over inside tested program, and ensures in tested program in the specific implementation, counter initialization requests are scattered The run time of program is less than software operation state monitoring between adjacent counter initialization requests under normal operation Process Counter count down to the time up to predetermined threshold value from initial value, soft to prevent triggering under tested program normal operation Part running state monitoring process enters interrupt service routine.Software operation state monitoring process starts after counting since counter The counter initialization requests for waiting tested program to submit, will when receiving the counter initialization requests of tested program submission Counter initializes to obtain the initial value, and the counter continues to count by gradually plus in a manner of one since the initial value Number.
Whether S204, timing detection counter count value are more than predetermined threshold value.
In the specific implementation, starting counter according to predetermined gradually plus after counting mode counting, timing detection counts Whether device count value is more than predetermined threshold value requirement, such as whenever the count value all enter accordingly once plus after an operation Whether row one-time detection counter is more than predetermined threshold value requirement or whenever the count value is carried out twice plus one operates All carry out whether one-time detection counter is more than predetermined threshold value requirement accordingly afterwards, step is performed if so, then turning to S205, if it is not, then the counter continues since current count value gradually plus in a manner of one to carry out counting operation.It is optional , if the counter is counted by the way of monotonic increase, whether the timing detection counter count value meets pre- gating Whether limit value requirement is more than predetermined threshold value for timing detection counter count value;If the counter uses the side of monotone decreasing Formula counts, and whether the timing detection counter count value meets predetermined threshold value requirement is for timing detection counter count value It is no to be less than predetermined threshold value.
S205, if so, performing default processing strategy.
In the specific implementation, when detecting that counter meets predetermined threshold value requirement, software operation state monitoring Process enters interrupt service routine and performs default processing strategy.The default processing strategy includes but is not limited to:Triggering is pre- Alert action, preserve system running state or triggering system reset operation.Wherein, the early warning action includes pop-up warning, sound Sound alarm etc. can prompt the prompt action that tested program running status described in user is unsatisfactory for normal condition.The preservation system fortune Row state be when the system where tested program has a peripheral hardware can in peripheral hardware writing system and tested program current operation State.Such as tested program is runs MPC under Windows-XP systems, in MPC running due to The reason such as internal processes file corruption or system operation low memory and do not respond to it, now software operation state monitor Process does not receive the counter initialization requests of MPC submission, it is impossible to carries out step S203, counter is in keeping count During will be more than predetermined threshold value, step S204 will be more than pre- gating sometime detecting counter Limit value, now software operation state monitoring process enter interrupt service routine record current hosts CPU and internal memory utilization rate, sudden and violent Internal file that the progress or MPC of the video of the audio-visual broadcasting of wind are damaged etc. characterizes current system and tested program operation The information of state and generate journal file print or be stored in by the printer of connection in connected USB device with Inquiry maintenance work is subsequently carried out for user.Optionally, if it is not, then the counter continues according to pre- since current count value Fixed counting mode, which counts, waits whether the detection counter count value of following time interval meets predetermined threshold value requirement.
The embodiment of the present invention describes a kind of software operation state monitoring method, and counter initialization requests are distributed to In tested program, assign counter initial value and start to count by gradually plus in a manner of one, the meeting when tested program normal operation Reach at counter initialization requests so as to propose counter initialization requests, running software to software operation state monitoring process The counter initialization requests that condition monitoring process is submitted according to tested program initialize counter to obtain initial value, and counter will Continue to count since initial value, and be timed whether detection counter count value is more than predetermined threshold value step;And work as Tested program, which is run, to fly to be absorbed in endless loop when do not respond to, and tested program can not be reached at counter initialization requests and caused Software operation state monitoring process can not enter linage-counter initialization operation, and counter is during keeping count, software fortune Row condition monitoring process at a time will detect that counter is more than predetermined threshold value so as to trigger running software Condition monitoring process enters interrupt service routine and performs default processing strategy.It can be realized by this method hard by software simulation Part house dog counting circuit monitors the running status of tested program, than traditional hardware watchdog counter circuit monitoring system Running status has more versatility and has saved hardware cost.
Fig. 3 is the flow chart of another software operation state monitoring method provided by the invention, software fortune as depicted Row method for monitoring state may comprise steps of:
S301, tested program need to start software operation state monitoring process during monitoring.
To realize that the monitoring to tested program running status monitors firstly the need of software operation state is started in the present embodiment Process, the software operation state monitoring process are used to monitor tested program.Start running software after tested program is started Condition monitoring process.
S302, assign counter initial value.
This step can be found in the step S101 in embodiment illustrated in fig. 1.
S303, the software operation state monitoring process start the counter from the initial value by gradually plus in a manner of one Start counting up.
Software operation state monitoring process then starts after software operation state monitoring process assigns initial value to counter Counter starts to be carried out gradually according to the time cycle of cpu clock frequency or setting plus a mode counts, such as works as counter Use and carried out gradually according to the time cycle of setting plus a mode counts and when the time cycle of the setting is 1s, counter from Initial value is started to be performed once by every 1s plus obtains each count value in a manner of an operation;If initial value is 0, a count value is performed Add an operation count value automatically plus 1, therefore counter gradually becomes since initial value 0 and turns to 1,2,3 etc., and in counting During etc. pending step S304.
S304, tested program is to the software operation state monitoring process transmitting counter initialization requests.
It is positioned over inside tested program, and ensures described tested in the specific implementation, counter initialization requests are scattered The run time of program is less than software operation state between adjacent counter initialization requests in the case of normal program operation Monitoring process Counter count down to the time up to predetermined threshold value from initial value, to prevent drawing under tested program normal operation Part running state monitoring process of feeling like jelly enters interrupt service routine.Software operation state monitoring process is from after counter starts counting Start waiting for the counter initialization requests of tested program submission.
S305, the counter initialization requests submitted according to tested program, the software operation state monitoring process is by institute Counter is stated to initialize to obtain the initial value.
In the specific implementation, software operation state monitoring process receives the counter initialization requests of tested program submission When, counter is initialized to obtain initial value, counter continues since initial value with predetermined counting mode counting.
Whether S306, the software operation state monitoring process timing detection counter count value are more than predetermined threshold value.
In the specific implementation, after counter is started gradually to add a counting mode to count, timing detection counter count value Whether more than predetermined threshold value requirement, such as whenever counter all carried out once accordingly once plus after an operation Whether detection counter count value is more than predetermined threshold value requirement or whenever the count value carries out all phase twice plus after an operation Whether the carry out one-time detection counter answered is more than predetermined threshold value requirement, and step S307 is performed if so, then turning to, if No, then counter continues to be counted by gradually plus in a manner of one since current count value.Optionally, if the counter is adopted Counted with the mode of monotonic increase, whether the timing detection counter count value meets predetermined threshold value requirement is detected for timing Whether counter is more than predetermined threshold value;If the counter is counted by the way of monotone decreasing, the timing inspection Survey counter and whether meet whether predetermined threshold value requirement is less than predetermined threshold value for timing detection counter count value.
S307, if so, performing default processing strategy.
In the specific implementation, when detecting that counter is more than predetermined threshold value requirement, software operation state monitoring Process enters interrupt service routine and performs default processing strategy.The default processing strategy includes but is not limited to:Triggering is pre- Alert action, preserve system running state or triggering system reset operation.Wherein, the early warning action includes pop-up warning, sound Sound alarm etc. can prompt user that tested program running status is unsatisfactory for the prompt action of normal condition.The preservation system operation shape State be when the system where the tested program has a peripheral hardware can in peripheral hardware writing system and tested program current operation State.Optionally, if it is not, then the counter continues to count under wait according to predetermined counting mode since current count value Whether the detection counter count value of one time interval is more than predetermined threshold value requirement.
Present example embodiment, rolling counters forward is started by software operation state monitoring process, in counting process Counter is initialized according to the counter initialization requests that tested program is submitted, and whether timing detection counter count value is big Require to realize by software come analog hardware house dog counter circuit come the running status of monitoring system, energy in predetermined threshold value Save the versatility of hardware cost enhancing house dog.
Fig. 4 is a kind of software operation state supervising device structure chart provided by the invention.To be realized to institute in the present embodiment The monitoring of tested program running status is stated firstly the need of one software operation state monitoring process of establishment, the software operation state Monitoring process is software operation state supervising device, and software operation state supervising device 100 as shown in Figure 4 can at least wrap Include:Assignment module 101, counting module 102, initialization module 103, detection module 104, processing module 105.
Assignment module 101, assign counter initial value.
In the specific implementation, to realize that the monitoring to tested program running status monitors firstly the need of software operation state is started Process, the software operation state monitoring process are used to monitor tested program.Start running software after tested program is started Then software operation state monitoring process assignment module assigns initial value to condition monitoring process to timer, if initial value is 0 or 100. It should be noted that the priority of software operation state monitoring process is set lower than tested program not influence tested program Normal operation, such as:The software operation state monitoring process and the tested program are run in terminal, described in setting The priority of software operation state monitoring process can be by into task manager, selecting the software to transport in option Row condition monitoring process and right button, " setting priority " is selected in the option that right button occurs, then according to the tested program Priority sets the priority of the software operation state monitoring process to realize.
Counting module 102, started counting up for starting the counter from the initial value.
In the specific implementation, after software operation state monitoring process assignment module assigns the initial value to the counter Software operation state monitoring process counting module then starts the counter and started counting up, and the counting mode of counter includes two Kind, a kind of mode (as using gradually adding one, gradually added second-class mode) for monotonic increase, another kind is the mode of monotone decreasing (as gradually subtracted one, gradually subtracting second-class mode).Counting module then starts counting after assignment module assigns initial value to counter Device starts to be carried out gradually according to the time cycle of cpu clock frequency or setting plus a mode counts, if counter uses basis Cpu clock frequency gradually adds a mode to count and when cpu clock frequency is 50MHz, and counter is held since initial value with every 20ns Row is once plus a mode operated gradually obtains each count value;If counter uses gradually adds one according to the time cycle of setting Mode counts and the set time cycle is 1s, counter since initial value by every 1s perform once plus in a manner of an operation by It is secondary to obtain each count value;If initial value is 0, as each counting carries out adding an operation count value to be gradually changed into 1,2,3 etc., The counting module waits initialization module 103 to initialize counter during counting.
Initialization module 103, for receiving the counter initialization requests of tested program submission, by the rolling counters forward Value initialization obtains the initial value.
It is positioned over inside tested program, and ensures in tested program in the specific implementation, counter initialization requests are scattered The run time of program is less than software operation state monitoring between adjacent counter initialization requests under normal operation Process Counter count down to the time up to predetermined threshold value from initial value, soft to prevent triggering under tested program normal operation Part running state monitoring process enters interrupt service routine.Software operation state monitoring process starts after counting since counter The counter initialization requests for waiting tested program to submit, when receiving the counter initialization requests of tested program submission, just Beginningization module initializes the counter to obtain initial value, and counter continues with predetermined counting mode since initial value Count.
Detection module 104, whether meet predetermined threshold value requirement for timing detection counter count value.
In the specific implementation, after counting module startup counter counts according to preset count mode, the detection module is determined When detection counter count value whether meet predetermined threshold value requirement, if such as the counter using gradually add one by the way of meter Count, whether all corresponding progress one-time detection counter meets pre- after count value progress once adds an operation The requirement of gating limit value all carries out one-time detection rolling counters forward accordingly after the count value carries out adding an operation twice Whether value meets predetermined threshold value requirement.Optionally, if counter is counted by the way of monotonic increase, the detection module is determined When detection counter count value whether meet predetermined threshold value requirement for detection module timing detection counter count value it is whether big In predetermined threshold value;If counter is counted by the way of monotone decreasing, the detection module timing detection counter count value Whether meet whether predetermined threshold value requirement is less than predetermined threshold value for detection module timing detection counter count value.
Processing module 105, for when detecting that the counter meets predetermined threshold value requirement, performing default Processing strategy.
In the specific implementation, when detecting that counter meets predetermined threshold value requirement, software operation state monitoring Process enters interrupt service routine and performs default processing strategy.The default processing strategy includes but is not limited to:Triggering is pre- Alert action, preserve system running state or triggering system reset operation.Wherein, the early warning action includes pop-up warning, sound Sound alarm etc. can prompt the prompt action that tested program running status described in user is unsatisfactory for normal condition.The preservation system fortune Row state be when the system where tested program has a peripheral hardware can in peripheral hardware writing system and tested program current operation State.Such as counter, using gradually adding one counting mode to count, tested program is to be run under Windows-XP systems MPC, in MPC running due to the reason such as internal processes file corruption or system operation low memory and It is not responded to, now software operation state monitoring process does not receive the counter initialization requests of MPC submission, Counter will be more than predetermined threshold value during keeping count, and detection module will detected sometime Counter is more than predetermined threshold value, and now it is current main to enter interrupt service routine record for software operation state monitoring process Internal file that the progress or MPC for the video that the utilization rate of machine CPU and internal memory, MPC play are damaged etc. characterizes The information of current system and tested program running status simultaneously generates journal file and prints or protect by the printer of connection In the presence of in the USB device connected so that user subsequently carries out inquiry maintenance work.Optionally, if it is not, then the counter from Current count value starts to continue to count the detection counter count value for waiting following time interval according to predetermined counting mode It is no to meet predetermined threshold value requirement.
It can be seen that by Fig. 4 device 100 realized software operation state and monitored, can be achieved to guard the gate by software analog hardware Dog counter circuit carrys out the running status of monitoring system, than traditional hardware watchdog counter circuit supervisory control system running state More versatility and hardware cost is saved.
A kind of software operation state monitoring method and device disclosed in the embodiment of the present invention are described in detail above, Above disclosure is only preferred embodiment of present invention, can not limit the interest field of the present invention with this certainly, therefore The equivalent variations made according to the claims in the present invention, still belong to the scope that the present invention is covered.

Claims (8)

  1. A kind of 1. software operation state monitoring method, it is characterised in that including:
    Assign counter initial value;
    Start the counter to start counting up from the initial value;
    The counter initialization requests that tested program is submitted are received, the counter is initialized to obtain the initial value;
    Whether timing detection counter count value meets predetermined threshold value requirement;
    If so, performing default processing strategy into interrupt service routine, the processing strategy includes triggering early warning action, preserved System running state.
  2. 2. according to the method for claim 1, it is characterised in that the counter from the initial value start counting up including:
    The counter gradually adds one or described counter gradually to subtract one since the initial value since the initial value.
  3. 3. method according to claim 1 or 2, it is characterised in that if the counter gradually adds since the initial value One, whether the timing detection counter count value, which meets predetermined threshold value, requires to include:
    Timing detects whether the counter is more than predetermined threshold value.
  4. 4. method according to claim 1 or 2, it is characterised in that if the counter gradually subtracts since the initial value One, whether the timing detection counter count value, which meets predetermined threshold value, requires to include:
    Timing detects whether the counter is less than predetermined threshold value.
  5. A kind of 5. software operation state supervising device, it is characterised in that including:
    Assignment module, for assigning counter initial value;
    Counting module, started counting up for starting the counter from the initial value;
    Initialization module:It is for receiving the counter initialization requests of tested program submission, the counter is initial Change obtains the initial value;
    Detection module, whether meet predetermined threshold value requirement for timing detection counter count value;
    Processing module, for when detecting that the counter meets predetermined threshold value requirement, journey to be serviced into interrupting Sequence performs default processing strategy, and the processing strategy includes triggering early warning action, preserves system running state.
  6. 6. device according to claim 5, it is characterised in that the counting module starts the counter from the initial value Start counting up including:
    The counter module starts the counter and gradually adds one or described counter module to start institute since the initial value State counter and gradually subtract one since the initial value.
  7. 7. the device according to claim 5 or 6, it is characterised in that
    The detection module, if gradually adding one since the initial value for the counter, regularly detect the counter counts Whether numerical value is more than predetermined threshold value.
  8. 8. the device according to claim 5 or 6, it is characterised in that
    The detection module, if gradually subtracting one since the initial value for the counter, regularly detect the counter counts Whether numerical value is less than predetermined threshold value.
CN201410499789.XA 2014-09-25 2014-09-25 A kind of software operation state monitoring method and device Active CN104268081B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410499789.XA CN104268081B (en) 2014-09-25 2014-09-25 A kind of software operation state monitoring method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410499789.XA CN104268081B (en) 2014-09-25 2014-09-25 A kind of software operation state monitoring method and device

Publications (2)

Publication Number Publication Date
CN104268081A CN104268081A (en) 2015-01-07
CN104268081B true CN104268081B (en) 2018-03-16

Family

ID=52159604

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410499789.XA Active CN104268081B (en) 2014-09-25 2014-09-25 A kind of software operation state monitoring method and device

Country Status (1)

Country Link
CN (1) CN104268081B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115129573A (en) * 2022-08-31 2022-09-30 国汽智控(北京)科技有限公司 Program operation monitoring method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1908906A (en) * 2005-08-05 2007-02-07 中兴通讯股份有限公司 Method for monitoring software operation state
CN103150241A (en) * 2013-04-09 2013-06-12 上海市计量测试技术研究院 System and method for monitoring and managing status of multi-server
CN104063223A (en) * 2014-06-26 2014-09-24 西安空间无线电技术研究所 Method of implementing controllable watchdog function of software programming device through FPGA (Field Programmable Gate Array)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8136124B2 (en) * 2007-01-18 2012-03-13 Oracle America, Inc. Method and apparatus for synthesizing hardware counters from performance sampling

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1908906A (en) * 2005-08-05 2007-02-07 中兴通讯股份有限公司 Method for monitoring software operation state
CN103150241A (en) * 2013-04-09 2013-06-12 上海市计量测试技术研究院 System and method for monitoring and managing status of multi-server
CN104063223A (en) * 2014-06-26 2014-09-24 西安空间无线电技术研究所 Method of implementing controllable watchdog function of software programming device through FPGA (Field Programmable Gate Array)

Also Published As

Publication number Publication date
CN104268081A (en) 2015-01-07

Similar Documents

Publication Publication Date Title
US10430260B2 (en) Troubleshooting method, computer system, baseboard management controller, and system
CA2849565C (en) Method, apparatus, and system for scheduling processor core in multiprocessor core system
CN109918141A (en) Thread execution method, device, terminal and storage medium
CN108038130B (en) Automatic false user cleaning method, device, equipment and storage medium
CN106293979A (en) Detection procedure is without the method and apparatus of response
CN102984029B (en) Heartbeat detection device and method applied to distributed system and network equipment
CN104657228B (en) A kind of system exception processing method and processing device of mobile terminal
US9594419B2 (en) Method and device for prolonging sleeping time of CPU
US20100299470A1 (en) Interrupt processing apparatus and method
CN104899125B (en) A kind of the operation information acquisition methods and device of single board system
US10324784B2 (en) Mitigating crashes of an application server executing a monitoring agent
CN106407032A (en) Multi-core system-based hardware watchdog control method and system
CN106919462B (en) Method and device for generating fault record of processor
KR20120036630A (en) Apparatus and method for processing interrupt
CN111324494A (en) Processor control method, apparatus and storage medium
TWI570547B (en) Power management using reward-based sleep state selection
CN107491372A (en) A kind of method and system for linux system RPM bags statistics CPU usage
CN104268081B (en) A kind of software operation state monitoring method and device
CN106294364B (en) Method and device for realizing web crawler to capture webpage
US7529181B2 (en) Method and apparatus for adaptive monitoring and management of distributed systems
CN105912416A (en) Method for monitoring processor in terminal, and terminal
US20160132098A1 (en) Electronic apparatus and wake-up method thereof
CN202153352U (en) Watchdog device capable of preventing computer control system from failure
JP2006227962A (en) System and method for monitoring application task
JP6133614B2 (en) Fault log collection device, fault log collection method, and fault log collection program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant