sys_times  [kernel/sys.c]


Retrieves process times.

Arguments

eax 43
ebx Pointer to a tms structure which will receive the return information (this parameter may be null):
struc tms
{
.tms_utime  rd 1
.tms_stime  rd 1
.tms_cutime rd 1
.tms_cstime rd 1
}

tms members:

tms_utime
Contains the CPU time spent executing instructions of the calling process.
tms_stime
Contains the CPU time spent in the system while executing tasks on behalf of the calling process.
tms_cutime
Contains the sum of the tms_utime and tms_cutime values for all waited-for terminated children.
tms_cstime
Contains the sum of the tms_stime and tms_cstime values for all waited-for terminated children.

All times reported are in clock ticks.

Return values

If the system call succeeds the return value is the number of clock ticks that have elapsed since an arbitrary point in the past. For Linux 2.4 and earlier this point is the moment the system was booted. Since Linux 2.6, this point is (2^32/HZ) - 300 (i.e., about 429 million) seconds before system boot time. The return value may overflow the possible range of type clock_t.
If the system call fails the return value is one of the following errno values:

-EFAULT ebx points to an invalid address.

Remarks

n/a

Compatibility

n/a