CN108255631A - Mobile terminal restarts localization method, mobile terminal and computer readable storage medium - Google Patents

Mobile terminal restarts localization method, mobile terminal and computer readable storage medium Download PDF

Info

Publication number
CN108255631A
CN108255631A CN201711468709.4A CN201711468709A CN108255631A CN 108255631 A CN108255631 A CN 108255631A CN 201711468709 A CN201711468709 A CN 201711468709A CN 108255631 A CN108255631 A CN 108255631A
Authority
CN
China
Prior art keywords
mobile terminal
node
daily record
key message
interruption
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
CN201711468709.4A
Other languages
Chinese (zh)
Other versions
CN108255631B (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201711468709.4A priority Critical patent/CN108255631B/en
Publication of CN108255631A publication Critical patent/CN108255631A/en
Application granted granted Critical
Publication of CN108255631B publication Critical patent/CN108255631B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0706Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/0721Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment within a central processing unit [CPU]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0766Error or fault reporting or storing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/079Root cause analysis, i.e. error or fault diagnosis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0793Remedial or corrective actions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a kind of mobile terminals to restart localization method, mobile terminal and computer readable storage medium, and the method comprising the steps of:After monitoring to preset the interruption of key message point corresponding position in Kernel layers of CPU management modules of mobile terminal and/or terminate operation in abnormality, read and interrupt and/or terminate the corresponding abnormal mark of operation;Abnormal identify is matched with the daily record mark to prestore;If abnormal mark identifies successful match with daily record, associated log information is identified, and obtain the progress information with interrupting and/or terminating the corresponding process of operation according to daily record identifier lookup and daily record;Daily record is restarted according to progress information and log information generation, restarting daily record positioning mobile terminal with basis restarts reason.The present invention improves positioning mobile terminal and restarts the efficiency of reason and reduce human cost.

Description

Mobile terminal restarts localization method, mobile terminal and computer readable storage medium
Technical field
The present invention relates to fields of communication technology more particularly to a kind of mobile terminal to restart localization method, mobile terminal and meter Calculation machine readable storage medium storing program for executing.
Background technology
With the fast development of terminal technology, the mobile terminals such as mobile phone and tablet computer have become what is worked and live for people Indispensable tool.User is during mobile terminal is used, it may appear that the phenomenon that mobile terminal is restarted automatically, and cause mobile whole Automatically the reason of restarting may be already present before city on mobile terminals at end, and only developer does not have found.At this point, User needs the mobile terminal returning factory, and a large amount of test job is carried out by tester, the original restarted with determining mobile terminal Cause.At present, in testing field, the method for restart pressure test to mobile terminal operating system is still using manual testing Method, restart mobile phone manually, then carry out pressure test.However, this test method excessively labor intensive and time, especially It is the mobile terminal relatively low to loophole BUG recurrence rates, just may only occurs once or several times for example, mobile terminal restarts 1000 times The input of BUG, time and manpower is excessive and output very little, it is obvious that reboot operation reason occurs for this analysis mobile terminal Way is extremely inefficient.
Invention content
It is a primary object of the present invention to propose that a kind of mobile terminal restarts localization method, mobile terminal and computer-readable Storage medium, it is intended to solve the problems, such as existing the reason of being unable to fast positioning of mobile terminal generation reboot operation.
To achieve the above object, the present invention provides a kind of mobile terminals to restart localization method, and the mobile terminal is restarted Localization method includes:
When the interruption for monitoring to preset key message point corresponding position in Kernel layers of CPU management modules of mobile terminal and/ Or operation is terminated after abnormality, read the interruption and/or the corresponding abnormal mark of termination operation;
Abnormal identify is matched with the daily record mark to prestore;
If the abnormal mark identifies successful match with the daily record, according to the daily record identifier lookup and the daily record Associated log information is identified, and obtains the progress information with the interruption and/or the termination corresponding process of operation;
Daily record is restarted according to the progress information and log information generation, to restart according to described in daily record positioning Mobile terminal restarts reason.
Optionally, it is described to monitor that key message point is preset in Kernel layers of CPU management modules of mobile terminal corresponds to position The interruption put and/or operation is terminated after abnormality, read the interruption and/or termination operation is corresponding identifies extremely Step includes:
After the Monitoring instruction of default key message point in monitoring Kernel layers of CPU management modules of mobile terminal is detected, The state value of the key message point is read according to the Monitoring instruction;
The interruption of the key message point corresponding position is determined according to the state value and/or whether terminates operation in different Normal state;
If the interruption and/or termination operation read the interruption and/or termination operation are corresponding in abnormality Abnormal mark.
Optionally, it is described the key message point is read according to the Monitoring instruction state value the step of include:
The first state of the key message point preset quantity is read according to the first reading frequency according to the Monitoring instruction Value;
If all determine the interruption and/or termination operation in normal shape according to the first state value of preset quantity State then reads the second state value of the key message point preset quantity according to the second reading frequency;
If all determine the interruption and/or termination operation in normal shape according to second state value of preset quantity State then reads the third state value of the key message point according to third reading frequency, wherein, second reading frequency is more than First reading frequency, less than the third reading frequency.
Optionally, it is described that the key message point preset quantity is read according to the first reading frequency according to the Monitoring instruction First state value the step of after, further include:
If determine that the interruption and/or termination operation in abnormality, detect according to a first state value Whether the mobile terminal occurs reboot operation;
If reboot operation does not occur for the mobile terminal, the shape of the key message point is read according to the 4th reading frequency State value.
Optionally, it is described that daily record is restarted according to the progress information and log information generation, to restart according to Before daily record positions the step of mobile terminal restarts reason, further include:
Judge whether monitor the key message again in the first preset time after getting the progress information The interruption and/or termination operation of point corresponding position are in abnormality;
If monitor the interruption and/or termination of the key message point corresponding position again in first preset time Operation then stores the progress information in abnormality.
Optionally, it is described that daily record is restarted according to the progress information and log information generation, to restart according to After daily record positions the step of mobile terminal restarts reason, further include:
Daily record is restarted described in storage, and determines restarting daily record described in the second preset time memory storage;
De-redundancy operation is performed to the log information of the second preset time memory storage, to save memory space.
Optionally, it is described to monitor that key message point is preset in Kernel layers of CPU management modules of mobile terminal corresponds to position The interruption put and/or operation is terminated after abnormality, read the interruption and/or termination operation is corresponding identifies extremely Before step, further include:
Determine it is Kernel layers described in CPU management module call flows recognition node, loading node, initialization of register Node, register reset node, clock control node, FREQUENCY CONTROL node, instruction dispatch node, steps into number of passes at operation node According to communication node, unloading node, resource bid and release node and disk read-write running node;
In the recognition node, loading node, initialization of register node, operation node, register reset node, clock Control node, FREQUENCY CONTROL node, instruction dispatch node, striding course data communication node, unloading node, resource bid and release Key message point is set in node and disk read-write running node.
Optionally, it is described to monitor that key message point is preset in Kernel layers of CPU management modules of mobile terminal corresponds to position The interruption put and/or operation is terminated after abnormality, read the interruption and/or termination operation is corresponding identifies extremely Before step, further include:
Determine that the monitoring key message point corresponding position interrupts and/or terminate the monitoring whether operation is in abnormality Corresponding thread is instructed, and the thread is deployed in Kernel layers described Kthreadd processes and kernel processes.
In addition, to achieve the above object, the present invention also provides a kind of mobile terminal, the mobile terminal include memory, It processor and is stored in the mobile terminal that can be run on the memory and on the processor and restarts finder, the shifting Dynamic terminal restarts the step for realizing that mobile terminal as described above restarts localization method when finder is performed by the processor Suddenly.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium Mobile terminal is stored on storage medium and restarts finder, the mobile terminal is restarted real when finder is executed by processor The step of now mobile terminal as described above restarts localization method.
The present invention monitors to preset key message point corresponding position in Kernel layers of CPU management modules of mobile terminal by working as Interruption and/or terminate operation after the abnormality, read the interruption and/or the corresponding abnormal mark of termination operation;It will Abnormal identify is matched with the daily record mark to prestore;If the abnormal mark identifies successful match with the daily record, Associated log information is identified according to the daily record identifier lookup and the daily record, and obtains and is grasped with the interruption and/or termination Make the progress information of corresponding process;Daily record is restarted according to the progress information and log information generation, with according to described heavy It opens the daily record positioning mobile terminal and restarts reason.It realizes before reboot operation does not occur for mobile terminal, obtains move in advance Dynamic terminal can occur that reboot operation is corresponding to restart daily record, corresponding to work in order to after reboot operation occurs for mobile terminal Personnel can improve positioning mobile terminal and restart reason according to the reason of daily record quickly determines that mobile terminal is caused to be restarted is restarted Efficiency and reduce human cost.
Description of the drawings
A kind of Fig. 1 hardware architecture diagrams of terminal of each embodiment to realize the present invention;
Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention;
Fig. 3 is the flow diagram that mobile terminal of the present invention restarts localization method first embodiment;
Fig. 4 is a kind of flow diagram of step S10 in the embodiment of the present invention;
Fig. 5 is the flow diagram that mobile terminal of the present invention restarts localization method 3rd embodiment;
Fig. 6 is the flow diagram that mobile terminal of the present invention restarts localization method fourth embodiment.
The realization, the function and the advantages of the object of the present invention will be explained with reference to attached drawing in conjunction with the embodiments.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, using for representing that the suffix of such as " module ", " component " or " unit " of element is only Be conducive to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention can include such as mobile phone, tablet Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable The shiftings such as media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer The dynamic fixed terminals such as terminal and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special For moving except the element of purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware architecture diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Dynamic terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, Wi-Fi module 102, audio output unit 103rd, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, with And 111 grade components of power supply.It will be understood by those skilled in the art that 100 structure of mobile terminal shown in Fig. 1 is not formed to moving The restriction of dynamic terminal 100, mobile terminal 100 can include than illustrate more or fewer components or the certain components of combination or The different component arrangement of person.
The all parts of mobile terminal 100 are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receive and send messages or communication process in, signal sends and receivees, specifically, by base station Downlink information receive after, handled to processor 110;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, it penetrates Frequency unit 101 can also communicate with network and other equipment by radio communication.Above-mentioned wireless communication can use any communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
Wi-Fi belongs to short range wireless transmission technology, and mobile terminal 100 can help user to receive by Wi-Fi module 102 It sends e-mails, browse webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although figure 1 shows Wi-Fi module 102, but it is understood that, and must be configured into for mobile terminal 100 is not belonging to, it completely can be with It is omitted in the range for the essence for not changing invention as needed.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 Formula, speech recognition mode, broadcast reception mode when under isotypes, it is that radio frequency unit 101 or Wi-Fi module 102 are received or The audio data that person stores in memory 109 is converted into audio signal and exports as sound.Moreover, audio output unit 103 can also provide performed with mobile terminal 100 the relevant audio output of specific function (for example, call signal receive sound, Message sink sound etc.).Audio output unit 103 can include loud speaker, buzzer etc..
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, size and the direction of gravity are can detect that when static, can be used to identify the application of mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared ray sensor, details are not described herein.
Display unit 106 is used to show by information input by user or be supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode may be used Display panel 1061 is configured in forms such as (Organic Light-Emitting Diode, OLED).
User input unit 107 can be used for receiving the number inputted or character information and generation and the use of mobile terminal The key signals input that family is set and function control is related.Specifically, user input unit 107 may include touch panel 1071 with And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect user on it or neighbouring touch operation (for example user uses any suitable objects such as finger, stylus or attachment on touch panel 1071 or in touch panel 1071 Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it Contact coordinate is converted into, then gives processor 110, and the order that processor 110 is sent can be received and performed.It in addition, can To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap It includes but is not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, operating lever etc. It is one or more, do not limit herein specifically.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel 1061 be the component independent as two to realize the function that outputs and inputs of mobile terminal, but in certain embodiments, it can The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) can include wired or wireless head-band earphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for device of the connection with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal 100, utilizes various interfaces and the entire mobile terminal of connection Various pieces are stored in by running or performing the software program being stored in memory 109 and/or module and call Data in reservoir 109 perform the various functions of mobile terminal 100 and processing data, so as to carry out entirety to mobile terminal 100 Monitoring.Processor 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulation Demodulation processor, wherein, the main processing operation system of application processor, user interface and application program etc., modulation /demodulation processing Device mainly handles wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
In addition, in mobile terminal shown in Fig. 1, processor 110 is used to call the mobile terminal stored in memory 109 Restart finder, and perform following operate:
When the interruption for monitoring default key message point corresponding position in 100Kernel layers of CPU management modules of mobile terminal And/or operation is terminated after abnormality, read the interruption and/or the corresponding abnormal mark of termination operation;
Abnormal identify is matched with the daily record mark to prestore;
If the abnormal mark identifies successful match with the daily record, according to the daily record identifier lookup and the daily record Associated log information is identified, and obtains the progress information with the interruption and/or the termination corresponding process of operation;
Daily record is restarted according to the progress information and log information generation, to restart according to described in daily record positioning Mobile terminal 100 restarts reason.
Further, it is described to monitor to preset key message point pair in 100Kernel layers of CPU management modules of mobile terminal It answers the interruption of position and/or terminates operation after abnormality, read the interruption and/or the corresponding abnormal mark of termination operation The step of knowledge, includes:
When the Monitoring instruction for detecting default key message point in monitoring 100Kernel layers of CPU management modules of mobile terminal Afterwards, the state value of the key message point is read according to the Monitoring instruction;
The interruption of the key message point corresponding position is determined according to the state value and/or whether terminates operation in different Normal state;
If the interruption and/or termination operation read the interruption and/or termination operation are corresponding in abnormality Abnormal mark.
Further, it is described the key message point is read according to the Monitoring instruction state value the step of include:
The first state of the key message point preset quantity is read according to the first reading frequency according to the Monitoring instruction Value;
If all determine the interruption and/or termination operation in normal shape according to the first state value of preset quantity State then reads the second state value of the key message point preset quantity according to the second reading frequency;
If all determine the interruption and/or termination operation in normal shape according to second state value of preset quantity State then reads the third state value of the key message point according to third reading frequency, wherein, second reading frequency is more than First reading frequency, less than the third reading frequency.
Further, it is described that the key message point present count is read according to the first reading frequency according to the Monitoring instruction After the step of first state value of amount, processor 110 is additionally operable to that the mobile terminal 100 stored in memory 109 is called to restart Finder, to realize following steps:
If determine that the interruption and/or termination operation in abnormality, detect according to a first state value Whether the mobile terminal 100 occurs reboot operation;
If reboot operation does not occur for the mobile terminal 100, the key message point is read according to the 4th reading frequency State value.
Further, it is described that daily record is restarted according to the progress information and log information generation, with according to described heavy Before opening the step of daily record positioning mobile terminal 100 restarts reason, processor 110 is additionally operable to call and be deposited in memory 109 The mobile terminal 100 of storage restarts finder, to realize following steps:
Judge whether monitor the key message again in the first preset time after getting the progress information The interruption and/or termination operation of point corresponding position are in abnormality;
If monitor the interruption and/or termination of the key message point corresponding position again in first preset time Operation then stores the progress information in abnormality.
Further, it is described that daily record is restarted according to the progress information and log information generation, with according to described heavy After opening the step of daily record positioning mobile terminal 100 restarts reason, processor 110 is additionally operable to call and be deposited in memory 109 The mobile terminal 100 of storage restarts finder, to realize following steps:
Daily record is restarted described in storage, and determines restarting daily record described in the second preset time memory storage;
De-redundancy operation is performed to the log information of the second preset time memory storage, to save memory space.
Further, it is described to monitor to preset key message point pair in 100Kernel layers of CPU management modules of mobile terminal It answers the interruption of position and/or terminates operation after abnormality, read the interruption and/or the corresponding abnormal mark of termination operation Before the step of knowledge, processor 110 is additionally operable to that the mobile terminal 100 stored in memory 109 is called to restart finder, with reality Existing following steps:
Determine it is Kernel layers described in CPU management module call flows recognition node, loading node, initialization of register Node, register reset node, clock control node, FREQUENCY CONTROL node, instruction dispatch node, steps into number of passes at operation node According to communication node, unloading node, resource bid and release node and disk read-write running node;
In the recognition node, loading node, initialization of register node, operation node, register reset node, clock Control node, FREQUENCY CONTROL node, instruction dispatch node, striding course data communication node, unloading node, resource bid and release Key message point is set in node and disk read-write running node.
Further, it is described to monitor to preset key message point pair in 100Kernel layers of CPU management modules of mobile terminal It answers the interruption of position and/or terminates operation after abnormality, read the interruption and/or the corresponding abnormal mark of termination operation Before the step of knowledge, processor 110 is additionally operable to that the mobile terminal 100 stored in memory 109 is called to restart finder, with reality Existing following steps:
Determine that the monitoring key message point corresponding position interrupts and/or terminate the monitoring whether operation is in abnormality Corresponding thread is instructed, and the thread is deployed in Kernel layers described Kthreadd processes and kernel processes.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
For the ease of understanding the embodiment of the present invention, below to the communications network system that is based on of mobile terminal of the present invention into Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system The LTE system united as universal mobile communications technology, the LTE system include the UE (User Equipment, the use that communicate connection successively Family equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, evolved UMTS lands Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned mobile terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 can include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers Such as the function of home location register (not shown) etc, and some are preserved in relation to use such as service features, data rates The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201 Address is distributed and other functions, and PCRF2036 is business data flow and the strategy of IP bearing resources and charging control strategic decision-making Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And following new network system etc., it does not limit herein.
Based on above-mentioned terminal hardware structure and communications network system, propose that mobile terminal of the present invention restarts localization method Each embodiment.
The present invention provides a kind of mobile terminal and restarts localization method.
With reference to Fig. 3, Fig. 3 is the flow diagram that mobile terminal of the present invention restarts localization method first embodiment.
In the present embodiment, the embodiment that mobile terminal restarts localization method is provided, it should be noted that although flowing Logical order is shown in journey figure, but in some cases, can be performed with the sequence being different from herein shown or described by The step of.
In the present embodiment, mobile terminal is restarted localization method and is included:
Step S10, when monitoring that key message point corresponding position is preset in Kernel layers of CPU management modules of mobile terminal Operation is interrupted and/or terminated after abnormality, reads and interrupts and/or terminate the corresponding abnormal mark of operation.
The present invention is primarily directed to mobile terminal Kernel layers of CPU (Central Processing Unit, central processing Device) it needs in management module using the scene for interrupting and/or terminating operation, in CPU management modules, mobile terminal is according to interruption And/or terminate operation attribute to use interruption and/or terminate operation scene classify, such as will according to use interrupt and/ Or terminate operation the corresponding register of scene classify, respectively according to data register, address pointer and index register, Control register group, segment register correspondence will be classified in CPU management modules using the scene for interrupting and/or terminating operation. After sorting, mobile terminal determines to interrupt and/or terminates the call flow and/or sequential logic of operation scenario respective modules, right Call flow and/or sequential logic are standardized, i.e., are set in call flow and/or the main functional node of sequential logic Key message point, to obtain the call flow and its internal basic function sequential logic that CPU management modules correspond to standardization.Its In, the Kernel layers of system kernel layer for mobile terminal is mainly used for carrying out initialization management of process, memory management, loading The related works such as Display (display), Camera Driver (camera driving) and Binder Driver (Binder drivings), and It is guarded for creating the kernels such as Core Operational thread kworkder, traps thread ksoftirqd and traps thread thermal Process.
When mobile terminal monitors the interruption of default key message point corresponding position in its Kernel layers of CPU management module And/or operation is terminated after abnormality, mobile terminal, which is read, interrupts and/or terminates the corresponding abnormal mark of operation.Wherein, Key message point is the letter being set in advance in the corresponding call flow of CPU management modules and its internal basic function sequential logic Point is ceased, for monitoring whether call flow and sequential logic are in the information point of abnormality.When monitor call flow and/or When the interruption and/or termination operation of the corresponding key message point of sequential logic are in abnormality, corresponding call flow is confirmed And/or sequential logic is in abnormality.It interrupts and/or terminates the corresponding exception of operation and be identified as what is pre-set, be used for It represents to interrupt and/or terminates mark of the operation in abnormality.It should be noted that the corresponding interruption of difference key message point And/or it is different to terminate the abnormal mark operated.The setting rule for interrupting and/or terminating operation exception mark can be according to tool Body is needed and is set, as long as ensureing that can identify that different key message points are corresponding interrupts and/or terminate operation.At this In embodiment, interrupt and/or terminate operation and be represented by IABT exceptions in abnormality.
Further, include with reference to Fig. 4, step S10:
Step S11, when the monitoring for detecting default key message point in monitoring Kernel layers of CPU management modules of mobile terminal After instruction, the state value of key message point is read according to Monitoring instruction.
Step S12 determines the interruption of key message point corresponding position according to state value and/or whether terminates operation in different Normal state.
Step S13 if interrupting and/or terminating operation in abnormality, reads interruption and/or termination operation is corresponding Abnormal mark.
When mobile terminal detects the Monitoring instruction of default key message point in its Kernel layers of CPU management module of monitoring Afterwards, the state value of default key message point is read according to Monitoring instruction, and determines that default key message point corresponds to according to state value Whether the interruption and/or termination operation of position are in abnormality.If key message point corresponding position is determined according to state value Operation is interrupted and/or terminated in abnormality, mobile terminal then reads interruption and/or terminates the corresponding abnormal mark of operation. If the interruption of key message point corresponding position is determined according to state value and/or terminates operation in normal condition, then it represents that interrupted And/or terminate and operate there is no corresponding exception mark, mobile terminal reads less than interruption and/or terminates the corresponding exception of operation Mark.
Wherein, there are correspondences with abnormality for state value.In the present embodiment, between state value and abnormality Correspondence can limit according to specific needs, not be limited herein.It such as may be configured as when some corresponding shape of key message point When state value is " 0 ", it is determined that the interruption and/or termination operation of key message point corresponding position are in normal condition;When some pass When the corresponding state value of key information point is " 1 ", it is determined that the interruption and/or termination operation of key message point corresponding position are in different Normal state.In the present embodiment, interrupt and/or terminate operation in abnormality can be regarded as interrupting and/or terminate operate it is different Often.
Step S20 matches abnormal identify with the daily record mark to prestore.
Step S30 if abnormal mark identifies successful match with daily record, is associated with according to daily record identifier lookup with daily record mark Log information, and obtain with interrupt and/or termination the corresponding process of operation progress information.
After interruption is got and/or the corresponding exception of termination operation identifies, mobile terminal can then trigger will be acquired Abnormal mark carries out matched matching instruction with the daily record mark stored in storage reboot operation reason data library.When trigger this After instruction, mobile terminal matches abnormal mark with daily record mark according to the matching instruction.If abnormal mark and daily record Successful match is identified, mobile terminal then is identified to search in the database of storage reboot operation reason according to daily record and be identified with daily record Associated log information, and obtain the progress information that process corresponding with interrupting and/or terminating operation carries out.It should be noted that The daily record is identified as the corresponding mark of log information for leading to mobile terminal reboot operation.Wherein, log information includes but unlimited In CPU management modules occur interrupting and/or terminate in the nodename of operation exception and CPU management modules occur interrupting and/ Or terminate the position of operation exception.Progress information includes but not limited to when interrupting and/or terminating operation in abnormality, right The title of process is answered, that is, relates to the title of thing process, the title of association thread, with relating to thing process interaction or the ID of association process (identification, identity) and the functional node of the corresponding CPU management modules of Thread Id and key message point.
In the present embodiment, when mark is consistent with the daily record mark to prestore extremely, then confirm what exception identified and prestored Daily record identifies successful match;If abnormal mark and the daily record mark to prestore are inconsistent, the abnormal daily record identified with prestoring is confirmed It fails to match for mark.Such as when being identified as a extremely, the daily record mark to identify a is found in the database, then confirms abnormal mark Successful match is identified with the daily record to prestore, otherwise, then confirms that it fails to match for the abnormal daily record mark for identifying and prestoring.In other realities It applies in example, may be configured as when mark is associated with the daily record mark to prestore extremely, then confirming the abnormal daily record identified with prestoring Successful match is identified, otherwise, confirms that it fails to match for the abnormal daily record mark for identifying and prestoring.It is set as and abnormal mark a1 as worked as When associated daily record is identified as a2, if when the exception that some key message point corresponds to interruption and/or terminates operation is identified as a1, and The daily record mark for being identified as a2 is found in the database, then confirms the abnormal daily record mark successful match identified with prestoring, it is no Then, confirm that it fails to match for the abnormal daily record mark for identifying and prestoring.
Step S40 restarts daily record according to progress information and log information generation, restarts daily record positioning mobile terminal with basis Restart reason.
After progress information and log information is got, mobile terminal restarts day according to progress information and log information generation Will, and daily record will be restarted and exported to designated position, in order to which mobile terminal is after occurring reboot operation, corresponding staff can With quick obtaining, this restarts daily record, restarts reason according to restart that daily record quickly determines to cause mobile terminal reboot operation.
Further, in logging process is restarted according to progress information and log information generation, mobile terminal is according to specific Form generation restart daily record, in order to which corresponding staff can quickly analyze mobile terminal according to daily record is restarted The reason of reboot operation.
Further, mobile terminal is restarted localization method and is further included:
Step a determines that monitoring key message point corresponding position interrupts and/or terminate the prison whether operation is in abnormality It surveys and instructs corresponding thread, and thread is deployed in Kernel layers of Kthreadd processes and kernel processes.
Further, mobile terminal determines its Kernel layers of CPU management module of monitoring when disposing Kernel layers of process Whether the Monitoring instruction in abnormality corresponds to thread, and will for the interruption and/or termination operation of default key point corresponding position The corresponding thread of Monitoring instruction is deployed in Kernel layers of Kthreadd processes and kernel processes, in order to whole supervise Whether the interruption and/or termination operation surveyed in Kernel layers of CPU management modules are in abnormality.It should be noted that monitoring It is independent operating in the terminal to instruct corresponding thread.
The present embodiment monitors that key message point is preset in Kernel layers of CPU management modules of mobile terminal corresponds to position by working as The interruption and/or termination operation put read interruption and/or the corresponding abnormal mark of termination operation after abnormality;It will be different It often identifies and is matched with the daily record mark to prestore;If abnormal mark identifies successful match with daily record, looked into according to daily record mark It looks for and identifies associated log information with daily record, and obtain the progress information with interrupting and/or terminating the corresponding process of operation;According into Daily record is restarted in journey information and log information generation, and restarting daily record positioning mobile terminal with basis restarts reason.It realizes in movement Before reboot operation does not occur for terminal, obtaining mobile terminal in advance can occur that reboot operation is corresponding to restart daily record, in order to After reboot operation occurs for mobile terminal, corresponding staff according to daily record is restarted can quickly determine that mobile terminal is caused to be restarted The reason of, it improves positioning mobile terminal and restarts the efficiency of reason and reduce human cost.
Further, propose that mobile terminal of the present invention restarts the second embodiment of localization method based on first embodiment.It moves Dynamic terminal restarts the second embodiment of localization method and mobile terminal restarts the first embodiment of localization method difference lies in roots The step of reading the state value of key message point according to Monitoring instruction includes:
Step b reads the first state value of key message point preset quantity according to Monitoring instruction according to the first reading frequency.
Step c, if all being determined according to the first state value of preset quantity, interrupting and/or terminate operation is in normal condition, The second state value of key message point preset quantity is then read according to the second reading frequency.
Step d, if all being determined according to the second state value of preset quantity, interrupting and/or terminate operation is in normal condition, The third state value of key message point is then read according to third reading frequency, wherein, the second reading frequency is more than first and reads frequency Rate, less than third reading frequency.
Mobile terminal is in the process of state value that key message point is read according to Monitoring instruction:Mobile terminal is according to monitoring The first state value of key message point preset quantity is read in instruction according to the first reading frequency, and judges read preset quantity First state value whether can determine to interrupt and/or terminate operation in normal condition.If the of read preset quantity One state value can determine to interrupt and/or terminate operation in normal condition, then read key message according to the second reading frequency Point preset quantity the second state value, and judge read preset quantity the second state value whether can determine interrupt and/ Or operation is terminated in normal condition.If the second state value of read preset quantity can determine to interrupt and/or terminate behaviour Make in normal condition, then the third state value of key message point preset quantity is read according to third reading frequency, with according to the Three condition value determines the interruption of key message point corresponding position and/or whether terminates operation in abnormality.
Wherein, the second reading frequency is more than the first reading frequency, and less than third reading frequency.First reading frequency, Two reading frequencies, third reading frequency and preset quantity can be set according to specific needs, can such as be set the first reading frequency It is primary to be read at interval of 1 second, the second reading frequency is set as reading once at interval of 3 seconds, third reading frequency is set Primary to be read at interval of 5 seconds, preset quantity is set as 5.I.e. when mobile terminal according to Monitoring instruction continuous 5 times with 1 second between All show to interrupt and/or terminate operation after normal condition every the state value of reading, 5 keys were continuously read at interval of 3 seconds The corresponding state value of information point, if 5 state values read at interval of 3 seconds all show to interrupt and/or terminate operation in normal State then continuously read the corresponding state value of 5 key message points, according to 5 continuously read at interval of 5 seconds at interval of 5 seconds State value determines the interruption of key message point corresponding position and/or whether terminates operation in abnormality.
It should be noted that in other embodiments, the reading that the dotted state value of key message is read in setting can be further added by Frequency, if all show to interrupt and/or terminate operation in normal condition at interval of 5 state values that 5 seconds continuously read, with The corresponding state value of 5 key message points was continuously read at interval of 8 seconds.It is without limitation in the present embodiment.
Further, mobile terminal is restarted localization method and is further included:
Step e if determining to interrupt according to a first state value and/or terminating operation in abnormality, detects shifting Whether dynamic terminal occurs reboot operation.
If reboot operation does not occur for mobile terminal, the state of key message point is read according to the 4th reading frequency by step f Value.
Further, if reading the first shape of key message point preset quantity according to the first reading frequency according to Monitoring instruction During state value, determine to interrupt according to a first state value and/or terminate operation in abnormality, mobile terminal then detects Whether it occurs reboot operation.If reboot operation does not occur for mobile terminal, mobile terminal reads according to the 4th reading frequency and closes The state value of key information point.Further, if reboot operation occurs for mobile terminal, show that mobile terminal has been initialized, move Dynamic terminal then detects whether that detecting the monitoring that the dotted state value of key message is preset in its Kernel layers of CPU management module of monitoring refers to It enables.Wherein, the 4th reading frequency can be set according to specific needs, and such as the 4th reading frequency may be configured as and the first reading frequency It is equal, it is both configured to read at interval of 1 second primary;Or it is set as unequal with the first reading frequency, such as frequency is read by the 4th Rate is set as reading primary at interval of 0.8 second or be read every 2 seconds primary.
In order to make it easy to understand, illustrate the process:When mobile terminal according to Monitoring instruction according to continuous at interval of 1 second During reading 5 dotted state value of key message, if the state value of the key message point read according to the 3rd second determines corresponding position Interruption and/or terminate operation in abnormality, and reboot operation do not occur for mobile terminal, mobile terminal then according at interval of The state value (at this point, the 4th reading frequency is set as reading once for 0.8 second) of a 0.8 key message point of reading.
If it is understood that determines to interrupt according to second state value or third state value and/or terminates operation In abnormality, mobile terminal then detects whether that reboot operation occurs.
The present embodiment reads the reading frequency of key message point by setting, in CPU management modules key message point pair When answering the interruption of position and/or terminating operation in normal condition, the reading frequency of the dotted state value of key message is read in increase, with When interrupting and/or terminating operation in normal condition, the number for reading the dotted state value of key message is reduced.
Further, propose that mobile terminal of the present invention restarts the 3rd embodiment of localization method based on first embodiment.It moves Dynamic terminal restarts the 3rd embodiment of localization method and mobile terminal restarts the first of localization method and/or the area of second embodiment It is not, with reference to Fig. 5, mobile terminal is restarted localization method and further included:
Step S50, storage restart daily record, and determine to restart daily record in the second preset time memory storage.
Step S60 performs de-redundancy operation, to save memory space to the log information of the second preset time memory storage.
After daily record is restarted in generation, daily record is restarted in mobile terminal storage, and determines the weight in the second preset time memory storage Daily record is opened, and de-redundancy operation is performed to the daily record of restarting of the second preset time memory storage, to save the storage of mobile terminal sky Between.Specifically, in de-redundancy operating process is performed, only storage belongs to one of same class reboot operation and restarts daily record, deletes Such reboot operation for being stored it is corresponding it is other restart daily record, what corresponding record belonged to same class reboot operation restarts daily record number Amount and it is corresponding interrupt and/or terminate whether operation has been changed into normal condition from abnormality, and record the interruption and/ Or terminate the fringe time that operation is changed into normal condition from abnormality.Wherein, the second preset time can be according to specific needs And it sets, such as the second preset time can be set as 45 minutes, 60 minutes or 100 minutes.It should be noted that counterweight It opens during daily record carries out classification storage, it can be according to carrying out classification storage the reason of restarting, it can also be according to restarting Position classify, be not limited herein.
Such as when the interruption that mobile terminal occurs at 10 points to 11 points in this 60 minutes and/or operation exception phenomenon is terminated, And storing 1000 restarts daily record altogether in mobile terminal.At this point, mobile terminal can interrupt and/or terminate operation from exception State is changed into before normal condition, and the daily record of restarting for belonging to same category of reboot operation is divided into one kind.If this 1000 Restart in daily record, there are 520 to restart 1 class reboot operation of daily record corresponding A, restart daily record for 360 and correspond to B1 class reboot operations, 120 Item restarts daily record and corresponds to C1 class reboot operations, then only one A1 class reboot operation is corresponding restarts daily record for storage, delete remaining 519 A1 class reboot operations are corresponding restarts daily record, and it is 520 to record A1 classes reboot operation correspondence to restart the quantity of daily record;Storage one B1 class reboot operations are corresponding restarts daily record, deletes remaining 359 B1 class reboot operations are corresponding and restart daily record, and record B1 The corresponding quantity for restarting daily record of class reboot operation is 360;One C1 class reboot operation is corresponding restarts daily record for storage, deletes it Remaining that 119 C1 class reboot operations are corresponding to restart daily record, and record C1 class reboot operations it is corresponding restart daily record quantity be 120。
It should be noted that the de-redundancy operation scheme be readily applicable to progress information and log information, when into When journey information and log information carry out de-redundancy operation, specific operating process and the carry out de-redundancy for restarting daily record was operated Journey is consistent, and this will not be repeated here.
The present embodiment is mobile whole to save by carrying out de-redundancy operation to the daily record of restarting of the second preset time memory storage The memory space at end.
Further, mobile terminal is restarted localization method and is further included:
Step g judges whether monitor key message point again in the first preset time after getting progress information The interruption and/or termination operation of corresponding position are in abnormality.
Step h, if monitoring the interruption of key message point corresponding position again in the first preset time and/or terminating behaviour Make to be in abnormality, then storage process information.
Further, after acquisition for mobile terminal is to progress information, mobile terminal is judged after progress information is got The interruption of key message point corresponding position whether is monitored in first preset time again and/or terminates operation in abnormal shape State.If it monitors the interruption of key message point corresponding position again in the first preset time and/or terminates operation in abnormal State, mobile terminal then store the progress information, to restart daily record according to progress information generation.Further, if first It does not monitor the interruption of key message point corresponding position in preset time again and/or terminates operation in abnormality, it is mobile Terminal then deletes acquired progress information.Wherein, the first preset time can be set according to specific needs, such as can be pre- by first If the time is set as 3 minutes, 5 minutes or 8 minutes etc..
Further, in storage process information process, mobile terminal determines to obtain the acquisition of progress information mobile terminal Time, according to time storage process information from front to back is obtained, by the carry out information arrangement finally obtained up front.
In the present embodiment, by judging whether monitor to interrupt and/or terminate operation again in the first preset time Determine whether storage process information in abnormality, it is mobile whole to save to control the quantity of stored progress information The memory space at end.
Further, propose that mobile terminal of the present invention restarts the fourth embodiment of localization method based on first embodiment.It moves Dynamic terminal restarts the fourth embodiment of localization method and mobile terminal restarts the first of localization method and/or the area of second embodiment It is not, with reference to Fig. 6, mobile terminal is restarted localization method and further included:
Step S70, at the beginning of determining the recognition node of CPU management modules call flow in Kernel layers, loading node, register Beginningization node, register reset node, clock control node, FREQUENCY CONTROL node, instruction dispatch node, steps into operation node Journey data communication node, unloading node, resource bid and release node and disk read-write running node.
Step S80, recognition node, loading node, initialization of register node, operation node, register reset node, Clock control node, FREQUENCY CONTROL node, instruction dispatch node, striding course data communication node, unloading node, resource bid and It discharges and key message point is set in node and disk read-write running node.
In order to can accurately reboot operation occurs for CPU management modules in fast positioning of mobile terminal Kernel layers the reason of. Mobile terminal determines the recognition node of CPU management modules call flow in its Kernel layers, loading node, initialization of register section Point, operation node, register reset node, clock control node, FREQUENCY CONTROL node, instruction dispatch node, striding course data Communication node, unloading node, resource bid and release node and disk read-write running node, and in recognition node, loading section Point, initialization of register node, operation node, register reset node, clock control node, FREQUENCY CONTROL node, instruction are adjusted With in node, striding course data communication node, unloading node, resource bid and release node and disk read-write running node Key message point is set, to monitor the interruption of corresponding node by the key message point and/or whether terminate operation in abnormal State.It is understood that recognition node, loading node, initialization of register node, operation node, register reset node, Clock control node, FREQUENCY CONTROL node, instruction dispatch node, striding course data communication node, unloading node, resource bid and It is node important in CPU management module call flows to discharge node and disk read-write running node.FREQUENCY CONTROL section FREQUENCY CONTROL node of the point to interrupt and/or terminating operation.
Further, in order to restart reason with fast positioning of mobile terminal generation reboot operation, mobile terminal determines The sequential logic of each function in CPU management modules sets key message point in the corresponding each functional node of sequential logic. Sequential logic such as some function in CPU management modules is:A → B → C → D, then in A nodes, B node, C nodes and D nodes point It She Zhi not key message point.
It is understood that due to being set in the call flow of mobile terminal disparate modules corresponding with service and sequential logic Key message point, therefore, determine mobile terminal occur reboot operation after, can also determine to restart according to the key message point The type of operation determines that mobile terminal is due to Java framework layer, Native ccf layers or is CPU pipes in Kernel layers The appearance such as reason module lead to reboot operation extremely.
The recognition node, loading node, initialization of register section that the present embodiment passes through the call flow in CPU management modules Point, operation node, register reset node, clock control node, FREQUENCY CONTROL node, instruction dispatch node, striding course data Communication node, unloading node, resource bid and release node and disk read-write running node setting key message point, pass through It monitors each key message point in CPU management modules and interrupts and/or terminate whether operation is in abnormality to judge to correspond to, with Important node generation reboot operation restarts reason in positioning mobile terminal CPU management module call flows.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium.
Mobile terminal is stored on the computer readable storage medium and restarts finder, the mobile terminal is restarted fixed Position program realizes following steps when being executed by processor:
When the interruption for monitoring to preset key message point corresponding position in Kernel layers of CPU management modules of mobile terminal and/ Or operation is terminated after abnormality, read the interruption and/or the corresponding abnormal mark of termination operation;
Abnormal identify is matched with the daily record mark to prestore;
If the abnormal mark identifies successful match with the daily record, according to the daily record identifier lookup and the daily record Associated log information is identified, and obtains the progress information with the interruption and/or the termination corresponding process of operation;
Daily record is restarted according to the progress information and log information generation, to restart according to described in daily record positioning Mobile terminal restarts reason.
Further, it is described to monitor that key message point is preset in Kernel layers of CPU management modules of mobile terminal to be corresponded to The interruption and/or termination operation of position read the interruption and/or terminate the corresponding abnormal mark of operation after abnormality The step of include:
After the Monitoring instruction of default key message point in monitoring Kernel layers of CPU management modules of mobile terminal is detected, The state value of the key message point is read according to the Monitoring instruction;
The interruption of the key message point corresponding position is determined according to the state value and/or whether terminates operation in different Normal state;
If the interruption and/or termination operation read the interruption and/or termination operation are corresponding in abnormality Abnormal mark.
Further, it is described the key message point is read according to the Monitoring instruction state value the step of include:
The first state of the key message point preset quantity is read according to the first reading frequency according to the Monitoring instruction Value;
If all determine the interruption and/or termination operation in normal shape according to the first state value of preset quantity State then reads the second state value of the key message point preset quantity according to the second reading frequency;
If all determine the interruption and/or termination operation in normal shape according to second state value of preset quantity State then reads the third state value of the key message point according to third reading frequency, wherein, second reading frequency is more than First reading frequency, less than the third reading frequency.
Further, it is described that the key message point present count is read according to the first reading frequency according to the Monitoring instruction After the step of first state value of amount, the mobile terminal, which is restarted when finder is executed by processor, realizes following steps:
If determine that the interruption and/or termination operation in abnormality, detect according to a first state value Whether the mobile terminal occurs reboot operation;
If reboot operation does not occur for the mobile terminal, the shape of the key message point is read according to the 4th reading frequency State value.
Further, it is described that daily record is restarted according to the progress information and log information generation, with according to described heavy Before opening the step of daily record positioning mobile terminal restarts reason, the mobile terminal is restarted finder and is executed by processor Shi Shixian following steps:
Judge whether monitor the key message again in the first preset time after getting the progress information The interruption and/or termination operation of point corresponding position are in abnormality;
If monitor the interruption and/or termination of the key message point corresponding position again in first preset time Operation then stores the progress information in abnormality.
Further, it is described that daily record is restarted according to the progress information and log information generation, with according to described heavy After opening the step of daily record positioning mobile terminal restarts reason, the mobile terminal is restarted finder and is executed by processor Shi Shixian following steps:
Daily record is restarted described in storage, and determines restarting daily record described in the second preset time memory storage;
De-redundancy operation is performed to the log information of the second preset time memory storage, to save memory space.
Further, it is described to monitor that key message point is preset in Kernel layers of CPU management modules of mobile terminal to be corresponded to The interruption and/or termination operation of position read the interruption and/or terminate the corresponding abnormal mark of operation after abnormality The step of before, the mobile terminal, which is restarted when finder is executed by processor, realizes following steps:
Determine it is Kernel layers described in CPU management module call flows recognition node, loading node, initialization of register Node, register reset node, clock control node, FREQUENCY CONTROL node, instruction dispatch node, steps into number of passes at operation node According to communication node, unloading node, resource bid and release node and disk read-write running node;
In the recognition node, loading node, initialization of register node, operation node, register reset node, clock Control node, FREQUENCY CONTROL node, instruction dispatch node, striding course data communication node, unloading node, resource bid and release Key message point is set in node and disk read-write running node.
Further, it is described to monitor that key message point is preset in Kernel layers of CPU management modules of mobile terminal to be corresponded to The interruption and/or termination operation of position read the interruption and/or terminate the corresponding abnormal mark of operation after abnormality The step of before, the mobile terminal, which is restarted when finder is executed by processor, realizes following steps:
Determine that the monitoring key message point corresponding position interrupts and/or terminate the monitoring whether operation is in abnormality Corresponding thread is instructed, and the thread is deployed in Kernel layers described Kthreadd processes and kernel processes.
Computer readable storage medium specific embodiment of the present invention is restarted localization method with above-mentioned mobile terminal and is respectively implemented Example is essentially identical, and details are not described herein.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or system including a series of elements not only include those elements, and And it further includes the other elements being not explicitly listed or further includes intrinsic for this process, method, article or system institute Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this Also there are other identical elements in the process of element, method, article or system.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be embodied in the form of software product, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), used including some instructions so that a station terminal equipment (can be mobile phone, computer takes Be engaged in device, air conditioner or the network equipment etc.) perform method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair The equivalent structure or equivalent flow shift that bright specification and accompanying drawing content are made directly or indirectly is used in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of mobile terminal restarts localization method, which is characterized in that the mobile terminal is restarted localization method and included:
When monitoring to be preset in key message point corresponding position in Kernel layers of central processor CPU management module of mobile terminal Disconnected and/or termination operation reads the interruption and/or terminates the corresponding abnormal mark of operation after abnormality;
Abnormal identify is matched with the daily record mark to prestore;
If the abnormal mark identifies successful match with the daily record, identified according to the daily record identifier lookup and the daily record Associated log information, and obtain the progress information with the interruption and/or the termination corresponding process of operation;
Daily record is restarted according to the progress information and log information generation, the movement is positioned to restart daily record according to Terminal restarts reason.
2. mobile terminal as described in claim 1 restarts localization method, which is characterized in that described to monitor mobile terminal The interruption of key message point corresponding position is preset in Kernel layers of CPU management modules and/or terminates operation after abnormality, It reads the interruption and/or termination operates the step of corresponding exception identifies and includes:
After the Monitoring instruction of default key message point in monitoring Kernel layers of CPU management modules of mobile terminal is detected, according to The Monitoring instruction reads the state value of the key message point;
The interruption of the key message point corresponding position is determined according to the state value and/or whether terminates operation in abnormal shape State;
If the interruption and/or termination operation read the interruption and/or termination operate corresponding exception in abnormality Mark.
3. mobile terminal as claimed in claim 2 restarts localization method, which is characterized in that described to be read according to the Monitoring instruction The step of state value for taking the key message point, includes:
The first state value of the key message point preset quantity is read according to the first reading frequency according to the Monitoring instruction;
If all determining that the interruption and/or termination operation are in normal condition according to the first state value of preset quantity, The second state value of the key message point preset quantity is read according to the second reading frequency;
If all determining that the interruption and/or termination operation are in normal condition according to second state value of preset quantity, The third state value of the key message point is read according to third reading frequency, wherein, second reading frequency is more than described First reading frequency, less than the third reading frequency.
4. mobile terminal as claimed in claim 3 restarts localization method, which is characterized in that described to be pressed according to the Monitoring instruction After the step of reading the first state value of the key message point preset quantity according to the first reading frequency, further include:
If determine that the interruption and/or termination operate and be in abnormality according to a first state value, described in detection Whether mobile terminal occurs reboot operation;
If reboot operation does not occur for the mobile terminal, the state of the key message point is read according to the 4th reading frequency Value.
5. mobile terminal as described in claim 1 restarts localization method, which is characterized in that it is described according to the progress information and Daily record is restarted in log information generation, with restart according to daily record position the step of mobile terminal restarts reason it Before, it further includes:
Judge whether monitor the key message point pair again in the first preset time after getting the progress information It answers the interruption of position and/or terminates operation in abnormality;
If it monitors the interruption of the key message point corresponding position again in first preset time and/or terminates operation In abnormality, then the progress information is stored.
6. mobile terminal as described in claim 1 restarts localization method, which is characterized in that it is described according to the progress information and Daily record is restarted in log information generation, with restart according to daily record position the step of mobile terminal restarts reason it Afterwards, it further includes:
Daily record is restarted described in storage, and determines restarting daily record described in the second preset time memory storage;
De-redundancy operation is performed to the log information of the second preset time memory storage, to save memory space.
7. as claim 1 to 6 any one of them mobile terminal restarts localization method, which is characterized in that described to monitor The interruption of key message point corresponding position is preset in Kernel layers of CPU management modules of mobile terminal and/or terminates operation in different After normal state, before reading the interruption and/or terminating the step of operating corresponding abnormal mark, further include:
Determine it is Kernel layers described in CPU management module call flows recognition node, loading node, initialization of register section Point, operation node, register reset node, clock control node, FREQUENCY CONTROL node, instruction dispatch node, striding course data Communication node, unloading node, resource bid and release node and disk read-write running node;
In the recognition node, loading node, initialization of register node, operation node, register reset node, clock control Node, FREQUENCY CONTROL node, instruction dispatch node, striding course data communication node, unloading node, resource bid and release section Key message point is set in point and disk read-write running node.
8. as claim 1 to 6 any one of them mobile terminal restarts localization method, which is characterized in that described to monitor The interruption of key message point corresponding position is preset in Kernel layers of CPU management modules of mobile terminal and/or terminates operation in different After normal state, before reading the interruption and/or terminating the step of operating corresponding abnormal mark, further include:
Determine that the monitoring key message point corresponding position interrupts and/or terminate the Monitoring instruction whether operation is in abnormality Corresponding thread, and the thread is deployed in Kernel layers described Kthreadd processes and kernel processes.
9. a kind of mobile terminal, which is characterized in that the mobile terminal includes memory, processor and is stored in the memory Mobile terminal that is upper and can running on the processor restarts finder, and it is described that the mobile terminal restarts finder The step of such as mobile terminal described in any item of the claim 1 to 8 restarts localization method is realized when processor performs.
10. a kind of computer readable storage medium, which is characterized in that be stored on the computer readable storage medium mobile whole Finder is restarted at end, and the mobile terminal, which is restarted, to be realized when finder is executed by processor as any in claim 1 to 8 The step of mobile terminal described in restarts localization method.
CN201711468709.4A 2017-12-28 2017-12-28 Mobile terminal restart positioning method, mobile terminal and computer readable storage medium Active CN108255631B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711468709.4A CN108255631B (en) 2017-12-28 2017-12-28 Mobile terminal restart positioning method, mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711468709.4A CN108255631B (en) 2017-12-28 2017-12-28 Mobile terminal restart positioning method, mobile terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108255631A true CN108255631A (en) 2018-07-06
CN108255631B CN108255631B (en) 2022-04-19

Family

ID=62724921

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711468709.4A Active CN108255631B (en) 2017-12-28 2017-12-28 Mobile terminal restart positioning method, mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108255631B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112579385A (en) * 2019-09-29 2021-03-30 中国石油天然气集团有限公司 Server file monitoring method and device
CN113806132A (en) * 2021-09-22 2021-12-17 京东方科技集团股份有限公司 Exception reset processing method and device
CN114064234A (en) * 2021-09-26 2022-02-18 荣耀终端有限公司 Method and device for repairing WMI service

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105204979A (en) * 2015-07-28 2015-12-30 维沃移动通信有限公司 Recording method of Android logs and mobile terminal
US20170103200A1 (en) * 2015-10-07 2017-04-13 Soliton Systems, K.K. Log Information Generation Apparatus And Recording Medium, And Log Information Extraction Apparatus And Recording Medium
CN107133143A (en) * 2017-04-25 2017-09-05 努比亚技术有限公司 Restart daily record merging method, method for uploading, system and readable storage medium storing program for executing
CN107276789A (en) * 2017-05-19 2017-10-20 努比亚技术有限公司 Daily record method for uploading, device and computer-readable recording medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105204979A (en) * 2015-07-28 2015-12-30 维沃移动通信有限公司 Recording method of Android logs and mobile terminal
US20170103200A1 (en) * 2015-10-07 2017-04-13 Soliton Systems, K.K. Log Information Generation Apparatus And Recording Medium, And Log Information Extraction Apparatus And Recording Medium
CN107133143A (en) * 2017-04-25 2017-09-05 努比亚技术有限公司 Restart daily record merging method, method for uploading, system and readable storage medium storing program for executing
CN107276789A (en) * 2017-05-19 2017-10-20 努比亚技术有限公司 Daily record method for uploading, device and computer-readable recording medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112579385A (en) * 2019-09-29 2021-03-30 中国石油天然气集团有限公司 Server file monitoring method and device
CN113806132A (en) * 2021-09-22 2021-12-17 京东方科技集团股份有限公司 Exception reset processing method and device
CN113806132B (en) * 2021-09-22 2023-12-26 京东方科技集团股份有限公司 Processing method and device for abnormal reset
CN114064234A (en) * 2021-09-26 2022-02-18 荣耀终端有限公司 Method and device for repairing WMI service
CN114064234B (en) * 2021-09-26 2022-11-18 荣耀终端有限公司 Method and device for repairing WMI service

Also Published As

Publication number Publication date
CN108255631B (en) 2022-04-19

Similar Documents

Publication Publication Date Title
CN108052412A (en) Restart Fault Locating Method, mobile terminal and computer readable storage medium
CN108040159A (en) Localization method, mobile terminal and readable storage medium storing program for executing are restarted based on hardware driving
CN108920306A (en) What is managed based on memory restarts localization method, mobile terminal and readable storage medium storing program for executing
CN108551411A (en) Collecting method, mobile terminal and computer readable storage medium
CN108121613A (en) Localization method, mobile terminal and readable storage medium storing program for executing are restarted based on page
CN108196968A (en) Mobile terminal restarts localization method, mobile terminal and computer readable storage medium
CN108012031A (en) Mobile terminal restarts localization method, mobile terminal and computer-readable recording medium
CN109697008A (en) A kind of content share method, terminal and computer readable storage medium
CN108052430A (en) Mobile terminal restarts localization method, mobile terminal and computer readable storage medium
CN112148579A (en) User interface testing method and device
CN109753425A (en) Pop-up processing method and processing device
CN108829444A (en) A kind of method that background application is automatically closed, terminal and computer storage medium
CN110113779A (en) Test method, system, test platform, mobile terminal and the medium of eSIM card
CN108255631A (en) Mobile terminal restarts localization method, mobile terminal and computer readable storage medium
CN109165110A (en) Mobile terminal restarts localization method, mobile terminal and computer readable storage medium
CN108182123A (en) Mobile terminal restarts localization method, mobile terminal and computer readable storage medium
CN108196969A (en) Restart monitoring and localization method, mobile terminal and computer readable storage medium
CN108052437A (en) Restart localization method, mobile terminal and computer readable storage medium
CN108089937A (en) Localization method, mobile terminal and storage medium are restarted based on direct Memory Allocation
CN109582565A (en) Prevent the method, terminal and computer storage medium of application crashes
CN109710338A (en) A kind of searching method of mobile terminal, mobile terminal and storage medium
CN109522276A (en) Application icon management method, terminal and computer readable storage medium
CN109298964A (en) Mobile terminal restarts localization method, mobile terminal and computer readable storage medium
CN108228423A (en) Mobile terminal restarts localization method, mobile terminal and computer readable storage medium
CN108076200A (en) Mobile terminal restarts localization method, mobile terminal and computer readable storage medium

Legal Events

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