1 /*
2  * Common code across gcov implementations
3  *
4  * Copyright Citrix Systems R&D UK
5  * Author(s): Wei Liu <wei.liu2@citrix.com>
6  *
7  *    Uses gcc-internal data definitions.
8  *    Based on the gcov-kernel patch by:
9  *       Hubertus Franke <frankeh@us.ibm.com>
10  *       Nigel Hinds <nhinds@us.ibm.com>
11  *       Rajan Ravindran <rajancr@us.ibm.com>
12  *       Peter Oberparleiter <oberpar@linux.vnet.ibm.com>
13  *       Paul Larson
14  */
15 
16 #include "gcov.h"
17 
18 #include <xen/init.h>
19 
20 /*
21  * __gcov_init is called by gcc-generated constructor code for each object
22  * file compiled with -fprofile-arcs.
23  */
__gcov_init(struct gcov_info * info)24 void __init __gcov_init(struct gcov_info *info)
25 {
26     /* Link all gcov info together. */
27     gcov_info_link(info);
28 }
29 
30 /*
31  * These functions may be referenced by gcc-generated profiling code but serve
32  * no function for Xen.
33  */
__gcov_exit(void)34 void __gcov_exit(void)
35 {
36     /* Unused. */
37 }
38 
__gcov_flush(void)39 void __gcov_flush(void)
40 {
41     /* Unused. */
42 }
43 
__gcov_merge_add(gcov_type * counters,unsigned int n_counters)44 void __gcov_merge_add(gcov_type *counters, unsigned int n_counters)
45 {
46     /* Unused. */
47 }
48 
__gcov_merge_single(gcov_type * counters,unsigned int n_counters)49 void __gcov_merge_single(gcov_type *counters, unsigned int n_counters)
50 {
51     /* Unused. */
52 }
53 
__gcov_merge_delta(gcov_type * counters,unsigned int n_counters)54 void __gcov_merge_delta(gcov_type *counters, unsigned int n_counters)
55 {
56     /* Unused. */
57 }
58 
59 /*
60  * Local variables:
61  * mode: C
62  * c-file-style: "BSD"
63  * c-basic-offset: 4
64  * tab-width: 4
65  * indent-tabs-mode: nil
66  * End:
67  */
68