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

Issue 1335783005: [NaCl SDK] nacl_io: Add support for basic socketpairs. (Closed)

Created:
5 years, 3 months ago by avallee
Modified:
5 years, 2 months ago
Reviewers:
bradnelson, binji, Sam Clegg
CC:
binji+watch_chromium.org, chromium-reviews, Sam Clegg
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[NaCl SDK] nacl_io: Add support for basic socketpairs. This is a very basic implementation of a unix socketpair. The socket nodes have type S_IFSOCK. The event emitter are set up in a master/slave configuration, the master owns the fifos and slave handles. The slave has a strong reference to its master (since it depends on it, cannot survive alone). Each emitter in the pair has their own status, but share the pair of fifos and use a single lock in the master to synchronize their access. Shutdown should be rather simple to bolt on to this implementation. CQ_EXTRA_TRYBOTS=tryserver.chromium.linux:linux_nacl_sdk;tryserver.chromium.mac:mac_nacl_sdk BUG=532095 Committed: https://crrev.com/e40c14e14250a5b3ea235ae0ec846b84d2be73ae Cr-Commit-Position: refs/heads/master@{#350849}

Patch Set 1 #

Total comments: 24

Patch Set 2 : #

Patch Set 3 : Renamed socket node and emitter, added tests. #

Patch Set 4 : Class renamed/cl-format applied. #

Total comments: 12

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+482 lines, -25 lines) Patch
M native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc View 1 2 3 4 2 chunks +61 lines, -8 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/library.dsc View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/socket/socket_node.cc View 5 chunks +10 lines, -9 lines 0 comments Download
A native_client_sdk/src/libraries/nacl_io/socket/unix_event_emitter.h View 1 3 4 1 chunk +50 lines, -0 lines 0 comments Download
A native_client_sdk/src/libraries/nacl_io/socket/unix_event_emitter.cc View 1 3 4 1 chunk +102 lines, -0 lines 0 comments Download
A native_client_sdk/src/libraries/nacl_io/socket/unix_node.h View 1 2 3 4 1 chunk +60 lines, -0 lines 0 comments Download
A native_client_sdk/src/libraries/nacl_io/socket/unix_node.cc View 1 2 3 4 1 chunk +94 lines, -0 lines 0 comments Download
M native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M native_client_sdk/src/tests/nacl_io_test/mock_node.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M native_client_sdk/src/tests/nacl_io_test/socket_test.cc View 1 2 3 4 1 chunk +98 lines, -8 lines 0 comments Download

Messages

Total messages: 39 (13 generated)
avallee
PTAL.
5 years, 3 months ago (2015-09-15 20:37:40 UTC) #2
binji
Looks great so far, thanks for doing this! I'd like to see a quick test ...
5 years, 3 months ago (2015-09-17 01:03:58 UTC) #3
Sam Clegg
Thanks for working on this! https://codereview.chromium.org/1335783005/diff/1/native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc File native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc (right): https://codereview.chromium.org/1335783005/diff/1/native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc#newcode1879 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc:1879: return -1; Can you ...
5 years, 3 months ago (2015-09-17 09:40:39 UTC) #4
avallee
https://codereview.chromium.org/1335783005/diff/1/native_client_sdk/src/libraries/nacl_io/socket/unix_event_emitter.cc File native_client_sdk/src/libraries/nacl_io/socket/unix_event_emitter.cc (right): https://codereview.chromium.org/1335783005/diff/1/native_client_sdk/src/libraries/nacl_io/socket/unix_event_emitter.cc#newcode81 native_client_sdk/src/libraries/nacl_io/socket/unix_event_emitter.cc:81: if (peer) { On 2015/09/17 01:03:57, binji wrote: > ...
5 years, 3 months ago (2015-09-17 16:18:01 UTC) #5
avallee
https://codereview.chromium.org/1335783005/diff/1/native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc File native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc (right): https://codereview.chromium.org/1335783005/diff/1/native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc#newcode1879 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc:1879: return -1; On 2015/09/17 09:40:39, Sam Clegg wrote: > ...
5 years, 3 months ago (2015-09-17 19:00:31 UTC) #6
avallee
PTAL.
5 years, 3 months ago (2015-09-18 19:46:25 UTC) #7
binji
lgtm, w/ class name change. Sam, do you have any other concerns? https://codereview.chromium.org/1335783005/diff/1/native_client_sdk/src/libraries/nacl_io/socket/unix_socketpair_node.h File native_client_sdk/src/libraries/nacl_io/socket/unix_socketpair_node.h ...
5 years, 3 months ago (2015-09-18 23:30:13 UTC) #8
avallee
sbc: mind a quick peek again?
5 years, 3 months ago (2015-09-21 16:49:50 UTC) #9
Sam Clegg
Great thanks! lgtm with a few nits. Can you add the following line to the ...
5 years, 3 months ago (2015-09-22 17:53:44 UTC) #10
avallee
PTAL https://codereview.chromium.org/1335783005/diff/60001/native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc File native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc (right): https://codereview.chromium.org/1335783005/diff/60001/native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc#newcode1823 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc:1823: errno = EPROTONOSUPPORT; On 2015/09/22 17:53:44, Sam Clegg ...
5 years, 3 months ago (2015-09-22 20:25:06 UTC) #11
Sam Clegg
lgtm thanks. Can you update the CL description to include the CQ_EXTRA_TRYBOTS?
5 years, 3 months ago (2015-09-22 20:58:30 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1335783005/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1335783005/80001
5 years, 3 months ago (2015-09-22 21:06:55 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: win_nacl_sdk on tryserver.chromium.win (JOB_FAILED, no build URL)
5 years, 3 months ago (2015-09-22 21:14:46 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1335783005/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1335783005/80001
5 years, 2 months ago (2015-09-23 19:35:47 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: win_nacl_sdk on tryserver.chromium.win (JOB_FAILED, no build URL)
5 years, 2 months ago (2015-09-23 19:42:01 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1335783005/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1335783005/80001
5 years, 2 months ago (2015-09-23 19:57:52 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: win_nacl_sdk on tryserver.chromium.win (JOB_FAILED, no build URL)
5 years, 2 months ago (2015-09-23 20:07:19 UTC) #25
avallee
Removed the windows win_nacl_sdk try request from CQ as it seems broken in CQ, but ...
5 years, 2 months ago (2015-09-24 00:44:38 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1335783005/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1335783005/80001
5 years, 2 months ago (2015-09-24 00:46:09 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: linux_nacl_sdk on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_nacl_sdk/builds/657)
5 years, 2 months ago (2015-09-24 02:41:19 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1335783005/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1335783005/80001
5 years, 2 months ago (2015-09-24 19:22:51 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: linux_nacl_sdk on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_nacl_sdk/builds/662)
5 years, 2 months ago (2015-09-24 20:47:28 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1335783005/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1335783005/80001
5 years, 2 months ago (2015-09-25 14:38:33 UTC) #36
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 2 months ago (2015-09-25 16:54:30 UTC) #37
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/e40c14e14250a5b3ea235ae0ec846b84d2be73ae Cr-Commit-Position: refs/heads/master@{#350849}
5 years, 2 months ago (2015-09-25 16:55:16 UTC) #38
cmumford
5 years, 2 months ago (2015-09-25 18:12:42 UTC) #39
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:80001) has been created in
https://codereview.chromium.org/1373563003/ by cmumford@chromium.org.

The reason for reverting is: undefined reference to
'nacl_io::UnixNode::UnixNode(nacl_io::Filesystem*, nacl_io::UnixNode const&)'.

Powered by Google App Engine
This is Rietveld 408576698