Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Processing method and device for kernel crash field data

A field data and processing method technology, applied in the kernel field, can solve the problems of not supporting the fourth-generation extended file system, high maintenance cost, and difficult implementation, etc., to achieve the effect of strong applicability, cost reduction, and coverage of a wide range of scenarios

Active Publication Date: 2018-05-25
LEADCORE TECH +1
View PDF8 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, the bootloader does not support the fourth extended filesystem (ext4), and after Android 6.0, the / data partition in the embedded multimedia card eMMC is forced to be encrypted
Therefore, before the bootloader saves the ramdump to the / data partition, it needs to transplant the file system engine of the fourth-generation extended file system ext4, and implement the algorithm for encrypting and decrypting the / data partition of Android 6.0, which is difficult to implement and requires a lot of work. high maintenance cost

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Processing method and device for kernel crash field data
  • Processing method and device for kernel crash field data
  • Processing method and device for kernel crash field data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0023] figure 1 A flow chart of a method for processing kernel crash site data provided by Embodiment 1 of the present invention, this embodiment is applicable to the situation where the kernel crash site data is recorded when the Linux kernel crashes, and the method can be performed by a Linux kernel debugging tool Execution, the tool can be run on electronic devices such as personal computers and tablet computers, and specifically includes the following steps:

[0024] Step 110, pre-allocating at least one piece of storage address space for saving crashed kernel site data in the Android / data partition of the embedded multimedia card eMMC, and recording the address information of the storage address space.

[0025] Configure the Android / data partition in the embedded multimedia card eMMC through the debugging software. Usually eMMC uses a certain storage partition as the Android / data partition, such as the D drive. Optionally, in another storage partition other than the / da...

Embodiment 2

[0041] figure 2 A method for processing kernel crash site data provided by Embodiment 2 of the present invention, as a further description of Embodiment 1, in step 110, the address information of the storage address space is recorded, which can be implemented in the following manner:

[0042] Step 110a, in the Android / data partition of the embedded multimedia card eMMC, pre-allocate an address index file, the address index file is used to record the index information of each storage address space, the index information includes the address range of each storage address space .

[0043] After the dummy-ramdump file is generated, create another address index file in the / data partition. The address information recorded in the address index file will serve as the data position basis for writing and reading data in step 120 and step 130 .

[0044] Exemplary, image 3 A mapping relationship diagram between an address index file and a storage space provided by Embodiment 2 of th...

Embodiment 3

[0053] Figure 4 A method for processing kernel crash site data provided by Embodiment 3 of the present invention, as a further description of the above-mentioned embodiment, in step 120, writing the crash kernel site data into the storage address space can be implemented in the following manner:

[0054] Step 121, compressing the crashed kernel site data.

[0055] When compressing, LZO (Lempel-Ziv-Oberhumer) compression algorithm or LZMA (Lempel-Ziv-Markov chain-Algorithm) compression algorithm can be used to compress the crash kernel site data.

[0056] Step 122, write the compressed crash kernel site data into the storage address space.

[0057] Further, after compressing the crash kernel field data, according to different compression algorithms, the data volume of the compressed data obtained is 30% to 70% of the data volume before compression. The amount of compressed data is related to the compression ratio of the compression algorithm. The higher the compression ratio...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a processing method and device for kernel crash field data. The method comprises the following steps that: in the Android / data partition of an eMMC (Embedded Multi Media Card), pre-distributing at least one storage address space used for storing the kernel crash field data, and recording the address information of the storage address space; after the kernel crash is triggered and restarted, in a bootloader, according to the recorded address information of the storage address space, writing the kernel crash field data into the storage address space; and during restarting, according to the recorded address information of the storage address space, reading the data of the storage address space into a new dump file. The technical scheme provided by the embodiment of the invention can be suitable for all Linux kernel crash scenes, is wide in coverage scene and is high in applicability. Meanwhile, when the kernel crash field data is stored, a fourth-generation expansion file system and an encryption algorithm which is put forward by the Android6.0 do not need to be additionally transplanted, and therefore, cost for storing the kernel crash field data is lowered so as to be convenient in use.

Description

technical field [0001] Embodiments of the present invention relate to kernel technology, and in particular to a method and device for processing kernel crash site data. Background technique [0002] The Linux kernel is a multitasking, preemptible collection of functions. Because kernel code is difficult to easily execute and trace in an emulator or debugger, engineers employ a tool for saving live kernel data for analysis after a kernel crash. Such tools are collectively referred to as memory dump (Ramdump) tools. [0003] At present, the implementation method of the mainstream Ramdump tool is: after the kernel crashes and restarts, it is judged in the boot loader (such as: Uboot) whether it is an abnormal restart, and if it is an abnormal restart, the memory scene is saved to the storage medium. After the bootloader (such as: uboot) collects the crashed on-site kernel data, it saves the data to the data (Android / data) partition of the embedded multimedia card (Embedded Mu...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
CPCG06F11/3636
Inventor 周未来
Owner LEADCORE TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products