diff options
author | Frediano Ziglio <frediano.ziglio@citrix.com> | 2013-02-14 12:37:15 +0000 |
---|---|---|
committer | Keir <keir.xen@gmail.com> | 2013-02-21 16:23:57 +0000 |
commit | 5043f14b5e0043bb6a2c8b794adb440b8b8b3b4a (patch) | |
tree | 6effd876ab42231e2873fc66887309f9ecf78409 /xen/include/xen/gcov.h | |
parent | 26c9d03dd4a7356ed697bec98fe8108a5eebd562 (diff) | |
download | xen-5043f14b5e0043bb6a2c8b794adb440b8b8b3b4a.tar.gz xen-5043f14b5e0043bb6a2c8b794adb440b8b8b3b4a.tar.bz2 xen-5043f14b5e0043bb6a2c8b794adb440b8b8b3b4a.zip |
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>
Diffstat (limited to 'xen/include/xen/gcov.h')
-rw-r--r-- | xen/include/xen/gcov.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/xen/include/xen/gcov.h b/xen/include/xen/gcov.h index d695919762..27c5c37a1c 100644 --- a/xen/include/xen/gcov.h +++ b/xen/include/xen/gcov.h @@ -14,6 +14,8 @@ #ifndef __XEN_GCOV_H__ #define __XEN_GCOV_H__ __XEN_GCOV_H__ +#include <public/sysctl.h> + /* * Profiling data types used for gcc 3.4 and above - these are defined by * gcc and need to be kept as close to the original definition as possible to @@ -81,4 +83,11 @@ struct gcov_info }; +/** + * Sysctl operations for coverage + */ +#ifdef TEST_COVERAGE +int sysctl_coverage_op(xen_sysctl_coverage_op_t *op); +#endif + #endif /* __XEN_GCOV_H__ */ |