CN105843705A - Mobile communication terminal and memory dumping method thereof - Google Patents
Mobile communication terminal and memory dumping method thereof Download PDFInfo
- Publication number
- CN105843705A CN105843705A CN201610166246.5A CN201610166246A CN105843705A CN 105843705 A CN105843705 A CN 105843705A CN 201610166246 A CN201610166246 A CN 201610166246A CN 105843705 A CN105843705 A CN 105843705A
- Authority
- CN
- China
- Prior art keywords
- subregion
- mobile communication
- core dump
- communication terminal
- internal memory
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
Abstract
The invention provides a mobile communication terminal and a memory dumping method thereof and aims to solve the problem that in the prior art, memory dumping data cannot be stored in an internal memory of a mobile communication terminal in the memory dumping process of the mobile communication terminal. The memory dumping method of the mobile communication terminal comprises the following steps: adjusting user data partitions of the internal memory of the mobile communication terminal and setting up memory dumping partitions in advance; and entering a memory dumping mode when system exception of the mobile communication terminal occurs and storing the memory dumping data in the memory dumping partitions when detecting that the memory dumping partitions exist in the internal memory.
Description
Technical field
The present invention relates to mobile communication technology field, particularly relate to the core dump side of a kind of mobile communication terminal
Method and mobile communication terminal.
Background technology
Along with development and user's demand to facile communication of electronic technology, mobile communication terminal (such as mobile phone
With the panel computer with communication function) correlation technique developed rapidly, and mobile communication terminal is people
Life in gradually popularize.
Due to hardware of mobile communication terminal serving or software defect that may be present and user's operation when application
Problem, it sometimes appear that the situation of mobile communication terminal fluctuation of service, such as deadlock, system crash or different
The problem such as often restart.After there are these problems, the manufacturer of mobile communication terminal needs to capture mobile communication eventually
Core dump data in end are analyzed, to determine problem Producing reason and to formulate corresponding solution party
Case.But, the mobile communication terminal of prior art only allows core dump data are stored in external memory
In, and lead to for during the memory space inadequate of external memory or only having the movement of internal memory
Letter terminal then cannot realize core dump.
Summary of the invention
The core dump method and the mobile communication that embodiments provide a kind of mobile communication terminal are whole
End, cannot make core dump data protect solving mobile communication terminal in prior art during core dump
The problem that there is the internal memory of mobile communication terminal.
It is an object of the invention to be achieved through the following technical solutions:
The embodiment of the present invention provides a kind of core dump method of mobile communication terminal, including:
In advance the user data subregion of the internal memory of described mobile communication terminal is adjusted and sets up
Core dump subregion;
Core dump pattern is entered when the system exception of described mobile communication terminal, described built-in checking
When memorizer exists described core dump subregion, core dump data are preserved to described core dump subregion.
The embodiment of the present invention has the beneficial effect that: by the described internal memory of described mobile communication terminal
Described user data subregion sets up described core dump subregion, makes the abnormal (example of described mobile communication terminal system
Such as system in case of system halt or collapse) time, it is possible to described internal memory for making the target memory of core dump,
Improve the motility of core dump;Meanwhile, the described mobile communication terminal only with described internal memory is made
No longer be it may be only configured to external memory storage by the target of the core dump of prior art limited.
The embodiment of the present invention provides a kind of mobile communication terminal, including:
Dump subregion sets up unit, for dividing the user data of the internal memory of described mobile communication terminal
District is adjusted and sets up core dump subregion;
Dump data saving unit, for entering core dump when the system exception of described mobile communication terminal
Core dump data, when checking described internal memory and there is described core dump subregion, are protected by pattern
Deposit to described core dump subregion.
The embodiment of the present invention has the beneficial effect that: by the described internal memory of described mobile communication terminal
Described user data subregion sets up described core dump subregion, makes the abnormal (example of described mobile communication terminal system
Such as system in case of system halt or collapse) time, it is possible to described internal memory for making the target memory of core dump,
Improve the motility of core dump;Meanwhile, the described mobile communication terminal only with described internal memory is made
No longer be it may be only configured to external memory storage by the target of the core dump of prior art limited.
Accompanying drawing explanation
The flow chart of the core dump method of a kind of mobile communication terminal that Fig. 1 provides for the embodiment of the present invention;
The flow process of the core dump method of the another kind of mobile communication terminal that Fig. 2 provides for the embodiment of the present invention
Figure;
The user data subregion of the internal memory to mobile communication terminal that Fig. 3 provides for the embodiment of the present invention
It is adjusted and sets up the flow chart of core dump subregion;
The user data subregion of the internal memory of the mobile communication terminal that Fig. 4 provides for the embodiment of the present invention enters
Structural representation after Row sum-equal matrix;
The structured flowchart of a kind of mobile communication terminal that Fig. 5 provides for the embodiment of the present invention;
The structured flowchart of a kind of more specific mobile communication terminal that Fig. 6 provides for the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with Figure of description, the embodiment of the present invention is realized process to be described in detail.Should be noted that
, the most same or similar label represents same or similar element or has same or like merit
The element of energy.The embodiment described below with reference to accompanying drawing is exemplary, is only used for explaining the present invention,
And be not considered as limiting the invention, it is clear that described embodiment is only that a part of the present invention is real
Execute example rather than whole embodiments.
Seeing Fig. 1, the embodiment of the present invention provides a kind of core dump method of mobile communication terminal, including:
101, in advance the user data subregion of the internal memory of mobile communication terminal is adjusted and sets up
Core dump subregion.
102, enter core dump pattern when the system exception of mobile communication terminal, check built-in depositing
When reservoir exists core dump subregion, core dump data are preserved to core dump subregion.
Owing to, in prior art, mobile communication terminal is only capable of core dump data are saved in external memory
(such as T-flash card or SD card), when the insufficient space of external memory, or mobile communication terminal is not
Insert external memory, or mobile communication terminal only has internal memory and do not supports external memory
Time, it is clear that core dump cannot realize.And in the present embodiment, by the built-in storage at mobile communication terminal
The user data subregion of device sets up core dump subregion, and (such as system is dead extremely to make mobile communication terminal system
Machine or collapse) time, it is possible to internal memory for making the target memory of core dump, thus improve internal memory
The motility of dump, and it is no longer limited by whether mobile communication terminal has external memory or whether support
External memory.
Certainly, this realization is for internal memory exists the situation of core dump subregion, if be not provided with
Core dump subregion or owing to cause specific makes core dump subregion damaged, then the present embodiment also provides for
The core dump method of another kind of mobile communication terminal, as shown in Figure 2:
101, in advance the user data subregion of the internal memory of mobile communication terminal is adjusted and sets up
Core dump subregion.
102, enter core dump pattern when the system exception of mobile communication terminal, check built-in depositing
When reservoir exists core dump subregion, core dump data are preserved to core dump subregion.
103, check internal memory when there is not core dump subregion, abandon preserving core dump data.
In the present embodiment, if when internal memory cannot find core dump subregion, it should abandon into
Row core dump, does not repeats them here.
Core dump method based on the mobile communication terminal shown in Fig. 1 and Fig. 2, we should be more focused on
How to set up core dump subregion, in order to can have the target determined needing core dump when (in i.e.
Deposit dump subregion) rather than abandon core dump, therefore step 101 is described in detail, such as Fig. 3
Shown in, including:
1011, under mobile communication terminal when startup pattern, receive and the target memory of core dump is set to
The instruction of internal memory.
In the present embodiment, can come by user in the selection by function of the function interface of mobile communication terminal
Determine the storage medium that core dump is to be utilized, it is also possible to come by manufacturer before dispatching from the factory at mobile communication terminal
Complete.
1012, in user data subregion, the data of storage are compressed.In the present embodiment, in order to ensure user
The safety of data, especially determines the peace of the data being stored in user data subregion during user's Self-operating
Entirely, it is necessary to being compressed the data of storage in user data subregion, this compression can include making with algorithm
Data take up room minimizing, or the data of storage in user data subregion are carried out arrangement etc..Need explanation
, step 1012 can omit in some cases, such as by manufacturer before dispatching from the factory to mobile communication eventually
When the internal memory of end sets up core dump subregion, or, user is able to confirm that the mobile communication of oneself eventually
Do not preserve data in the user data subregion of the internal memory of end, do not preserve important data or built-in storage
When the user data subregion of device has sufficiently large memory space.
1013, under mobile communication terminal debugging mode, the partition table of internal memory is adjusted according to instruction,
The mark of core dump subregion is increased in the partition table of internal memory.As shown in Figure 4, it is shown that amendment
Before partition table and the schematic diagram of amended partition table, wherein, character library district sbl1, boot section boot and be
System district system is not adjusted, and only user data subregion is become 6G from 8G, marks off 2G memory block
Territory is with for core dump subregion.It should be noted that merely to the present invention will be described shown in Fig. 4,
The present invention is not limited thereto.In the present embodiment, by adjusting the partition table of internal memory, make number of users
Marking off a memory area as core dump subregion according to subregion, this process is obviously similar to fdisk,
Do not repeat them here.
1014, core dump subregion is formatted.In the present embodiment, in order to ensure in follow-up application
Time, core dump subregion is effective, it is necessary to format core dump subregion.Preferably, with
Core dump subregion is formatted by FAT32 form.With other form, core dump can certainly be divided
District formats, as long as can adapt to the needs of core dump.
The embodiment of the present invention has the beneficial effect that: by the user data of the internal memory of mobile communication terminal
Subregion sets up core dump subregion, when making mobile communication terminal system abnormal (such as system in case of system halt or collapse),
The motility of core dump with internal memory for making the target memory of core dump, can be improved;Meanwhile,
Make the mobile communication terminal only with internal memory no longer can only by the target of the core dump of prior art
It is set to the restriction of external memory storage.
Seeing Fig. 5, the embodiment of the present invention also provides for a kind of mobile communication terminal, including:
Dump subregion sets up unit 501, for dividing the user data of the internal memory of mobile communication terminal
District is adjusted and sets up core dump subregion;
Dump data saving unit 502, for entering core dump when the system exception of mobile communication terminal
Core dump data, when checking internal memory and there is core dump subregion, are preserved to internal memory by pattern
Dump subregion.
Preferably, dump data saving unit 502, it is additionally operable to check internal memory and there is not internal memory and turn
During storage subregion, abandon preserving core dump data.
In the present embodiment, dump data saving unit 502 can be built at the user data subregion of internal memory
Vertical core dump subregion, when making mobile communication terminal system abnormal (such as system in case of system halt or collapse), dump
Data saving unit 502 can with internal memory for making the target memory of core dump, thus improve interior
Deposit the motility of dump, and be no longer limited by whether mobile communication terminal has external memory or whether prop up
Hold external memory.
Seeing Fig. 6, the embodiment of the present invention also provides for a kind of more specific mobile communication terminal, including:
Dump subregion sets up unit 501, for dividing the user data of the internal memory of mobile communication terminal
District is adjusted and sets up core dump subregion;Preferably, dump subregion sets up unit 501, specifically includes:
Receive subelement 5011, under described mobile communication terminal when startup pattern, receive core dump
Target memory be set to the instruction of described internal memory;
Compression subelement 5012, for being compressed the data of storage in user data subregion;
Subregion subelement 5013, under described mobile communication terminal debugging mode, adjusts according to described instruction
The partition table of whole described internal memory, increases described core dump in the partition table of described internal memory
The mark of subregion;
Format subelement 5014, for described core dump subregion is formatted;Preferably, form
Core dump subregion is formatted by beggar's unit 5014, particularly as follows: turn internal memory with FAT32 form
Storage subregion formats.
Dump data saving unit 502, for entering core dump when the system exception of mobile communication terminal
Core dump data, when checking internal memory and there is core dump subregion, are preserved to internal memory by pattern
Dump subregion, and it is used for checking internal memory when there is not core dump subregion, abandon preserving internal memory
Dump data.
The embodiment of the present invention has the beneficial effect that: by the user data of the internal memory of mobile communication terminal
Subregion sets up core dump subregion, when making mobile communication terminal system abnormal (such as system in case of system halt or collapse),
The motility of core dump with internal memory for making the target memory of core dump, can be improved;Meanwhile,
Make the mobile communication terminal only with internal memory no longer can only by the target of the core dump of prior art
It is set to the restriction of external memory storage.
Obviously, those skilled in the art can carry out various change and modification without deviating from this to the present invention
Bright spirit and scope.So, if the present invention these amendment and modification belong to the claims in the present invention and
Within the scope of its equivalent technologies, then the present invention is also intended to comprise these change and modification.
Claims (10)
1. the core dump method of a mobile communication terminal, it is characterised in that including:
In advance the user data subregion of the internal memory of described mobile communication terminal is adjusted and sets up
Core dump subregion;
Core dump pattern is entered when the system exception of described mobile communication terminal, described built-in checking
When memorizer exists described core dump subregion, core dump data are preserved to described core dump subregion.
2. the method for claim 1, it is characterised in that also include:
Check described internal memory when there is not described core dump subregion, abandon preserving described internal memory and turn
Storage data.
3. the method for claim 1, it is characterised in that described to described mobile communication terminal
The user data subregion of described internal memory is adjusted and sets up described core dump subregion, specifically wraps
Include:
Under described mobile communication terminal when startup pattern, receive and the target memory of core dump is set to institute
State the instruction of internal memory;
Under described mobile communication terminal debugging mode, adjust dividing of described internal memory according to described instruction
District's table, increases the mark of described core dump subregion in the partition table of described internal memory;
Described core dump subregion is formatted.
4. method as claimed in claim 3, it is characterised in that described according to described instruction adjustment
Before the partition table of internal memory, also include the data of storage in described user data subregion are pressed
Contracting.
5. method as claimed in claim 2, it is characterised in that described described core dump subregion is entered
Formatting lines, particularly as follows: format described core dump subregion with FAT32 form.
6. a mobile communication terminal, it is characterised in that including:
Dump subregion sets up unit, for dividing the user data of the internal memory of described mobile communication terminal
District is adjusted and sets up core dump subregion;
Dump data saving unit, for entering core dump when the system exception of described mobile communication terminal
Core dump data, when checking described internal memory and there is described core dump subregion, are protected by pattern
Deposit to described core dump subregion.
7. mobile communication terminal as claimed in claim 6, it is characterised in that described dump data preserve
Unit, is additionally operable to check described internal memory when there is not described core dump subregion, abandons preserving institute
State core dump data.
8. mobile communication terminal as claimed in claim 6, it is characterised in that described dump subregion is set up
Unit, specifically includes:
Receive subelement, under described mobile communication terminal when startup pattern, receive the mesh of core dump
Mark memorizer is set to the instruction of described internal memory;
Subregion subelement, under described mobile communication terminal debugging mode, adjusts institute according to described instruction
State the partition table of internal memory, the partition table of described internal memory increases described core dump subregion
Mark;
Format subelement, for described core dump subregion is formatted.
9. mobile communication terminal as claimed in claim 8, it is characterised in that described dump subregion is set up
Unit also includes compressing subelement, and described compression subelement adjusts according to described instruction at described subregion subelement
Before the partition table of described internal memory, the data of storage in described user data subregion are compressed.
10. mobile communication terminal as claimed in claim 7, it is characterised in that described formatting subelement
Described core dump subregion is formatted, particularly as follows: with FAT32 form to described core dump subregion
Format.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610166246.5A CN105843705A (en) | 2016-03-22 | 2016-03-22 | Mobile communication terminal and memory dumping method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610166246.5A CN105843705A (en) | 2016-03-22 | 2016-03-22 | Mobile communication terminal and memory dumping method thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105843705A true CN105843705A (en) | 2016-08-10 |
Family
ID=56588018
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610166246.5A Pending CN105843705A (en) | 2016-03-22 | 2016-03-22 | Mobile communication terminal and memory dumping method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105843705A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112667588A (en) * | 2019-10-16 | 2021-04-16 | 青岛海信移动通信技术股份有限公司 | Intelligent terminal device and method for writing file system data |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102063344A (en) * | 2009-11-18 | 2011-05-18 | 中兴通讯股份有限公司 | Method and system for system fault information dump |
US20110264960A1 (en) * | 2010-04-22 | 2011-10-27 | Samsung Electronics Co. Ltd. | Apparatus and method for analyzing error generation in mobile terminal |
CN102929747A (en) * | 2012-11-05 | 2013-02-13 | 中标软件有限公司 | Method for treating crash dump of Linux operation system based on loongson server |
CN103927240A (en) * | 2014-05-06 | 2014-07-16 | 成都西加云杉科技有限公司 | Information dumping method and device answering to software breakdown |
-
2016
- 2016-03-22 CN CN201610166246.5A patent/CN105843705A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102063344A (en) * | 2009-11-18 | 2011-05-18 | 中兴通讯股份有限公司 | Method and system for system fault information dump |
US20110264960A1 (en) * | 2010-04-22 | 2011-10-27 | Samsung Electronics Co. Ltd. | Apparatus and method for analyzing error generation in mobile terminal |
CN102929747A (en) * | 2012-11-05 | 2013-02-13 | 中标软件有限公司 | Method for treating crash dump of Linux operation system based on loongson server |
CN103927240A (en) * | 2014-05-06 | 2014-07-16 | 成都西加云杉科技有限公司 | Information dumping method and device answering to software breakdown |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112667588A (en) * | 2019-10-16 | 2021-04-16 | 青岛海信移动通信技术股份有限公司 | Intelligent terminal device and method for writing file system data |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103092700B (en) | Internal memory method for cleaning, device and terminal unit | |
CN106155915B (en) | Data storage processing method and device | |
CN103810004B (en) | Method and device for upgrading embedded system as well as equipment | |
CN104063409B (en) | A kind of field of database increases method and system | |
CN109992523B (en) | Memory processing method and device, electronic equipment and computer readable storage medium | |
CN107506309B (en) | Terminal, flash memory data writing method and computer readable storage medium | |
CN101615141A (en) | A kind of method and application program scheduling module of carrying out application program scheduling | |
CN109450949B (en) | Method for unbinding numbers of multiple applications, mobile terminal and readable storage medium | |
CN108012031B (en) | Mobile terminal restart positioning method, mobile terminal and computer readable storage medium | |
CN108196968B (en) | Mobile terminal restart positioning method, mobile terminal and computer readable storage medium | |
CN108121613B (en) | Memory page-based restart positioning method, mobile terminal and readable storage medium | |
CN108052430B (en) | Mobile terminal restart positioning method, mobile terminal and computer readable storage medium | |
CN102946482A (en) | Method for detecting user terminal and user terminal | |
KR20160048173A (en) | Storage processing method, device and terminal | |
WO2015117356A1 (en) | Start-up method and communication terminal | |
CN105843705A (en) | Mobile communication terminal and memory dumping method thereof | |
CN108089937B (en) | Direct memory allocation-based restart positioning method, mobile terminal and storage medium | |
CN102184375A (en) | Management method and terminal of data in subscriber identity module (SIM) card | |
CN108076200B (en) | Mobile terminal restart positioning method, mobile terminal and computer readable storage medium | |
CN108228423B (en) | Mobile terminal restart positioning method, mobile terminal and computer readable storage medium | |
US20130035140A1 (en) | Apparatus and method for state detection and terminal equipment | |
CN101494685A (en) | Method, apparatus and mobile terminal for implementing rapid initialization of mobile terminal telephone directory | |
CN100542339C (en) | Portable terminal is carried out the method and system of telemanagement | |
CN102685304A (en) | Address book synchronizing method and device | |
CN112423288B (en) | Dialing analysis method, device, computer equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160810 |