Commit graph

47450 commits

Author SHA1 Message Date
Treehugger Robot
cc5e84c5a1 Merge "Limit JIT tier for javac" am: 52ef4c3373
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1964540

Change-Id: I007dad91336606d9d3c5148bd86310c51d97d717
2022-01-28 22:19:17 +00:00
Treehugger Robot
52ef4c3373 Merge "Limit JIT tier for javac" 2022-01-28 21:59:05 +00:00
Jared Duke
0849c14aea Limit JIT tier for javac
javac is generally a short-lived JVM invocation that doesn't greatly
benefit from deep JIT tiering. As such, favor faster startup time
by limiting to tier 1 JIT for javac execution. This should greatly
reduce overall CPU usage from Java compilation for an arbitrary
Android build (~20%), and deliver a small but modest improvement in
overall Java build times (~5%).

Representative incremental build times with this change:
  * real 18m3.507s
  * user 563m4.838s
and without:
  * real 19m11.909s
  * user 751m27.790s

Follow-up changes will apply similar flags for other short-lived JVM
build commands.

Bug: 205303544
Test: m
Change-Id: Ic6315b976063f4330902930a6cf5e5cb394c554c
2022-01-28 11:39:47 -08:00
Keyi Gui
2b4514dc6f Merge "Add new file name to output inputs/outputs of actions of modules into a new file when m json-module-graph is executed." am: 0107901dec
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1959122

Change-Id: Ib6950fdbb91bf6c31766baa29f93f7660c6fe4eb
2022-01-28 15:07:45 +00:00
Keyi Gui
0107901dec Merge "Add new file name to output inputs/outputs of actions of modules into a new file when m json-module-graph is executed." 2022-01-28 14:39:31 +00:00
Pedro Loureiro
f4ddb097e5 Merge "Add special case for test-only module in configuredJars method" am: e4c255cb04
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1960850

Change-Id: Id7b7d8c4d14470316a1e3cea30708f9ac7984ca9
2022-01-28 10:04:01 +00:00
Pedro Loureiro
e4c255cb04 Merge "Add special case for test-only module in configuredJars method" 2022-01-28 09:50:36 +00:00
kgui
67007248a5 Add new file name to output inputs/outputs of actions of modules into a new file when m json-module-graph is executed.
And also delete the logic in droidstubs to output JSONDataActions.

Test: local.

Change-Id: Ib5d6f1f69c16c41f128e481131775c7699f96464
2022-01-28 13:52:50 +08:00
Treehugger Robot
e375f4c53e Merge "Add option to generate BTF debug info for bpf programs" am: c7afdefa26
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1909413

Change-Id: I9455f10bd7428124fc06acf2daf1d0ee28186473
2022-01-28 02:07:09 +00:00
Treehugger Robot
c7afdefa26 Merge "Add option to generate BTF debug info for bpf programs" 2022-01-28 01:51:05 +00:00
Chih-hung Hsieh
be0ae56298 Merge "Add tidy.md document" am: 7892c6d76d
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1960242

Change-Id: I9e9ea796d168deb01b050c30edac2dde8f899264
2022-01-27 23:14:38 +00:00
Treehugger Robot
86f074a1a4 Merge "Revert "Reland "Enable hwasan use after scope detection.""" am: cd22b62add
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1962182

Change-Id: Ib97eeda88c2f7e8d06c3a6719db6c290d14aee7d
2022-01-27 23:14:05 +00:00
Chih-hung Hsieh
7892c6d76d Merge "Add tidy.md document" 2022-01-27 23:07:25 +00:00
Treehugger Robot
cd22b62add Merge "Revert "Reland "Enable hwasan use after scope detection.""" 2022-01-27 22:54:24 +00:00
Treehugger Robot
6d67ba6d67 Merge changes I728208ed,Ifdb50809 am: 428d5ad909
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1963682

Change-Id: I69b8673594f7309d838f455d2c8208f80c453d23
2022-01-27 22:22:35 +00:00
Treehugger Robot
428d5ad909 Merge changes I728208ed,Ifdb50809
* changes:
  [cc] Add per-file OWNERS for cc/coverage.go
  [cc/coverage] Override/disable -Wframe-larger-than
2022-01-27 22:17:29 +00:00
Treehugger Robot
4e93dd995d Merge changes from topic "musl_rust" am: 6bf833f428
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1959700

Change-Id: Ie235f8ca7f40149f069ed64db7611a1be10b88bf
2022-01-27 22:13:04 +00:00
Colin Cross
8d32422e83 Support genrules as CrtBegin and CrtEnd in rust am: 018cbebd71
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1959899

Change-Id: I5d6cc23f9ddac0016183ba21c21da95c7de12a1a
2022-01-27 22:13:03 +00:00
Colin Cross
592ba33d9c Support multiple crtbegin and crtend dependencies am: fe605e14ee
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1959699

Change-Id: I8565370140a3c295063cb168c4829448699d09c3
2022-01-27 22:13:01 +00:00
Treehugger Robot
6bf833f428 Merge changes from topic "musl_rust"
* changes:
  Support building rust modules against musl libc
  Support genrules as CrtBegin and CrtEnd in rust
  Support multiple crtbegin and crtend dependencies
2022-01-27 21:39:18 +00:00
Connor O'Brien
2573965c5e Add option to generate BTF debug info for bpf programs
Add "btf" option that generates BTF debug info to support easier map
inspection. This is accomplished by passing the "-g" flag to clang
when compiling the BPF program.

The "-g" option also generates a number of DWARF debug sections which
are not necessary for loading BTF information, so strip these to avoid
increasing file size unnecessarily. bpfloader currently only supports
BTF info for maps, not programs, so we also strip the .BTF.ext section
containing program BTF info.

Bug: 203823368
Test: libbpf_load_test
Test: verify time_in_state.o includes .BTF section iff "btf: true" is
set
Test: verify time_in_state.o still loads if BTF is enabled
Change-Id: Ica25b253bace59d04130b0210350188399889bbe
Signed-off-by: Connor O'Brien <connoro@google.com>
2022-01-27 12:00:45 -08:00
Chih-Hung Hsieh
22c27e8458 Add tidy.md document
Test: make
Change-Id: Ic2198532be4135401faffdda34d0e108c57b241c
2022-01-27 11:02:17 -08:00
Pirama Arumuga Nainar
0d7d3e1647 [cc] Add per-file OWNERS for cc/coverage.go
Test: N/A
Change-Id: I728208ed9ef10e032fd12e495ba67121e4c849e5
2022-01-27 10:49:13 -08:00
Pirama Arumuga Nainar
f776c8c47c [cc/coverage] Override/disable -Wframe-larger-than
We can expect frame size increase with coverage instrumentation.

Test: N/A
Change-Id: Ifdb50809c83939ded5a26804aa0ae9404eb1a107
2022-01-27 10:47:55 -08:00
Pirama Arumuga Nainar
a1d651d6b4 Merge "[rust/coverage] Remove obsolete WAR to pass -z,start-stop-gc" am: 1785fcb171
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1960243

Change-Id: I5147e9eb8630f40ef5c0afbc2ed5a50e1dfdbcf4
2022-01-27 18:46:48 +00:00
Pirama Arumuga Nainar
babb868339 Merge "[docs] Add README for native code coverage" am: 7ac26891cf
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1960240

Change-Id: I15b11973409422f4ad22d9060f79361027f04319
2022-01-27 18:46:37 +00:00
Pirama Arumuga Nainar
1785fcb171 Merge "[rust/coverage] Remove obsolete WAR to pass -z,start-stop-gc" 2022-01-27 18:37:40 +00:00
Pirama Arumuga Nainar
7ac26891cf Merge "[docs] Add README for native code coverage" 2022-01-27 18:29:12 +00:00
Trevor Radcliffe
d81f41149c Merge "Remove res and assets in androidmk if default" am: 13ae63c7e3
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1960900

Change-Id: Idd7671f5a71394855ad161bb6e33a206f3450cdc
2022-01-27 14:55:55 +00:00
Trevor Radcliffe
13ae63c7e3 Merge "Remove res and assets in androidmk if default" 2022-01-27 14:53:14 +00:00
Sam Delmerico
8e27992e34 Merge "product variables are consumed via soong injection" am: 2882dcb74b
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1956480

Change-Id: I66e79024c360ccb1099de02270eedfa6212b7e93
2022-01-27 14:49:55 +00:00
Sam Delmerico
a4a08a2bcb Merge "build device binary for java_test_host" am: af20c7cad1
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1957100

Change-Id: I07feaba037f6200fa6cb2f97e46bca5f367d6259
2022-01-27 14:49:37 +00:00
Sam Delmerico
2882dcb74b Merge "product variables are consumed via soong injection" 2022-01-27 14:31:08 +00:00
Sam Delmerico
af20c7cad1 Merge "build device binary for java_test_host" 2022-01-27 14:30:39 +00:00
Pirama Arumuga Nainar
2b34678ce2 [docs] Add README for native code coverage
Publish internal doc at go/android-native-coverage-local-workflow to
AOSP so it's available publicly.

Also add OWNERS for this file.

Test: N/A
Change-Id: I8d25e840b83294e90743d1cb8ff8d86a4579e34a
2022-01-27 05:16:45 +00:00
Yi Kong
0a3a678a16 Merge "Add tests for afdo.go" am: a86875eefb
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1961260

Change-Id: I655477496451fb778bdc5cb7c81526fafb801b76
2022-01-27 04:41:12 +00:00
Yi Kong
a86875eefb Merge "Add tests for afdo.go" 2022-01-27 04:27:28 +00:00
Florian Mayer
fd337b3963 Revert "Reland "Enable hwasan use after scope detection.""
This reverts commit 0edaddf2ce.

Reason for revert: b/http://b/214007768

Change-Id: I60a2e3a5386601992fcb5632c142dd28bdb611b2
2022-01-27 03:31:28 +00:00
Pirama Arumuga Nainar
668da23096 [rust/coverage] Remove obsolete WAR to pass -z,start-stop-gc
Bug: http://b/199203503

Rust's llvm-project source now includes  https://reviews.llvm.org/D97448
and we no longer need this workaround.

Test: m unicode-xid_test_src_lib and verify __llvm_prf_data section is
      present.
Change-Id: I0387bd3af8bfc765f3aba3b309bfbc7ef49d565d
2022-01-26 21:39:49 +00:00
Sam Delmerico
b3342ce580 build device binary for java_test_host
This commit adds support for a java_host_test that requires a target
binary to run. If the binary has host and target variants and is added
as a dependency in the `data` attribute, then the host variant is used.
Instead, we need a way to force the use of the target variant.

Bug: 182919153
Test: add code from aosp/1647282/1 && atest AuthFsHostTest
Change-Id: I68a6259b41a5e6809e1b82eec3122ffdf5067f56
2022-01-26 19:57:27 +00:00
Sam Delmerico
5c32bbf910 product variables are consumed via soong injection
Currently the list of product variables and whether they are arch-variant is
hard-coded. Instead, we can generate this data from the Soong Product_variables
struct and use soong_injection to consume it in Bazel.

Bug: 209801976
Test: m bp2build && build/bazel/ci/mixed_libc.sh
Change-Id: I8a91030950407a10832765f15eb010899d73da26
2022-01-26 19:26:09 +00:00
Liz Kammer
442ed3f1d5 Merge "Reverse order of tag and android module checks" am: 91ee673ccd
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1959619

Change-Id: Ia50c00079c95188c4e5e5c4a9a2302231e712de6
2022-01-26 19:08:06 +00:00
Liz Kammer
91ee673ccd Merge "Reverse order of tag and android module checks" 2022-01-26 18:53:40 +00:00
Pedro Loureiro
561c7765de Add special case for test-only module in configuredJars method
Same pattern used for com.android.sdkext / test_framework-sdkextensions

Test: m nothing
Test: also tried this with related CLs that make use of this
functionality

Bug: 195732042
Change-Id: I5adfb0e8650e2e262bf646e56b29965798d0a42f
2022-01-26 18:48:07 +00:00
Treehugger Robot
e66acc24ed Merge "[cc/tidy] Disable cert-err33-c" am: 2d305010af
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1960241

Change-Id: I8fcfe41409f8f4ed7e8b5acf12ea4e91125b4939
2022-01-26 10:53:26 +00:00
Treehugger Robot
2d305010af Merge "[cc/tidy] Disable cert-err33-c" 2022-01-26 10:34:58 +00:00
Yi Kong
d5954a2a92 Add tests for afdo.go
Bug: 79161490
Test: presubmit
Change-Id: I686b5226aad5011ab30a0a105f8c7866cd610502
2022-01-26 17:46:33 +08:00
Yi Kong
7449127548 Merge "Sampling PGO deprecation" am: 3440d0d474
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1960104

Change-Id: I85e6f4b33b5ef61255ee9a28c1ac2ff1cb5656f2
2022-01-26 06:10:40 +00:00
Yi Kong
3440d0d474 Merge "Sampling PGO deprecation" 2022-01-26 05:43:42 +00:00
Wei Li
c311b19b3a Merge "Add bp2build support for property "compressible" of apex module." am: a61dbd457e
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1956876

Change-Id: I09735ac7fed527429612fad76f79d0f0a93b4874
2022-01-26 01:52:44 +00:00