support getrusage (work in progress)

This commit is contained in:
Tomoki Shirasawa
2016-03-07 17:06:44 +09:00
parent 7fac03d4de
commit dbc778e4fa
6 changed files with 112 additions and 3 deletions

View File

@ -439,6 +439,9 @@ struct process {
// cpu time (children)
struct timespec stime_children;
struct timespec utime_children;
long maxrss;
long maxrss_children;
};
void hold_thread(struct thread *ftn);
@ -560,6 +563,8 @@ struct process_vm {
ihk_atomic_t refcount;
int exiting;
long currss;
};