CN108089937A - Localization method, mobile terminal and storage medium are restarted based on direct Memory Allocation - Google Patents

Localization method, mobile terminal and storage medium are restarted based on direct Memory Allocation Download PDF

Info

Publication number
CN108089937A
CN108089937A CN201711468544.0A CN201711468544A CN108089937A CN 108089937 A CN108089937 A CN 108089937A CN 201711468544 A CN201711468544 A CN 201711468544A CN 108089937 A CN108089937 A CN 108089937A
Authority
CN
China
Prior art keywords
direct memory
memory allocation
mobile terminal
daily record
node
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
CN201711468544.0A
Other languages
Chinese (zh)
Other versions
CN108089937B (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 CN201711468544.0A priority Critical patent/CN108089937B/en
Publication of CN108089937A publication Critical patent/CN108089937A/en
Application granted granted Critical
Publication of CN108089937B publication Critical patent/CN108089937B/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/073Error 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 in a memory management context, e.g. virtual memory or cache management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Localization method, mobile terminal and storage medium are restarted based on direct Memory Allocation the invention discloses a kind of, this method comprises the following steps:After exception occurs in the direct Memory Allocation for monitoring Kernel layers of WiFi power allocation management moulds of mobile terminal default key message point correspondence position in the block, the corresponding abnormal mark of direct Memory Allocation is read;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 according to daily record identifier lookup and daily record, and obtains the progress information of process corresponding with direct Memory Allocation;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 the efficiency for the reason for reboot operation occurs for positioning mobile terminal and reduces human cost.

Description

Localization method, mobile terminal and storage medium are restarted based on direct Memory Allocation
Technical field
The present invention relates to field of communication technology more particularly to it is a kind of based on direct Memory Allocation restart localization method, move Dynamic terminal and storage medium.
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 instrument.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 for restarting may be already present before city on mobile terminals at end, and simply developer does not have found.At this point, User needs the mobile terminal returning factory, substantial amounts of test job is carried out by tester, to determine that mobile terminal is caused to occur The reason for restarting.
At present, in testing field, the method for mobile terminal operating system restart pressure test is still using people The method of work test, restarts mobile phone, then carries out pressure test manually.However, this test method excessively labor intensive and when Between, mobile terminal especially relatively low to loophole BUG recurrence rates, for example, mobile terminal, which restarts 1000 times, just may only occur one The input of secondary or BUG several times, time and manpower is excessive and output very little, it is obvious that this analysis mobile terminal restarts behaviour The way for making reason is extremely inefficient.Therefore, how fast positioning of mobile terminal occur reboot operation the reason for be at present urgently Problem to be solved.
The content of the invention
It is a primary object of the present invention to propose it is a kind of based on direct Memory Allocation restart localization method, mobile terminal and Storage medium, it is intended to the technical issues of solving the reason for how reboot operation occurs for fast positioning of mobile terminal.
To achieve the above object, the present invention provides a kind of localization method of restarting based on direct Memory Allocation, the bases Include in the localization method of restarting of direct Memory Allocation:
When monitoring that Kernel layers of WiFi power allocation management moulds of mobile terminal default key message point in the block corresponds to position After exception occurs in the direct Memory Allocation put, the corresponding abnormal mark of the direct Memory Allocation is read;
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 It identifies associated log information, and obtains the progress information of process corresponding with the direct Memory Allocation;
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 Kernel layers of WiFi power allocation management moulds of mobile terminal default crucial letter in the block After exception occurs in the direct Memory Allocation of breath point correspondence position, the step of corresponding exception of the direct Memory Allocation identifies is read Including:
Kernel layers of WiFi power allocation management moulds of mobile terminal default key message point in the block is monitored when detecting After Monitoring instruction, the state value of the key message point is read according to the Monitoring instruction;
Whether the direct Memory Allocation for determining the key message point correspondence position according to the state value there is exception;
If exception occurs in the direct Memory Allocation, the corresponding abnormal mark of the direct Memory Allocation is read.
Optionally, the step of reading the state value of the key message point according to the Monitoring instruction includes:
The first state of quantity is preset according to the first reading frequency reading key message point according to the Monitoring instruction Value;
If all determining that the direct Memory Allocation does not occur exception according to the first state value of default quantity, according to Second reading frequency reads the second state value that the key message point presets quantity;
If all determining that the direct Memory Allocation does not occur exception according to second state value of default quantity, according to 3rd reading frequency reads the third state value of the key message point, wherein, second reading frequency is more than described first Reading frequency, less than the 3rd reading frequency.
Optionally, read that the key message point presets quantity according to the first reading frequency according to the Monitoring instruction the After the step of one state value, further include:
If it is abnormal to determine that the direct Memory Allocation occurs according to a first state value, detect described mobile whole Whether end 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, daily record is restarted according to the progress information and log information generation, to restart daily record according to Before positioning 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 direct Memory Allocation of point correspondence position occurs abnormal;
If monitor the direct Memory Allocation of the key message point correspondence position again in first preset time There is exception, then store the progress information.
Optionally, daily record is restarted according to the progress information and log information generation, to restart daily record according to After positioning 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 Kernel layers of WiFi power allocation management moulds of mobile terminal default crucial letter in the block After exception occurs in the direct Memory Allocation of breath point correspondence position, the step of corresponding exception of the direct Memory Allocation identifies is read Before, further include:
Determine it is Kernel layers described in WiFi power allocation management module call flows recognition node, loading node, just Beginningization node, operation node, instruction dispatch node, striding course data communication node, unloading node, resource bid and release section Point and disk read-write running node;
Lead in the recognition node, loading node, initialization node, operation node, instruction dispatch node, striding course data Believe node, unloading node, resource bid and discharge setting key message point in node and disk read-write running node.
Optionally, it is described to monitor Kernel layers of WiFi power allocation management moulds of mobile terminal default crucial letter in the block After exception occurs in the direct Memory Allocation of breath point correspondence position, the step of corresponding exception of the direct Memory Allocation identifies is read Before, further include:
Determine whether the direct Memory Allocation of the monitoring key message point correspondence position abnormal thread occurs, and by institute Thread is stated to be 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, Processor and what is be stored on the memory and can run on the processor restart positioning based on direct Memory Allocation Program, it is described based on direct Memory Allocation restarting when finder is performed by the processor realize as described above based on Direct the step of restarting localization method of Memory Allocation.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium The finder of restarting based on direct Memory Allocation is stored on storage medium, it is described that positioning is restarted based on direct Memory Allocation Realized when program is executed by processor as described above based on direct Memory Allocation the step of restarting localization method.
The present invention monitors Kernel layers of WiFi power allocation management moulds of mobile terminal default crucial letter in the block by working as After exception occurs in the direct Memory Allocation of breath point correspondence position, the corresponding abnormal mark of the direct Memory Allocation is read;By institute Abnormal identify is stated to be matched with the daily record mark to prestore;If the abnormal mark identifies successful match, root with the daily record Identify associated log information according to the daily record identifier lookup and the daily record, and obtain it is corresponding with the direct Memory Allocation into The progress information of journey;Daily record is restarted according to the progress information and log information generation, is determined with restarting daily record according to The position mobile terminal restarts reason.It realizes before reboot operation does not occur for mobile terminal, obtains mobile terminal meeting in advance Generation reboot operation is corresponding to restart daily record, in order to which after reboot operation occurs for mobile terminal, corresponding staff can be with According to the reason for daily record quickly determines that mobile terminal is caused to be restarted is restarted, the original that positioning mobile terminal restarts failure is improved The efficiency of cause 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 for restarting localization method first embodiment the present invention is based on direct Memory Allocation;
Fig. 4 is a kind of stream for restarting step S101 in localization method first embodiment the present invention is based on direct Memory Allocation Journey schematic diagram;
Fig. 5 is the flow diagram for restarting localization method 3rd embodiment the present invention is based on direct Memory Allocation;
Fig. 6 is the flow diagram for restarting localization method fourth embodiment the present invention is based on direct Memory Allocation.
The realization, the function and the advantages of the object of the present invention will explain referring to the drawings 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), guider, wearable device, Intelligent bracelet, pedometer The dynamic fixed terminals such as terminal and number TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special For moving outside 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 some 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 receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station Downlink information receive after, handled to processor 110;In addition, by the data sending of uplink 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 be communicated by wireless communication with network and other equipment.Above-mentioned wireless communication can use any communication Standard or agreement include 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 as needed in the scope of essence for not changing invention.
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, by radio frequency unit 101 or Wi-Fi module 102 it is receiving or The voice data that person stores in memory 109 is converted into audio signal and exports as sound.Moreover, audio output unit 103 can also provide with mobile terminal 100 perform 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, the application available for identification 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 employed Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for the number for receiving input 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 polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except 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, operation lever etc. 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) be connected 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 Voice 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 be used to calling stored in memory 109 based on direct Memory Allocation restarts finder, and performs following operation:
When monitoring that 100Kernel layers of WiFi power allocation management moulds of mobile terminal default key message point in the block corresponds to After exception occurs in the direct Memory Allocation of position, the corresponding abnormal mark of the direct Memory Allocation is read;
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 It identifies associated log information, and obtains the progress information of process corresponding with the direct Memory Allocation;
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 that 100Kernel layers of WiFi power allocation management moulds of mobile terminal are in the block default After exception occurs in the direct Memory Allocation of key message point correspondence position, the corresponding abnormal mark of the direct Memory Allocation is read The step of include:
100Kernel layers of WiFi power allocation management moulds of mobile terminal default key message point in the block is monitored when detecting Monitoring instruction after, the state value of the key message point is read according to the Monitoring instruction;
Whether the direct Memory Allocation for determining the key message point correspondence position according to the state value there is exception;
If exception occurs in the direct Memory Allocation, the corresponding abnormal mark of the direct Memory Allocation is read.
Further, the step of reading the state value of the key message point according to the Monitoring instruction includes:
The first state of quantity is preset according to the first reading frequency reading key message point according to the Monitoring instruction Value;
If all determining that the direct Memory Allocation does not occur exception according to the first state value of default quantity, according to Second reading frequency reads the second state value that the key message point presets quantity;
If all determining that the direct Memory Allocation does not occur exception according to second state value of default quantity, according to 3rd reading frequency reads the third state value of the key message point, wherein, second reading frequency is more than described first Reading frequency, less than the 3rd reading frequency.
Further, the key message point is read according to the first reading frequency according to the Monitoring instruction and presets quantity After the step of first state value, processor 110 is additionally operable to call the weight based on direct Memory Allocation stored in memory 109 Finder is opened, to realize following steps:
If it is abnormal to determine that the direct Memory Allocation occurs according to a first state value, detect described mobile whole Whether end 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, daily record is restarted according to the progress information and log information generation, to restart day according to Before will positions the step of mobile terminal 100 restarts reason, processor 110 is additionally operable to call what is stored in memory 109 Finder is restarted based on direct Memory Allocation, to realize following steps:
Judge whether monitor the key message again in the first preset time after getting the progress information The direct Memory Allocation of point correspondence position occurs abnormal;
If monitor the direct Memory Allocation of the key message point correspondence position again in first preset time There is exception, then store the progress information.
Further, daily record is restarted according to the progress information and log information generation, to restart day according to After will positions the step of mobile terminal 100 restarts reason, processor 110 is additionally operable to call what is stored in memory 109 Finder is restarted based on direct Memory Allocation, 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 that 100Kernel layers of WiFi power allocation management moulds of mobile terminal are in the block default After exception occurs in the direct Memory Allocation of key message point correspondence position, the corresponding abnormal mark of the direct Memory Allocation is read The step of before, processor 110 be additionally operable to call memory 109 in store positioning journey is restarted based on direct Memory Allocation Sequence, to realize following steps:
Determine it is Kernel layers described in WiFi power allocation management module call flows recognition node, loading node, just Beginningization node, operation node, instruction dispatch node, striding course data communication node, unloading node, resource bid and release section Point and disk read-write running node;
Lead in the recognition node, loading node, initialization node, operation node, instruction dispatch node, striding course data Believe node, unloading node, resource bid and discharge setting key message point in node and disk read-write running node.
Further, it is described to monitor that 100Kernel layers of WiFi power allocation management moulds of mobile terminal are in the block default After exception occurs in the direct Memory Allocation of key message point correspondence position, the corresponding abnormal mark of the direct Memory Allocation is read The step of before, processor 110 be additionally operable to call memory 109 in store positioning journey is restarted based on direct Memory Allocation Sequence, to realize following steps:
Determine whether the direct Memory Allocation of the monitoring key message point correspondence position abnormal thread occurs, and by institute Thread is stated to be deployed in Kernel layers described kthreadd processes and kernel processes.
Mobile terminal 100 can also be included to the power supply 111 (such as battery) of all parts power supply, 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 It unites as the LTE system of universal mobile communications technology, UE (User Equipment, use of the LTE system including communicating 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 connected 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 attaching position 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-making 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, restarting the present invention is based on direct Memory Allocation is proposed Each embodiment of localization method.
Present invention offer is a kind of to restart localization method based on direct Memory Allocation.
With reference to Fig. 3, Fig. 3 is the flow for the restarting localization method first embodiment signal the present invention is based on direct Memory Allocation Figure.
In the present embodiment, provide the embodiment for restarting localization method based on direct Memory Allocation, it is necessary to explanation It is that, although showing logical order in flow charts, in some cases, can institute be performed with the order being different from herein The step of showing or describing.
In the present embodiment, being somebody's turn to do the localization method of restarting based on direct Memory Allocation includes:
Step S101, when monitoring Kernel layers of WiFi power allocation management moulds default key message in the block of mobile terminal After exception occurs in the direct Memory Allocation of point correspondence position, the corresponding abnormal mark of direct Memory Allocation is read.
The present invention is needed primarily directed to Kernel layers of WiFi power allocation management moulds of mobile terminal are in the block using direct The scene of Memory Allocation, i.e. IPA_HW_DMA, in WiFi power allocation management modules, according to the attribute pair of direct Memory Allocation Scene using direct Memory Allocation is classified, and carries out condition limitation to sorted direct Memory Allocation, obtains WiFi Power allocation management module corresponds to the call flow and its internal basic function sequential logic of standardization, specifically classifying rules and Restrictive condition can be set according to specific needs, be not particularly limited herein.Wherein, Kernel layers are in the system of mobile terminal Stratum nucleare is mainly used for carrying out initialization management of process, memory management, loading Display (display), Camera Driver (cameras Driving) and related works such as Binder Driver (Binder drivings), and it is used to creating Core Operational thread kworkder, soft The kernels finger daemon such as interrupt thread ksoftirqd and traps thread thermal.
When mobile terminal monitors that its Kernel layers of WiFi power allocation management mould default key message point in the block corresponds to After exception occurs in the direct Memory Allocation of position, mobile terminal reads the corresponding abnormal mark of direct Memory Allocation.Wherein, it is crucial Information point is to be set in advance in the corresponding call flow of WiFi power allocation management modules and its internal basic function sequential logic In information point, for monitoring whether call flow and sequential logic abnormal information point occur.When monitor call flow and/ Or the direct Memory Allocation of the corresponding key message point of sequential logic is when occurring abnormal, confirm corresponding call flow and/or when Sequence logic occurs abnormal.The direct corresponding exception of Memory Allocation is identified as what is pre-set, for representing direct Memory Allocation There is abnormal mark.It should be noted that the abnormal mark of the corresponding direct Memory Allocation of difference key message point is to differ Sample.The setting rule that direct Memory Allocation identifies extremely can be set according to specific needs, as long as ensureing to identify not The corresponding direct Memory Allocation with key message point.In the present embodiment, it is WiFi work(that direct Memory Allocation, which occurs abnormal, IPA_HW_DMA is abnormal in rate allocation managing module.
Further, include with reference to Fig. 4, step S101:
Step S1011 monitors Kernel layers of WiFi power allocation management moulds default pass in the block of mobile terminal when detecting After the Monitoring instruction of key information point, the state value of key message point is read according to Monitoring instruction.
Whether step S1012, the direct Memory Allocation for determining key message point correspondence position according to state value there is exception.
Step S1013 if directly exception occurs in Memory Allocation, reads the corresponding abnormal mark of direct Memory Allocation.
When mobile terminal detects monitoring its Kernel layers of WiFi power allocation management mould default key message point in the block Monitoring instruction after, the state value of default key message point is read according to Monitoring instruction, and default key is determined according to state value Whether the direct Memory Allocation of information point correspondence position there is exception.If key message point correspondence position is determined according to state value There is exception in direct Memory Allocation, and mobile terminal then reads the corresponding abnormal mark of direct Memory Allocation.It is if true according to state value The direct Memory Allocation for determining key message point correspondence position does not occur exception, then it represents that there is no corresponding different for direct Memory Allocation Often mark, mobile terminal read abnormal mark corresponding less than direct Memory Allocation.
Wherein, state value is in correspondence with abnormality.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 direct Memory Allocation of key message point correspondence position does not occur exception;When some key message point When corresponding state value is " 1 ", it is determined that the direct Memory Allocation of key message point correspondence position occurs abnormal.
Step S102 matches abnormal identify with the daily record mark to prestore.
Step S103 if abnormal mark identifies successful match with daily record, is closed according to daily record identifier lookup and daily record mark The log information of connection, and obtain the progress information of process corresponding with direct Memory Allocation.
After direct Memory Allocation corresponding abnormal mark is got, mobile terminal is by acquired abnormal mark and storage The daily record mark stored in reboot operation reason data storehouse is matched.If abnormal mark identifies successful match with daily record, mobile Terminal then identifies to search in the database of storage reboot operation reason according to daily record identifies associated log information with daily record, and Obtain the progress information that process corresponding with direct Memory Allocation carries out.It should be noted that the daily record, which is identified as, causes movement eventually Hold the corresponding mark of log information of reboot operation.Wherein, log information includes but not limited to WiFi power allocation management modules It is middle to occur occurring direct Memory Allocation exception in the nodename of direct Memory Allocation exception and WiFi power allocation management modules Position.Progress information includes but not limited to when direct Memory Allocation occurs abnormal, the title of corresponding process relates to thing process Title, associate thread title, with relate to thing process interaction or the ID (identification, identity) of association process The functional node of WiFi power allocation managements module corresponding with 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, find to identify the daily record mark of a in the database, then confirm 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 arranged to 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 direct Memory Allocation is identified as a1, and in number According to the daily record for being identified as a2 mark is found in storehouse, then the abnormal daily record mark successful match identified with prestoring is confirmed, otherwise, really Recognizing the abnormal daily record mark for identifying and prestoring, it fails to match.
Step S104 restarts daily record according to progress information and log information generation, with mobile eventually according to daily record positioning is restarted Restart reason in end.
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 for reboot operation.
Further, the localization method of restarting based on direct Memory Allocation is somebody's turn to do to further include:
Step a, determines whether the monitoring direct Memory Allocation of key message point correspondence position abnormal Monitoring instruction pair occurs The thread answered, and thread is deployed in Kernel layers of kthreadd processes and kernel processes.
Further, mobile terminal determines its Kernel layers of WiFi power point of monitoring when disposing Kernel layers of process Whether the direct Memory Allocation for presetting key point correspondence position with management module there is abnormal Monitoring instruction and corresponds to thread, and will The corresponding thread of Monitoring instruction is deployed in Kernel layers of kthreadd processes and kernel processes, in order to whole supervise Survey whether Kernel layers of WiFi power allocation management moulds direct Memory Allocation in the block exception occur.It should be noted that prison It is independent operating in the terminal to survey and instruct corresponding thread.
The present embodiment monitors Kernel layers of WiFi power allocation management moulds default key in the block of mobile terminal by working as After exception occurs in the direct Memory Allocation of information point correspondence position, the corresponding abnormal mark of direct Memory Allocation is read;It will be abnormal It identifies and is matched with the daily record mark to prestore;If abnormal mark identifies successful match with daily record, according to daily record identifier lookup Associated log information is identified with daily record, and obtains the progress information of process corresponding with direct Memory Allocation;According to progress information Restart daily record with log information generation, restarting daily record positioning mobile terminal with basis restarts reason.It realizes in mobile terminal not Before generation reboot operation, obtaining mobile terminal in advance can occur that reboot operation is corresponding to restart daily record, in order to it is mobile eventually After reboot operation occurs for end, corresponding staff can quickly determine the original that mobile terminal is caused to be restarted according to daily record is restarted Cause improves the efficiency for the reason for positioning mobile terminal restarts failure and reduces human cost.
Further, propose that the present invention is based on restart localization method the second of direct Memory Allocation based on first embodiment Embodiment.The second embodiment for restarting localization method based on direct Memory Allocation based on direct Memory Allocation with restarting positioning Difference lies in include the first embodiment of method according to the step of state value of Monitoring instruction reading key message point:
Step b presets the first state value of quantity according to Monitoring instruction according to the first reading frequency reading key message point.
Step c, if all determining that direct Memory Allocation does not occur exception according to the first state value of default quantity, according to Two reading frequencies read the second state value that key message point presets quantity.
Step d, if all determining that direct Memory Allocation does not occur exception according to the second state value of default quantity, according to Three reading frequencies read the third state value of key message point, wherein, the second reading frequency is more than the first reading frequency, less than the Three reading frequencies.
Mobile terminal is in the process of state value for reading key message point according to Monitoring instruction:Mobile terminal is according to monitoring Instruction reads key message point according to the first reading frequency and presets the first state value of quantity, and judges read default quantity First state value whether can determine that direct Memory Allocation does not occur exception.If the first state value of read default quantity It can determine that direct Memory Allocation does not occur exception, then read key message point according to the second reading frequency and preset the second of quantity State value, and judge whether the second state value of read default quantity can determine that direct Memory Allocation does not occur exception. If the second state value of read default quantity can determine that direct Memory Allocation does not occur exception, frequency is read according to the 3rd Rate reads the third state value that key message point presets quantity, to determine key message point correspondence position according to third state value Whether direct Memory Allocation there is exception.
Wherein, the second reading frequency is more than the first reading frequency, and less than the 3rd reading frequency.First reading frequency, Two reading frequencies, the 3rd reading frequency and default quantity can be set according to specific needs, can such as be set the first reading frequency To be read once at interval of 1 second, the second reading frequency is arranged to read once at interval of 3 seconds, set of frequency is read by the 3rd To be read once at interval of 5 seconds, default quantity is arranged to 5.I.e. when mobile terminal according to Monitoring instruction continuous 5 times with 1 second between After the state value of reading all shows that direct Memory Allocation exception does not occur, 5 key message points pair were continuously read at interval of 3 seconds The state value answered, if 5 state values read at interval of 3 seconds all showed that direct Memory Allocation does not occur exception, at interval of 5 seconds The corresponding state value of 5 key message points is continuously read, key is determined according to 5 state values continuously read at interval of 5 seconds Whether the direct Memory Allocation of information point correspondence position there is exception.
It should be noted that it in other embodiments, can be further added by setting the reading for reading the dotted state value of key message Frequency, if all show that direct Memory Allocation does not occur abnormal at interval of 5 state values that 5 seconds continuously read, at interval of 8 Second continuously reads the corresponding state value of 5 key message points.This is not particularly limited in the present embodiment.
Further, the localization method of restarting based on direct Memory Allocation is somebody's turn to do to further include:
Whether step e if it is abnormal to determine that direct Memory Allocation occurs according to a first state value, detects mobile terminal Generation 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 presetting the first shape of quantity according to the first reading frequency reading key message point according to Monitoring instruction During state value, it is abnormal to determine that direct Memory Allocation occurs according to a first state value, mobile terminal then detects whether it sends out Raw reboot operation.If reboot operation does not occur for mobile terminal, mobile terminal reads key message point according to the 4th reading frequency State value.Further, if reboot operation occurs for mobile terminal, show that mobile terminal has been initialized, mobile terminal is then It detects whether to detect the prison for monitoring its Kernel layers of WiFi power allocation management mould default dotted state value of key message in the block Survey instruction.Wherein, the 4th reading frequency can be set according to specific needs, and such as the 4th reading frequency may be configured as reading with first Frequency is equal, is both configured to read once at interval of 1 second;Or it is arranged to unequal with the first reading frequency, such as the 4th is read It is to be read once or every reading in 2 seconds once at interval of 0.8 second to take set of frequency.
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 correspondence position House dog occur abnormal, and reboot operation does not occur for mobile terminal, and mobile terminal is then crucial according to being read once at interval of 0.8 The state value (at this point, the 4th reading frequency is arranged to read once for 0.8 second) of information point.
It is understood that if it is different to determine that direct Memory Allocation occurs according to second state value or third state value Often, mobile terminal then detects whether that reboot operation occurs.
The present embodiment reads the reading frequency of key message point by setting, with crucial in WiFi power allocation managements module When the direct Memory Allocation of information point correspondence position does not occur abnormal, the reading frequency of the dotted state value of key message is read in increase, When direct Memory Allocation does not occur abnormal, to reduce the number for reading the dotted state value of key message.
Further, propose that the present invention is based on the restart localization method the 3rd of direct Memory Allocation based on first embodiment Embodiment.The 3rd embodiment for restarting localization method based on direct Memory Allocation based on direct Memory Allocation with restarting positioning Difference lies in reference to Fig. 5, should restart localization method to first and/or second embodiment of method based on direct Memory Allocation It further includes:
Step S105, daily record is restarted in storage, and determines to restart daily record in the second preset time memory storage.
Step S106 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 Whether amount and corresponding house dog have been changed into normal condition from abnormality, and record the house dog and turn from abnormality Become the fringe time of normal condition.Wherein, the second preset time can be set according to specific needs, when such as second can be preset Between be arranged to 45 minutes, 60 minutes or 100 minutes etc..It should be noted that carry out classification storage process to restarting daily record In, it can also classify according to the position restarted, not do herein according to classification storage is carried out the reason for restarting Limitation.
Such as when there is the abnormal phenomenon of direct memory allocation error in this 60 minutes at 10 points to 11 points in mobile terminal, and Storing 1000 restarts daily record altogether in mobile terminal.At this point, mobile terminal can turn in direct Memory Allocation from abnormality Before becoming normal condition, the daily record of restarting for belonging to same category of reboot operation is divided into one kind.If this 1000 restart day In will, 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 restart Daily record corresponds to C1 class reboot operations, then only one A1 class reboot operation is corresponding restarts daily record for storage, deletes remaining 519 A1 class Reboot operation is corresponding to restart daily record, and records A1 classes reboot operation correspondence and restart the quantity of daily record for 520;Store a B1 class Reboot operation is corresponding to restart daily record, deletes remaining 359 B1 class reboot operations are corresponding and restart daily record, and record B1 classes and restart The corresponding quantity for restarting daily record is operated as 360;One C1 class reboot operation is corresponding restarts daily record for storage, delete remaining 119 C1 class reboot operations are corresponding restarts daily record, and records the corresponding quantity for restarting daily record of C1 class reboot operations as 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 to restarting daily record 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, the localization method of restarting based on direct Memory Allocation is somebody's turn to do to further include:
Step g judges whether monitor key message point again in the first preset time after getting progress information The direct Memory Allocation of correspondence position occurs abnormal.
Step h, if being monitored again in the first preset time, the direct Memory Allocation of key message point correspondence position goes out It is now abnormal, then storage process information.
Further, after acquisition for mobile terminal is to progress information, mobile terminal is judged after progress information is got Whether monitor that exception occurs in the direct Memory Allocation of key message point correspondence position in first preset time again.If first Monitor that exception occurs in the direct Memory Allocation of key message point correspondence position in preset time again, mobile terminal then stores this Progress information, to restart daily record according to progress information generation.Further, if not monitored again in the first preset time There is exception in the direct Memory Allocation of key message point correspondence position, and mobile terminal then deletes acquired progress information.Wherein, First preset time can be set according to specific needs, can be such as arranged to the first preset time 3 minutes, 5 minutes or 8 points Clock etc..
In the present embodiment, by judging whether monitor that direct Memory Allocation appearance is different again in the first preset time Often restart the accuracy rate of reason to improve positioning mobile terminal.
Further, propose that the present invention is based on the restart localization method the 4th of direct Memory Allocation based on first embodiment Embodiment.The fourth embodiment for restarting localization method based on direct Memory Allocation based on direct Memory Allocation with restarting positioning Difference lies in reference to Fig. 6, restart localization method also to first and/or second embodiment of method based on direct Memory Allocation Including:
Step S107 determines the recognition node of WiFi power allocation managements module call flow in Kernel layers, loading section Point, initialization node run node, instruction dispatch node, striding course data communication node, unloading node, resource bid and release Put node and disk read-write running node.
Step S108, in recognition node, loading node, initialization node, operation node, instruction dispatch node, striding course Key message is set in data communication node, unloading node, resource bid and release node and disk read-write running node Point.
In order to can accurately WiFi power allocation management modules restart behaviour in fast positioning of mobile terminal Kernel layers The reason for making.Mobile terminal determines the recognition node of WiFi power allocation managements module call flow in its Kernel layers, loading Node, initialization node, operation node, instruction dispatch node, striding course data communication node, unloading node, resource bid and Node and disk read-write running node are discharged, and in recognition node, loading node, initialization node, operation node, instruction Allocate node, striding course data communication node, unloading node, resource bid and release node and disk read-write running node Whether middle setting key message point, there is exception with the direct Memory Allocation for monitoring corresponding node by the key message point.It can With understanding, recognition node, loading node, initialization node, operation node, instruction dispatch node, striding course data communication Node, unloading node, resource bid and release node and disk read-write running node are WiFi power allocation management module tune With node important in flow.
Further, in order to restart reason with fast positioning of mobile terminal generation reboot operation, mobile terminal determines The sequential logic of WiFi power allocation management moulds each function in the block is set in the corresponding each functional node of sequential logic Key message point.Sequential logic such as WiFi power allocation management moulds some function in the block is:A → B → C → D is then saved in A Point, B node, C nodes and D nodes set key message point respectively.
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, definite 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 WiFi work(in Kernel layers The appearance such as rate allocation managing module cause reboot operation extremely.
The present embodiment passes through the recognition node of the call flow in WiFi power allocation management modules, loading node, initial Change node, operation node, instruction dispatch node, striding course data communication node, unloading node, resource bid and release node, And disk read-write running node sets key message point, by monitoring WiFi power allocation management moulds each crucial letter in the block Point is ceased to judge to correspond to whether direct Memory Allocation exception occurs, to position mobile terminal WiFi power allocation managements module calling Important node generation reboot operation restarts reason in flow.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium.
The finder of restarting based on direct Memory Allocation is stored on the computer readable storage medium, it is described to be based on Direct restarting when finder is executed by processor for Memory Allocation realizes following steps:
When monitoring that Kernel layers of WiFi power allocation management moulds of mobile terminal default key message point in the block corresponds to position After exception occurs in the direct Memory Allocation put, the corresponding abnormal mark of the direct Memory Allocation is read;
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 It identifies associated log information, and obtains the progress information of process corresponding with the direct Memory Allocation;
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 Kernel layers of WiFi power allocation management moulds default key in the block of mobile terminal After exception occurs in the direct Memory Allocation of information point correspondence position, the corresponding step identified extremely of the direct Memory Allocation is read Suddenly include:
Kernel layers of WiFi power allocation management moulds of mobile terminal default key message point in the block is monitored when detecting After Monitoring instruction, the state value of the key message point is read according to the Monitoring instruction;
Whether the direct Memory Allocation for determining the key message point correspondence position according to the state value there is exception;
If exception occurs in the direct Memory Allocation, the corresponding abnormal mark of the direct Memory Allocation is read.
Further, the step of reading the state value of the key message point according to the Monitoring instruction includes:
The first state of quantity is preset according to the first reading frequency reading key message point according to the Monitoring instruction Value;
If all determining that the direct Memory Allocation does not occur exception according to the first state value of default quantity, according to Second reading frequency reads the second state value that the key message point presets quantity;
If all determining that the direct Memory Allocation does not occur exception according to second state value of default quantity, according to 3rd reading frequency reads the third state value of the key message point, wherein, second reading frequency is more than described first Reading frequency, less than the 3rd reading frequency.
Further, the key message point is read according to the first reading frequency according to the Monitoring instruction and presets quantity After the step of first state value, the restarting based on direct Memory Allocation is realized as follows when finder is executed by processor Step:
If it is abnormal to determine that the direct Memory Allocation occurs according to a first state value, detect described mobile whole Whether end 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, daily record is restarted according to the progress information and log information generation, to restart day according to Before will positions the step of mobile terminal restarts reason, the finder of restarting based on direct Memory Allocation is processed Device realizes following steps when performing:
Judge whether monitor the key message again in the first preset time after getting the progress information The direct Memory Allocation of point correspondence position occurs abnormal;
If monitor the direct Memory Allocation of the key message point correspondence position again in first preset time There is exception, then store the progress information.
Further, daily record is restarted according to the progress information and log information generation, to restart day according to After will positions the step of mobile terminal restarts reason, the finder of restarting based on direct Memory Allocation is processed Device realizes following steps when performing:
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 Kernel layers of WiFi power allocation management moulds default key in the block of mobile terminal After exception occurs in the direct Memory Allocation of information point correspondence position, the corresponding step identified extremely of the direct Memory Allocation is read Before rapid, the restarting when finder is executed by processor based on direct Memory Allocation realizes following steps:
Determine it is Kernel layers described in WiFi power allocation management module call flows recognition node, loading node, just Beginningization node, operation node, instruction dispatch node, striding course data communication node, unloading node, resource bid and release section Point and disk read-write running node;
Lead in the recognition node, loading node, initialization node, operation node, instruction dispatch node, striding course data Believe node, unloading node, resource bid and discharge setting key message point in node and disk read-write running node.
Further, it is described to monitor Kernel layers of WiFi power allocation management moulds default key in the block of mobile terminal After exception occurs in the direct Memory Allocation of information point correspondence position, the corresponding step identified extremely of the direct Memory Allocation is read Before rapid, the restarting when finder is executed by processor based on direct Memory Allocation realizes following steps:
Determine whether the monitoring direct Memory Allocation of the key message point correspondence position abnormal thread occurs, and by described in Thread is deployed in Kernel layers described kthreadd processes and kernel processes.
Computer readable storage medium specific embodiment of the present invention restarts positioning with above-mentioned based on direct Memory Allocation Each specific embodiment of method 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 as this process, method, article or system institute inherently 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 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 restart localization method based on direct Memory Allocation, which is characterized in that described to restart localization method applied to shifting Dynamic terminal, it is described to restart localization method and comprise the following steps:
When monitoring Kernel layers of WiFi power allocation management moulds of mobile terminal default key message point correspondence position in the block After exception occurs in direct Memory Allocation, the corresponding abnormal mark of the direct Memory Allocation is read;
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 of process corresponding with the direct Memory Allocation;
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. localization method is restarted based on direct Memory Allocation as described in claim 1, which is characterized in that described to monitor The direct Memory Allocation of Kernel layers of WiFi power allocation management moulds of mobile terminal default key message point correspondence position in the block After there is exception, reading the step of corresponding exception of the direct Memory Allocation identifies includes:
When the monitoring for detecting monitoring Kernel layers of WiFi power allocation management moulds of mobile terminal default key message point in the block After instruction, the state value of the key message point is read according to the Monitoring instruction;
Whether the direct Memory Allocation for determining the key message point correspondence position according to the state value there is exception;
If exception occurs in the direct Memory Allocation, the corresponding abnormal mark of the direct Memory Allocation is read.
3. localization method is restarted based on direct Memory Allocation as claimed in claim 2, which is characterized in that according to the monitoring The step of state value of the instruction reading key message point, includes:
The first state value of quantity is preset according to the first reading frequency reading key message point according to the Monitoring instruction;
If all determine that the direct Memory Allocation does not occur exception according to the first state value of default quantity, according to second Reading frequency reads the second state value that the key message point presets quantity;
If all determine that the direct Memory Allocation does not occur exception according to second state value of default quantity, according to the 3rd Reading frequency reads the third state value of the key message point, wherein, second reading frequency is more than described first and reads Frequency, less than the 3rd reading frequency.
4. localization method is restarted based on direct Memory Allocation as claimed in claim 3, which is characterized in that according to the monitoring After instruction reads the step of key message point presets the first state value of quantity according to the first reading frequency, further include:
If it is abnormal to determine that the direct Memory Allocation occurs according to a first state value, detecting the mobile terminal is No generation 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. localization method is restarted based on direct Memory Allocation as described in claim 1, which is characterized in that according to the process Daily record is restarted in information and log information generation, to restart the step that daily record positions the mobile terminal and restarts reason according to Before rapid, further include:
Judge whether monitor the key message point pair again in the first preset time after getting the progress information The direct Memory Allocation of position is answered exception occur;
If being monitored again in first preset time, the direct Memory Allocation of the key message point correspondence position occurs It is abnormal, then store the progress information.
6. localization method is restarted based on direct Memory Allocation as described in claim 1, which is characterized in that according to the process Daily record is restarted in information and log information generation, to restart the step that daily record positions the mobile terminal and restarts reason according to After rapid, 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.
7. as claim 1 to 6 any one of them restarts localization method based on direct Memory Allocation, which is characterized in that institute It states to work as and monitors the straight of Kernel layers of WiFi power allocation management moulds of mobile terminal default key message point correspondence position in the block Before the step of connecing after exception occurs in Memory Allocation, reading the direct Memory Allocation corresponding abnormal mark, further include:
Determine it is Kernel layers described in WiFi power allocation management module call flows recognition node, loading node, initialization Node, operation node, instruction dispatch node, striding course data communication node, unloading node, resource bid and release node, with And disk read-write running node;
In the recognition node, loading node, initialization node, operation node, instruction dispatch node, striding course data communication section Key message point is set in point, unloading node, resource bid and release node and disk read-write running node.
8. as claim 1 to 6 any one of them restarts localization method based on direct Memory Allocation, which is characterized in that institute It states to work as and monitors the straight of Kernel layers of WiFi power allocation management moulds of mobile terminal default key message point correspondence position in the block Before the step of connecing after exception occurs in Memory Allocation, reading the direct Memory Allocation corresponding abnormal mark, further include:
Determine whether the direct Memory Allocation of the monitoring key message point correspondence position abnormal thread occurs, and by the line Journey 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 The finder of restarting based on direct Memory Allocation that is upper and can running on the processor, it is described to be based on direct Memory Allocation Restart and realized when finder is performed by the processor as described in any item of the claim 1 to 8 based on direct memory The step of restarting localization method of distribution.
10. a kind of computer readable storage medium, which is characterized in that be stored on the computer readable storage medium based on straight The finder of restarting of Memory Allocation is connect, the restarting when finder is executed by processor based on direct Memory Allocation is realized As described in any item of the claim 1 to 8 based on direct Memory Allocation the step of restarting localization method.
CN201711468544.0A 2017-12-28 2017-12-28 Direct memory allocation-based restart positioning method, mobile terminal and storage medium Active CN108089937B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711468544.0A CN108089937B (en) 2017-12-28 2017-12-28 Direct memory allocation-based restart positioning method, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711468544.0A CN108089937B (en) 2017-12-28 2017-12-28 Direct memory allocation-based restart positioning method, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN108089937A true CN108089937A (en) 2018-05-29
CN108089937B CN108089937B (en) 2022-01-14

Family

ID=62181081

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711468544.0A Active CN108089937B (en) 2017-12-28 2017-12-28 Direct memory allocation-based restart positioning method, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN108089937B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108804250A (en) * 2018-05-30 2018-11-13 努比亚技术有限公司 Restart localization method, mobile terminal and storage medium based on input/output module
CN108920306A (en) * 2018-06-29 2018-11-30 努比亚技术有限公司 What is managed based on memory restarts localization method, mobile terminal and readable storage medium storing program for executing
CN112181702A (en) * 2020-09-23 2021-01-05 北京紫光展锐通信技术有限公司 Thread monitoring method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11120032A (en) * 1997-10-13 1999-04-30 Nissin Electric Co Ltd Device for monitoring and automatically recovering fault of computer
CN104331339A (en) * 2014-11-20 2015-02-04 惠州Tcl移动通信有限公司 Mobile terminal crash detecting method and system, and mobile terminal
JP2016139206A (en) * 2015-01-26 2016-08-04 京セラドキュメントソリューションズ株式会社 Electronic equipment
CN106326026A (en) * 2016-10-12 2017-01-11 广州视睿电子科技有限公司 Methods and device for restarting operating system in case of exceptions
CN106571954A (en) * 2016-10-24 2017-04-19 上海斐讯数据通信技术有限公司 Abnormal restart reason detecting method and device of AP equipment
CN106909477A (en) * 2017-02-25 2017-06-30 郑州云海信息技术有限公司 A kind of storage server IO stack internal storage data guard methods and device
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
CN107517308A (en) * 2017-08-07 2017-12-26 惠州Tcl移动通信有限公司 Application program for mobile terminal abnormal detection method, storage device and mobile terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11120032A (en) * 1997-10-13 1999-04-30 Nissin Electric Co Ltd Device for monitoring and automatically recovering fault of computer
CN104331339A (en) * 2014-11-20 2015-02-04 惠州Tcl移动通信有限公司 Mobile terminal crash detecting method and system, and mobile terminal
JP2016139206A (en) * 2015-01-26 2016-08-04 京セラドキュメントソリューションズ株式会社 Electronic equipment
CN106326026A (en) * 2016-10-12 2017-01-11 广州视睿电子科技有限公司 Methods and device for restarting operating system in case of exceptions
CN106571954A (en) * 2016-10-24 2017-04-19 上海斐讯数据通信技术有限公司 Abnormal restart reason detecting method and device of AP equipment
CN106909477A (en) * 2017-02-25 2017-06-30 郑州云海信息技术有限公司 A kind of storage server IO stack internal storage data guard methods and device
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
CN107517308A (en) * 2017-08-07 2017-12-26 惠州Tcl移动通信有限公司 Application program for mobile terminal abnormal detection method, storage device and mobile terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108804250A (en) * 2018-05-30 2018-11-13 努比亚技术有限公司 Restart localization method, mobile terminal and storage medium based on input/output module
CN108920306A (en) * 2018-06-29 2018-11-30 努比亚技术有限公司 What is managed based on memory restarts localization method, mobile terminal and readable storage medium storing program for executing
CN112181702A (en) * 2020-09-23 2021-01-05 北京紫光展锐通信技术有限公司 Thread monitoring method and device
CN112181702B (en) * 2020-09-23 2023-06-06 北京紫光展锐通信技术有限公司 Thread monitoring method and device

Also Published As

Publication number Publication date
CN108089937B (en) 2022-01-14

Similar Documents

Publication Publication Date Title
CN108040159A (en) Localization method, mobile terminal and readable storage medium storing program for executing are restarted based on hardware driving
CN108052412A (en) Restart Fault Locating Method, mobile terminal and computer readable storage medium
CN108920306A (en) What is managed based on memory restarts localization method, mobile terminal and readable storage medium storing program for executing
CN108121613A (en) Localization method, mobile terminal and readable storage medium storing program for executing are restarted based on page
CN108012031A (en) Mobile terminal restarts localization method, mobile terminal and computer-readable recording medium
CN108196968A (en) Mobile terminal restarts localization method, mobile terminal and computer readable storage medium
CN108241752A (en) Photo display methods, mobile terminal and computer readable storage medium
CN110113779A (en) Test method, system, test platform, mobile terminal and the medium of eSIM card
CN108052430A (en) Mobile terminal restarts 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
CN109002547A (en) Journal file storage method, mobile terminal and computer readable storage medium
CN108052437A (en) Restart localization method, mobile terminal and computer readable storage medium
CN107908491A (en) Card screen detection is with solving method, mobile terminal and computer-readable recording medium
CN109165110A (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
CN108182123A (en) Mobile terminal restarts localization method, mobile terminal and computer readable storage medium
CN107908492A (en) Blank screen detection method, mobile terminal and computer-readable recording medium
CN107765922A (en) Card screen detection is with solving method, mobile terminal and computer-readable recording medium
CN108255631A (en) Mobile terminal restarts localization method, mobile terminal and computer readable storage medium
CN107943397A (en) A kind of note generation method, mobile terminal and computer-readable recording medium
CN108268335A (en) Localization method, mobile terminal and readable storage medium storing program for executing are restarted based on system service
CN108076200A (en) Mobile terminal restarts localization method, mobile 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
CN109740121A (en) A kind of searching method of mobile terminal, mobile terminal and 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