gcov: Implement code to read coverage informations
authorFrediano Ziglio <frediano.ziglio@citrix.com>
Thu, 14 Feb 2013 12:37:15 +0000 (12:37 +0000)
committerKeir <keir.xen@gmail.com>
Thu, 21 Feb 2013 16:23:57 +0000 (16:23 +0000)
commit5043f14b5e0043bb6a2c8b794adb440b8b8b3b4a
tree6effd876ab42231e2873fc66887309f9ecf78409
parent26c9d03dd4a7356ed697bec98fe8108a5eebd562
gcov: Implement code to read coverage informations

Operations are handled by a sysctl specific operation.

Implement 4 operations
- check if coverage is compiled in
- read size of coverage information
- read coverage information
- reset coverage counters

Information are stored in a single blob in a format specific to Xen designed
to make code that generate coverage as small as possible.

This patch add a public header with the structure of blob exported by Xen.
This avoid problems distributing header which is GPL2.

Signed-off-by: Frediano Ziglio <frediano.ziglio@citrix.com>
xen/common/gcov/gcov.c
xen/common/sysctl.c
xen/include/public/gcov.h [new file with mode: 0644]
xen/include/public/sysctl.h
xen/include/xen/gcov.h