Fast and Precise Retrieval of Forward and Back Porting Information for Linux Device Drivers

Abstract : Porting Linux device drivers to target more recent and older Linux kernel versions to compensate for the ever-changing kernel interface is a continual problem for Linux device driver developers. Acquiring information about interface changes is a necessary, but tedious and error prone, part of this task. In this paper, we propose two tools, Prequel and gcc-reduce, to help the developer collect the needed information. Prequel provides language support for querying git commit histories, while gcc-reduce translates error messages produced by compiling a driver with a target kernel into appropriate Pre-quel queries. We have used our approach in porting 33 device driver files over up to 3 years of Linux kernel history , amounting to hundreds of thousands of commits. In these experiments, for 3/4 of the porting issues, our approach highlighted commits that enabled solving the porting task. For many porting issues, our approach retrieves relevant commits in 30 seconds or less.
Complete list of metadatas

Cited literature [13 references]  Display  Hide  Download

https://hal.inria.fr/hal-01556589
Contributor : Julia Lawall <>
Submitted on : Wednesday, July 5, 2017 - 12:00:22 PM
Last modification on : Thursday, March 21, 2019 - 1:19:56 PM
Long-term archiving on: Tuesday, January 23, 2018 - 8:28:42 PM

File

paper.pdf
Files produced by the author(s)

Identifiers

  • HAL Id : hal-01556589, version 1

Citation

Julia Lawall, Derek Palinski, Lukas Gnirke, Gilles Muller. Fast and Precise Retrieval of Forward and Back Porting Information for Linux Device Drivers. 2017 USENIX Annual Technical Conference, Jul 2017, Santa Clara, CA, United States. pp.12. ⟨hal-01556589⟩

Share

Metrics

Record views

235

Files downloads

101