• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

Computer Engineering & Science ›› 2024, Vol. 46 ›› Issue (10): 1720-1734.

• High Performance Computing • Previous Articles     Next Articles

Quantitative analysis of Linux kernel compatibility based on relationship diagram

QIN Ying1,YANG Ya-jing1,MA Jun1,WAN Jia-qi2   

  1. (1.College of Computer Science and Technology,National University of Defense Technology,Chansha 410073;
    2.College of Electronic Engineering,National University of Defense Technology,Hefei 230027,China)
  • Received:2023-04-28 Revised:2023-10-09 Accepted:2024-10-25 Online:2024-10-25 Published:2024-10-29

Abstract: The lack of effective theoretical guidance for the migration of device driver modules and application system libraries caused by kernel upgrades brings many inconveniences to the development and deployment of operating systems. In response to the above situation, this paper proposes a quantitative analysis method for kernel compatibility based on kernel module difference detection and dependency analysis. Combining with the open-source Linux kernel, it constructs a kernel module dependency graph, statistics graph features that affect kernel compatibility such as indegree, out-degree, dependency depth, and centrality of kernel modules, analyzes the changes in system calls and exported functions, which are two types of functions strongly related to compatibility, and their impact on kernel compatibility. It also provides a basic method to measure the compatibility rate and influence domain of kernel modules, and experimental verification is conducted in the Linux kernel 5.x series and typical versions of Kylin.

Key words: kernel, compatibility quantification, domain of impact