gcov: add new interface and new formats support
authorWei Liu <wei.liu2@citrix.com>
Thu, 29 Sep 2016 20:10:53 +0000 (21:10 +0100)
committerWei Liu <wei.liu2@citrix.com>
Sat, 3 Dec 2016 15:55:34 +0000 (15:55 +0000)
commit74a37c3aa870feb0cd677b14b5e554d58b97bc8d
tree060fd66ae1db9cbb6bf94e78faefa250421a1e02
parentd92d9e1701e37567d2a04edb8d38c7e86d535312
gcov: add new interface and new formats support

A new sysctl interface for passing gcov data back to userspace. The new
interface uses a customised record file format. The new sysctl reuses
original sysctl number but renames the op to gcov_op.

Formats starting from gcc version 3.4 are supported. The code is
rewritten so that a new format can be easily added in the future.
Version specific code is grouped into different files. The format one
needs to use can be picked via Kconfig. The default format is the newest
one.

Userspace programs to handle extracted data will come in a later patch.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
12 files changed:
xen/Kconfig.debug
xen/common/gcov/Makefile
xen/common/gcov/gcc_3_4.c [new file with mode: 0644]
xen/common/gcov/gcc_4_7.c [new file with mode: 0644]
xen/common/gcov/gcc_4_9.c [new file with mode: 0644]
xen/common/gcov/gcc_5.c [new file with mode: 0644]
xen/common/gcov/gcov.c [new file with mode: 0644]
xen/common/gcov/gcov.h [new file with mode: 0644]
xen/common/gcov/gcov_base.c [new file with mode: 0644]
xen/common/sysctl.c
xen/include/public/sysctl.h
xen/include/xen/gcov.h [new file with mode: 0644]