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

A method for adding new functions to the kernel of a linux system

A system kernel and new function technology, applied in the direction of program loading/starting, generation of response errors, error detection of redundant data in operation, etc. The effect of features

Active Publication Date: 2017-12-08
SHANDONG ZHONGFU INFORMATION IND
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The Linux kernel kprobe class call is difficult to achieve multi-module repeated customization

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
  • A method for adding new functions to the kernel of a linux system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] In order to clearly illustrate the technical features of the solution, the solution will be described below through a specific implementation mode combined with the accompanying drawings.

[0022] As can be seen by accompanying drawing, this scheme: a kind of Linux system kernel new function increasing method is characterized in that comprising the steps:

[0023] 1) A jump area is set at the start address of the original function to jump to the start address of the new function, and the jump area is used to store jump instructions for jumping to the new function;

[0024] 2) Run the new function, judge whether the new function needs to call the original function, if so, go to step 3), and continue to execute the new function until the end;

[0025] 3) Enter the template function, jump back to the original function function through the code modification area and jump back area of ​​the template function, that is, call back to the original function function (5), the code...

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 technical scheme of a method for adding new functions to the Linux system kernel. The method of the scheme has original function functions, template functions, new function functions, etc., and there are corresponding jump areas and jump back areas, so that the method of the scheme It does not rely on kernel support, does not rely on the system call table, can support repeated customization, and guarantees the call of the original function, which is convenient for popularization.

Description

technical field [0001] The invention relates to a method for adding new functions to the kernel of a linux system. Background technique [0002] Under normal circumstances, unless the Linux system actively outputs information or is in debug mode, it is difficult for the program at the application layer to output debugging information during operation, especially the kernel, which is the most important part of the Linux operating system. [0003] When developers add functions to a specific Linux system kernel, the general solutions include recompiling the kernel and modifying a specific function in the kernel. The first solution is the easiest to implement and the least feasible. The easiest to implement is because the source code of the Linux kernel is open, and the least feasible is because the fragmentation of the Linux system is serious. The current Linux system kernel is likely to be After customization, it is almost impossible to recompile the original kernel code to f...

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): G06F9/445G06F11/14
Inventor 朱广传刘晓萌陈丹伟任勋益苗功勋万海山
Owner SHANDONG ZHONGFU INFORMATION IND