计算机科学 ›› 2014, Vol. 41 ›› Issue (Z6): 445-450.

• 软件工程与数据库技术 • 上一篇    下一篇

Linux内核中编译选项、文件以及函数之间依赖关系的解析方法

江梦涛,潘朋飞,宋杨,荆琦   

  1. 北京大学软件与微电子学院 北京100871;北京大学软件与微电子学院 北京100871;北京大学软件与微电子学院 北京100871;北京大学软件与微电子学院 北京100871
  • 出版日期:2018-11-14 发布日期:2018-11-14
  • 基金资助:
    本文受“核高基”科技重大专项:操作系统内核分析和安全性评估(2012ZX01039-004)资助

Method of Parsing Dependencies between the Linux Kernel Compiling Options,Source Files and Functions

JIANG Meng-tao,PAN Peng-fei,SONG Yang and JING Qi   

  • Online:2018-11-14 Published:2018-11-14

摘要: Linux内核中的编译选项为内核提供了功能定制的可能性,但从传统静态代码分析的角度较难获得编译选项的改变对软件代码实际的影响。基于Linux内核源码,提出一种从编译选项开始,一直到函数调用关系的分析思路,同时给出了与编译选项相关的源代码的分层模型及其具体的分析做法,对于理解Linux内核源码特别是其中的编译依赖有现实意义。

关键词: 操作系统,Linux内核,静态代码分析 中图法分类号TP314文献标识码A

Abstract: Compilation options in Linux Kernel provide the possibilities of functionality customization in operation system,but in traditional method of static code analysis,it is hard to know how a compilation option could affect the source code of Linux kernel.Based on the Linux kernel source,this paper presents a way of analyzing the relationship between compilation options,files and function calls from the top level,and gives the hierarchical model associated with the source code and compile options.

Key words: Operating system,Linux kernel,Static code analysis

[1] Linux Kernel Organization,Inc.Kconifg Introductionin LinuxKernel Source Code.https://www.kernel.org/doc/Documentation/kbuild/kconfig-language.txt
[2] Linux Kernel Organization,Inc.Makefile Introductionin LinuxKernel Source Code.https://www.kernel.org/doc/Documentation/kbuild/makefiles.txt
[3] Linux Kernel Organization,Inc.Building External Modules inLinux Kernel.https://www.kernel.org/doc/Documentation/kbuild/modules.txt

No related articles found!
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!