Chinaunix首页 | 论坛 | 博客
  • 博客访问: 988856
  • 博文数量: 102
  • 博客积分: 10120
  • 博客等级: 上将
  • 技术积分: 2754
  • 用 户 组: 普通用户
  • 注册时间: 2006-09-13 23:00
文章分类

全部博文(102)

文章存档

2011年(6)

2010年(55)

2009年(16)

2008年(25)

分类: LINUX

2008-03-28 17:57:17

文件:Tech_Report_about_gcov_kernel_extension.pdf
大小:547KB
下载:下载

Simple Summary about gcov in Linux Kernel

Rockins Chen<>03/25/08


TOC

1 Purpose and scope
2 Methodology
3 Patch and compile Linux kernel
4 Compile kernel module
5 generate .info and generate .html
6 Important Note
7 Appendix: lcov for user space
8 Conclude and future work
Resource
Acknowledge


1 Purpose and scope


gcov is a coverage testing tool. However, it conventionally can only work under user space, other than kernel space. The object of this short essay is to describe how to test code coverage in Linux kernel by gcov.


2 Methodology


Hubertus Franke, Nigel Hinds, Peter Oberparleiter, and Rajan Ravindran have contributed a gcov-kernel extension[1]. So all we need to do is patch this extension to Linux kernel, re-compile and install the kernel. After that, you can profit from gcov-kernel by testing code coverage in kernel space.


I experimented again and again, and finally found that Linux 2.6.14 is best suitable both for my Hardware platform. If you are extending your kernel with gcov, this version of Linux is suggested.

(complete content please refer the attachment)

阅读(1319) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~