coreboot-kgpe-d16/src/include
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
..
arch-generic - First stab at getting the ppc ports building and working. 2004-11-18 22:38:08 +00:00
boot cbmem: replace pointer type by uint64_t 2013-01-11 19:56:43 +01:00
console Provide MRC with a console printing callback function 2012-11-14 05:19:21 +01:00
cpu Unify assembler function handling 2012-12-06 23:13:17 +01:00
device import i2c header from u-boot 2012-12-29 15:34:26 +01:00
pc80 mc146818rtc: disable RTC before writing to nvram 2012-11-19 22:06:48 +01:00
smp Clean up #ifs 2012-05-08 00:34:34 +02:00
assert.h We call this cache as ram everywhere, so let's call it the same in Kconfig 2010-08-30 17:53:13 +00:00
cbfs.h Implement stack overflow checking for the BSP 2012-07-24 23:29:12 +02:00
cbfs_core.h Change "VERSION*" to more determined name "CBFS_HEADER_VERSION*". 2013-01-04 06:27:33 +01:00
cbmem.h Implement GCC code coverage analysis 2013-01-12 19:09:55 +01:00
coverage.h Implement GCC code coverage analysis 2013-01-12 19:09:55 +01:00
delay.h Clean up #ifs 2012-05-08 00:34:34 +02:00
ehci.h Fix usb debug dongle support 2011-10-31 04:06:10 +01:00
elog.h ELOG: Add EC events to elog header 2012-11-09 19:03:24 +01:00
fallback.h Make set_boot_successful depend on PC80_SYSTEM 2012-11-30 21:33:35 +01:00
ip_checksum.h Add support for the console over Ethernet (through PCI NE2000). 2010-07-16 20:02:09 +00:00
kconfig.h Add config_enabled() from Linux 2012-05-08 00:36:09 +02:00
lib.h Clean up stack checking code 2012-11-13 18:25:17 +01:00
reset.h Clean up #ifs 2012-05-08 00:34:34 +02:00
sdram_mode.h Various license header consistency fixes (trivial). 2010-02-15 23:10:19 +00:00
smbios.h Extend smbios api to allow runtime change of mainboard serial and version 2012-07-25 14:13:04 +02:00
spd.h Some more DIMM0 related cleanups and deduplication. 2010-11-20 20:23:08 +00:00
spd_ddr2.h Add VIA CX700 support, plus VIA vt8454c reference board support. 2009-04-17 08:37:18 +00:00
spi.h Claim the SPI bus before writes if the IMC ROM is present 2012-12-12 22:34:16 +01:00
spi_flash.h SPI flash layer: remove unused function spi_flash_free() 2012-07-24 02:37:39 +02:00
stddef.h stddef.h: move to generic code 2012-12-08 06:54:16 +01:00
stdlib.h Add back dummy free() 2012-12-19 22:37:43 +01:00
string.h Fix strcpy() 2013-01-03 00:56:59 +01:00
swab.h Add macros for 64bit byte order swapping 2011-10-21 14:13:19 +02:00
timestamp.h Add method for delaying adding of timestamps 2012-11-13 18:24:53 +01:00
trace.h Fix tracing compilation on SMM enabled targets. 2012-09-13 10:11:44 +02:00
types.h Some changes required to get yabel working on v2 (and they generally make 2009-03-01 10:16:01 +00:00
uart.h make early serial console support more generic 2013-01-04 01:36:27 +01:00
uart8250.h make early serial console support more generic 2013-01-04 01:36:27 +01:00
usb_ch9.h USB Debug Port related license header fixes (trivial). 2010-09-23 18:16:46 +00:00
usbdebug.h USBDEBUG: buffer up to 8 bytes 2012-07-26 15:52:00 +02:00
version.h Rename almost all occurences of LinuxBIOS to coreboot. 2008-01-18 15:08:58 +00:00
watchdog.h Clean up #ifs 2012-05-08 00:34:34 +02:00