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

Issue 2060333002: [Cronet] Enforce ARMv7 Cronet doesn't inadvertently use ARM Neon instructions (Closed)

Created:
4 years, 6 months ago by pauljensen
Modified:
4 years, 4 months ago
Reviewers:
Dirk Pranke, jbudorick, mef
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Cronet] Enforce ARMv7 Cronet doesn't inadvertently use ARM Neon instructions Some older devices may not support ARM Neon, so to ensure we run on these devices, check that Cronet doesn't inadvertently use ARM Neon instructions. Also, change Cronet bots to conform to this. BUG=594316 Committed: https://crrev.com/420d1a10bcc3dde583b590fefa81884784234bc9 Cr-Commit-Position: refs/heads/master@{#413138}

Patch Set 1 #

Patch Set 2 : #

Total comments: 8

Patch Set 3 : rebase #

Patch Set 4 : redo objdump path #

Total comments: 2

Patch Set 5 : rebase #

Patch Set 6 : address comments #

Total comments: 2

Patch Set 7 : enforce -> check #

Patch Set 8 : sync #

Patch Set 9 : disable neon on bots #

Total comments: 6

Patch Set 10 : address jbudorick's comments #

Patch Set 11 : don't generate target if preconditions not met #

Patch Set 12 : sync #

Total comments: 2

Patch Set 13 : move enforcement into if #

Patch Set 14 : get working #

Total comments: 11

Patch Set 15 : sync #

Patch Set 16 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -18 lines) Patch
M components/cronet/android/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +40 lines, -11 lines 0 comments Download
A components/cronet/tools/check_no_neon.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +24 lines, -0 lines 0 comments Download
M components/cronet/tools/cr_cronet.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -2 lines 0 comments Download
M tools/mb/mb_config.pyl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +11 lines, -5 lines 0 comments Download

Messages

Total messages: 56 (24 generated)
pauljensen
Misha, WDYT? Frankly, it seems a little ugly to me.
4 years, 6 months ago (2016-06-13 15:37:50 UTC) #2
mef
looks reasonable. https://codereview.chromium.org/2060333002/diff/20001/components/cronet/android/BUILD.gn File components/cronet/android/BUILD.gn (right): https://codereview.chromium.org/2060333002/diff/20001/components/cronet/android/BUILD.gn#newcode830 components/cronet/android/BUILD.gn:830: "$android_ndk_root/toolchains/arm-linux-androideabi-*/prebuilt/$host_os-x86_64/", this seems quite fragile. I wonder ...
4 years, 6 months ago (2016-06-24 20:18:09 UTC) #3
pauljensen
https://codereview.chromium.org/2060333002/diff/20001/components/cronet/android/BUILD.gn File components/cronet/android/BUILD.gn (right): https://codereview.chromium.org/2060333002/diff/20001/components/cronet/android/BUILD.gn#newcode830 components/cronet/android/BUILD.gn:830: "$android_ndk_root/toolchains/arm-linux-androideabi-*/prebuilt/$host_os-x86_64/", On 2016/06/24 20:18:08, mef wrote: > this seems ...
4 years, 5 months ago (2016-06-27 12:58:42 UTC) #4
mef
I think it is not that ugly any more. https://codereview.chromium.org/2060333002/diff/20001/components/cronet/android/BUILD.gn File components/cronet/android/BUILD.gn (right): https://codereview.chromium.org/2060333002/diff/20001/components/cronet/android/BUILD.gn#newcode899 components/cronet/android/BUILD.gn:899: ...
4 years, 5 months ago (2016-06-28 16:46:25 UTC) #5
pauljensen
https://codereview.chromium.org/2060333002/diff/20001/components/cronet/android/BUILD.gn File components/cronet/android/BUILD.gn (right): https://codereview.chromium.org/2060333002/diff/20001/components/cronet/android/BUILD.gn#newcode899 components/cronet/android/BUILD.gn:899: if (current_cpu == "armv7" || current_cpu == "arm") { ...
4 years, 5 months ago (2016-06-29 12:47:43 UTC) #6
mef
lgtm https://codereview.chromium.org/2060333002/diff/100001/components/cronet/tools/check_no_neon.py File components/cronet/tools/check_no_neon.py (right): https://codereview.chromium.org/2060333002/diff/100001/components/cronet/tools/check_no_neon.py#newcode7 components/cronet/tools/check_no_neon.py:7: enforce_no_neon.py - Enforce modules do not contain ARM ...
4 years, 5 months ago (2016-06-29 15:48:06 UTC) #7
pauljensen
https://codereview.chromium.org/2060333002/diff/100001/components/cronet/tools/check_no_neon.py File components/cronet/tools/check_no_neon.py (right): https://codereview.chromium.org/2060333002/diff/100001/components/cronet/tools/check_no_neon.py#newcode7 components/cronet/tools/check_no_neon.py:7: enforce_no_neon.py - Enforce modules do not contain ARM Neon ...
4 years, 5 months ago (2016-07-19 10:26:44 UTC) #8
mef
On 2016/07/19 10:26:44, pauljensen wrote: > https://codereview.chromium.org/2060333002/diff/100001/components/cronet/tools/check_no_neon.py > File components/cronet/tools/check_no_neon.py (right): > > https://codereview.chromium.org/2060333002/diff/100001/components/cronet/tools/check_no_neon.py#newcode7 > ...
4 years, 5 months ago (2016-07-19 14:42:07 UTC) #9
pauljensen
On 2016/07/19 14:42:07, mef wrote: > On 2016/07/19 10:26:44, pauljensen wrote: > > > https://codereview.chromium.org/2060333002/diff/100001/components/cronet/tools/check_no_neon.py ...
4 years, 5 months ago (2016-07-19 14:42:47 UTC) #10
pauljensen
John, PTAL @ tools/mb/mb_config.pyl I know you're not an OWNER but I was trying to ...
4 years, 5 months ago (2016-07-19 17:10:22 UTC) #12
jbudorick
https://codereview.chromium.org/2060333002/diff/160001/components/cronet/android/BUILD.gn File components/cronet/android/BUILD.gn (right): https://codereview.chromium.org/2060333002/diff/160001/components/cronet/android/BUILD.gn#newcode921 components/cronet/android/BUILD.gn:921: deps += [ ":enforce_no_neon" ] This is an interesting ...
4 years, 5 months ago (2016-07-19 18:49:16 UTC) #13
pauljensen
https://codereview.chromium.org/2060333002/diff/160001/components/cronet/android/BUILD.gn File components/cronet/android/BUILD.gn (right): https://codereview.chromium.org/2060333002/diff/160001/components/cronet/android/BUILD.gn#newcode921 components/cronet/android/BUILD.gn:921: deps += [ ":enforce_no_neon" ] On 2016/07/19 18:49:16, jbudorick ...
4 years, 5 months ago (2016-07-20 15:04:38 UTC) #15
jbudorick
lgtm
4 years, 5 months ago (2016-07-20 15:06:55 UTC) #16
pauljensen
Dirk, PTAL @ tools/mb/mb_config.pyl
4 years, 5 months ago (2016-07-20 15:11:41 UTC) #18
Dirk Pranke
Obviously I don't have the full context on this, but this seems kinda paranoid. Why ...
4 years, 5 months ago (2016-07-20 16:09:47 UTC) #19
pauljensen
On 2016/07/20 16:09:47, Dirk Pranke wrote: > Obviously I don't have the full context on ...
4 years, 5 months ago (2016-07-20 17:04:19 UTC) #20
Dirk Pranke
ok, sounds good then. I thought for a while if there was some better way ...
4 years, 5 months ago (2016-07-20 21:23:53 UTC) #21
pauljensen
Cronet is referenced from //src/BUILD.gn, and various bots (at least linux_android_rel_ng and cast_shell_android) generate ninja ...
4 years, 5 months ago (2016-07-21 18:58:34 UTC) #26
Dirk Pranke
On 2016/07/21 18:58:34, pauljensen wrote: > Cronet is referenced from //src/BUILD.gn, and various bots (at ...
4 years, 5 months ago (2016-07-21 21:01:38 UTC) #27
pauljensen
On 2016/07/21 21:01:38, Dirk Pranke wrote: > On 2016/07/21 18:58:34, pauljensen wrote: > > Cronet ...
4 years, 5 months ago (2016-07-22 11:38:43 UTC) #28
jbudorick
On 2016/07/22 11:38:43, pauljensen wrote: > On 2016/07/21 21:01:38, Dirk Pranke wrote: > > On ...
4 years, 5 months ago (2016-07-22 14:30:36 UTC) #29
pauljensen
On 2016/07/22 14:30:36, jbudorick wrote: > On 2016/07/22 11:38:43, pauljensen wrote: > > On 2016/07/21 ...
4 years, 5 months ago (2016-07-22 14:35:52 UTC) #30
pauljensen
On 2016/07/22 14:35:52, pauljensen wrote: > On 2016/07/22 14:30:36, jbudorick wrote: > > On 2016/07/22 ...
4 years, 4 months ago (2016-07-26 19:02:28 UTC) #35
Dirk Pranke
https://codereview.chromium.org/2060333002/diff/220001/components/cronet/android/BUILD.gn File components/cronet/android/BUILD.gn (right): https://codereview.chromium.org/2060333002/diff/220001/components/cronet/android/BUILD.gn#newcode935 components/cronet/android/BUILD.gn:935: group("cronet_package") { It seems like you generally want cronet_package ...
4 years, 4 months ago (2016-07-27 00:01:49 UTC) #36
pauljensen
Seems to work now, though building cronet_package in an unsupported way outputs nothing. PTAL. https://codereview.chromium.org/2060333002/diff/220001/components/cronet/android/BUILD.gn ...
4 years, 4 months ago (2016-07-27 12:11:46 UTC) #41
Dirk Pranke
https://codereview.chromium.org/2060333002/diff/260001/components/cronet/android/BUILD.gn File components/cronet/android/BUILD.gn (right): https://codereview.chromium.org/2060333002/diff/260001/components/cronet/android/BUILD.gn#newcode915 components/cronet/android/BUILD.gn:915: assert(!arm_use_neon) Given the if conditions, this assert is no ...
4 years, 4 months ago (2016-07-27 16:43:33 UTC) #42
pauljensen
https://codereview.chromium.org/2060333002/diff/260001/components/cronet/android/BUILD.gn File components/cronet/android/BUILD.gn (right): https://codereview.chromium.org/2060333002/diff/260001/components/cronet/android/BUILD.gn#newcode939 components/cronet/android/BUILD.gn:939: deps = [ On 2016/07/27 16:43:33, Dirk Pranke wrote: ...
4 years, 4 months ago (2016-08-18 16:12:33 UTC) #43
Dirk Pranke
lgtm https://codereview.chromium.org/2060333002/diff/260001/components/cronet/android/BUILD.gn File components/cronet/android/BUILD.gn (right): https://codereview.chromium.org/2060333002/diff/260001/components/cronet/android/BUILD.gn#newcode939 components/cronet/android/BUILD.gn:939: deps = [ On 2016/08/18 16:12:33, pauljensen wrote: ...
4 years, 4 months ago (2016-08-18 17:10:38 UTC) #44
pauljensen
https://codereview.chromium.org/2060333002/diff/260001/components/cronet/android/BUILD.gn File components/cronet/android/BUILD.gn (right): https://codereview.chromium.org/2060333002/diff/260001/components/cronet/android/BUILD.gn#newcode915 components/cronet/android/BUILD.gn:915: assert(!arm_use_neon) On 2016/07/27 16:43:33, Dirk Pranke wrote: > Given ...
4 years, 4 months ago (2016-08-19 11:52:05 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2060333002/300001
4 years, 4 months ago (2016-08-19 14:29:43 UTC) #52
commit-bot: I haz the power
Committed patchset #16 (id:300001)
4 years, 4 months ago (2016-08-19 14:33:33 UTC) #54
commit-bot: I haz the power
4 years, 4 months ago (2016-08-19 14:35:37 UTC) #56
Message was sent while issue was closed.
Patchset 16 (id:??) landed as
https://crrev.com/420d1a10bcc3dde583b590fefa81884784234bc9
Cr-Commit-Position: refs/heads/master@{#413138}

Powered by Google App Engine
This is Rietveld 408576698