comparison lxcstats.h @ 3:2cb8a6cbe468

cpuacct: convert per cpu usage from nanoseconds to jiffies
author Louis Opter <louis@dotcloud.com>
date Fri, 31 Dec 2010 20:04:25 +0100
parents 6ce4443e7545
children 8339ab15527d
comparison
equal deleted inserted replaced
2:ba9d8601d5f9 3:2cb8a6cbe468
15 char *name; /*< Name of the container */ 15 char *name; /*< Name of the container */
16 char *cgroup_dir;/*< cgroup directory of the container */ 16 char *cgroup_dir;/*< cgroup directory of the container */
17 struct { 17 struct {
18 uint32_t user; /*< CPU time spent in userland */ 18 uint32_t user; /*< CPU time spent in userland */
19 uint32_t system; /*< CPU time spent in kernelland */ 19 uint32_t system; /*< CPU time spent in kernelland */
20 uint64_t *percpu; /*< CPU time per CPU (zero-terminated array or NULL) */ 20 uint32_t *percpu; /*< CPU time per CPU (zero-terminated array or NULL) */
21 } cpuacct; 21 } cpuacct; /*< CPU accounting in USER_HZ */
22 }; 22 };
23 23
24 /** 24 /**
25 * This structure contains globals statistics on LXC. 25 * This structure contains globals statistics on LXC.
26 * 26 *