git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vserver 1.9.5.x5
[linux-2.6.git]
/
include
/
linux
/
kernel_stat.h
diff --git
a/include/linux/kernel_stat.h
b/include/linux/kernel_stat.h
index
4594ccc
..
dba2774
100644
(file)
--- a/
include/linux/kernel_stat.h
+++ b/
include/linux/kernel_stat.h
@@
-6,6
+6,7
@@
#include <linux/smp.h>
#include <linux/threads.h>
#include <linux/percpu.h>
#include <linux/smp.h>
#include <linux/threads.h>
#include <linux/percpu.h>
+#include <asm/cputime.h>
/*
* 'kernel_stat.h' contains the definitions needed for doing
/*
* 'kernel_stat.h' contains the definitions needed for doing
@@
-14,13
+15,14
@@
*/
struct cpu_usage_stat {
*/
struct cpu_usage_stat {
- u64 user;
- u64 nice;
- u64 system;
- u64 softirq;
- u64 irq;
- u64 idle;
- u64 iowait;
+ cputime64_t user;
+ cputime64_t nice;
+ cputime64_t system;
+ cputime64_t softirq;
+ cputime64_t irq;
+ cputime64_t idle;
+ cputime64_t iowait;
+ cputime64_t steal;
};
struct kernel_stat {
};
struct kernel_stat {
@@
-50,4
+52,8
@@
static inline int kstat_irqs(int irq)
return sum;
}
return sum;
}
+extern void account_user_time(struct task_struct *, cputime_t);
+extern void account_system_time(struct task_struct *, int, cputime_t);
+extern void account_steal_time(struct task_struct *, cputime_t);
+
#endif /* _LINUX_KERNEL_STAT_H */
#endif /* _LINUX_KERNEL_STAT_H */