coreboot-kgpe-d16/documentation
Stefan Reinauer d37ab454d4 Implement GCC code coverage analysis
In order to provide some insight on what code is executed during
coreboot's run time and how well our test scenarios work, this
adds code coverage support to coreboot's ram stage. This should
be easily adaptable for payloads, and maybe even romstage.

See http://gcc.gnu.org/onlinedocs/gcc/Gcov.html for
more information.

To instrument coreboot, select CONFIG_COVERAGE ("Code coverage
support") in Kconfig, and recompile coreboot. coreboot will then
store its code coverage information into CBMEM, if possible.
Then, run "cbmem -CV" as root on the target system running the
instrumented coreboot binary. This will create a whole bunch of
.gcda files that contain coverage information. Tar them up, copy
them to your build system machine, and untar them. Then you can
use your favorite coverage utility (gcov, lcov, ...) to visualize
code coverage.

For a sneak peak of what will expect you, please take a look
at http://www.coreboot.org/~stepan/coreboot-coverage/

Change-Id: Ib287d8309878a1f5c4be770c38b1bc0bb3aa6ec7
Signed-off-by: Stefan Reinauer <reinauer@google.com>
Reviewed-on: http://review.coreboot.org/2052
Tested-by: build bot (Jenkins)
Reviewed-by: David Hendricks <dhendrix@chromium.org>
Reviewed-by: Martin Roth <martin@se-eng.com>
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
2013-01-12 19:09:55 +01:00
..
RFC Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
AMD-S3.txt AMD S3: Add a document about S3 on AMD platform 2012-08-15 23:19:50 +02:00
Doxyfile.coreboot Run doxygen -u on doxygen configuration files 2010-06-28 10:40:38 +00:00
Kconfig.tex drop three unneeded config variables: 2010-08-27 09:36:41 +00:00
LinuxBIOS-AMD64.tex Drop the USE_PRINTK_IN_CAR option. It's a bogus decision to make for any user / 2010-08-03 15:42:29 +00:00
Makefile Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
POSTCODES Whitespace/typo/cosmetic fixes (trivial). 2010-09-23 18:48:27 +00:00
beginverbatim.tex
cbfs.txt Add multi-architecture support to cbfstool 2012-11-30 00:42:31 +01:00
codeflow.svg Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
endverbatim.tex
gcov.txt Implement GCC code coverage analysis 2013-01-12 19:09:55 +01:00
hypertransport.svg