PTracer A Linux Kernel Patch Trace Bot

8 Mar 2019  ·  Yang Wen, Jicheng Cao, Shengyu Cheng ·

PatchNet demonstrates a promising prospect of using hierarchical deep learning to classify Linux kernel patches. It identifies bug-fixing patches, which should be back ported to long-term stable versions, from all patches in the mainline Linux kernel. This tool may greatly lighten the burden and reduce the omission of picking patches for maintainers. However, there are still some obstacles for engineering applications.We present PTracer, a Linux kernel patch trace bot based on an improved PatchNet. PTracer continuously monitors new patches in the git repository of the mainline Linux kernel, filters out unconcerned ones, classifies the rest as bug-fixing or non bug-fixing patches, and report bug-fixing patches to kernel experts of commercial operating systems. As a part of PTracer, kernel experts' feedback information is collected and used to retrain the neural network periodically for improving performance. We applied PTracer to CGEL and tested for a month. As a result, 81 patches were recommended, and 59 of them were accepted and merged into CGEL. Our PTracer is the first patch trace bot applied to commercial operating systems and has the advantage of improving software quality and saving labor cost.

PDF Abstract
No code implementations yet. Submit your code now

Categories


Software Engineering

Datasets


  Add Datasets introduced or used in this paper