aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/compat/xenoprof.c
blob: 66fd99e1553ad6a07da6a178048e3e23e68effdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
 * compat/xenoprof.c
 */

#include <compat/xenoprof.h>

#define COMPAT
#define ret_t int

#define do_xenoprof_op compat_xenoprof_op

#define xen_oprof_init xenoprof_init
CHECK_oprof_init;
#undef xen_oprof_init

#define xenoprof_get_buffer compat_oprof_get_buffer
#define xenoprof_op_get_buffer compat_oprof_op_get_buffer
#define xenoprof_arch_counter compat_oprof_arch_counter

#define xen_domid_t domid_t
#define compat_domid_t domid_compat_t
CHECK_TYPE(domid);
#undef compat_domid_t
#undef xen_domid_t

#define xen_oprof_passive xenoprof_passive
CHECK_oprof_passive;
#undef xen_oprof_passive

#define xenoprof_counter compat_oprof_counter

#include "../xenoprof.c"

/*
 * Local variables:
 * mode: C
 * c-set-style: "BSD"
 * c-basic-offset: 4
 * tab-width: 4
 * indent-tabs-mode: nil
 * End:
 */