[RTEMS Project] #3928: Implement clock_getcpuclockid()
RTEMS trac
trac at rtems.org
Fri Apr 3 20:50:24 UTC 2020
#3928: Implement clock_getcpuclockid()
----------------------------+------------------------------
Reporter: Joel Sherrill | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Indefinite
Component: posix | Version:
Severity: normal | Keywords: POSIX-Compliance
Blocked By: | Blocking:
----------------------------+------------------------------
The clock_getcpuclockid() method currently returns ENOSYS. It should be
implemented. Since there is a single process, the execution time
statistics should be the same as the system uptime. When this execution is
set via clock_settime(), the system uptime should not be changed but a
delta calculated. Thus the process execution time is a +/- delta from
system uptime with an initial delta of zero.
https://pubs.opengroup.org/onlinepubs/9699919799/functions/clock_getcpuclockid.html
There is a single constant value for this clock ID which is already
defined.
Beyond adding the one method, the methods clock_gettime and clock_settime
must also be modified to support this clock type. There may be other cases
where per process cpu clock id is used. A search for this capability in
the POSIX standard will have to be done to ensure all use cases are
covered.
This also will require writing test code and updating the POSIX Compliance
Guide via the tracking spreadsheet.
--
Ticket URL: <http://devel.rtems.org/ticket/3928>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list