作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2007, Vol. 33 ›› Issue (05): 65-67. doi: 10.3969/j.issn.1000-3428.2007.05.022

• 软件技术与数据库 • 上一篇    下一篇

基于LKM的嵌入式Linux内核调试模型及实现

王培东,黄凌碧   

  1. (哈尔滨理工大学计算机科学与技术学院,哈尔滨 150080)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2007-03-05 发布日期:2007-03-05

LKM Based Embedded Linux Kernel Debug Model and Its Implementation

WANG Peidong, HUANG Lingbi   

  1. (Dept. of Computer Science & Technology, Harbin University of Science & Technology, Harbin 150080)
  • Received:1900-01-01 Revised:1900-01-01 Online:2007-03-05 Published:2007-03-05

摘要: 为了克服嵌入式Linux调试领域中的插桩模型的缺点,该文在LKM技术的基础之上,引入了“寄生技术”,提出了一种嵌入式Linux内核调试模型,实现了调试代理的功能。实验表明,该模型降低了寄生代码与嵌入式Linux内核的耦合度,减少了对嵌入式Linux内核的修改量,提供了更为灵活的扩展机制和更容易移植的条件。

关键词: 插桩, LKM, 寄生技术, 嵌入式Linux, 调试代理

Abstract: For overcoming defects of the stub model in embedded Linux debug domain, this paper refers to parasite technology and proposes a new embedded Linux debug model based on LKM. The debug agent based on the new model is developed. The experimental results indicate that comparing with KGDB based on the stub model, the new model reduces the coupling degree between the parasitic code and the embedded Linux kernel, and provides the more flexible expansion mechanism. The new model rarely modifies the embedded Linux kernel, so it is easier to port.

Key words: Stub, Loadable kernel module(LKM), Parasite technology, Embedded Linux, Debug agent