From: Peter Oberparleiter <oberparleiter@go...> - 2006-06-26 14:47:54
jiang guowei wrote:
> How can I know when
> reboot of the 2.6.14 kernel happen,what source file is used?
In general, when there is an event and you want to know what source files are used during this event, you can use the following approach:
1. reset coverage information (e.g. 'lcov -z')
2. trigger event
3. collect coverage information (e.g. 'lcov -c -o test.info')
If you look at the coverage data in test.info, any file that has a coverage rate > 0 has been used during the event.
Unfortunately during reboot, coverage information is reset so that you will only get coverage information for the part of the event after the reset which is the same as a standard boot. I assume that the coverage information shown on the site you linked shows just that.
> How can I use
> LTP GCOV extension to get the result above?
After reboot, do an 'lcov -c -o test.info' and 'genhtml test.info -o output'
> In additon,how do I use ltp and ltp gcov extension together ?
Use the instructions 1.-3. above and run the LTP test suite in place of 2.