节点文献

针对内核扩展函数出错处理的日志自动注入方法

An automatic log injection method handling kernel extension function error

  • 推荐 CAJ下载
  • PDF下载
  • 不支持迅雷等下载工具,请取消加速工具后下载。

【作者】 钱诚刘虎球王瑀屏

【Author】 Qian Cheng;Liu Huqiu;Wang Yuping;Department of Computer Science and Technology,Tsinghua University;

【机构】 清华大学计算机科学与技术系

【摘要】 提出一种日志自动注入的方法,解决驱动程序中的内核扩展函数调用不规范的问题。首先静态扫描源程序,当发现程序中调用了内核扩展函数但没有检测返回值时,则在调用后自动插入对返回值的检测代码,并使得这些函数在执行发生错误时会被日志记录。一旦系统发生崩溃,这些日志信息将成为关键的调试依据。实验结果表明,该方法对系统性能影响很小,且可以帮助调试人员更高效地定位和调试内核模块错误。

【Abstract】 An automatic log injection method is proposed to solve the non-standard calling of the kernel extension functions in device driver.Firstly the source code is scanned statically,and checking code is inserted automatically when the return value of the kernel extension function is not checked.At the same time,a log is recorded when these functions return errors.Once the system crashes,these important logs will be the key evidence to debug.The experiment shows that,our method has little influence to the system performance and can help the programmers locate and debug the kernel module error efficiently.

【基金】 北京高等教育青年教师基金资助项目(YETP0108)
  • 【文献出处】 中国科技论文 ,China Sciencepaper , 编辑部邮箱 ,2015年14期
  • 【分类号】TP316
  • 【下载频次】55
节点文献中: