跳到主要导航 跳到搜索 跳到主要内容

Complete Runtime Tracing for Device Drivers Based on LLVM

  • Tsinghua University

科研成果: 书/报告/会议事项章节会议稿件同行评审

摘要

Device drivers often suffer from much more bugs than the kernel, so testing device drivers becomes more and more important and necessary. In software testing, runtime tracing is an important technique to monitor real executing procedures of the program. Meanwhile, runtime information can also assist the programmer to make more accurate analysis of the program, like verifying the correctness of code execution and detecting bugs. However, due to kernel-mode execution and high complexity of kernel code, completely tracing drivers is hard, which causes real execution paths can not be clearly identified. In order to provide more powerful support for software testing of device drivers, we propose a method named Driver Trace, to do complete runtime tracing at the function level. Driver Trace utilizes instrumentation technique for runtime tracing, which is implemented based on LLVM compiler infrastructure. When the target driver works, Driver Trace records complete runtime information of function calls, like function names, return values and parameter pointers, and the information is recorded in a log file for future analysis. We have successfully implemented Driver Trace on 10 real device drivers in Linux 3.16.4 and made the evaluation as well. The experimental results show that Driver Trace provides an effective method of runtime tracing for device drivers with the modest overhead. Moreover, using an automated analysis of the runtime information recorded by Driver Trace, we also find 6 violations about resource usages in these 10 device drivers.

源语言英语
主期刊名Proceedings - 2015 IEEE 39th Annual Computer Software and Applications Conference, COMPSAC 2015
编辑Gang Huang, Jingwei Yang, Sheikh Iqbal Ahamed, Pao-Ann Hsiung, Carl K. Chang, William Chu, Ivica Crnkovic
出版商IEEE Computer Society
200-209
页数10
ISBN(电子版)9781467365635
DOI
出版状态已出版 - 21 9月 2015
已对外发布
活动39th IEEE Annual Computer Software and Applications Conference, COMPSAC 2015 - Taichung, 中国台湾
期限: 1 7月 20155 7月 2015

出版系列

姓名Proceedings - International Computer Software and Applications Conference
2
ISSN(印刷版)0730-3157

会议

会议39th IEEE Annual Computer Software and Applications Conference, COMPSAC 2015
国家/地区中国台湾
Taichung
时期1/07/155/07/15

指纹

探究 'Complete Runtime Tracing for Device Drivers Based on LLVM' 的科研主题。它们共同构成独一无二的指纹。

引用此