1 /*
2  * compat/xenoprof.c
3  */
4 
5 #include <compat/xenoprof.h>
6 
7 #define COMPAT
8 #define ret_t int
9 
10 #define do_xenoprof_op compat_xenoprof_op
11 
12 #define xen_oprof_init xenoprof_init
13 CHECK_oprof_init;
14 #undef xen_oprof_init
15 
16 #define xenoprof_get_buffer compat_oprof_get_buffer
17 #define xenoprof_op_get_buffer compat_oprof_op_get_buffer
18 #define xenoprof_arch_counter compat_oprof_arch_counter
19 
20 #define xen_domid_t domid_t
21 #define compat_domid_t domid_compat_t
22 CHECK_TYPE(domid);
23 #undef compat_domid_t
24 #undef xen_domid_t
25 
26 #define xen_oprof_passive xenoprof_passive
27 CHECK_oprof_passive;
28 #undef xen_oprof_passive
29 
30 #define xenoprof_counter compat_oprof_counter
31 
32 #include "../xenoprof.c"
33 
34 /*
35  * Local variables:
36  * mode: C
37  * c-file-style: "BSD"
38  * c-basic-offset: 4
39  * tab-width: 4
40  * indent-tabs-mode: nil
41  * End:
42  */
43