Recommending Code Changes for Automatic Backporting of Linux Device Drivers

Abstract : Device drivers are essential components of any operating system (OS). They specify the communication protocol that allows the OS to interact with a device. However, drivers for new devices are usually created for a specific OS version. These drivers often need to be backported to the older versions to allow use of the new device. Backporting is often done manually, and is tedious and error prone. To alleviate this burden on developers, we propose an automatic recommendation system to guide the selection of backporting changes. Our approach analyzes the version history for cues to recommend candidate changes. We have performed an experiment on 100 Linux driver files and have shown that we can give a recommendation containing the correct backport for 68 of the drivers. For these 68 cases, 73.5%, 85.3%, and 88.2% of the correct recommendations are located in the Top-1, Top-2, and Top-5 positions of the recommendation lists respectively. The successful cases cover various kinds of changes including change of record access, deletion of function argument, change of a function name, change of constant, and change of if condition. Manual investigation of failed cases highlights limitations of our approach, including inability to infer complex changes, and unavailability of relevant cues in version history.
Type de document :
Communication dans un congrès
32nd IEEE International Conference on Software Maintenance and Evolution (ICSME), Oct 2016, Raleigh, North Carolina, United States. 〈http://icsme2016.github.io/〉
Liste complète des métadonnées

Littérature citée [28 références]  Voir  Masquer  Télécharger

https://hal.inria.fr/hal-01355859
Contributeur : Julia Lawall <>
Soumis le : mercredi 19 octobre 2016 - 14:30:48
Dernière modification le : vendredi 31 août 2018 - 09:25:58
Document(s) archivé(s) le : vendredi 3 février 2017 - 12:24:28

Fichier

icsme_hal.pdf
Fichiers produits par l'(les) auteur(s)

Identifiants

  • HAL Id : hal-01355859, version 1

Collections

Citation

Ferdian Thung, Dinh Xuan Bach Le, David Lo, Julia Lawall. Recommending Code Changes for Automatic Backporting of Linux Device Drivers. 32nd IEEE International Conference on Software Maintenance and Evolution (ICSME), Oct 2016, Raleigh, North Carolina, United States. 〈http://icsme2016.github.io/〉. 〈hal-01355859〉

Partager

Métriques

Consultations de la notice

198

Téléchargements de fichiers

445