CN108920306A - What is managed based on memory restarts localization method, mobile terminal and readable storage medium storing program for executing - Google Patents

What is managed based on memory restarts localization method, mobile terminal and readable storage medium storing program for executing Download PDF

Info

Publication number
CN108920306A
CN108920306A CN201810696499.2A CN201810696499A CN108920306A CN 108920306 A CN108920306 A CN 108920306A CN 201810696499 A CN201810696499 A CN 201810696499A CN 108920306 A CN108920306 A CN 108920306A
Authority
CN
China
Prior art keywords
log
mobile terminal
node
key message
memory access
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.)
Withdrawn
Application number
CN201810696499.2A
Other languages
Chinese (zh)
Inventor
李明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201810696499.2A priority Critical patent/CN108920306A/en
Publication of CN108920306A publication Critical patent/CN108920306A/en
Withdrawn legal-status Critical Current

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/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1438Restarting or rejuvenating

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses what one kind managed based on memory to restart localization method, mobile terminal and readable storage medium storing program for executing, and this approach includes the following steps:After exception occurs in the direct memory access for monitoring the default key message point corresponding position in Kernel layers of memory management module of mobile terminal, the corresponding abnormal mark of direct memory access is read;Abnormal identify is matched with the log mark prestored;If abnormal mark identifies successful match with log, associated log information is identified according to log identifier lookup and log, and obtain the progress information of process corresponding with direct memory access;Log is restarted according to progress information and log information generation, and log positioning mobile terminal is restarted with basis and restarts reason.The present invention improves the efficiency for the reason of reboot operation occurs for positioning mobile terminal, and reduces human cost.

Description

What is managed based on memory restarts localization method, mobile terminal and readable storage medium storing program for executing
Technical field
The present invention relates to field of communication technology, more particularly to it is a kind of manage based on memory restart localization method, it is mobile eventually End and readable storage medium storing program for executing.
Background technique
With the fast development of terminal technology, the mobile terminals such as mobile phone and tablet computer have become people's work and life Indispensable tool.User is during using mobile terminal, it may appear that the phenomenon that mobile terminal is restarted automatically, and cause mobile whole End the reason of being restarted automatically may be it is already present before city on mobile terminals, only developer does not have found.At this point, User needs the mobile terminal returning factory, carries out a large amount of test job by tester, causes mobile terminal to occur with determination The reason of restarting.
Currently, the method for restart pressure test to mobile terminal operating system is still using people in testing field The method of work test, restarts mobile phone manually, then carries out pressure test.However, this test method excessively labor intensive and when Between, especially to the lower mobile terminal of loophole BUG recurrence rate, for example, mobile terminal, which restarts 1000 times, just may only occur one The investment 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 It is extremely inefficient for making the way of reason.Therefore, how fast positioning of mobile terminal occur reboot operation the reason of be at present urgently Problem to be solved.
Summary of the invention
It is a primary object of the present invention to propose it is a kind of manage based on memory restart localization method, mobile terminal and readable Storage medium, it is intended to the technical issues of solving the reason of how reboot operation occurs for fast positioning of mobile terminal.
To achieve the above object, the present invention provides what one kind managed based on memory to restart localization method, described based on interior The localization method of restarting for depositing management includes:
When monitoring the direct of the default key message point corresponding position in Kernel layers of memory management module of mobile terminal After exception occurs in internal storage access, the corresponding abnormal mark of the direct memory access is read;
Abnormal identify is matched with the log mark prestored;
If the abnormal mark identifies successful match with the log, according to the log identifier lookup and the log Associated log information is identified, and obtains the progress information of process corresponding with the direct memory access;
Log is restarted according to the progress information and log information generation, restarted described in log positioning according to Mobile terminal restarts reason.
Optionally, the default key message point monitored in Kernel layers of memory management module of mobile terminal of working as corresponds to After exception occurs in the direct memory access of position, reading the step of corresponding exception of the direct memory access identifies includes:
When the Monitoring instruction for detecting the default key message point in mobile terminal Kernel layers of memory management module of monitoring Afterwards, the state value of the key message point is read according to the Monitoring instruction;
Determine whether the direct memory access of the key message point corresponding position exception occurs according to the state value;
If exception occurs in the direct memory access, the corresponding abnormal mark of the direct memory access is read.
Optionally, the step of reading the state value of the key message point according to the Monitoring instruction 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 the first state value according to preset quantity all determines that the direct memory access does not occur exception, according to Second reading frequency reads the second state value of the key message point preset quantity;
If second state value according to preset quantity all determines that the direct memory access does not occur exception, according to Third reading frequency reads the third state value of the key message point, wherein second reading frequency is greater than described first Reading frequency is less than the third reading frequency.
Optionally, the of the key message point preset quantity is read according to the first reading frequency according to the Monitoring instruction After the step of one state value, further include:
If it is abnormal to determine that the direct memory access 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, log is restarted according to the progress information and log information generation, to restart log according to Before positioning the step of mobile terminal restarts reason, further include:
Judge getting in the first preset time after the progress information whether monitor the key message again The direct memory access of point corresponding position occurs abnormal;
If monitoring the direct memory access of the key message point corresponding position again in first preset time There is exception, then stores the progress information.
Optionally, log is restarted according to the progress information and log information generation, to restart log according to After positioning the step of mobile terminal restarts reason, further include:
Restart log described in storage, and determine stored in the second preset time described in restart log;
De-redundancy operation is executed to the log information stored in second preset time, to save memory space.
Optionally, the default key message point monitored in Kernel layers of memory management module of mobile terminal of working as corresponds to After exception occurs in the direct memory access of position, before reading the direct memory access corresponding abnormal the step of identifying, also Including:
Determine the recognition node of memory management module call flow in Kernel layers described, load node, initialization node, Run node, instruction dispatch node, striding course data communication node, unloading node, resource bid and release node and disk Read-write operation node;
It is logical in the recognition node, load node, initialization node, operation node, instruction dispatch node, striding course data Believe node, unloading node, resource bid and discharges setting key message point in node and disk read-write running node.
Optionally, the default key message point monitored in Kernel layers of memory management module of mobile terminal of working as corresponds to After exception occurs in the direct memory access of position, before reading the direct memory access corresponding abnormal the step of identifying, also Including:
Determine whether the direct memory access for monitoring the key message point corresponding position abnormal thread occurs, and by institute Thread is stated to be deployed in described Kernel layers of kthreadd process and kernel process.
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 on the memory and managing based on memory of can running on the processor restarts finder, It is described manage based on memory restart and realize management based on memory as described above when finder is executed by the processor The step of restarting localization method.
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 managed based on memory is stored on storage medium, the finder of restarting managed based on memory is located Reason device realized when executing it is as described above manage based on memory the step of restarting localization method.
It is corresponding that the present invention passes through the default key message point worked as monitor in Kernel layers of memory management module of mobile terminal After exception occurs in the direct memory access of position, the corresponding abnormal mark of the direct memory access is read;By the abnormal mark Know and is matched with the log mark prestored;If the abnormal mark identifies successful match with the log, according to the day Will identifier lookup and the log identify associated log information, and obtain the process of process corresponding with the direct memory access Information;Log is restarted according to the progress information and log information generation, positions the shifting to restart log according to Dynamic terminal restarts reason.It realizes before reboot operation does not occur for mobile terminal, obtaining mobile terminal in advance can restart Operate it is corresponding restart log, in order to which after reboot operation occurs for mobile terminal, corresponding staff can be according to restarting Log quickly determines the reason of causing mobile terminal to be restarted, and improves the effect for the reason of positioning mobile terminal restarts failure Rate, and reduce human cost.
Detailed description of the invention
A kind of Fig. 1 hardware structural diagram of terminal of each embodiment to realize the present invention;
Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention;
Fig. 3 is that the present invention is based on the flow diagrams for restarting localization method first embodiment of memory management;
Fig. 4 is that the present invention is based on a kind of processes for restarting step S101 in localization method first embodiment of memory management to show It is intended to;
Fig. 5 is that the present invention is based on the flow diagrams for restarting localization method 3rd embodiment of memory management;
Fig. 6 is that the present invention is based on the flow diagrams for restarting localization method fourth embodiment of memory management.
The realization, the function and the advantages of the object of the present invention will be explained referring 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, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the 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 may include such as mobile phone, plate Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. move The fixed terminals such as dynamic 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 Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Moving terminal 100 may include:RF (Radio Frequency, radio frequency) unit 101, Wi-Fi module 102, audio output unit 103, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, with And the equal components of power supply 111.It will be understood by those skilled in the art that 100 structure of mobile terminal shown in Fig. 1 is not constituted to shifting The restriction of dynamic terminal 100, mobile terminal 100 may include components more more or fewer than diagram, or combine certain components, or The different component layout of person.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal 100:
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, to processor 110 handle;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, penetrating Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless 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 provides wireless broadband internet access for user.Although figure 1 shows Wi-Fi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal 100, it completely can be with It omits within the scope of not changing the essence of the invention as needed.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or Wi-Fi module 102 it is received or The audio data that person stores in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 can also provide executed to mobile terminal 100 the relevant audio output of specific function (for example, call signal receive sound, Message sink sound etc.).Audio output unit 103 may include loudspeaker, 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 a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity 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 sensor, details are not described herein.
Display unit 106 is for showing information input by user or being 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 can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family setting and the related key signals input of function control.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 the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus 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 It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.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 in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. It is one or more, specifically herein without limitation.
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 function that outputs and inputs of realizing mobile terminal as two independent components, 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) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for connecting the device 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 storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it 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 by running or execute the software program and/or module that are stored in memory 109, and are called and are stored in Data in reservoir 109 execute the various functions and processing data of mobile terminal 100, 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, processor 110 stores based on memory in memory 109 for calling in mobile terminal shown in Fig. 1 Finder is restarted in management, and executes following operation:
When monitoring the straight of the default key message point corresponding position in 100Kernel layers of memory management module of mobile terminal It connects after exception occurs in internal storage access, reads the corresponding abnormal mark of the direct memory access;
Abnormal identify is matched with the log mark prestored;
If the abnormal mark identifies successful match with the log, according to the log identifier lookup and the log Associated log information is identified, and obtains the progress information of process corresponding with the direct memory access;
Log is restarted according to the progress information and log information generation, restarted described in log positioning according to Mobile terminal 100 restarts reason.
Further, described to work as the default key message monitored in 100Kernel layers of memory management module of mobile terminal After exception occurs in the direct memory access of point corresponding position, corresponding abnormal the step of the identifying packet of the direct memory access is read It includes:
When the monitoring for detecting the default key message point in mobile terminal 100Kernel layers of memory management module of monitoring refers to After order, the state value of the key message point is read according to the Monitoring instruction;
Determine whether the direct memory access of the key message point corresponding position exception occurs according to the state value;
If exception occurs in the direct memory access, the corresponding abnormal mark of the direct memory access is read.
Further, the step of reading the state value of the key message point according to the Monitoring instruction 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 the first state value according to preset quantity all determines that the direct memory access does not occur exception, according to Second reading frequency reads the second state value of the key message point preset quantity;
If second state value according to preset quantity all determines that the direct memory access does not occur exception, according to Third reading frequency reads the third state value of the key message point, wherein second reading frequency is greater than described first Reading frequency is less than the third reading frequency.
Further, the key message point preset quantity is read according to the first reading frequency according to the Monitoring instruction After the step of first state value, processor 110 is also used to call restarting for managing based on memory of storing in memory 109 fixed Position program, to realize following steps:
If it is abnormal to determine that the direct memory access 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, log 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 also used to call to be stored in memory 109 What is managed based on memory restarts finder, to realize following steps:
Judge getting in the first preset time after the progress information whether monitor the key message again The direct memory access of point corresponding position occurs abnormal;
If monitoring the direct memory access of the key message point corresponding position again in first preset time There is exception, then stores the progress information.
Further, log 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 also used to call to be stored in memory 109 What is managed based on memory restarts finder, to realize following steps:
Restart log described in storage, and determine stored in the second preset time described in restart log;
De-redundancy operation is executed to the log information stored in second preset time, to save memory space.
Further, described to work as the default key message monitored in 100Kernel layers of memory management module of mobile terminal After there is exception in the direct memory access of point corresponding position, the step of reading the direct memory access corresponding abnormal mark it Before, what processor 110 was also used to call managing based on memory of storing in memory 109 restarts finder, following to realize Step:
Determine the recognition node of memory management module call flow in Kernel layers described, load node, initialization node, Run node, instruction dispatch node, striding course data communication node, unloading node, resource bid and release node and disk Read-write operation node;
It is logical in the recognition node, load node, initialization node, operation node, instruction dispatch node, striding course data Believe node, unloading node, resource bid and discharges setting key message point in node and disk read-write running node.
Further, described to work as the default key message monitored in 100Kernel layers of memory management module of mobile terminal After there is exception in the direct memory access of point corresponding position, the step of reading the direct memory access corresponding abnormal mark it Before, what processor 110 was also used to call managing based on memory of storing in memory 109 restarts finder, following to realize Step:
Determine whether the direct memory access for monitoring the key message point corresponding position abnormal thread occurs, and by institute Thread is stated to be deployed in described Kernel layers of kthreadd process and kernel process.
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, 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.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below into Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN 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 may 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 preserves some related service features, data rates etc. and use The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201 Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may 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 should know the present invention is not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And the following new network system etc., herein without limitation.
Based on above-mentioned terminal hardware structure and communications network system, propose to restart positioning the present invention is based on memory management Each embodiment of method.
The present invention provide it is a kind of manage based on memory restart localization method.
It is that the present invention is based on the flow diagrams for restarting localization method first embodiment of memory management referring to Fig. 3, Fig. 3.
In the present embodiment, the embodiment for restarting localization method managed based on memory is provided, it should be noted that though So logical order is shown in flow charts, but in some cases, it can be to be different from shown by sequence execution herein Or the step of description.
In the present embodiment, the localization method of restarting that this is managed based on memory includes:
Step S101, when monitoring that the default key message point in Kernel layers of memory management module of mobile terminal corresponds to position After exception occurs in the direct memory access set, the corresponding abnormal mark of direct memory access is read.
The present invention makes primarily directed to Kernel layers of memory management module of mobile terminal, i.e. needs in memory management module With the scene of direct memory access, in memory management module, according to the attribute of direct memory access to using direct memory to visit The scene asked is classified, and carries out condition limitation to sorted direct memory access, obtains the corresponding mark of memory management module The call flow of standardization and its internal basic function sequential logic, specifically classifying rules and restrictive condition be according to specific needs And be arranged, it is not particularly limited herein.Wherein, the Kernel layers of system kernel layer for mobile terminal is mainly used for carrying out initial Change management of process, memory management, load Display (display), Camera Driver (camera driving) and Binder Driver Related works such as (Binder drivings), and for creating Core Operational thread kworkder, traps thread ksoftirqd and soft The kernels finger daemon such as interrupt thread thermal.
When mobile terminal monitors the straight of the default key message point corresponding position in its Kernel layers of memory management module It connects after exception occurs in internal storage access, mobile terminal reads the corresponding abnormal mark of direct memory access.Wherein, key message point is The information point being set in advance in the corresponding call flow of memory management module and its internal basic function sequential logic, for supervising It surveys call flow and whether sequential logic abnormal information point occurs.When monitoring that call flow and/or sequential logic are corresponding When the direct memory access of key message point occurs abnormal, it is abnormal to confirm that corresponding call flow and/or sequential logic occur.Directly It connects internal storage access corresponding exception and is identified as and pre-set, for indicating that abnormal mark occurs in direct memory access.It needs It is noted that the abnormal mark of the corresponding direct memory access of different key message points is different.Direct memory access Extremely the setting rule identified is arranged according to specific needs, as long as guaranteeing to identify that different key message points are corresponding Direct memory access.
Further, include referring to Fig. 4, step S101:
Step S1011, when detect monitoring mobile terminal Kernel layers of memory management module in default key message point Monitoring instruction after, according to Monitoring instruction read key message point state value.
Step S1012 determines whether the direct memory access of key message point corresponding position exception occurs according to state value.
Step S1013 reads the corresponding abnormal mark of direct memory access if exception occurs in direct memory access.
When mobile terminal detects that the monitoring of the default key message point in its Kernel layers of memory management module of monitoring refers to After order, the state value of default key message point is read according to Monitoring instruction, and default key message point pair is determined according to state value Answer whether the direct memory access of position exception occurs.If determining the direct memory of key message point corresponding position according to state value There is exception in access, and mobile terminal then reads the corresponding abnormal mark of direct memory access.If determining crucial letter according to state value The direct memory access of breath point corresponding position does not occur exception, then it represents that and there is no corresponding exceptions to identify for direct memory access, Mobile terminal reads abnormal mark corresponding less than direct memory access.
Wherein, state value and abnormality are in corresponding relationship.In the present embodiment, between state value and abnormality Corresponding relationship limits according to specific needs, herein with no restrictions.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 access of key message point corresponding position does not occur exception;When some key message point When corresponding state value is " 1 ", it is determined that the direct memory access of key message point corresponding position occurs abnormal.
Step S102 matches abnormal identify with the log mark prestored.
Step S103 is closed if abnormal mark identifies successful match with log according to log identifier lookup and log mark The log information of connection, and obtain the progress information of process corresponding with direct memory access.
After getting direct memory access corresponding abnormal mark, mobile terminal is by acquired abnormal mark and storage The log mark stored in reboot operation reason data library is matched.If abnormal mark identifies successful match with log, mobile Terminal, which then identifies to search in the database of storage reboot operation reason according to log, identifies associated log information with log, and Obtain the progress information that process corresponding with direct memory access carries out.It should be noted that the log, which is identified as, leads to movement eventually Hold the corresponding mark of log information of reboot operation.Wherein, log information includes but is not limited to occur directly in memory management module It connects in the nodename and memory management module of internal storage access exception and the position of direct memory access exception occurs.Progress information packet It includes but is not limited to when direct memory access occurs abnormal, the title of corresponding process, that is, relate to the title of thing process, be associated with thread Title and the ID (identification, identity) and Thread Id and key for relating to thing process interaction or association process The functional node of the corresponding memory management module of information point.
In the present embodiment, when mark is consistent with the log mark prestored extremely, then confirm what exception was identified and prestored Log identifies successful match;If abnormal mark and the log mark prestored are inconsistent, the abnormal log for identifying and prestoring is confirmed It fails to match for mark.Such as when being identified as a extremely, is found in the database to identify the log of a mark, then confirm abnormal mark Successful match is identified with the log prestored, otherwise, then confirms that it fails to match for the abnormal log mark for identifying and prestoring.In other realities It applies in example, may be configured as then confirming the abnormal log for identifying and prestoring when mark is associated with the log mark prestored extremely Successful match is identified, otherwise, confirms that it fails to match for the abnormal log mark for identifying and prestoring.It is set as and abnormal mark a1 as worked as When associated log is identified as a2, if when the exception that some key message point corresponds to direct memory access is identified as a1, and in number According to the log for being identified as a2 mark is found in library, then the abnormal log mark successful match for identifying and prestoring is confirmed, otherwise, really Recognizing the abnormal log mark for identifying and prestoring, it fails to match.
Step S104 restarts log according to progress information and log information generation, with mobile eventually according to log positioning is restarted Restart reason in end.
After getting progress information and log information, mobile terminal restarts day according to progress information and log information generation Will, and log 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 log, quickly determines that lead to mobile terminal reboot operation restarts reason according to log is restarted.
Further, restart in logging process according to progress information and log information generation, mobile terminal is according to specific Format generation restart log, in order to which corresponding staff can quickly analyze mobile terminal according to log is restarted The reason of reboot operation.
Further, the localization method of restarting that this is managed based on memory further includes:
Step a, determines whether monitoring key message point corresponding position direct memory access abnormal Monitoring instruction pair occurs The thread answered, and thread is deployed in Kernel layers of kthreadd process and kernel process.
Further, mobile terminal determines its Kernel layers of memory management mould of monitoring when disposing Kernel layers of process Whether the direct memory access that block presets key point corresponding position, which abnormal Monitoring instruction occurs, corresponds to thread, and by Monitoring instruction Corresponding thread is deployed in Kernel layers of kthreadd process and kernel process, in order to can be with monitored over time Kernel Whether the direct memory access in layer memory management module there is exception.It should be noted that the corresponding thread of Monitoring instruction It is independently operated in the terminal.
The present embodiment passes through the default key message point pair worked as and monitored in Kernel layers of memory management module of mobile terminal After answering the direct memory access of position exception occur, the corresponding abnormal mark of direct memory access is read;By abnormal mark and in advance The log mark deposited is matched;If abnormal mark identifies successful match with log, according to log identifier lookup and log mark Know associated log information, and obtains the progress information of process corresponding with direct memory access;Believed according to progress information and log Breath, which generates, restarts log, restarts log positioning mobile terminal with basis and restarts reason.It realizes and does not restart in mobile terminal Before operation, obtaining mobile terminal in advance can occur that reboot operation is corresponding to restart log, in order to which weight occurs in mobile terminal After opening operation, corresponding staff can quickly determine the reason of causing mobile terminal to be restarted according to log is restarted, and improve The efficiency for the reason of positioning mobile terminal restarts failure, and reduce human cost.
Further, the second implementation for restarting localization method the present invention is based on memory management is proposed based on first embodiment Example.The second embodiment for restarting localization method managed based on memory and the first reality for restarting localization method managed based on memory The difference for applying example is, includes according to the step of state value of Monitoring instruction reading key message point:
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, direct memory access does not occur exception, according to the Second state value of two reading frequencies reading key message point preset quantity.
Step d, if all being determined according to the second state value of preset quantity, direct memory access does not occur exception, according to the The third state value of three reading frequencies reading key message point, wherein the second reading frequency is greater 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 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 that direct memory access does not occur exception.If the first state value of read preset quantity It can determine that direct memory access does not occur exception, then read the second of key message point preset quantity according to the second reading frequency State value, and judge whether the second state value of read preset quantity can determine that direct memory access does not occur exception. If the second state value of read preset quantity can determine that direct memory access does not occur exception, frequency is read according to third Rate reads the third state value of key message point preset quantity, to determine key message point corresponding position according to third state value Whether direct memory access there is exception.
Wherein, the second reading frequency is greater than the first reading frequency, and is less than third reading frequency.First reading frequency, Two reading frequencies, third reading frequency and preset quantity are arranged according to specific needs, and such as the first reading frequency can be arranged 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 arranged Primary to 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 After the state value of reading all shows that direct memory access 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 access does not occur exception, at interval of 5 seconds The corresponding state value of 5 key message points is continuously read, determines key according to 5 state values continuously read at interval of 5 seconds Whether the direct memory access of information point corresponding position there is exception.
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 that direct memory access 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 that this is managed based on memory further includes:
Whether step e detects mobile terminal if it is abnormal to determine that direct memory access occurs according to a first state value Reboot operation occurs.
Step f reads the state of key message point according to the 4th reading frequency if reboot operation does not occur for mobile terminal 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, it is abnormal to determine that direct memory access 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 Monitoring instruction for monitoring the dotted state value of default key message in its Kernel layers of memory management module.Its In, the 4th reading frequency is arranged according to specific needs, and such as the 4th reading frequency may be configured as equal with the first reading frequency, 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 the 4th reading frequency is arranged It is primary to be read at interval of 0.8 second, or read once every 2 seconds.
In order to make it easy to understand, illustrating 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 House dog occur abnormal, and reboot operation does not occur for mobile terminal, and mobile terminal is then primary crucial according to reading at interval of 0.8 The state value (at this point, the 4th reading frequency is set as reading once for 0.8 second) of information point.
It is understood that different if determining that direct memory access 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, in memory management module key message point pair When the direct memory access of position being answered not occur abnormal, increase the reading frequency for reading the dotted state value of key message, direct When internal storage access does not occur abnormal, the number for reading the dotted state value of key message is reduced.
Further, the third implementation for restarting localization method the present invention is based on memory management is proposed based on first embodiment Example.The 3rd embodiment for restarting localization method managed based on memory and restart localization method first managed based on memory And/or the difference of second embodiment is, referring to Fig. 5, what this was managed based on memory, which restarts localization method, further includes:
Log is restarted in step S105, storage, and determines that is stored in the second preset time restarts log.
Step S106 executes de-redundancy operation to the log information stored in the second preset time, to save memory space.
After log is restarted in generation, log is restarted in mobile terminal storage, and determines the weight stored in the second preset time Log is opened, and de-redundancy operation is executed to the log of restarting stored in the second preset time, it is empty with the storage for saving mobile terminal Between.Specifically, in executing de-redundancy operating process, only storage belongs to one of same class reboot operation and restarts log, deletes Such reboot operation stored it is corresponding it is other restart log, what corresponding record belonged to same class reboot operation restarts log 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 is arranged according to specific needs, such as can by second it is default when Between be set as 45 minutes, 60 minutes or 100 minutes etc..It should be noted that carrying out classification storage process to log is restarted In, it can also can classify according to the position restarted, not do herein according to classification storage is carried out the reason of restarting Limitation.
Such as when mobile terminal occurs the abnormal phenomenon of direct memory access in this 60 minutes at 10 points to 11 points, and it is mobile Storing 1000 restarts log altogether in terminal.At this point, mobile terminal can be changed into direct memory access from abnormality Before normal condition, the log of restarting for belonging to same category of reboot operation is divided into one kind.If this 1000 restart in log, There are 520 to restart 1 class reboot operation of log corresponding A, restarts log for 360 and correspond to B1 class reboot operation, 120 restart log pair C1 class reboot operation is answered, then only one A1 class reboot operation is corresponding restarts log for storage, deletes remaining 519 A1 class and restarts behaviour Make it is corresponding restart log, and recording the corresponding quantity for restarting log of A1 class reboot operation is 520;It stores a B1 class and restarts behaviour Make it is corresponding restart log, delete remaining 359 B1 class reboot operations be corresponding and restart log, and record B1 class reboot operation pair The quantity for restarting log answered is 360;It stores that a C1 class reboot operation is corresponding to restart log, deletes remaining 119 C1 class Reboot operation is corresponding to restart log, and recording the corresponding quantity for restarting log of C1 class reboot operation is 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 log 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 log of restarting stored in the second preset time The memory space at end.
Further, the localization method of restarting that this is managed based on memory further includes:
Step g judges getting whether monitor key message point in the first preset time after progress information again The direct memory access of corresponding position occurs abnormal.
Step h, if monitoring again in the first preset time, the direct memory access of key message point corresponding position goes out It is now abnormal, then storage process information.
Further, after acquisition for mobile terminal is to progress information, mobile terminal judges after getting progress information It is abnormal whether to monitor that the direct memory access of key message point corresponding position occurs in first preset time again.If first It is abnormal to monitor that the direct memory access of key message point corresponding position occurs in preset time again, mobile terminal then stores should Progress information, to restart log according to progress information generation.Further, if not monitored again in the first preset time There is exception in the direct memory access of key message point corresponding position, and mobile terminal then deletes acquired progress information.Wherein, First preset time is arranged according to specific needs, can such as set the first preset time to 3 minutes, 5 minutes or 8 points Clock etc..
In the present embodiment, by judging whether monitor that direct memory access appearance is different again in the first preset time Often the accuracy rate of reason is restarted to improve positioning mobile terminal.
Further, the 4th implementation for restarting localization method the present invention is based on memory management is proposed based on first embodiment Example.The fourth embodiment for restarting localization method managed based on memory and restart localization method first managed based on memory And/or the difference of second embodiment is, referring to Fig. 6, the localization method of restarting managed based on memory further includes:
Step S107 determines the recognition node of memory management module call flow in Kernel layers, load 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.
Step S108, in recognition node, load 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 be in accurate Kernel layer of fast positioning of mobile terminal the reason of memory management module generation reboot operation. Mobile terminal determines the recognition node of memory management module call flow in its Kernel layers, load node, initialization node, fortune Row node, instruction dispatch node, striding course data communication node, unloading node, resource bid and release node and disk are read Write operation node, and in recognition node, load node, initialization node, operation node, instruction dispatch node, striding course data Key message point is set in communication node, unloading node, resource bid and release node and disk read-write running node, with Whether there is exception by the direct memory access that the key message point monitors corresponding node.It is understood that recognition node, Load node, initialization node, operation node, instruction dispatch node, striding course data communication node, unloading node, resource Shen It is please node important in memory management module call flow with release node and disk read-write running node.
Further, in order to restart reason with fast positioning of mobile terminal generation reboot operation, mobile terminal is determined Key message is arranged in the corresponding each functional node of sequential logic in the sequential logic of each function in memory management module Point.As the sequential logic of some function in memory management module is:A → B → C → D, then in A node, B node, C node and D Key message point is respectively set in node.
It is understood that due to being arranged 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 according to the key message point determination restart The type of operation determines that mobile terminal is due to Java framework layer, Native ccf layer or is memory pipe in Kernel layers The appearance such as reason module lead to reboot operation extremely.
The recognition node, load node, initialization node, fortune that the present embodiment passes through the call flow in memory management module Row node, instruction dispatch node, striding course data communication node, unloading node, resource bid and release node and disk are read Key message point is arranged in write operation node, is judged by each key message point in monitoring memory management module corresponding direct Whether internal storage access there is exception, and reboot operation occurs to position important node in mobile terminal memory management module call flow Restart reason.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium.
Be stored with the finder of restarting managed based on memory on the computer readable storage medium, it is described based on memory Following steps are realized in restarting when finder is executed by processor for management:
When monitoring the direct of the default key message point corresponding position in Kernel layers of memory management module of mobile terminal After exception occurs in internal storage access, the corresponding abnormal mark of the direct memory access is read;
Abnormal identify is matched with the log mark prestored;
If the abnormal mark identifies successful match with the log, according to the log identifier lookup and the log Associated log information is identified, and obtains the progress information of process corresponding with the direct memory access;
Log is restarted according to the progress information and log information generation, restarted described in log positioning according to Mobile terminal restarts reason.
Further, described to work as the default key message point pair monitored in Kernel layers of memory management module of mobile terminal After answering the direct memory access of position exception occur, reading the step of corresponding exception of the direct memory access identifies includes:
When the Monitoring instruction for detecting the default key message point in mobile terminal Kernel layers of memory management module of monitoring Afterwards, the state value of the key message point is read according to the Monitoring instruction;
Determine whether the direct memory access of the key message point corresponding position exception occurs according to the state value;
If exception occurs in the direct memory access, the corresponding abnormal mark of the direct memory access is read.
Further, the step of reading the state value of the key message point according to the Monitoring instruction 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 the first state value according to preset quantity all determines that the direct memory access does not occur exception, according to Second reading frequency reads the second state value of the key message point preset quantity;
If second state value according to preset quantity all determines that the direct memory access does not occur exception, according to Third reading frequency reads the third state value of the key message point, wherein second reading frequency is greater than described first Reading frequency is less than the third reading frequency.
Further, the key message point preset quantity is read according to the first reading frequency according to the Monitoring instruction After the step of first state value, realization when finder is executed by processor of restarting managed based on memory walks as follows Suddenly:
If it is abnormal to determine that the direct memory access 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, log 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 managed based on memory is held by processor Following steps are realized when row:
Judge getting in the first preset time after the progress information whether monitor the key message again The direct memory access of point corresponding position occurs abnormal;
If monitoring the direct memory access of the key message point corresponding position again in first preset time There is exception, then stores the progress information.
Further, log 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 managed based on memory is held by processor Following steps are realized when row:
Restart log described in storage, and determine stored in the second preset time described in restart log;
De-redundancy operation is executed to the log information stored in second preset time, to save memory space.
Further, described to work as the default key message point pair monitored in Kernel layers of memory management module of mobile terminal After answering the direct memory access of position exception occur, before reading the direct memory access corresponding abnormal the step of identifying, It is described manage based on memory restart when finder is executed by processor and realize following steps:
Determine the recognition node of memory management module call flow in Kernel layers described, load node, initialization node, Run node, instruction dispatch node, striding course data communication node, unloading node, resource bid and release node and disk Read-write operation node;
It is logical in the recognition node, load node, initialization node, operation node, instruction dispatch node, striding course data Believe node, unloading node, resource bid and discharges setting key message point in node and disk read-write running node.
Further, described to work as the default key message point pair monitored in Kernel layers of memory management module of mobile terminal After answering the direct memory access of position exception occur, before reading the direct memory access corresponding abnormal the step of identifying, It is described manage based on memory restart when finder is executed by processor and realize following steps:
It determines and monitors whether the key message point corresponding position direct memory access abnormal thread occurs, and will be described Thread is deployed in described Kernel layers of kthreadd process and kernel process.
Computer readable storage medium specific embodiment of the present invention and it is above-mentioned manage based on memory restart localization method Each specific embodiment it is essentially identical, details are not described herein.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and And further include the other elements being not explicitly listed, or further include for this process, method, article or system institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. what one kind managed based on memory restarts localization method, which is characterized in that described to restart localization method applied to mobile whole End, it is described to restart localization method and include the following steps:
When the direct memory for monitoring the default key message point corresponding position in Kernel layers of memory management module of mobile terminal After exception occurs in access, the corresponding abnormal mark of the direct memory access is read;
Abnormal identify is matched with the log mark prestored;
If the abnormal mark identifies successful match with the log, identified according to the log identifier lookup and the log Associated log information, and obtain the progress information of process corresponding with the direct memory access;
Log is restarted according to the progress information and log information generation, positions the movement to restart log according to Terminal restarts reason.
2. what is managed based on memory as described in claim 1 restarts localization method, which is characterized in that described to monitor to move After exception occurs in the direct memory access of default key message point corresponding position in Kernel layers of memory management module of terminal, read The step of taking the direct memory access corresponding abnormal mark include:
After detecting the Monitoring instruction of the default key message point in mobile terminal Kernel layers of memory management module of monitoring, root The state value of the key message point is read according to the Monitoring instruction;
Determine whether the direct memory access of the key message point corresponding position exception occurs according to the state value;
If exception occurs in the direct memory access, the corresponding abnormal mark of the direct memory access is read.
3. what is managed based on memory as claimed in claim 2 restarts localization method, which is characterized in that according to the Monitoring instruction The step of reading the state value of the key message point include:
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 the first state value according to preset quantity all determines that the direct memory access does not occur exception, according to second Reading frequency reads the second state value of the key message point preset quantity;
If second state value according to preset quantity all determines that the direct memory access does not occur exception, according to third Reading frequency reads the third state value of the key message point, wherein second reading frequency is greater than described first and reads Frequency is less than the third reading frequency.
4. what is managed based on memory as claimed in claim 3 restarts localization method, which is characterized in that 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 it is abnormal to determine that the direct memory access 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. what is managed based on memory as described in claim 1 restarts localization method, which is characterized in that according to the progress information Restart log with log information generation, with restart according to the step of log positioning mobile terminal restarts reason it Before, further include:
Judge getting whether monitor the key message point pair in the first preset time after the progress information again The direct memory access of position is answered to occur abnormal;
If monitoring again in first preset time, the direct memory access of the key message point corresponding position occurs It is abnormal, then store the progress information.
6. what is managed based on memory as described in claim 1 restarts localization method, which is characterized in that according to the progress information Restart log with log information generation, with restart according to the step of log positioning mobile terminal restarts reason it Afterwards, further include:
Restart log described in storage, and determine stored in the second preset time described in restart log;
De-redundancy operation is executed to the log information stored in second preset time, to save memory space.
7. as it is as claimed in any one of claims 1 to 6 manage based on memory restart localization method, which is characterized in that it is described to work as Monitor that the direct memory access of the default key message point corresponding position in Kernel layers of memory management module of mobile terminal goes out Now after exception, before reading the direct memory access corresponding abnormal the step of identifying, further include:
Determine the recognition node of memory management module call flow in Kernel layers described, load 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;
In the recognition node, load 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 it is as claimed in any one of claims 1 to 6 manage based on memory restart localization method, which is characterized in that it is described to work as Monitor that the direct memory access of the default key message point corresponding position in Kernel layers of memory management module of mobile terminal goes out Now after exception, before reading the direct memory access corresponding abnormal the step of identifying, further include:
Determine whether the direct memory access for monitoring the key message point corresponding position abnormal thread occurs, and by the line Journey is deployed in described Kernel layers of kthreadd process and kernel process.
9. a kind of mobile terminal, which is characterized in that the mobile terminal includes memory, processor and is stored in the memory It is upper and managing based on memory of can running on the processor to restart finder, it is described manage based on memory restart calmly Position program realize when being executed by the processor as it is described in any item of the claim 1 to 8 manage based on memory restart calmly The step of position method.
10. a kind of computer readable storage medium, which is characterized in that be stored on the computer readable storage medium based on interior Deposit the finder of restarting of management, it is described manage based on memory restart and realize when finder is executed by processor as right is wanted Managed based on memory described in asking any one of 1 to 8 the step of restarting localization method.
CN201810696499.2A 2018-06-29 2018-06-29 What is managed based on memory restarts localization method, mobile terminal and readable storage medium storing program for executing Withdrawn CN108920306A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810696499.2A CN108920306A (en) 2018-06-29 2018-06-29 What is managed based on memory restarts localization method, mobile terminal and readable storage medium storing program for executing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810696499.2A CN108920306A (en) 2018-06-29 2018-06-29 What is managed based on memory restarts localization method, mobile terminal and readable storage medium storing program for executing

Publications (1)

Publication Number Publication Date
CN108920306A true CN108920306A (en) 2018-11-30

Family

ID=64422395

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810696499.2A Withdrawn CN108920306A (en) 2018-06-29 2018-06-29 What is managed based on memory restarts localization method, mobile terminal and readable storage medium storing program for executing

Country Status (1)

Country Link
CN (1) CN108920306A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109445993A (en) * 2018-11-02 2019-03-08 郑州云海信息技术有限公司 A kind of detection method and relevant apparatus of file system health status
CN111159663A (en) * 2019-12-30 2020-05-15 厦门市美亚柏科信息股份有限公司 Instruction positioning method and device
CN111414270A (en) * 2020-03-24 2020-07-14 北京字节跳动网络技术有限公司 Exception handling method and device
CN114398296A (en) * 2022-03-24 2022-04-26 荣耀终端有限公司 Method and terminal equipment for problem location
CN115576737A (en) * 2022-12-07 2023-01-06 北京小米移动软件有限公司 Abnormality detection method, abnormality detection device, electronic apparatus, and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016054957A1 (en) * 2014-10-10 2016-04-14 北京金山安全软件有限公司 Application exception detection method, device and mobile terminal
CN108052437A (en) * 2017-12-28 2018-05-18 努比亚技术有限公司 Restart localization method, mobile terminal and computer readable storage medium
CN108052412A (en) * 2017-12-28 2018-05-18 努比亚技术有限公司 Restart Fault Locating Method, mobile terminal and computer readable storage medium
CN108089937A (en) * 2017-12-28 2018-05-29 努比亚技术有限公司 Localization method, mobile terminal and storage medium are restarted based on direct Memory Allocation
CN108108257A (en) * 2017-12-28 2018-06-01 努比亚技术有限公司 Localization method, mobile terminal and readable storage medium storing program for executing are restarted based on MDSS
CN108121613A (en) * 2017-12-28 2018-06-05 努比亚技术有限公司 Localization method, mobile terminal and readable storage medium storing program for executing are restarted based on page
CN108196969A (en) * 2017-12-28 2018-06-22 努比亚技术有限公司 Restart monitoring and localization method, mobile terminal and computer readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016054957A1 (en) * 2014-10-10 2016-04-14 北京金山安全软件有限公司 Application exception detection method, device and mobile terminal
CN108052437A (en) * 2017-12-28 2018-05-18 努比亚技术有限公司 Restart localization method, mobile terminal and computer readable storage medium
CN108052412A (en) * 2017-12-28 2018-05-18 努比亚技术有限公司 Restart Fault Locating Method, mobile terminal and computer readable storage medium
CN108089937A (en) * 2017-12-28 2018-05-29 努比亚技术有限公司 Localization method, mobile terminal and storage medium are restarted based on direct Memory Allocation
CN108108257A (en) * 2017-12-28 2018-06-01 努比亚技术有限公司 Localization method, mobile terminal and readable storage medium storing program for executing are restarted based on MDSS
CN108121613A (en) * 2017-12-28 2018-06-05 努比亚技术有限公司 Localization method, mobile terminal and readable storage medium storing program for executing are restarted based on page
CN108196969A (en) * 2017-12-28 2018-06-22 努比亚技术有限公司 Restart monitoring and localization method, mobile terminal and computer readable storage medium

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109445993A (en) * 2018-11-02 2019-03-08 郑州云海信息技术有限公司 A kind of detection method and relevant apparatus of file system health status
CN111159663A (en) * 2019-12-30 2020-05-15 厦门市美亚柏科信息股份有限公司 Instruction positioning method and device
CN111159663B (en) * 2019-12-30 2022-04-29 厦门市美亚柏科信息股份有限公司 Instruction positioning method and device
CN111414270A (en) * 2020-03-24 2020-07-14 北京字节跳动网络技术有限公司 Exception handling method and device
CN111414270B (en) * 2020-03-24 2023-05-09 北京字节跳动网络技术有限公司 Exception handling method and device
CN114398296A (en) * 2022-03-24 2022-04-26 荣耀终端有限公司 Method and terminal equipment for problem location
CN115576737A (en) * 2022-12-07 2023-01-06 北京小米移动软件有限公司 Abnormality detection method, abnormality detection device, electronic apparatus, and storage medium
CN115576737B (en) * 2022-12-07 2023-11-21 北京小米移动软件有限公司 Abnormality detection method, abnormality detection device, electronic device, and storage medium

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
CN108121613A (en) Localization method, mobile terminal and readable storage medium storing program for executing are restarted based on page
CN108052430A (en) Mobile terminal restarts localization method, mobile terminal and computer readable storage medium
CN109697008A (en) A kind of content share method, terminal and computer readable storage medium
CN108196968A (en) Mobile terminal restarts localization method, mobile terminal and computer readable storage medium
CN107766523A (en) A kind of file management method, mobile terminal and computer-readable recording medium
CN108012031A (en) Mobile terminal restarts localization method, mobile terminal and computer-readable recording medium
CN109582565A (en) Prevent the method, terminal and computer storage medium of application crashes
CN109298964A (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
CN108196969A (en) Restart monitoring and 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
CN107908492A (en) Blank screen detection method, mobile terminal and computer-readable recording medium
CN108052437A (en) Restart localization method, mobile terminal and computer readable storage medium
CN108255631A (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
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
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
CN108804250A (en) Restart localization method, mobile terminal and storage medium based on input/output module
CN108900696A (en) A kind of data processing method, 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
WW01 Invention patent application withdrawn after publication

Application publication date: 20181130

WW01 Invention patent application withdrawn after publication