diff options
author | Timothy M. Jones <tjones1@inf.ed.ac.uk> | 2009-10-24 10:53:57 -0700 |
---|---|---|
committer | Timothy M. Jones <tjones1@inf.ed.ac.uk> | 2009-10-24 10:53:57 -0700 |
commit | 6c60db8ce99eabdbfcbe0f78a50817494142e39e (patch) | |
tree | 4a7d1524cf82166d1b5314efd64bd469eaa67707 /src/kern/linux/linux.hh | |
parent | 56154cff5eab4a28a6d86a820a4364f99889555f (diff) | |
download | gem5-6c60db8ce99eabdbfcbe0f78a50817494142e39e.tar.xz |
syscall: Implementation of the times system call
Diffstat (limited to 'src/kern/linux/linux.hh')
-rw-r--r-- | src/kern/linux/linux.hh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/kern/linux/linux.hh b/src/kern/linux/linux.hh index 7c16228ea..2df323712 100644 --- a/src/kern/linux/linux.hh +++ b/src/kern/linux/linux.hh @@ -136,6 +136,17 @@ class Linux : public OperatingSystem int64_t tv_usec; //!< microseconds }; + /// Clock ticks per second, for times(). + static const int _SC_CLK_TCK = 100; + + /// For times(). + struct tms { + int64_t tms_utime; //!< user time + int64_t tms_stime; //!< system time + int64_t tms_cutime; //!< user time of children + int64_t tms_cstime; //!< system time of children + }; + // For writev/readv struct tgt_iovec { uint64_t iov_base; // void * |