BLANK();
#if PERF_COUNTERS
- DEFINE(PERFC_hypercalls, PERFC_hypercalls);
- DEFINE(PERFC_exceptions, PERFC_exceptions);
+ DEFINE(ASM_PERFC_hypercalls, PERFC_hypercalls);
+ DEFINE(ASM_PERFC_exceptions, PERFC_exceptions);
BLANK();
#endif
GET_CURRENT(%ebx)
cmpl $NR_hypercalls,%eax
jae bad_hypercall
- PERFC_INCR(PERFC_hypercalls, %eax, %ebx)
+ PERFC_INCR(hypercalls, %eax, %ebx)
#ifndef NDEBUG
/* Create shadow parameters and corrupt those not used by this call. */
pushl %eax
movl %esp,%edx
pushl %edx # push the cpu_user_regs pointer
GET_CURRENT(%ebx)
- PERFC_INCR(PERFC_exceptions, %eax, %ebx)
+ PERFC_INCR(exceptions, %eax, %ebx)
call *exception_table(,%eax,4)
addl $4,%esp
movl UREGS_eflags(%esp),%eax
BLANK();
#if PERF_COUNTERS
- DEFINE(PERFC_hypercalls, PERFC_hypercalls);
- DEFINE(PERFC_exceptions, PERFC_exceptions);
+ DEFINE(ASM_PERFC_hypercalls, PERFC_hypercalls);
+ DEFINE(ASM_PERFC_exceptions, PERFC_exceptions);
BLANK();
#endif
movl UREGS_rbp+SHADOW_BYTES(%rsp),%r9d /* Arg 6 */
#undef SHADOW_BYTES
1: leaq compat_hypercall_table(%rip),%r10
- PERFC_INCR(PERFC_hypercalls, %rax, %rbx)
+ PERFC_INCR(hypercalls, %rax, %rbx)
callq *(%r10,%rax,8)
#ifndef NDEBUG
/* Deliberately corrupt parameter regs used by this hypercall. */
movq UREGS_r9 +SHADOW_BYTES(%rsp),%r9 /* Arg 6 */
#undef SHADOW_BYTES
1: leaq hypercall_table(%rip),%r10
- PERFC_INCR(PERFC_hypercalls, %rax, %rbx)
+ PERFC_INCR(hypercalls, %rax, %rbx)
callq *(%r10,%rax,8)
#ifndef NDEBUG
/* Deliberately corrupt parameter regs used by this hypercall. */
movl UREGS_entry_vector(%rsp),%eax
leaq exception_table(%rip),%rdx
GET_CURRENT(%rbx)
- PERFC_INCR(PERFC_exceptions, %rax, %rbx)
+ PERFC_INCR(exceptions, %rax, %rbx)
callq *(%rdx,%rax,8)
testb $3,UREGS_cs(%rsp)
jz restore_all_xen
pushl _cur; \
movl VCPU_processor(_cur),_cur; \
shll $PERCPU_SHIFT,_cur; \
- incl per_cpu__perfcounters+_name*4(_cur,_idx,4);\
+ incl per_cpu__perfcounters+ASM_PERFC_##_name*4(_cur,_idx,4);\
popl _cur
#else
#define PERFC_INCR(_name,_idx,_cur)
shlq $PERCPU_SHIFT,_cur; \
addq %rdx,_cur; \
popq %rdx; \
- incl _name*4(_cur,_idx,4); \
+ incl ASM_PERFC_##_name*4(_cur,_idx,4); \
popq _cur
#else
#define PERFC_INCR(_name,_idx,_cur)