Граф коммитов

18 Коммитов

Автор SHA1 Сообщение Дата
Nico Weber fd025409e2 Reformat all gn files in /base, /build, /chrome/, /ui
`gn format` recently changed its formatting behavior
for deps, source, and a few other elements when they
are assigned (with =) single-element lists to be consistent
with the formatting of updates (with +=) with single-element.

Now that we've rolled in a GN binary with the change,
reformat all files so that people don't get presubmit
warnings due to this.

This CL was uploaded by me.

Bug: 1041419
Change-Id: I38ec77c3b62ca279286533ab1503f347b79a567e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2005628
Commit-Queue: Nico Weber <thakis@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Auto-Submit: Nico Weber <thakis@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#732629}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 74eeac7906a84a2bc378d73913b85d0fafb303db
2020-01-17 00:16:50 +00:00
Christopher Grant da39fc511a Android: Remove build_apk_secondary_abi GN arg
This flag has been on the way out for a while.  It's been removed from
bot build configurations, and hence has reached the end of its useful
life.

TBR'ing Dirk for the trivial removal in compiler.gni.

TBR=dpranke@chromium.org

Bug: 1029105
Change-Id: Ib841c4245b74d8f40661b2fe278da5a36efe72e9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1952394
Commit-Queue: Christopher Grant <cjgrant@chromium.org>
Reviewed-by: Peter Wen <wnwen@chromium.org>
Reviewed-by: Richard Coles <torne@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#722062}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: da03a8b96edef5fe69eca42b7c58e4b672f20248
2019-12-05 16:23:35 +00:00
ssid bb9fb6a7fc Reland "Make sure unwind tables are added for 32 bit libraries in arm64 monochrome"
This reverts commit 9866f6ae1da249231ad7fdc77b165bdc419495ce.

Reason for revert: ApkMerger script is fixed in cl:
https://chromium-review.googlesource.com/c/chromium/src/+/1496316

Original change's description:
> Revert "Make sure unwind tables are added for 32 bit libraries in arm64 monochrome"
>
> This reverts commit 200a953f909f0fc2df0b58360801619cb3257461.
>
> Reason for revert: Breaking official build due to APK merge.
>
> Original change's description:
> > Make sure unwind tables are added for 32 bit libraries in arm64 monochrome
> >
> > The assets were not added since we checked "can_unwind_with_cfi_table"
> > value, which depends on "build_secondary_abi" build arg. So, explicitly
> > add the asset for 64-bit monochrome apk, which contains 32 bit library.
> >
> > BUG=924842
> >
> > Change-Id: I6488d5c4e5a80787735c5b09134b013a87b5c553
> > Reviewed-on: https://chromium-review.googlesource.com/c/1432836
> > Commit-Queue: ssid <ssid@chromium.org>
> > Reviewed-by: Andrew Grieve <agrieve@chromium.org>
> > Cr-Commit-Position: refs/heads/master@{#625789}
>
> TBR=ssid@chromium.org,agrieve@chromium.org
>
> # Not skipping CQ checks because original CL landed > 1 day ago.
>
> Bug: 924842
> Change-Id: Ic8e542cc1cf52f24b7866c1620ac764bf2f92672
> Reviewed-on: https://chromium-review.googlesource.com/c/1439074
> Reviewed-by: Ben Mason <benmason@chromium.org>
> Commit-Queue: Ben Mason <benmason@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#626505}

# Not skipping CQ checks because original CL landed > 1 day ago.

Bug: 924842
Change-Id: I36b5cd2ab479f3038e3c31a69fe70aacef4db618
Reviewed-on: https://chromium-review.googlesource.com/c/1496275
Commit-Queue: ssid <ssid@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#636904}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: b610970f1a184cebbd7c50208597b64009beeb1b
2019-03-01 19:33:44 +00:00
Ben Mason ce17cd4872 Revert "Make sure unwind tables are added for 32 bit libraries in arm64 monochrome"
This reverts commit 200a953f909f0fc2df0b58360801619cb3257461.

Reason for revert: Breaking official build due to APK merge.

Original change's description:
> Make sure unwind tables are added for 32 bit libraries in arm64 monochrome
> 
> The assets were not added since we checked "can_unwind_with_cfi_table"
> value, which depends on "build_secondary_abi" build arg. So, explicitly
> add the asset for 64-bit monochrome apk, which contains 32 bit library.
> 
> BUG=924842
> 
> Change-Id: I6488d5c4e5a80787735c5b09134b013a87b5c553
> Reviewed-on: https://chromium-review.googlesource.com/c/1432836
> Commit-Queue: ssid <ssid@chromium.org>
> Reviewed-by: Andrew Grieve <agrieve@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#625789}

TBR=ssid@chromium.org,agrieve@chromium.org

# Not skipping CQ checks because original CL landed > 1 day ago.

Bug: 924842
Change-Id: Ic8e542cc1cf52f24b7866c1620ac764bf2f92672
Reviewed-on: https://chromium-review.googlesource.com/c/1439074
Reviewed-by: Ben Mason <benmason@chromium.org>
Commit-Queue: Ben Mason <benmason@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#626505}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 9866f6ae1da249231ad7fdc77b165bdc419495ce
2019-01-28 12:43:34 +00:00
Siddhartha fa98b610b9 Make sure unwind tables are added for 32 bit libraries in arm64 monochrome
The assets were not added since we checked "can_unwind_with_cfi_table"
value, which depends on "build_secondary_abi" build arg. So, explicitly
add the asset for 64-bit monochrome apk, which contains 32 bit library.

BUG=924842

Change-Id: I6488d5c4e5a80787735c5b09134b013a87b5c553
Reviewed-on: https://chromium-review.googlesource.com/c/1432836
Commit-Queue: ssid <ssid@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#625789}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 200a953f909f0fc2df0b58360801619cb3257461
2019-01-24 20:10:31 +00:00
Siddhartha 30e866049f Rename unwind asset to specify it's only for 32-bit apk
This makes the apk_merger script cleaner.

BUG=819888

Change-Id: Ica38505114a459326b8b0be6fd59e2fa6636c84e
Reviewed-on: https://chromium-review.googlesource.com/999152
Commit-Queue: Siddhartha S <ssid@chromium.org>
Reviewed-by: agrieve <agrieve@chromium.org>
Reviewed-by: Richard Coles <torne@chromium.org>
Reviewed-by: Maria Khomenko <mariakhomenko@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#548952}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 99f9e4912742ced2d5cd519763e4f81a32ace27d
2018-04-06 22:46:07 +00:00
Siddhartha d2ca94f36f Reland "Enable extracting unwind table on official builds without channel"
This reverts commit ef18e86a1e65f29a7415964aec310d9b40619b39.

Reason for revert: Make sure apk_merger.py works with and without the
unwind file, till downstream cl lands. Also rebase on:
https://chromium-review.googlesource.com/c/chromium/src/+/994545
and remove workaround for crbug/828528.

Original change's description:
> Revert "Enable extracting unwind table on official builds without channel"
>
> This reverts commit 16e808d789d05fcc2bfcc8b00e002d11405adb1a.
>
> Reason for revert: Merge step still failing.
>
> Original change's description:
> > Enable extracting unwind table on official builds without channel
> >
> > The original cl was here:
> > https://chromium-review.googlesource.com/c/chromium/src/+/990092
> > This CL fixes the following problems with the original CL:
> > 1. The apk_merger script fails because the unwind tables were only added
> >    in 32-bit apk. The merger script expects all the files to be same and
> >    the ones different should be checked.
> >  1a. The resources.arsc is non-hermetic and ordering is affected by
> >      adding file to only one apk. As a workaround for crbug/828528,
> >      add an empty (valid) unwind table file to the 64 bit monochrome
> >      apk to make the resource.arsc consistent.
> >  1b. The merger script simply adds all the files in apk which are not
> >      same. To keep the script simple and functional, the unwind resource
> >      is renamed to unwind_cfi_32 and unwind_cfi_empty in respective
> >      builds and the app_merger is updated to specify this file is
> >      expected to be different and included. This causes an extra file
> >      (4 byte) in the merged apk.
> >
> > 2. The unwind tables were always generated for "libchrome.so" for all
> >    chrome apks. The different chrome_apk(s) have different shared
> >    libraries like libchromefortest, etc.. So, update the unwind asset to
> >    get unwind table for the right library for each apk. Only adds assets
> >    to *_public_apk(s).
> >
> > 3. The monochrome_apk_checker was failing because the unwind file
> >    included was different in chrome_apk and monochrome_apk. This CL adds
> >    the asset to all apk at the same time and adds exception for this
> >    file.
> >
> > BUG=819888
> > TBR=dpranke@chromium.org
> >
> > Change-Id: Ibceeeacc19fa424d519891b8c17e349ee6c2dfd6
> > Reviewed-on: https://chromium-review.googlesource.com/991236
> > Commit-Queue: Siddhartha S <ssid@chromium.org>
> > Reviewed-by: Maria Khomenko <mariakhomenko@chromium.org>
> > Reviewed-by: Bo <boliu@chromium.org>
> > Reviewed-by: agrieve <agrieve@chromium.org>
> > Cr-Commit-Position: refs/heads/master@{#547993}
>
> TBR=boliu@chromium.org,dpranke@chromium.org,mariakhomenko@chromium.org,changwan@chromium.org,ssid@chromium.org,agrieve@chromium.org
>
> Change-Id: I0a96e213133b6cb21c36db365b7c72f0f4642c8e
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Bug: 819888
> Bug: 828879
> Reviewed-on: https://chromium-review.googlesource.com/995697
> Reviewed-by: Anthony Berent <aberent@chromium.org>
> Commit-Queue: Anthony Berent <aberent@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#548066}

TBR=dpranke@chromium.org,mariakhomenko@chromium.org

Bug: 819888, 828879
Change-Id: I2eba81de32632bea90171ece4cba1a4144c55d25
Reviewed-on: https://chromium-review.googlesource.com/996272
Commit-Queue: Siddhartha S <ssid@chromium.org>
Reviewed-by: agrieve <agrieve@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
Reviewed-by: Changwan Ryu <changwan@chromium.org>
Reviewed-by: Siddhartha S <ssid@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#548249}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 6c58c0c66be9b01d330d6bd3661ca3effbd25df1
2018-04-04 23:37:03 +00:00
Anthony Berent 509e6288dd Revert "Enable extracting unwind table on official builds without channel"
This reverts commit 16e808d789d05fcc2bfcc8b00e002d11405adb1a.

Reason for revert: Merge step still failing. 

Original change's description:
> Enable extracting unwind table on official builds without channel
> 
> The original cl was here:
> https://chromium-review.googlesource.com/c/chromium/src/+/990092
> This CL fixes the following problems with the original CL:
> 1. The apk_merger script fails because the unwind tables were only added
>    in 32-bit apk. The merger script expects all the files to be same and
>    the ones different should be checked.
>  1a. The resources.arsc is non-hermetic and ordering is affected by
>      adding file to only one apk. As a workaround for crbug/828528,
>      add an empty (valid) unwind table file to the 64 bit monochrome
>      apk to make the resource.arsc consistent.
>  1b. The merger script simply adds all the files in apk which are not
>      same. To keep the script simple and functional, the unwind resource
>      is renamed to unwind_cfi_32 and unwind_cfi_empty in respective
>      builds and the app_merger is updated to specify this file is
>      expected to be different and included. This causes an extra file
>      (4 byte) in the merged apk.
> 
> 2. The unwind tables were always generated for "libchrome.so" for all
>    chrome apks. The different chrome_apk(s) have different shared
>    libraries like libchromefortest, etc.. So, update the unwind asset to
>    get unwind table for the right library for each apk. Only adds assets
>    to *_public_apk(s).
> 
> 3. The monochrome_apk_checker was failing because the unwind file
>    included was different in chrome_apk and monochrome_apk. This CL adds
>    the asset to all apk at the same time and adds exception for this
>    file.
> 
> BUG=819888
> TBR=dpranke@chromium.org
> 
> Change-Id: Ibceeeacc19fa424d519891b8c17e349ee6c2dfd6
> Reviewed-on: https://chromium-review.googlesource.com/991236
> Commit-Queue: Siddhartha S <ssid@chromium.org>
> Reviewed-by: Maria Khomenko <mariakhomenko@chromium.org>
> Reviewed-by: Bo <boliu@chromium.org>
> Reviewed-by: agrieve <agrieve@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#547993}

TBR=boliu@chromium.org,dpranke@chromium.org,mariakhomenko@chromium.org,changwan@chromium.org,ssid@chromium.org,agrieve@chromium.org

Change-Id: I0a96e213133b6cb21c36db365b7c72f0f4642c8e
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 819888
Bug: 828879
Reviewed-on: https://chromium-review.googlesource.com/995697
Reviewed-by: Anthony Berent <aberent@chromium.org>
Commit-Queue: Anthony Berent <aberent@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#548066}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: ef18e86a1e65f29a7415964aec310d9b40619b39
2018-04-04 15:25:36 +00:00
Siddhartha e65999a451 Enable extracting unwind table on official builds without channel
The original cl was here:
https://chromium-review.googlesource.com/c/chromium/src/+/990092
This CL fixes the following problems with the original CL:
1. The apk_merger script fails because the unwind tables were only added
   in 32-bit apk. The merger script expects all the files to be same and
   the ones different should be checked.
 1a. The resources.arsc is non-hermetic and ordering is affected by
     adding file to only one apk. As a workaround for crbug/828528,
     add an empty (valid) unwind table file to the 64 bit monochrome
     apk to make the resource.arsc consistent.
 1b. The merger script simply adds all the files in apk which are not
     same. To keep the script simple and functional, the unwind resource
     is renamed to unwind_cfi_32 and unwind_cfi_empty in respective
     builds and the app_merger is updated to specify this file is
     expected to be different and included. This causes an extra file
     (4 byte) in the merged apk.

2. The unwind tables were always generated for "libchrome.so" for all
   chrome apks. The different chrome_apk(s) have different shared
   libraries like libchromefortest, etc.. So, update the unwind asset to
   get unwind table for the right library for each apk. Only adds assets
   to *_public_apk(s).

3. The monochrome_apk_checker was failing because the unwind file
   included was different in chrome_apk and monochrome_apk. This CL adds
   the asset to all apk at the same time and adds exception for this
   file.

BUG=819888
TBR=dpranke@chromium.org

Change-Id: Ibceeeacc19fa424d519891b8c17e349ee6c2dfd6
Reviewed-on: https://chromium-review.googlesource.com/991236
Commit-Queue: Siddhartha S <ssid@chromium.org>
Reviewed-by: Maria Khomenko <mariakhomenko@chromium.org>
Reviewed-by: Bo <boliu@chromium.org>
Reviewed-by: agrieve <agrieve@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#547993}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 16e808d789d05fcc2bfcc8b00e002d11405adb1a
2018-04-04 06:00:46 +00:00
Siddhartha S dc40c82b14 Revert "Reland "Reland "Enable extracting unwind table on official builds without channel"""
This reverts commit 579e583e477e33ad4eb47aa225ff115c9d022f4d.

Reason for revert: monochrome_apk_checker.py needs to be updated.
crbug/827937

Original change's description:
> Reland "Reland "Enable extracting unwind table on official builds without channel""
> 
> This reverts commit 2298aca2e030f8d3214c43c06b9cfd03dc18701b.
> 
> Reason for revert: Remove changes made in monochrome since apk merge script needs to
> be updated first.
> 
> Original change's description:
> > Revert "Reland "Enable extracting unwind table on official builds without channel""
> >
> > This reverts commit 0db71a0dbc0636c7281b72d1ab7b59a269c5043a.
> >
> > Reason for revert: Monochrome apk merge is failing because the unwind
> > file for both apk has the same name.
> >
> > Original change's description:
> > > Reland "Enable extracting unwind table on official builds without channel"
> > >
> > > This reverts commit a2474b6490ea9cfda76528059fbf23369e7d281f.
> > >
> > > Reason for revert: The failure was due to parent CL getting reverted
> > > Relanded parent in: https://chromium-review.googlesource.com/c/chromium/src/+/984452
> > >
> > > Original change's description:
> > > > Revert "Enable extracting unwind table on official builds without channel"
> > > >
> > > > This reverts commit eb07cea1254cc280dfec0c8ca0e6411dfcceecca.
> > > >
> > > > Reason for revert: Windows tryjobs are failing.
> > > > https://logs.chromium.org/v/?s=chromium%2Fbb%2Ftryserver.chromium.win%2Fwin-msvc-rel%2F81420%2F%2B%2Frecipes%2Fsteps%2Fanalyze%2F0%2Fstdout for an example.
> > > >
> > > > ERROR at //base/BUILD.gn:1802:33: Undefined identifier in string expansion.
> > > >     "CAN_UNWIND_WITH_CFI_TABLE=$can_unwind_with_cfi_table",
> > > >                                 ^------------------------
> > > > "can_unwind_with_cfi_table" is not currently in scope.
> > > > See //BUILD.gn:65:5: which caused the file to be included.
> > > >     "//base:base_perftests",
> > > >     ^----------------------
> > > > GN gen failed: 1
> > > >
> > > > Original change's description:
> > > > > Enable extracting unwind table on official builds without channel
> > > > >
> > > > > This CL enables extraction of unwind tables for chrome when
> > > > > is_official_build is set to true and when android_channel is not set to
> > > > > a release channel. This affects build time only on official builds.
> > > > > Also, Set legacy heap profiler to use unwinder for profiling.
> > > > >
> > > > > TBR=dpranke@chromium.org
> > > > > BUG=819888
> > > > >
> > > > > Change-Id: If9732b5ac1f9dff49c58e88e2ffb6cb387715244
> > > > > Reviewed-on: https://chromium-review.googlesource.com/976944
> > > > > Reviewed-by: Siddhartha S <ssid@chromium.org>
> > > > > Reviewed-by: agrieve <agrieve@chromium.org>
> > > > > Commit-Queue: Siddhartha S <ssid@chromium.org>
> > > > > Cr-Commit-Position: refs/heads/master@{#546425}
> > > >
> > > > TBR=dpranke@chromium.org,ssid@chromium.org,agrieve@chromium.org
> > > >
> > > > Change-Id: Id033094871dfcf74248f631390f15f379d9cd3c7
> > > > No-Presubmit: true
> > > > No-Tree-Checks: true
> > > > No-Try: true
> > > > Bug: 819888
> > > > Reviewed-on: https://chromium-review.googlesource.com/983893
> > > > Reviewed-by: agrieve <agrieve@chromium.org>
> > > > Commit-Queue: agrieve <agrieve@chromium.org>
> > > > Cr-Commit-Position: refs/heads/master@{#546478}
> > >
> > > TBR=dpranke@chromium.org,ssid@chromium.org,agrieve@chromium.org
> > >
> > > Change-Id: I100f540c8d5bc9f59b9631ea207c7f290dc42e96
> > > No-Presubmit: true
> > > No-Tree-Checks: true
> > > No-Try: true
> > > Bug: 819888
> > > Reviewed-on: https://chromium-review.googlesource.com/985112
> > > Commit-Queue: Siddhartha S <ssid@chromium.org>
> > > Reviewed-by: Siddhartha S <ssid@chromium.org>
> > > Cr-Commit-Position: refs/heads/master@{#547196}
> >
> > TBR=dpranke@chromium.org,ssid@chromium.org,agrieve@chromium.org
> >
> > Change-Id: Ifa59a5882b18c2634bcf96c2c1fc58b09d7f303f
> > No-Presubmit: true
> > No-Tree-Checks: true
> > No-Try: true
> > Bug: 819888
> > Reviewed-on: https://chromium-review.googlesource.com/989153
> > Reviewed-by: Siddhartha S <ssid@chromium.org>
> > Commit-Queue: Siddhartha S <ssid@chromium.org>
> > Cr-Commit-Position: refs/heads/master@{#547332}
> 
> TBR=dpranke@chromium.org,ssid@chromium.org,agrieve@chromium.org,ctzsm@chromium.org
> 
> Change-Id: I7750c70e52b55ccfbf1e2457a19fee4852575e59
> Bug: 819888
> Reviewed-on: https://chromium-review.googlesource.com/989192
> Commit-Queue: Siddhartha S <ssid@chromium.org>
> Reviewed-by: Siddhartha S <ssid@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#547361}

TBR=dpranke@chromium.org,ssid@chromium.org,agrieve@chromium.org,ctzsm@chromium.org

# Not skipping CQ checks because original CL landed > 1 day ago.

Bug: 819888
Change-Id: I064a5bdae54fa1552eee14ee72d08f15cf081a63
Reviewed-on: https://chromium-review.googlesource.com/990092
Reviewed-by: Siddhartha S <ssid@chromium.org>
Commit-Queue: Siddhartha S <ssid@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#547490}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c36e45cb3cde0a857a96aa7e921868f7c51589f3
2018-04-02 19:48:25 +00:00
Siddhartha 72499be1e9 Reland "Reland "Enable extracting unwind table on official builds without channel""
This reverts commit 2298aca2e030f8d3214c43c06b9cfd03dc18701b.

Reason for revert: Remove changes made in monochrome since apk merge script needs to
be updated first.

Original change's description:
> Revert "Reland "Enable extracting unwind table on official builds without channel""
>
> This reverts commit 0db71a0dbc0636c7281b72d1ab7b59a269c5043a.
>
> Reason for revert: Monochrome apk merge is failing because the unwind
> file for both apk has the same name.
>
> Original change's description:
> > Reland "Enable extracting unwind table on official builds without channel"
> >
> > This reverts commit a2474b6490ea9cfda76528059fbf23369e7d281f.
> >
> > Reason for revert: The failure was due to parent CL getting reverted
> > Relanded parent in: https://chromium-review.googlesource.com/c/chromium/src/+/984452
> >
> > Original change's description:
> > > Revert "Enable extracting unwind table on official builds without channel"
> > >
> > > This reverts commit eb07cea1254cc280dfec0c8ca0e6411dfcceecca.
> > >
> > > Reason for revert: Windows tryjobs are failing.
> > > https://logs.chromium.org/v/?s=chromium%2Fbb%2Ftryserver.chromium.win%2Fwin-msvc-rel%2F81420%2F%2B%2Frecipes%2Fsteps%2Fanalyze%2F0%2Fstdout for an example.
> > >
> > > ERROR at //base/BUILD.gn:1802:33: Undefined identifier in string expansion.
> > >     "CAN_UNWIND_WITH_CFI_TABLE=$can_unwind_with_cfi_table",
> > >                                 ^------------------------
> > > "can_unwind_with_cfi_table" is not currently in scope.
> > > See //BUILD.gn:65:5: which caused the file to be included.
> > >     "//base:base_perftests",
> > >     ^----------------------
> > > GN gen failed: 1
> > >
> > > Original change's description:
> > > > Enable extracting unwind table on official builds without channel
> > > >
> > > > This CL enables extraction of unwind tables for chrome when
> > > > is_official_build is set to true and when android_channel is not set to
> > > > a release channel. This affects build time only on official builds.
> > > > Also, Set legacy heap profiler to use unwinder for profiling.
> > > >
> > > > TBR=dpranke@chromium.org
> > > > BUG=819888
> > > >
> > > > Change-Id: If9732b5ac1f9dff49c58e88e2ffb6cb387715244
> > > > Reviewed-on: https://chromium-review.googlesource.com/976944
> > > > Reviewed-by: Siddhartha S <ssid@chromium.org>
> > > > Reviewed-by: agrieve <agrieve@chromium.org>
> > > > Commit-Queue: Siddhartha S <ssid@chromium.org>
> > > > Cr-Commit-Position: refs/heads/master@{#546425}
> > >
> > > TBR=dpranke@chromium.org,ssid@chromium.org,agrieve@chromium.org
> > >
> > > Change-Id: Id033094871dfcf74248f631390f15f379d9cd3c7
> > > No-Presubmit: true
> > > No-Tree-Checks: true
> > > No-Try: true
> > > Bug: 819888
> > > Reviewed-on: https://chromium-review.googlesource.com/983893
> > > Reviewed-by: agrieve <agrieve@chromium.org>
> > > Commit-Queue: agrieve <agrieve@chromium.org>
> > > Cr-Commit-Position: refs/heads/master@{#546478}
> >
> > TBR=dpranke@chromium.org,ssid@chromium.org,agrieve@chromium.org
> >
> > Change-Id: I100f540c8d5bc9f59b9631ea207c7f290dc42e96
> > No-Presubmit: true
> > No-Tree-Checks: true
> > No-Try: true
> > Bug: 819888
> > Reviewed-on: https://chromium-review.googlesource.com/985112
> > Commit-Queue: Siddhartha S <ssid@chromium.org>
> > Reviewed-by: Siddhartha S <ssid@chromium.org>
> > Cr-Commit-Position: refs/heads/master@{#547196}
>
> TBR=dpranke@chromium.org,ssid@chromium.org,agrieve@chromium.org
>
> Change-Id: Ifa59a5882b18c2634bcf96c2c1fc58b09d7f303f
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Bug: 819888
> Reviewed-on: https://chromium-review.googlesource.com/989153
> Reviewed-by: Siddhartha S <ssid@chromium.org>
> Commit-Queue: Siddhartha S <ssid@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#547332}

TBR=dpranke@chromium.org,ssid@chromium.org,agrieve@chromium.org,ctzsm@chromium.org

Change-Id: I7750c70e52b55ccfbf1e2457a19fee4852575e59
Bug: 819888
Reviewed-on: https://chromium-review.googlesource.com/989192
Commit-Queue: Siddhartha S <ssid@chromium.org>
Reviewed-by: Siddhartha S <ssid@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#547361}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 579e583e477e33ad4eb47aa225ff115c9d022f4d
2018-03-31 02:19:25 +00:00
Siddhartha S 12099b7052 Revert "Reland "Enable extracting unwind table on official builds without channel""
This reverts commit 0db71a0dbc0636c7281b72d1ab7b59a269c5043a.

Reason for revert: Monochrome apk merge is failing because the unwind
file for both apk has the same name.

Original change's description:
> Reland "Enable extracting unwind table on official builds without channel"
> 
> This reverts commit a2474b6490ea9cfda76528059fbf23369e7d281f.
> 
> Reason for revert: The failure was due to parent CL getting reverted
> Relanded parent in: https://chromium-review.googlesource.com/c/chromium/src/+/984452
> 
> Original change's description:
> > Revert "Enable extracting unwind table on official builds without channel"
> >
> > This reverts commit eb07cea1254cc280dfec0c8ca0e6411dfcceecca.
> >
> > Reason for revert: Windows tryjobs are failing.
> > https://logs.chromium.org/v/?s=chromium%2Fbb%2Ftryserver.chromium.win%2Fwin-msvc-rel%2F81420%2F%2B%2Frecipes%2Fsteps%2Fanalyze%2F0%2Fstdout for an example.
> >
> > ERROR at //base/BUILD.gn:1802:33: Undefined identifier in string expansion.
> >     "CAN_UNWIND_WITH_CFI_TABLE=$can_unwind_with_cfi_table",
> >                                 ^------------------------
> > "can_unwind_with_cfi_table" is not currently in scope.
> > See //BUILD.gn:65:5: which caused the file to be included.
> >     "//base:base_perftests",
> >     ^----------------------
> > GN gen failed: 1
> >
> > Original change's description:
> > > Enable extracting unwind table on official builds without channel
> > >
> > > This CL enables extraction of unwind tables for chrome when
> > > is_official_build is set to true and when android_channel is not set to
> > > a release channel. This affects build time only on official builds.
> > > Also, Set legacy heap profiler to use unwinder for profiling.
> > >
> > > TBR=dpranke@chromium.org
> > > BUG=819888
> > >
> > > Change-Id: If9732b5ac1f9dff49c58e88e2ffb6cb387715244
> > > Reviewed-on: https://chromium-review.googlesource.com/976944
> > > Reviewed-by: Siddhartha S <ssid@chromium.org>
> > > Reviewed-by: agrieve <agrieve@chromium.org>
> > > Commit-Queue: Siddhartha S <ssid@chromium.org>
> > > Cr-Commit-Position: refs/heads/master@{#546425}
> >
> > TBR=dpranke@chromium.org,ssid@chromium.org,agrieve@chromium.org
> >
> > Change-Id: Id033094871dfcf74248f631390f15f379d9cd3c7
> > No-Presubmit: true
> > No-Tree-Checks: true
> > No-Try: true
> > Bug: 819888
> > Reviewed-on: https://chromium-review.googlesource.com/983893
> > Reviewed-by: agrieve <agrieve@chromium.org>
> > Commit-Queue: agrieve <agrieve@chromium.org>
> > Cr-Commit-Position: refs/heads/master@{#546478}
> 
> TBR=dpranke@chromium.org,ssid@chromium.org,agrieve@chromium.org
> 
> Change-Id: I100f540c8d5bc9f59b9631ea207c7f290dc42e96
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Bug: 819888
> Reviewed-on: https://chromium-review.googlesource.com/985112
> Commit-Queue: Siddhartha S <ssid@chromium.org>
> Reviewed-by: Siddhartha S <ssid@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#547196}

TBR=dpranke@chromium.org,ssid@chromium.org,agrieve@chromium.org

Change-Id: Ifa59a5882b18c2634bcf96c2c1fc58b09d7f303f
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 819888
Reviewed-on: https://chromium-review.googlesource.com/989153
Reviewed-by: Siddhartha S <ssid@chromium.org>
Commit-Queue: Siddhartha S <ssid@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#547332}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 2298aca2e030f8d3214c43c06b9cfd03dc18701b
2018-03-31 00:19:13 +00:00
Siddhartha S fd402752c1 Reland "Enable extracting unwind table on official builds without channel"
This reverts commit a2474b6490ea9cfda76528059fbf23369e7d281f.

Reason for revert: The failure was due to parent CL getting reverted
Relanded parent in: https://chromium-review.googlesource.com/c/chromium/src/+/984452

Original change's description:
> Revert "Enable extracting unwind table on official builds without channel"
>
> This reverts commit eb07cea1254cc280dfec0c8ca0e6411dfcceecca.
>
> Reason for revert: Windows tryjobs are failing.
> https://logs.chromium.org/v/?s=chromium%2Fbb%2Ftryserver.chromium.win%2Fwin-msvc-rel%2F81420%2F%2B%2Frecipes%2Fsteps%2Fanalyze%2F0%2Fstdout for an example.
>
> ERROR at //base/BUILD.gn:1802:33: Undefined identifier in string expansion.
>     "CAN_UNWIND_WITH_CFI_TABLE=$can_unwind_with_cfi_table",
>                                 ^------------------------
> "can_unwind_with_cfi_table" is not currently in scope.
> See //BUILD.gn:65:5: which caused the file to be included.
>     "//base:base_perftests",
>     ^----------------------
> GN gen failed: 1
>
> Original change's description:
> > Enable extracting unwind table on official builds without channel
> >
> > This CL enables extraction of unwind tables for chrome when
> > is_official_build is set to true and when android_channel is not set to
> > a release channel. This affects build time only on official builds.
> > Also, Set legacy heap profiler to use unwinder for profiling.
> >
> > TBR=dpranke@chromium.org
> > BUG=819888
> >
> > Change-Id: If9732b5ac1f9dff49c58e88e2ffb6cb387715244
> > Reviewed-on: https://chromium-review.googlesource.com/976944
> > Reviewed-by: Siddhartha S <ssid@chromium.org>
> > Reviewed-by: agrieve <agrieve@chromium.org>
> > Commit-Queue: Siddhartha S <ssid@chromium.org>
> > Cr-Commit-Position: refs/heads/master@{#546425}
>
> TBR=dpranke@chromium.org,ssid@chromium.org,agrieve@chromium.org
>
> Change-Id: Id033094871dfcf74248f631390f15f379d9cd3c7
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Bug: 819888
> Reviewed-on: https://chromium-review.googlesource.com/983893
> Reviewed-by: agrieve <agrieve@chromium.org>
> Commit-Queue: agrieve <agrieve@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#546478}

TBR=dpranke@chromium.org,ssid@chromium.org,agrieve@chromium.org

Change-Id: I100f540c8d5bc9f59b9631ea207c7f290dc42e96
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 819888
Reviewed-on: https://chromium-review.googlesource.com/985112
Commit-Queue: Siddhartha S <ssid@chromium.org>
Reviewed-by: Siddhartha S <ssid@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#547196}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 0db71a0dbc0636c7281b72d1ab7b59a269c5043a
2018-03-30 17:15:30 +00:00
Siddhartha 6bfadac12a Reland "Reland "Android: Add code to parse the CFI info added to the apk""
This reverts commit 328b9d9e8b0160904575b6a843992c14572a4f06.

Reason for revert: Test ran on bots for half day. Started failing after more changes in base/.
I guess the extract didn't run because input arg was missing.

Original change's description:
> Revert "Reland "Android: Add code to parse the CFI info added to the apk""
>
> This reverts commit a06ad5617853f1370a09145189cd830598ac9d46.
>
> Reason for revert: crbug.com/827116
>
> Original change's description:
> > Reland "Android: Add code to parse the CFI info added to the apk"
> >
> > This reverts commit 88328b6800f987ba9f532842862021cb48875618.
> >
> > Reason for revert: Attempt fixing cfi bot by removing unwind tables in cfi
> > builds.
> >
> > Original change's description:
> > > Revert "Android: Add code to parse the CFI info added to the apk"
> > >
> > > This reverts commit 1d8b0c00961571a16a25633be92ed196fbe51271.
> > >
> > > Reason for revert: https://crbug.com/826718
> > >
> > > CL causes failures on Android CFI builder.
> > >
> > > Original change's description:
> > > > Android: Add code to parse the CFI info added to the apk
> > > >
> > > > The previous CL added support for adding unwind tables in apk:
> > > > https://chromium-review.googlesource.com/c/chromium/src/+/956971
> > > > This CL parses and adds test for unwinding on base_unittests_apk.
> > > > The non-official builds do not contain debug info since all bots set
> > > > strip_debug_info=true. So, make sure base_unittests do not take this
> > > > flag.
> > > >
> > > > BUG=819888
> > > >
> > > > Change-Id: Ib69909e14f9f8623ac07154ef60be248558b08a4
> > > > Reviewed-on: https://chromium-review.googlesource.com/958326
> > > > Commit-Queue: Siddhartha S <ssid@chromium.org>
> > > > Reviewed-by: Daniel Cheng <dcheng@chromium.org>
> > > > Reviewed-by: Primiano Tucci <primiano@chromium.org>
> > > > Reviewed-by: Dirk Pranke <dpranke@chromium.org>
> > > > Reviewed-by: agrieve <agrieve@chromium.org>
> > > > Cr-Commit-Position: refs/heads/master@{#546343}
> > >
> > > TBR=dcheng@chromium.org,primiano@chromium.org,dpranke@chromium.org,ssid@chromium.org,agrieve@chromium.org,dskiba@chromium.org
> > >
> > > Change-Id: Ib9bcb81ffa30861ea91107c1a1f3ccb8f29a7f7d
> > > No-Presubmit: true
> > > No-Tree-Checks: true
> > > No-Try: true
> > > Bug: 819888
> > > Reviewed-on: https://chromium-review.googlesource.com/983972
> > > Reviewed-by: François Doray <fdoray@chromium.org>
> > > Commit-Queue: François Doray <fdoray@chromium.org>
> > > Cr-Commit-Position: refs/heads/master@{#546472}
> >
> > TBR=dcheng@chromium.org,primiano@chromium.org,fdoray@chromium.org,dpranke@chromium.org,ssid@chromium.org,agrieve@chromium.org,dskiba@chromium.org
> >
> > Bug: 819888
> > Change-Id: Iadb8825988a311c6576c219b9a67e35b45838d7b
> > Reviewed-on: https://chromium-review.googlesource.com/984452
> > Reviewed-by: Daniel Cheng <dcheng@chromium.org>
> > Reviewed-by: agrieve <agrieve@chromium.org>
> > Reviewed-by: Siddhartha S <ssid@chromium.org>
> > Commit-Queue: Siddhartha S <ssid@chromium.org>
> > Cr-Commit-Position: refs/heads/master@{#546597}
>
> TBR=dcheng@chromium.org,primiano@chromium.org,fdoray@chromium.org,dpranke@chromium.org,ssid@chromium.org,agrieve@chromium.org,dskiba@chromium.org
>
> Change-Id: Ib9dab098899b40b8814fb94c3d239d08eecc714f
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Bug: 819888
> Reviewed-on: https://chromium-review.googlesource.com/986572
> Reviewed-by: Tobias Sargeant <tobiasjs@chromium.org>
> Commit-Queue: Tobias Sargeant <tobiasjs@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#546836}

TBR=dcheng@chromium.org,primiano@chromium.org,fdoray@chromium.org,dpranke@chromium.org,ssid@chromium.org,agrieve@chromium.org,dskiba@chromium.org,tobiasjs@chromium.org

Change-Id: Ieef28dee93a9270e8de3e1f9e1ca7212178c2465
No-Presubmit: true
No-Tree-Checks: true
Bug: 819888
Reviewed-on: https://chromium-review.googlesource.com/985960
Commit-Queue: Siddhartha S <ssid@chromium.org>
Reviewed-by: Siddhartha S <ssid@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#546959}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 945901d43d375517fe79311b1940589b57addb7d
2018-03-29 21:31:30 +00:00
agrieve 550f244742 Revert "Enable extracting unwind table on official builds without channel"
This reverts commit eb07cea1254cc280dfec0c8ca0e6411dfcceecca.

Reason for revert: Windows tryjobs are failing.
https://logs.chromium.org/v/?s=chromium%2Fbb%2Ftryserver.chromium.win%2Fwin-msvc-rel%2F81420%2F%2B%2Frecipes%2Fsteps%2Fanalyze%2F0%2Fstdout for an example.

ERROR at //base/BUILD.gn:1802:33: Undefined identifier in string expansion.
    "CAN_UNWIND_WITH_CFI_TABLE=$can_unwind_with_cfi_table",
                                ^------------------------
"can_unwind_with_cfi_table" is not currently in scope.
See //BUILD.gn:65:5: which caused the file to be included.
    "//base:base_perftests",
    ^----------------------
GN gen failed: 1

Original change's description:
> Enable extracting unwind table on official builds without channel
> 
> This CL enables extraction of unwind tables for chrome when
> is_official_build is set to true and when android_channel is not set to
> a release channel. This affects build time only on official builds.
> Also, Set legacy heap profiler to use unwinder for profiling.
> 
> TBR=dpranke@chromium.org
> BUG=819888
> 
> Change-Id: If9732b5ac1f9dff49c58e88e2ffb6cb387715244
> Reviewed-on: https://chromium-review.googlesource.com/976944
> Reviewed-by: Siddhartha S <ssid@chromium.org>
> Reviewed-by: agrieve <agrieve@chromium.org>
> Commit-Queue: Siddhartha S <ssid@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#546425}

TBR=dpranke@chromium.org,ssid@chromium.org,agrieve@chromium.org

Change-Id: Id033094871dfcf74248f631390f15f379d9cd3c7
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 819888
Reviewed-on: https://chromium-review.googlesource.com/983893
Reviewed-by: agrieve <agrieve@chromium.org>
Commit-Queue: agrieve <agrieve@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#546478}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: a2474b6490ea9cfda76528059fbf23369e7d281f
2018-03-28 14:10:37 +00:00
Siddhartha 585adfa1b0 Enable extracting unwind table on official builds without channel
This CL enables extraction of unwind tables for chrome when
is_official_build is set to true and when android_channel is not set to
a release channel. This affects build time only on official builds.
Also, Set legacy heap profiler to use unwinder for profiling.

TBR=dpranke@chromium.org
BUG=819888

Change-Id: If9732b5ac1f9dff49c58e88e2ffb6cb387715244
Reviewed-on: https://chromium-review.googlesource.com/976944
Reviewed-by: Siddhartha S <ssid@chromium.org>
Reviewed-by: agrieve <agrieve@chromium.org>
Commit-Queue: Siddhartha S <ssid@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#546425}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: eb07cea1254cc280dfec0c8ca0e6411dfcceecca
2018-03-28 06:37:44 +00:00
Siddhartha 95a628b63b Extract CFI table info from breakpad symbol file for unwinding
The extract_unwind_tables script dumps the breakpad symbol file and
extracts cfi unwind table from it.
The output format is discussed in this doc:
https://docs.google.com/document/d/1TLuUZ1HaMO6Rv0Q9Y1-w4a-9wcyia1VygQbs4Osb7Oo
This is just a basic format and will be changed in subsequent cl for
size efficiency and performance.

BUG=819888

Change-Id: I987aa2e4ef37f86b6553410d7ee73c15f655495b
Reviewed-on: https://chromium-review.googlesource.com/956971
Commit-Queue: Siddhartha S <ssid@chromium.org>
Reviewed-by: agrieve <agrieve@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#542736}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 7819ba6a2af0d732806aaea80db94361cd626d6e
2018-03-13 05:10:58 +00:00
Siddhartha cd1fe2b416 Add a script to extract and add unwind table to apk
The unwind tables are stripped from release builds. This CL adds a
script to extract the unwind table sections from unstripped binary and
adds it as an asset file in the apk.
This script is first used in the test apk, when add_unwind_tables_in_apk
is specified. Will be used later added to chrome apk.

BUG=819888

Change-Id: I68d2ea843ed0c7a7a3ee60c48f683e01809ff217
Reviewed-on: https://chromium-review.googlesource.com/954421
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
Reviewed-by: agrieve <agrieve@chromium.org>
Commit-Queue: Siddhartha S <ssid@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#542699}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 764226bdbd10e46076fbc691bcaa27f050075c7a
2018-03-13 02:32:55 +00:00