2002-12-08 09:00:11

by SANTHOSH K

[permalink] [raw]
Subject: Code coverage

Dear all,

Can I take code coverage of a linux driver?

Thanks in advance
Santhosh k


2002-12-09 16:11:49

by Peter Oberparleiter

[permalink] [raw]
Subject: Re:Code coverage

Hello,

> Can I take code coverage of a linux driver?
There is the GCC GNU coverage facility (GCOV) that may be exploited for this
purpose. To use it with the kernel, get and apply the GCOV kernel patch
(gcov-kernel.tar.gz) which may be found in the "files" section at:

http://sourceforge.net/projects/lse

There's also an extension for the text-only output of GCOV available which
builds on the mentioned kernel patch and provides an easy-to-use interface
including HTML output, bar-graphs, browsable overview list, etc. It's called
LCOV and can be found at:

http://ltp.sourceforge.net/lcov.php


Regards,
Peter Oberparleiter