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

Issue 22911027: Pass StatsTable shared memory via global descriptors on Posix rather than using named shared memory. (Closed)

Created:
7 years, 4 months ago by rmcilroy
Modified:
7 years, 2 months ago
CC:
chromium-reviews, jar (doing other things), jam, joi+watch-content_chromium.org, darin-cc_chromium.org, asvitkine+watch_chromium.org, erikwright+watch_chromium.org, Ilya Sherman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Pass StatsTable shared memory via global descriptors on Posix rather than using named shared memory. This is required for to enable chrome://stats Android where there is no /dev/shm. This also provides the added advantage of not requiring the --no-sandbox command line flag with the --enable-stats-table on Posix. BUG=None Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=228903

Patch Set 1 #

Total comments: 16

Patch Set 2 : Address Jar's comments. #

Total comments: 6

Patch Set 3 : Address Jar's comments #

Total comments: 4

Patch Set 4 : Jar's comments and fix Windows build #

Patch Set 5 : Really fix Windows build... #

Total comments: 4

Patch Set 6 : Change kStatsTableSharedMemFd definition. #

Patch Set 7 : rename kIPCDescriptorMax #

Patch Set 8 : Rebase #

Patch Set 9 : Fix nacl_fork_delegate_linux #

Patch Set 10 : #

Total comments: 2

Patch Set 11 : Make Macro's into inline functions. #

Patch Set 12 : Remove nacl changes #

Patch Set 13 : Update kNaClSandboxDescriptor. #

Total comments: 4

Patch Set 14 : cleanup kNaClSandboxDescriptor #

Total comments: 1

Patch Set 15 : Add empty line #

Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -87 lines) Patch
M base/metrics/stats_table.h View 1 2 4 chunks +8 lines, -2 lines 0 comments Download
M base/metrics/stats_table.cc View 1 2 3 4 5 6 7 23 chunks +106 lines, -62 lines 0 comments Download
M components/nacl/common/nacl_helper_linux.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +0 lines, -6 lines 0 comments Download
M components/nacl/zygote/nacl_fork_delegate_linux.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +8 lines, -3 lines 0 comments Download
M content/browser/child_process_launcher.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +18 lines, -13 lines 0 comments Download
M content/public/common/content_descriptors.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M ipc/ipc_descriptors.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 45 (0 generated)
rmcilroy
jam@chromium.org: Please review changes in ipc/ and content/ jar@chromium.org: Please review changes in base/metrics If ...
7 years, 4 months ago (2013-08-20 20:39:31 UTC) #1
jar (doing other things)
Do we make much (any?) use of stats tables? ... or has most of that ...
7 years, 4 months ago (2013-08-21 01:09:46 UTC) #2
rmcilroy
On 2013/08/21 01:09:46, jar wrote: > Do we make much (any?) use of stats tables? ...
7 years, 4 months ago (2013-08-21 10:36:55 UTC) #3
rmcilroy
https://codereview.chromium.org/22911027/diff/1/base/metrics/stats_table.cc File base/metrics/stats_table.cc (right): https://codereview.chromium.org/22911027/diff/1/base/metrics/stats_table.cc#newcode141 base/metrics/stats_table.cc:141: Private(SharedMemory* shared_memory) On 2013/08/21 01:09:46, jar wrote: > nit: ...
7 years, 4 months ago (2013-08-21 10:37:16 UTC) #4
jar (doing other things)
https://codereview.chromium.org/22911027/diff/7001/base/metrics/stats_table.cc File base/metrics/stats_table.cc (right): https://codereview.chromium.org/22911027/diff/7001/base/metrics/stats_table.cc#newcode109 base/metrics/stats_table.cc:109: int max_threads, int max_counters); nit: fix indentation. Chromium standard ...
7 years, 4 months ago (2013-08-22 00:29:38 UTC) #5
rmcilroy
Thanks for the review. PTAL. https://codereview.chromium.org/22911027/diff/7001/base/metrics/stats_table.cc File base/metrics/stats_table.cc (right): https://codereview.chromium.org/22911027/diff/7001/base/metrics/stats_table.cc#newcode109 base/metrics/stats_table.cc:109: int max_threads, int max_counters); ...
7 years, 4 months ago (2013-08-22 10:03:55 UTC) #6
rmcilroy
Thanks for the review. PTAL.
7 years, 4 months ago (2013-08-22 10:03:57 UTC) #7
jar (doing other things)
base.* LGTM There is a nit below, and you'll need Jam's review for content. https://codereview.chromium.org/22911027/diff/17001/content/browser/child_process_launcher.cc ...
7 years, 4 months ago (2013-08-23 00:24:03 UTC) #8
rmcilroy
Thanks Jar. Jam, could you have a look at content/ please. https://codereview.chromium.org/22911027/diff/17001/content/browser/child_process_launcher.cc File content/browser/child_process_launcher.cc (right): ...
7 years, 4 months ago (2013-08-23 17:03:30 UTC) #9
jam
https://codereview.chromium.org/22911027/diff/30001/content/browser/child_process_launcher.cc File content/browser/child_process_launcher.cc (right): https://codereview.chromium.org/22911027/diff/30001/content/browser/child_process_launcher.cc#newcode241 content/browser/child_process_launcher.cc:241: base::StatsTable* stats_table = base::StatsTable::current(); we need to have one ...
7 years, 4 months ago (2013-08-25 16:22:24 UTC) #10
jam
https://codereview.chromium.org/22911027/diff/30001/ipc/ipc_descriptors.h File ipc/ipc_descriptors.h (right): https://codereview.chromium.org/22911027/diff/30001/ipc/ipc_descriptors.h#newcode12 ipc/ipc_descriptors.h:12: kStatsTableSharedMemFd = 100, this seems a bit hacky. please ...
7 years, 4 months ago (2013-08-25 16:27:20 UTC) #11
rmcilroy
Thanks for the review, PTAL. https://codereview.chromium.org/22911027/diff/30001/content/browser/child_process_launcher.cc File content/browser/child_process_launcher.cc (right): https://codereview.chromium.org/22911027/diff/30001/content/browser/child_process_launcher.cc#newcode241 content/browser/child_process_launcher.cc:241: base::StatsTable* stats_table = base::StatsTable::current(); ...
7 years, 3 months ago (2013-08-27 14:13:06 UTC) #12
jam
lgtm
7 years, 3 months ago (2013-08-27 16:22:12 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rmcilroy@chromium.org/22911027/40001
7 years, 3 months ago (2013-08-28 09:39:53 UTC) #14
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=163146
7 years, 3 months ago (2013-08-28 12:34:17 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rmcilroy@chromium.org/22911027/40001
7 years, 3 months ago (2013-08-28 12:59:54 UTC) #16
commit-bot: I haz the power
Failed to trigger a try job on linux_chromeos HTTP Error 400: Bad Request
7 years, 3 months ago (2013-08-28 15:34:38 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rmcilroy@chromium.org/22911027/64001
7 years, 3 months ago (2013-08-28 15:39:01 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rmcilroy@chromium.org/22911027/64001
7 years, 3 months ago (2013-08-28 17:01:00 UTC) #19
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=163345
7 years, 3 months ago (2013-08-28 21:37:39 UTC) #20
rmcilroy
Brad: Could you have a look at the changes in components/nacl here please. This change ...
7 years, 3 months ago (2013-08-29 16:43:01 UTC) #21
rmcilroy
Brad (Nelson), could you please have a look at the changes in the nacl code ...
7 years, 3 months ago (2013-09-02 15:58:23 UTC) #22
bradn
Sorry for the slow reply, was out last Friday. I'm getting strange errors when trying ...
7 years, 3 months ago (2013-09-03 16:43:01 UTC) #23
rmcilroy
On 2013/09/03 16:43:01, bradn wrote: > Sorry for the slow reply, was out last Friday. ...
7 years, 3 months ago (2013-09-04 17:20:19 UTC) #24
rmcilroy
On 2013/09/04 17:20:19, rmcilroy wrote: > On 2013/09/03 16:43:01, bradn wrote: > > Sorry for ...
7 years, 3 months ago (2013-09-11 09:29:14 UTC) #25
bradn
+mseaborn for nacl part
7 years, 3 months ago (2013-09-11 18:36:12 UTC) #26
Mark Seaborn
Can you fill out BUG=, please? If there's no issue to reference, at least put ...
7 years, 3 months ago (2013-09-12 00:00:27 UTC) #27
rmcilroy
On 2013/09/12 00:00:27, Mark Seaborn wrote: > Can you fill out BUG=, please? If there's ...
7 years, 3 months ago (2013-09-12 17:04:09 UTC) #28
rmcilroy
7 years, 3 months ago (2013-09-12 17:04:29 UTC) #29
rmcilroy
https://codereview.chromium.org/22911027/diff/51001/components/nacl/common/nacl_helper_linux.h File components/nacl/common/nacl_helper_linux.h (right): https://codereview.chromium.org/22911027/diff/51001/components/nacl/common/nacl_helper_linux.h#newcode46 components/nacl/common/nacl_helper_linux.h:46: #define kNaClDummyFDIndex(fd_array_size) (fd_array_size == 3 ? 1 : 2) ...
7 years, 3 months ago (2013-09-12 17:04:55 UTC) #30
jar (doing other things)
I believe it is also the case that stats tables are NOT enabled by default. ...
7 years, 3 months ago (2013-09-12 17:11:40 UTC) #31
rmcilroy
Ping - Mark? On 2013/09/12 17:11:40, jar wrote: > I believe it is also the ...
7 years, 3 months ago (2013-09-23 08:34:28 UTC) #32
Mark Seaborn
On 23 September 2013 01:34, <rmcilroy@chromium.org> wrote: > Ping - Mark? > > On 2013/09/12 ...
7 years, 3 months ago (2013-09-23 16:31:31 UTC) #33
rmcilroy
> OK. If the stats tables aren't enabled by default, how do they get tested ...
7 years, 3 months ago (2013-09-23 19:26:26 UTC) #34
Mark Seaborn
On 23 September 2013 12:26, <rmcilroy@chromium.org> wrote: > > OK. If the stats tables aren't ...
7 years, 3 months ago (2013-09-23 21:33:29 UTC) #35
rmcilroy_google
> Hmm. That makes me uneasy, because it probably means that browser_tests only ever tests ...
7 years, 3 months ago (2013-09-24 08:22:43 UTC) #36
Mark Seaborn
On 24 September 2013 01:22, Ross McIlroy <rmcilroy@google.com> wrote: > > Hmm. That makes me ...
7 years, 3 months ago (2013-09-24 22:31:01 UTC) #37
Mark Seaborn
On 24 September 2013 15:30, Mark Seaborn <mseaborn@chromium.org> wrote: > On 24 September 2013 01:22, ...
7 years, 2 months ago (2013-10-12 00:02:16 UTC) #38
rmcilroy
> I've committed that change, so you shouldn't need any NaCl-related changes > in this ...
7 years, 2 months ago (2013-10-14 08:26:03 UTC) #39
rmcilroy
On 2013/10/14 08:26:03, rmcilroy wrote: > > I've committed that change, so you shouldn't need ...
7 years, 2 months ago (2013-10-14 10:16:26 UTC) #40
Mark Seaborn
https://codereview.chromium.org/22911027/diff/141001/components/nacl/common/nacl_helper_linux.h File components/nacl/common/nacl_helper_linux.h (right): https://codereview.chromium.org/22911027/diff/141001/components/nacl/common/nacl_helper_linux.h#newcode34 components/nacl/common/nacl_helper_linux.h:34: // kSandboxIPCChannel + base::GlobalDescriptors::kBaseDescriptor Would you mind removing kNaClSandboxDescriptor ...
7 years, 2 months ago (2013-10-14 22:01:49 UTC) #41
rmcilroy
https://codereview.chromium.org/22911027/diff/141001/components/nacl/common/nacl_helper_linux.h File components/nacl/common/nacl_helper_linux.h (right): https://codereview.chromium.org/22911027/diff/141001/components/nacl/common/nacl_helper_linux.h#newcode34 components/nacl/common/nacl_helper_linux.h:34: // kSandboxIPCChannel + base::GlobalDescriptors::kBaseDescriptor On 2013/10/14 22:01:50, Mark Seaborn ...
7 years, 2 months ago (2013-10-15 18:47:49 UTC) #42
Mark Seaborn
LGTM, thanks https://codereview.chromium.org/22911027/diff/152001/components/nacl/common/nacl_helper_linux.h File components/nacl/common/nacl_helper_linux.h (right): https://codereview.chromium.org/22911027/diff/152001/components/nacl/common/nacl_helper_linux.h#newcode29 components/nacl/common/nacl_helper_linux.h:29: #endif // COMPONENTS_NACL_COMMON_NACL_HELPER_LINUX_H_ Nit: keep an empty ...
7 years, 2 months ago (2013-10-15 20:59:45 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rmcilroy@chromium.org/22911027/162001
7 years, 2 months ago (2013-10-16 09:12:02 UTC) #44
commit-bot: I haz the power
7 years, 2 months ago (2013-10-16 11:59:30 UTC) #45
Message was sent while issue was closed.
Change committed as 228903

Powered by Google App Engine
This is Rietveld 408576698