Unlock instant, AI-driven research and patent intelligence for your innovation.

Linux-based kernel log system and realization method thereof

An implementation method and log technology, applied in the field of Linux-based kernel log system, can solve problems such as inability to manage kernel logs, and achieve the effect of improving development efficiency

Active Publication Date: 2013-12-25
EASTERN COMM
View PDF1 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, this invention still uses the printk function for the output function of the kernel log, so it cannot fundamentally play an effective management role in the kernel log

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
  • Linux-based kernel log system and realization method thereof
  • Linux-based kernel log system and realization method thereof
  • Linux-based kernel log system and realization method thereof

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] In order to fully understand the technical content of the present invention, specific embodiments are given below, and the technical solutions of the present invention are introduced and explained in detail in conjunction with the accompanying drawings.

[0034] When the Linux system starts, a kernel log space is created in the Linux system kernel space, a user log space is created in the Linux system user space, and several levels of log files are set. In this embodiment, log files have ten levels, which are named log0 to log9 respectively.

[0035] Such as figure 1 As shown, the kernel log space is composed of a group of continuous kernel log nodes 101 and a kernel log control block 102 . The kernel log control block further includes a kernel log write location pointer 103 , a kernel log read location pointer 104 , and a kernel log lock 105 .

[0036] Described kernel log node 101 is used as the storage of kernel log content, and each kernel log node includes log st...

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 provides a Linux-based kernel log system, comprising a kernel log space, a user log space and a plurality of log files; the kernel log space is located in a Linux kernel space and comprises a group of continuous kernel space log nodes and a kernel log control block; the user log space is located in a Linux user space and consists of a plurality of user space log nodes; the user space log nodes recorded with contents are articulated in a plurality of user space log queues, and the idle user space log nodes form an idle linked list; the plurality of log files correspond to a plurality of grades of the logs and are used for classified outputting of the kernel logs read in the idle space log queues. The invention further provides a realization method for the Linux-based kernel log system, which comprises the following steps of: establishing the kernel log space in the Linux kernel space, setting up the user log space in the Linux user space, and finishing outputting of the kernel logs to different log files. The invention is convenient for a programmer to debug and analyze the kernel programs and has improved development efficiency of the kernel.

Description

technical field [0001] The invention relates to a Linux-based kernel log system and an implementation method. Background technique [0002] Storage management in modern computer architectures usually includes protection mechanisms. The purpose of providing protection is to prevent a task in the system from accessing memory areas belonging to another or belonging to the operating system. Based on this framework, the Linux operating system divides itself: a part of the core software is independent of ordinary applications and runs at a higher privilege level, they reside in the protected memory space, and have all the permissions to access hardware devices , Linux calls this kernel space. In contrast, other parts are implemented as applications in user space. They can only see part of the system resources that they are allowed to use, and cannot use certain system functions, cannot directly access hardware, cannot directly access kernel space, and of course have other speci...

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 Patents(China)
IPC IPC(8): G06F11/34
Inventor 吕彦霖王强周利满
Owner EASTERN COMM