Font Size: a A A

Linux Version Differentiation Analysis Optimization And Patch Generation

Posted on:2018-08-12Degree:MasterType:Thesis
Country:ChinaCandidate:H LuoFull Text:PDF
GTID:2348330563952324Subject:Computer technology
Abstract/Summary:PDF Full Text Request
Linux kernel code is very large and complex,in order to facilitate other developers to develop kernel module better,Linux kernel team established a lots of Linux kernel API for developers to use.With the growing of linux,the number of its API is evolution with a high speed.To adaption kernel module from a version to another,developer have to take enough care about the changing of their API.Therefore,research and design a system which can do kernel moudule version adaptation automatically has a certain amount of research and practical significance.The core problem of version adaptation is the information of the change of theri API,to collect this information,this article use AST to get it by complier which can make sure the infromation is enough for analyze.Then use some tool to generate patch by this infromation automatically.Main research contents are as follows:1.Collect change information of two versions by complier,and analyze the diff of tow ASTs to analyze how the code is changed.To make sure this information can coverage enough code,Some merge and abstract is needed,and no-used information should be cut.2.Then this article chooses transform the change information to a Patch automatically to change source code.How to make sure the contents of Patch is accurate and can coverage the diff of tow version's code mostly is the one of the core problem of this article.3.To test and verify the result and efficiency of this system.This article has selected 5 kernel modules include driver,filesystem.And then collected 93 API change commits related those modules from linux-3.10 to 3.17 version.Compare the change made by this system and linux developer,calculate the precise and recall to evaluation the feasibility and result of this article.Then also mentioned some improve direction.
Keywords/Search Tags:Linux, Kernel module porting, source code anlysis
PDF Full Text Request
Related items