• 中国精品科技期刊
  • CCF推荐A类中文期刊
  • 计算领域高质量科技期刊T1类
Advanced Search
Li Bin, He Yeping, Ma Hengtai, Rui Jianwu. Recommending Interface Patches for Forward Porting of Linux Device Drivers Based on Existing Instances[J]. Journal of Computer Research and Development, 2021, 58(1): 189-207. DOI: 10.7544/issn1000-1239.2021.20200284
Citation: Li Bin, He Yeping, Ma Hengtai, Rui Jianwu. Recommending Interface Patches for Forward Porting of Linux Device Drivers Based on Existing Instances[J]. Journal of Computer Research and Development, 2021, 58(1): 189-207. DOI: 10.7544/issn1000-1239.2021.20200284

Recommending Interface Patches for Forward Porting of Linux Device Drivers Based on Existing Instances

Funds: This work was supported by the CAS Strategic Priority Program (XDA-Y01-01, XDC02010600).
More Information
  • Published Date: December 31, 2020
  • The extent and scope of associated impact of Linux kernel version upgraded frequently on the drivers are very large. In order to repair the inconsistency error of the driver calling the kernel interface caused by this related impact, constantly modifying the old version drivers’ codes for forward porting is a continuing and urgent problem. There are existing researches on assistant understanding of driven evolution, assistant adaptation of driver porting middle lib and assistant information of driver porting. The efficiency of driver porting is improved by retrieving assistant information at the statement level. However, the existing methods only focus on retrieving assistant information itself without distinguishing the effective patch materials. Therefore, manual analysis and manual construction of adaptable patches are required. To overcome the above limitations, in this paper we propose a new method to recommend high quality patches for interface errors in drivers forward porting. We observe that: there are the same or similar kernel interfaces’ calls between multiple different drivers that rely on the same kernel interface services, and there may be existing instance codes in the development history of other drivers, which share the same interfaces reuse and interfaces changes after kernel version is upgraded. This paper uses the commonality of the error interface statements and similar existing instances in historical development information to analyze the characteristics of the error problem, and extracts targeted interface modification modes and contents of fine-grained materials to generate patches to be recommended. Specifically, the effective modification modes are determined by combining boundary point identification, similarity calculation, fine-grained difference comparison and frequency calculation. A classification algorithm based on the different characteristics of existing instances is proposed for the first time, by distinguishing the different types of modification contents, then content materials from two data sources are extracted respectively. Finally we use the editing script technology to generate the recommended patches using above materials. Experiment on 9 different types of real drivers shows that this method can recommend for 7 types of interface errors patches in driver porting, and the effective patches account for about 67.4%. Partly, it effectively supplements and expands existing assistant methods for driver porting.
  • Related Articles

    [1]Cui Yuanning, Sun Zequn, Hu Wei. A Pre-trained Universal Knowledge Graph Reasoning Model Based on Rule Prompts[J]. Journal of Computer Research and Development, 2024, 61(8): 2030-2044. DOI: 10.7544/issn1000-1239.202440133
    [2]Huang Lisheng, Ran Jinye, Luo Jing, Zhang Xiangyin. Estimating QoE for OTT Video Service Through XDR Data Analysis[J]. Journal of Computer Research and Development, 2021, 58(2): 418-426. DOI: 10.7544/issn1000-1239.2021.20190759
    [3]Chen Weili, Zheng Zibin. Blockchain Data Analysis: A Review of Status, Trends and Challenges[J]. Journal of Computer Research and Development, 2018, 55(9): 1853-1870. DOI: 10.7544/issn1000-1239.2018.20180127
    [4]Zhang Lei, Zhang Yi. Big Data Analysis by Infinite Deep Neural Networks[J]. Journal of Computer Research and Development, 2016, 53(1): 68-79. DOI: 10.7544/issn1000-1239.2016.20150663
    [5]Zhang Bin, Le Jiajin, Sun Li, Xia Xiaoling, Wang Mei, Li Yefeng. Materialization Strategies in Big Data Analysis System Based on Column-Store[J]. Journal of Computer Research and Development, 2015, 52(5): 1061-1070. DOI: 10.7544/issn1000-1239.2015.20140693
    [6]Jiang Zhuoxuan, Zhang Yan, Li Xiaoming. Learning Behavior Analysis and Prediction Based on MOOC Data[J]. Journal of Computer Research and Development, 2015, 52(3): 614-628. DOI: 10.7544/issn1000-1239.2015.20140491
    [7]Chen Shimin. Big Data Analysis and Data Velocity[J]. Journal of Computer Research and Development, 2015, 52(2): 333-342. DOI: 10.7544/issn1000-1239.2015.20140302
    [8]Deng Hongxia, Xiang Jie, You Ya, Li Haifang. Analysis Method of Thinking Data Based on fMRI[J]. Journal of Computer Research and Development, 2014, 51(4): 773-780.
    [9]Zhou Jiang, Wang Weiping, Meng Dan, Ma Can, Gu Xiaoyan, Jiang Jie. Key Technology in Distributed File System Towards Big Data Analysis[J]. Journal of Computer Research and Development, 2014, 51(2): 382-394.
    [10]Liu Wenfen, Guan Wei, Cao Jia, and Zhang Weiming. Detection of Secret Message in Spatial LSB Steganography Based on Contaminated Data Analysis[J]. Journal of Computer Research and Development, 2006, 43(6): 1058-1064.
  • Cited by

    Periodical cited type(10)

    1. 贺岩,潘俊杰. 基于Neo4j的太湖流域诗词知识图谱构建研究. 电脑编程技巧与维护. 2025(02): 145-148 .
    2. 张强,高劲松,龙家庆,杨晓燕,夏红玉,蒋智慧. 基于知识重构的词人时空情感轨迹可视化研究——以辛弃疾为例. 情报学报. 2023(06): 729-739 .
    3. 王亚楠. 镇江“大运河”主题诗词文化资源的组织性建构. 文化创新比较研究. 2023(18): 1-7 .
    4. 宋雪雁,罗慧,杨芳芳. 知识重组视域下《全唐诗》送别诗的时空结构研究. 图书情报工作. 2023(20): 15-24 .
    5. 宋雪雁,罗慧,杨芳芳. 《全唐诗》送别诗诗人社交网络分析. 兰台世界. 2023(12): 43-48+52 .
    6. 宋雪雁,霍晓楠,刘寅鹏,邓君. 数字人文视角下《全唐诗》贬谪诗人社会关系研究. 现代情报. 2022(02): 14-21 .
    7. 欧阳子薇,柳雨欣,于娜. 以弘扬古诗词文化为主题的移动应用设计研究. 包装工程. 2022(04): 197-202 .
    8. 司莉,郭财强. 基于内容分析的数字人文领域中知识组织价值体现研究综述. 图书情报工作. 2022(13): 127-137 .
    9. 张卫,王昊,李晓敏,Song Min. 数字人文视角下古诗意象知识抽取及其文化图式构建研究. 图书情报工作. 2022(24): 104-117 .
    10. 李永卉,周树斌,周宇婷,卢章平. 基于图数据库Neo4j的宋代镇江诗词知识图谱构建研究. 大学图书馆学报. 2021(02): 52-61 .

    Other cited types(25)

Catalog

    Article views (568) PDF downloads (365) Cited by(35)

    /

    DownLoad:  Full-Size Img  PowerPoint
    Return
    Return