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

Issue 298163008: Non-SFI NaCl: Allow CLOCK_SYSTEM_TRACE on Chrome OS (Closed)

Created:
6 years, 6 months ago by hamaji
Modified:
6 years, 6 months ago
CC:
chromium-reviews, agl, jln+watch_chromium.org
Visibility:
Public.

Description

Non-SFI NaCl: Allow CLOCK_SYSTEM_TRACE on Chrome OS chrome://tracing uses TimeTicks::NowFromSystemTraceTime in base/time/time_posix.cc. TEST=nacl_loader_unittests # on i686 and ARM Chrome OS TEST=trybot BUG=378063 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274784

Patch Set 1 #

Total comments: 3

Patch Set 2 : expose the clock ID #

Patch Set 3 : Mac build fix #

Total comments: 3

Patch Set 4 : Use only OS_LINUX to decide whether we define kClockSystemTrace #

Total comments: 5

Patch Set 5 : comment update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -22 lines) Patch
M base/time/time.h View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M base/time/time_posix.cc View 1 2 3 4 2 chunks +10 lines, -9 lines 0 comments Download
M components/nacl/loader/nonsfi/nonsfi_sandbox.cc View 1 2 chunks +21 lines, -13 lines 0 comments Download
M components/nacl/loader/nonsfi/nonsfi_sandbox_unittest.cc View 1 3 chunks +15 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
hamaji
Another option is to return EPERM instead of SIGSYS for unknown clock IDs. TimeTicks::NowFromSystemTraceTime can ...
6 years, 6 months ago (2014-05-28 07:36:44 UTC) #1
Mark Seaborn
What are the steps to reproduce? Is it: * Run a Non-SFI NaCl process at ...
6 years, 6 months ago (2014-05-28 15:24:02 UTC) #2
hamaji
Hi sleffler, Though I found you are not working for Chromium anymore, we'd like to ...
6 years, 6 months ago (2014-05-28 16:21:47 UTC) #3
mdempsky
Patch seems functionally correct, though I haven't had any luck understanding what CLOCK_SYSTEM_TRACE is supposed ...
6 years, 6 months ago (2014-05-28 21:59:51 UTC) #4
hamaji
I git greped the kernel and found the kernel-side bug: https://code.google.com/p/chromium/issues/detail?id=210573 +olofj as it seems ...
6 years, 6 months ago (2014-05-29 02:18:15 UTC) #5
Olof Johansson
Care to provide some context to this email? -Olof 2014-05-28 19:18 GMT-07:00 <hamaji@chromium.org>: > I ...
6 years, 6 months ago (2014-05-29 03:35:13 UTC) #6
hamaji
On 2014/05/29 03:35:13, Olof Johansson wrote: > Care to provide some context to this email? ...
6 years, 6 months ago (2014-05-29 03:49:52 UTC) #7
Olof Johansson
2014-05-28 20:49 GMT-07:00 <hamaji@chromium.org>: > On 2014/05/29 03:35:13, Olof Johansson wrote: >> >> Care to ...
6 years, 6 months ago (2014-05-29 04:00:34 UTC) #8
hamaji
Thanks! This is the link to the code. My ARM Chrome book says its linux ...
6 years, 6 months ago (2014-05-29 04:06:32 UTC) #9
jln (very slow on Chromium)
If Olof doesn't think this does not create to much attack surface, I think we ...
6 years, 6 months ago (2014-05-29 22:49:00 UTC) #10
hamaji
On 2014/05/29 22:49:00, jln wrote: > If Olof doesn't think this does not create to ...
6 years, 6 months ago (2014-05-30 02:09:22 UTC) #11
hamaji
BTW, this is a P1 issue for us :) In case we decide to go ...
6 years, 6 months ago (2014-05-30 02:35:16 UTC) #12
jln (very slow on Chromium)
Yeah, lgtm, feel free to allow CLOCK_SYSTEM_TRACE. On Thu, May 29, 2014 at 7:35 PM, ...
6 years, 6 months ago (2014-05-30 07:31:26 UTC) #13
Mark Seaborn
https://codereview.chromium.org/298163008/diff/40001/base/time/time.h File base/time/time.h (right): https://codereview.chromium.org/298163008/diff/40001/base/time/time.h#newcode580 base/time/time.h:580: #if defined(OS_LINUX) || defined(OS_CHROMEOS) Shouldn't this be "#if defined(OS_LINUX)", ...
6 years, 6 months ago (2014-05-30 16:38:20 UTC) #14
Olof Johansson
2014-05-29 19:09 GMT-07:00 <hamaji@chromium.org>: > On 2014/05/29 22:49:00, jln wrote: >> >> If Olof doesn't ...
6 years, 6 months ago (2014-05-31 03:15:29 UTC) #15
hamaji
https://codereview.chromium.org/298163008/diff/40001/base/time/time.h File base/time/time.h (right): https://codereview.chromium.org/298163008/diff/40001/base/time/time.h#newcode580 base/time/time.h:580: #if defined(OS_LINUX) || defined(OS_CHROMEOS) On 2014/05/30 16:38:20, Mark Seaborn ...
6 years, 6 months ago (2014-06-02 08:15:03 UTC) #16
hamaji
> > Olof, could you tell us the benefit of CLOCK_SYSTEM_TRACE? From its name, > ...
6 years, 6 months ago (2014-06-02 08:15:49 UTC) #17
hamaji
Ping?
6 years, 6 months ago (2014-06-03 05:40:15 UTC) #18
jln (very slow on Chromium)
lgtm https://codereview.chromium.org/298163008/diff/60001/base/time/time_posix.cc File base/time/time_posix.cc (right): https://codereview.chromium.org/298163008/diff/60001/base/time/time_posix.cc#newcode332 base/time/time_posix.cc:332: if (clock_gettime(kClockSystemTrace, &ts) != 0) { If you ...
6 years, 6 months ago (2014-06-03 06:15:44 UTC) #19
hamaji
https://codereview.chromium.org/298163008/diff/60001/base/time/time_posix.cc File base/time/time_posix.cc (right): https://codereview.chromium.org/298163008/diff/60001/base/time/time_posix.cc#newcode332 base/time/time_posix.cc:332: if (clock_gettime(kClockSystemTrace, &ts) != 0) { On 2014/06/03 06:15:44, ...
6 years, 6 months ago (2014-06-03 06:26:48 UTC) #20
Mark Seaborn
LGTM, with the comment fix below, somewhat reluctantly because there's no end-to-end automated test to ...
6 years, 6 months ago (2014-06-03 17:23:27 UTC) #21
hamaji
https://codereview.chromium.org/298163008/diff/60001/base/time/time_posix.cc File base/time/time_posix.cc (right): https://codereview.chromium.org/298163008/diff/60001/base/time/time_posix.cc#newcode324 base/time/time_posix.cc:324: // ID. build_nexe.py sets OS_CHROMEOS without any other OS_* ...
6 years, 6 months ago (2014-06-03 18:44:08 UTC) #22
jln (very slow on Chromium)
https://codereview.chromium.org/298163008/diff/60001/base/time/time_posix.cc File base/time/time_posix.cc (right): https://codereview.chromium.org/298163008/diff/60001/base/time/time_posix.cc#newcode332 base/time/time_posix.cc:332: if (clock_gettime(kClockSystemTrace, &ts) != 0) { On 2014/06/03 06:26:49, ...
6 years, 6 months ago (2014-06-03 19:10:28 UTC) #23
awong
base LGTM
6 years, 6 months ago (2014-06-04 01:39:10 UTC) #24
hamaji
The CQ bit was checked by hamaji@chromium.org
6 years, 6 months ago (2014-06-04 01:40:11 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hamaji@chromium.org/298163008/80001
6 years, 6 months ago (2014-06-04 01:40:32 UTC) #26
commit-bot: I haz the power
6 years, 6 months ago (2014-06-04 12:16:32 UTC) #27
Message was sent while issue was closed.
Change committed as 274784

Powered by Google App Engine
This is Rietveld 408576698