Line | |
---|
1 | #ifndef _XEN_IA64_PRIVOP_STAT_H |
---|
2 | #define _XEN_IA64_PRIVOP_STAT_H |
---|
3 | #include <asm/config.h> |
---|
4 | #include <xen/types.h> |
---|
5 | #include <public/xen.h> |
---|
6 | |
---|
7 | #ifdef CONFIG_PRIVOP_ADDRS |
---|
8 | |
---|
9 | extern void gather_privop_addrs(void); |
---|
10 | extern void reset_privop_addrs(void); |
---|
11 | |
---|
12 | #define PERFCOUNTER(var, name) |
---|
13 | #define PERFCOUNTER_ARRAY(var, name, size) |
---|
14 | |
---|
15 | #define PERFSTATUS(var, name) |
---|
16 | #define PERFSTATUS_ARRAY(var, name, size) |
---|
17 | |
---|
18 | #define PERFPRIVOPADDR(name) privop_inst_##name, |
---|
19 | |
---|
20 | enum privop_inst { |
---|
21 | #include <asm/perfc_defn.h> |
---|
22 | }; |
---|
23 | |
---|
24 | #undef PERFCOUNTER |
---|
25 | #undef PERFCOUNTER_ARRAY |
---|
26 | |
---|
27 | #undef PERFSTATUS |
---|
28 | #undef PERFSTATUS_ARRAY |
---|
29 | |
---|
30 | #undef PERFPRIVOPADDR |
---|
31 | |
---|
32 | #define PRIVOP_COUNT_ADDR(regs,inst) privop_count_addr(regs->cr_iip,inst) |
---|
33 | extern void privop_count_addr(unsigned long addr, enum privop_inst inst); |
---|
34 | |
---|
35 | #else |
---|
36 | #define PRIVOP_COUNT_ADDR(x,y) do {} while (0) |
---|
37 | #define gather_privop_addrs() do {} while (0) |
---|
38 | #define reset_privop_addrs() do {} while (0) |
---|
39 | #endif |
---|
40 | |
---|
41 | #endif /* _XEN_IA64_PRIVOP_STAT_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.