计算机应用与软件2016,Vol.33Issue(3):232-235,274,5.DOI:10.3969/j.issn.1000-386x.2016.03.054
基于 ARM 的 Linux 驱动调试技术研究
RESEARCH ON ARM-BASED LINUX DRIVER DEBUGGING TECHNOLOGY
巩琛 1蔡文1
作者信息
- 1. 上海师范大学信息与机电工程学院 上海 200234
- 折叠
摘要
Abstract
When performing Linux driver transplantation on ARM,it is needed to modify,delete or add Linux kernel codes,but which may result in many unexpected errors at runtime.At this time to debug codes so as to find the cause and position of the error are necessary.For this requirement,we propose and implement two new debugging techniques.The first one is to construct a printing function to store additional print information in a buffer separately,and to output it with the help of proc file system.It achieves the separation between the additional print information and the print information of the kernel itself,and makes the search more convenient.The second one is to determine the position of system dead by making use of the unceasing characteristic of system clock interrupt.It is shown through experiment that this technique finds the position of endless loop quickly,and saves a large amount of code search and analysis work.关键词
Linux/调试/proc文件系统/系统时钟中断Key words
Linux/Debug/Proc file system/System clock interrupt分类
信息技术与安全科学引用本文复制引用
巩琛,蔡文..基于 ARM 的 Linux 驱动调试技术研究[J].计算机应用与软件,2016,33(3):232-235,274,5.