clock_gettime: support clock_id CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID

This commit is contained in:
Tomoki Shirasawa
2016-02-18 17:43:13 +09:00
parent eba2be8a35
commit 307b2b8da5
2 changed files with 76 additions and 10 deletions

View File

@@ -435,6 +435,10 @@ struct process {
// cpu time (summary)
struct timespec stime;
struct timespec utime;
// cpu time (children)
struct timespec stime_children;
struct timespec utime_children;
};
void hold_thread(struct thread *ftn);
@@ -527,6 +531,8 @@ struct thread {
struct timespec stime;
struct timespec utime;
struct timespec btime;
int times_update;
int in_kernel;
};
struct process_vm {