• 中国精品科技期刊
  • 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(8)

    1. 李仲年,皇甫志宇,杨凯杰,营鹏,孙统风,许新征. 基于图提示的半监督开放词汇多标记学习. 计算机研究与发展. 2025(02): 432-442 . 本站查看
    2. 罗宇航,吴润秀,崔志华,张翼英,何业慎,赵嘉. 基于密度峰值聚类的Tri-training算法. 系统仿真学报. 2024(05): 1189-1198 .
    3. 刘旺成,方欢,张顺. 基于图像数据的缺失活动日志修复CNN方法. 计算机集成制造系统. 2024(08): 2787-2796 .
    4. 李道全,祝圣凯,翟豫阳,胡一帆. 基于特征选择与改进的Tri-training的半监督网络流量分类. 计算机工程与应用. 2024(23): 275-285 .
    5. 康昭,刘亮,韩蒙. 基于转换学习的半监督分类. 计算机研究与发展. 2023(01): 103-111 . 本站查看
    6. 李松,吴润秀,康平,赵嘉. 基于自适应剪辑与概率参数的Tri-Training算法. 江西师范大学学报(自然科学版). 2023(05): 490-496 .
    7. 王宇飞,陈文. 基于DECORATE集成学习与置信度评估的Tri-training算法. 计算机科学. 2022(06): 127-133 .
    8. 彭曦晨,葛斌,邰悦. 基于特征融合和注意力的图像分类研究. 合肥学院学报(综合版). 2022(02): 91-97 .

    Other cited types(13)

Catalog

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

    /

    DownLoad:  Full-Size Img  PowerPoint
    Return
    Return