Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Issue 9389024: plumb glibc clock_get interfaces to irt (Closed)

Created:
8 years, 10 months ago by bsy
Modified:
8 years, 10 months ago
Reviewers:
Roland McGrath
CC:
native-client-reviews_googlegroups.com, Mark Seaborn
Base URL:
http://git.chromium.org/native_client/nacl-glibc.git@master
Visibility:
Public.

Description

plumb glibc clock_get interfaces to irt cargo-culted changes to add sysdeps/nacl/ files to librt's clock_gettime/clock_getres implementation. seems to work. R=mcgrathr@google.com BUG= http://code.google.com/p/nativeclient/issues/detail?id=2477 TEST= in separate CL that cannot be submitted w/o TC DEPS roll Committed: https://git.chromium.org/gitweb?p=native_client/nacl-glibc.git;a=commit;h=d5d66ea

Patch Set 1 #

Total comments: 8

Patch Set 2 : enable fallbacks #

Total comments: 12

Patch Set 3 : GNU style; pass through for clock_nanosleep #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -0 lines) Patch
M elf/Versions View 1 chunk +2 lines, -0 lines 0 comments Download
A sysdeps/nacl/clock_getcpuclockid.c View 1 chunk +1 line, -0 lines 0 comments Download
A sysdeps/nacl/clock_getres.c View 1 2 1 chunk +23 lines, -0 lines 0 comments Download
A sysdeps/nacl/clock_gettime.c View 1 2 1 chunk +23 lines, -0 lines 0 comments Download
A sysdeps/nacl/clock_nanosleep.c View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A sysdeps/nacl/clock_settime.c View 1 chunk +1 line, -0 lines 0 comments Download
M sysdeps/nacl/irt.h View 1 chunk +6 lines, -0 lines 0 comments Download
M sysdeps/nacl/irt_syscalls.h View 1 chunk +3 lines, -0 lines 0 comments Download
M sysdeps/nacl/irt_syscalls.c View 5 chunks +28 lines, -0 lines 0 comments Download
M sysdeps/nacl/nacl_syscalls.h View 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
bsy
8 years, 10 months ago (2012-02-13 23:59:33 UTC) #1
Roland McGrath
This is probably fine as is, so provisional LGTM. Whitespace trivia below. One more substantive ...
8 years, 10 months ago (2012-02-14 00:15:44 UTC) #2
bsy
your suspicions are on the nose. the current glibc TC does allow CLOCK_THREAD_CPUTIME_ID / CLOCK_PROCESS_CPUTIME_ID ...
8 years, 10 months ago (2012-02-15 00:01:13 UTC) #3
bsy
PTAL https://chromiumcodereview.appspot.com/9389024/diff/1/sysdeps/nacl/clock_getres.c File sysdeps/nacl/clock_getres.c (right): https://chromiumcodereview.appspot.com/9389024/diff/1/sysdeps/nacl/clock_getres.c#newcode7 sysdeps/nacl/clock_getres.c:7: On 2012/02/14 00:15:45, Roland McGrath wrote: > excess ...
8 years, 10 months ago (2012-02-15 18:35:59 UTC) #4
Roland McGrath
LGTM with changes below and happy testing. http://codereview.chromium.org/9389024/diff/5001/sysdeps/nacl/clock_getres.c File sysdeps/nacl/clock_getres.c (right): http://codereview.chromium.org/9389024/diff/5001/sysdeps/nacl/clock_getres.c#newcode10 sysdeps/nacl/clock_getres.c:10: int result ...
8 years, 10 months ago (2012-02-15 18:45:25 UTC) #5
bsy
8 years, 10 months ago (2012-02-15 19:33:29 UTC) #6
done.  thx.

will rebuild toolchain & test before committing.

https://chromiumcodereview.appspot.com/9389024/diff/5001/sysdeps/nacl/clock_g...
File sysdeps/nacl/clock_getres.c (right):

https://chromiumcodereview.appspot.com/9389024/diff/5001/sysdeps/nacl/clock_g...
sysdeps/nacl/clock_getres.c:10: int result = __nacl_irt_clock_getres (clock_id,
res); \
On 2012/02/15 18:45:26, Roland McGrath wrote:
> GNU style says this should be indented only two spaces from the brace.

Done.  (well, i indented the brace further.)

https://chromiumcodereview.appspot.com/9389024/diff/5001/sysdeps/nacl/clock_g...
sysdeps/nacl/clock_getres.c:12: {                                               
     \
On 2012/02/15 18:45:26, Roland McGrath wrote:
> GNU style says this whole block is indented two spaces from the if (and
likewise
> for the else).

Done.

https://chromiumcodereview.appspot.com/9389024/diff/5001/sysdeps/nacl/clock_g...
sysdeps/nacl/clock_getres.c:17: {                                               
     \
On 2012/02/15 18:45:26, Roland McGrath wrote:
> GNU style avoids superfluous braces for single-line cases.

Done.

https://chromiumcodereview.appspot.com/9389024/diff/5001/sysdeps/nacl/clock_g...
File sysdeps/nacl/clock_gettime.c (right):

https://chromiumcodereview.appspot.com/9389024/diff/5001/sysdeps/nacl/clock_g...
sysdeps/nacl/clock_gettime.c:12: {                                              
      \
On 2012/02/15 18:45:26, Roland McGrath wrote:
> Indent block.

Done.

https://chromiumcodereview.appspot.com/9389024/diff/5001/sysdeps/nacl/clock_g...
sysdeps/nacl/clock_gettime.c:17: {                                              
      \
On 2012/02/15 18:45:26, Roland McGrath wrote:
> Drop braces.

Done.

https://chromiumcodereview.appspot.com/9389024/diff/5001/sysdeps/nacl/clock_n...
File sysdeps/nacl/clock_nanosleep.c (right):

https://chromiumcodereview.appspot.com/9389024/diff/5001/sysdeps/nacl/clock_n...
sysdeps/nacl/clock_nanosleep.c:1: #include <rt/clock_nanosleep.c>
On 2012/02/15 18:45:26, Roland McGrath wrote:
> Use sysdeps/unix/clock_nanosleep.c instead.
> It supports the CLOCK_REALTIME case, which is the one case we can support (by
> calling nanosleep).

Done.

Powered by Google App Engine
This is Rietveld 408576698