1 #ifndef _VX_CACCT_DEF_H
2 #define _VX_CACCT_DEF_H
4 #include <asm/atomic.h>
5 #include <linux/vserver/cacct.h>
13 /* context sub struct */
16 struct _vx_sock_acc sock[VXA_SOCK_SIZE][3];
21 #ifdef CONFIG_VSERVER_DEBUG
23 static inline void __dump_vx_cacct(struct _vx_cacct *cacct)
27 printk("\t_vx_cacct:");
29 struct _vx_sock_acc *ptr = cacct->sock[i];
31 printk("\t [%d] =", i);
33 printk(" [%d] = %8d, %8d", j,
34 atomic_read(&ptr[j].count),
35 atomic_read(&ptr[j].total));
43 #endif /* _VX_CACCT_DEF_H */