#include <linux/jiffies.h>
#include <linux/utsname.h>
#include <linux/spinlock.h>
+#include <linux/wait.h>
#include <linux/time.h>
#include <asm/atomic.h>
uint64_t iowait;
};
+struct _vx_syslog {
+ wait_queue_head_t log_wait;
+ spinlock_t logbuf_lock; /* lock for the log buffer */
+
+ unsigned long log_start; /* next char to be read by syslog() */
+ unsigned long con_start; /* next char to be sent to consoles */
+ unsigned long log_end; /* most-recently-written-char + 1 */
+ unsigned long logged_chars; /* #chars since last read+clear operation */
+
+ char log_buf[1024];
+};
+
+
/* context sub struct */
struct _vx_cvirt {
uint32_t load_last; /* last time load was cacled */
uint32_t load[3]; /* load averages 1,5,15 */
+ atomic_t total_forks; /* number of forks so far */
+
struct _vx_usage_stat cpustat[NR_CPUS];
+
+ struct _vx_syslog syslog;
};
struct _vx_sock_acc {