OSDN Git Service

android-x86/system-extras.git
6 years agoMerge "Use -Werror in system/extras"
Chih-hung Hsieh [Mon, 30 Oct 2017 20:53:28 +0000 (20:53 +0000)]
Merge "Use -Werror in system/extras"

6 years agoMerge "simpleperf: update demo."
Yabin Cui [Mon, 30 Oct 2017 17:17:38 +0000 (17:17 +0000)]
Merge "simpleperf: update demo."

6 years agosimpleperf: update demo.
Yabin Cui [Sat, 28 Oct 2017 01:23:08 +0000 (18:23 -0700)]
simpleperf: update demo.

1. Only add wrap.sh in app-profiling.apk, not affecting other build types.
2. Rebuild the apks by Android studio 3.0.

Bug: None.
Test: run test.py.
Change-Id: I8a1712143d60acddf696eab3d6058fdd834cc5b4

6 years agoMerge "simpleperf: test that hw counters can generate samples."
Yabin Cui [Sat, 28 Oct 2017 01:07:05 +0000 (01:07 +0000)]
Merge "simpleperf: test that hw counters can generate samples."

6 years agosimpleperf: test that hw counters can generate samples.
Yabin Cui [Fri, 27 Oct 2017 22:55:12 +0000 (15:55 -0700)]
simpleperf: test that hw counters can generate samples.

On some devices, hw counters are disabled by the bootloader
or the kernel. So add test to make sure they actually work.

Bug: http://b/68202044
Test: run simpleperf_unit_test.

Change-Id: Ief8b4448b572a5990240996d8f5f94138cd95b67

6 years agoMerge "simpleperf: fix scripts."
Yabin Cui [Wed, 25 Oct 2017 23:28:46 +0000 (23:28 +0000)]
Merge "simpleperf: fix scripts."

6 years agosimpleperf: fix scripts.
Yabin Cui [Wed, 25 Oct 2017 19:42:11 +0000 (12:42 -0700)]
simpleperf: fix scripts.

Fixed scripts based on test results on different platforms:

1. Decrease sample frequency from 4000 to 1000 when using
-g option. Because using -f 4000 sometimes makes a high
loss rate >= 50%.

2. Use kill when am force-stop can't kill the app process,
this happens when testing on Android N.

3. In app_profiler.py, only download native libs when
profiling an app.

4. Fix some small errors.

Bug: http://b/32834638
Test: run python test.py on linux/windows/darwin
Test: with Android N/O devices.
Change-Id: If8f7ab0195e87014c3ad4ab0d007d0eac8b6f528

6 years agoMerge "simpleperf: improve report html interface."
Yabin Cui [Wed, 25 Oct 2017 18:44:08 +0000 (18:44 +0000)]
Merge "simpleperf: improve report html interface."

6 years agoMerge "simpleperf: update simpleperf prebuilts to build 4416072."
Yabin Cui [Wed, 25 Oct 2017 17:56:44 +0000 (17:56 +0000)]
Merge "simpleperf: update simpleperf prebuilts to build 4416072."

6 years agoMerge "simpleperf: add a python class to wrap objdump."
Yabin Cui [Wed, 25 Oct 2017 17:56:14 +0000 (17:56 +0000)]
Merge "simpleperf: add a python class to wrap objdump."

6 years agosimpleperf: update simpleperf prebuilts to build 4416072.
Yabin Cui [Wed, 25 Oct 2017 17:17:26 +0000 (10:17 -0700)]
simpleperf: update simpleperf prebuilts to build 4416072.

Taken from branch aosp-master.

Bug: none.
Test: none.

Change-Id: I04580144aa450ec1320eee5739f996c0e0db1092

6 years agosimpleperf: add a python class to wrap objdump.
Yabin Cui [Tue, 24 Oct 2017 23:24:53 +0000 (16:24 -0700)]
simpleperf: add a python class to wrap objdump.

Refactor the way to find tools.
Add Objdump class to disassemble code, and add test for it.

It is a preparation to show disassemble code in html interface.

Bug: http://b/66914187
Test: run test.py TestTools.
Change-Id: I35bc5de605422c60da2457f793d3904ccb770a67

6 years agoMerge "simpleperf: fix unit test."
Yabin Cui [Tue, 24 Oct 2017 03:52:13 +0000 (03:52 +0000)]
Merge "simpleperf: fix unit test."
am: bee9bac65f

Change-Id: Ic4fd3dd53843d206a2537137049888d1ffb61c01

6 years agoMerge "simpleperf: fix unit test."
Treehugger Robot [Tue, 24 Oct 2017 03:48:37 +0000 (03:48 +0000)]
Merge "simpleperf: fix unit test."

6 years agosimpleperf: improve report html interface.
Yabin Cui [Tue, 24 Oct 2017 01:04:38 +0000 (18:04 -0700)]
simpleperf: improve report html interface.

1. Store record data in a json script element.
2. Simplify the title of SampleTableTab.
3. Split the logic selecting how to show sample weight
   in a separate class FunctionSampleWeightSelectorView.
   And provide a sampleWeightFunction instead of totalEventCount,
   which is more flexible.
4. Adjust the way to implement IIFE.

Bug: http://b/66914187
Test: run report_html.py manually.
Test: run test.py.

Change-Id: Ibfe221c74f15a554ad4f7be49801de7e5af95a86

6 years agosimpleperf: fix unit test.
Yabin Cui [Mon, 23 Oct 2017 19:02:28 +0000 (12:02 -0700)]
simpleperf: fix unit test.

Because libevent changes from using CLOCK_MONOTONIC to
CLOCK_MONOTONIC_COARSE by default.

Bug: http://b/68057582
Test: run simpleperf_unit_test.

Change-Id: Ic463df9588816e190a10ab601cbb97be66eecebd

6 years agoMerge "simpleperf: Add a python class to wrap addr2line."
Yabin Cui [Mon, 23 Oct 2017 20:59:16 +0000 (20:59 +0000)]
Merge "simpleperf: Add a python class to wrap addr2line."
am: 94820f046a

Change-Id: I9ac1070f0bc69aa9bb99cb2456f506dc930e5985

6 years agoMerge "simpleperf: Add a python class to wrap addr2line."
Treehugger Robot [Mon, 23 Oct 2017 20:45:33 +0000 (20:45 +0000)]
Merge "simpleperf: Add a python class to wrap addr2line."

6 years agosimpleperf: Add a python class to wrap addr2line.
Yabin Cui [Wed, 18 Oct 2017 23:19:16 +0000 (16:19 -0700)]
simpleperf: Add a python class to wrap addr2line.

addr2line doesn't generate line info for instructions without a
matching statement. So build a class called Addr2NearestLine
to overcome this.
Also add test for it.

It is a preparation to show annotated source code in html interface.

Bug: http://b/66914187
Test: run test.py TestTools.

Change-Id: I70f8d99ffc7c25bca17a01469e21f16a7bdd04c5

6 years agoUse -Werror in system/extras
Chih-Hung Hsieh [Wed, 18 Oct 2017 23:28:14 +0000 (16:28 -0700)]
Use -Werror in system/extras

* Remove unused variables.
* Fix redefined macro warnings.
* Fix sign-compare warnings.
* Fix 'return false' in main().
* Keep existing warnings to fix later.

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: Ib92ef5297693595fb84ed4f8e61665bda4cee312

6 years agoMerge "Don't abort on errors"
Colin Cross [Fri, 20 Oct 2017 21:34:22 +0000 (21:34 +0000)]
Merge "Don't abort on errors"
am: d7bf23ae7b

Change-Id: Ib066b4a41e4fdc075d6e39c8a1cfaa252eecc769

6 years agoMerge "Don't abort on errors"
Treehugger Robot [Fri, 20 Oct 2017 21:27:59 +0000 (21:27 +0000)]
Merge "Don't abort on errors"

6 years agoMerge "simpleperf: update simpleperf prebuilts to build 4407837."
Yabin Cui [Fri, 20 Oct 2017 21:20:54 +0000 (21:20 +0000)]
Merge "simpleperf: update simpleperf prebuilts to build 4407837."
am: fc27a984cd

Change-Id: Ib10e83534a29f6a38c71ea093e468bc83d12eb73

6 years agoMerge "simpleperf: update simpleperf prebuilts to build 4407837."
Treehugger Robot [Fri, 20 Oct 2017 21:13:42 +0000 (21:13 +0000)]
Merge "simpleperf: update simpleperf prebuilts to build 4407837."

6 years agosimpleperf: update simpleperf prebuilts to build 4407837.
Yabin Cui [Fri, 20 Oct 2017 18:15:03 +0000 (11:15 -0700)]
simpleperf: update simpleperf prebuilts to build 4407837.

Taken from branch aosp-master.

Bug: None
Test: run test.py.

Change-Id: I39efd144ffb96fd1eded740d86397a9c5b1d9b6e

6 years agoDon't abort on errors
Colin Cross [Fri, 20 Oct 2017 17:17:35 +0000 (10:17 -0700)]
Don't abort on errors

LOG(FATAL) triggers an abort which produces an unhelpful stack
trace in logcat.  Use LOG(ERROR) and propagate the failure to
a normal task exit.

Bug: 68040531
Test: manual
Change-Id: Iaaa0c3406c637d985065cbe58a8a160b72e1f6da

6 years agoMerge "Add libunwindstack to dependencies."
Christopher Ferris [Thu, 19 Oct 2017 20:12:13 +0000 (20:12 +0000)]
Merge "Add libunwindstack to dependencies."
am: c4176b6a48

Change-Id: I022f1a2912763239eab0868de0ccd38c22352cc3

6 years agoMerge "Add libunwindstack to dependencies."
Christopher Ferris [Thu, 19 Oct 2017 20:03:51 +0000 (20:03 +0000)]
Merge "Add libunwindstack to dependencies."

6 years agoAdd libunwindstack to dependencies.
Christopher Ferris [Wed, 18 Oct 2017 22:17:04 +0000 (15:17 -0700)]
Add libunwindstack to dependencies.

Test: Builds.
Change-Id: I22f5bd8c4dec121939a8b3ef43fb6a363daf0ca8

6 years agoMerge "ext4_utils: make file system image reproducible"
Jin Qian [Wed, 18 Oct 2017 18:05:28 +0000 (18:05 +0000)]
Merge "ext4_utils: make file system image reproducible"
am: 7bf880c2d0

Change-Id: I04bb5d246f532ee9c55dee6f746f3f220d126274

6 years agoMerge "simpleperf: export symbol_len in report lib interface."
Yabin Cui [Wed, 18 Oct 2017 18:05:09 +0000 (18:05 +0000)]
Merge "simpleperf: export symbol_len in report lib interface."
am: 7f5a607ef9

Change-Id: I36e55fb40c0edb5896b09f515c22403fdf4aaf91

6 years agoMerge "ext4_utils: make file system image reproducible"
Treehugger Robot [Wed, 18 Oct 2017 17:20:00 +0000 (17:20 +0000)]
Merge "ext4_utils: make file system image reproducible"

6 years agoMerge "simpleperf: export symbol_len in report lib interface."
Yabin Cui [Wed, 18 Oct 2017 17:19:44 +0000 (17:19 +0000)]
Merge "simpleperf: export symbol_len in report lib interface."

6 years agosimpleperf: export symbol_len in report lib interface.
Yabin Cui [Wed, 18 Oct 2017 00:46:24 +0000 (17:46 -0700)]
simpleperf: export symbol_len in report lib interface.

It helps to set the range of a function when annotating source code
and disassemble code.

Also add comments in simpleperf_report_lib.py to make the meaning
of the structures clear.

Bug: http://b/66914187
Test: run test.py TestReportLib.
Change-Id: I1be996df8062ddb6759e9f98e0400f3a4df7efb6

6 years agoMerge "Use -Werror in system/extras/tests"
Chih-hung Hsieh [Tue, 17 Oct 2017 18:01:30 +0000 (18:01 +0000)]
Merge "Use -Werror in system/extras/tests"
am: 0bc040a8cb

Change-Id: I3a586b26e4b59f469fb265f7649f4303f0e0b6d7

6 years agoMerge "Use -Werror in system/extras/tests"
Chih-hung Hsieh [Tue, 17 Oct 2017 17:54:43 +0000 (17:54 +0000)]
Merge "Use -Werror in system/extras/tests"

6 years agoext4_utils: make file system image reproducible
Jin Qian [Tue, 29 Aug 2017 00:28:49 +0000 (17:28 -0700)]
ext4_utils: make file system image reproducible

Add flags to set filesystem uuid, hash_seed and mke2fs time.

Bug: 64994964
Change-Id: I38369a3a9dfffefead11c4b8fdd1e6984e61b938
(cherry picked from commit 407a7de4c499ede24dbbeb22d2efe6490a974b0d)

6 years agoUse -Werror in system/extras/tests
Chih-Hung Hsieh [Mon, 16 Oct 2017 18:23:50 +0000 (11:23 -0700)]
Use -Werror in system/extras/tests

* Remove unused local variable.

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I759429de1807ae63988d80b563ee3345e5fe5e99

6 years agoMerge "simpleperf: fix help msg."
Yabin Cui [Sun, 15 Oct 2017 03:49:31 +0000 (03:49 +0000)]
Merge "simpleperf: fix help msg."
am: 9179b91e6a

Change-Id: Ibb6812efa6e0eabf1f100c45350085ac5f7480e4

6 years agoMerge "simpleperf: add function comment."
Yabin Cui [Sun, 15 Oct 2017 03:49:13 +0000 (03:49 +0000)]
Merge "simpleperf: add function comment."
am: a5e9ad2074

Change-Id: I08f5876fe8e6ff94d0efaf0dab040db437dfc3ee

6 years agoMerge "build_verity_metadata.py: allow disabling verity"
Bowgo Tsai [Sun, 15 Oct 2017 02:48:41 +0000 (02:48 +0000)]
Merge "build_verity_metadata.py: allow disabling verity"
am: 98bacf6d6c

Change-Id: I32d6ea5425898d54ea1d59ab673681414304de83

6 years agoMerge "simpleperf: fix help msg."
Treehugger Robot [Fri, 13 Oct 2017 19:10:40 +0000 (19:10 +0000)]
Merge "simpleperf: fix help msg."

6 years agosimpleperf: fix help msg.
Yabin Cui [Fri, 13 Oct 2017 17:28:06 +0000 (10:28 -0700)]
simpleperf: fix help msg.

Bug: http://b/66914187
Test: run inferno.sh -h.
Change-Id: I8dc5a69ab585fcb10506b969398b745057e408d8

6 years agoMerge "simpleperf: add function comment."
Yabin Cui [Fri, 13 Oct 2017 16:26:51 +0000 (16:26 +0000)]
Merge "simpleperf: add function comment."

6 years agoMerge "build_verity_metadata.py: allow disabling verity"
Treehugger Robot [Fri, 13 Oct 2017 03:39:21 +0000 (03:39 +0000)]
Merge "build_verity_metadata.py: allow disabling verity"

6 years agosimpleperf: add function comment.
Yabin Cui [Fri, 13 Oct 2017 00:45:49 +0000 (17:45 -0700)]
simpleperf: add function comment.

Bug: http://b/66914187
Test: run inferno.
Change-Id: Ia6504f661ef137fffb1e4622e1d8ff0eaf816ebc

6 years agoMerge "simpleperf: speed up inferno."
Yabin Cui [Fri, 13 Oct 2017 00:25:22 +0000 (00:25 +0000)]
Merge "simpleperf: speed up inferno."
am: 3688a26a56

Change-Id: I0509db08d888690bb0b334840b8b62211095a9e8

6 years agoMerge "simpleperf: speed up inferno."
Treehugger Robot [Fri, 13 Oct 2017 00:23:22 +0000 (00:23 +0000)]
Merge "simpleperf: speed up inferno."

6 years agosimpleperf: speed up inferno.
Yabin Cui [Thu, 12 Oct 2017 21:58:28 +0000 (14:58 -0700)]
simpleperf: speed up inferno.

1. Add --min_callchain_percentage option. This threshold is used to trim
unimportant callchains. This avoids too much time generating the report
when processing millions of samples.

2. Improve some bottleneck places shown in cProfile.

Bug: 66914187
Test: run test.py.
Change-Id: I64347ee3c32813166736ebde699cbed8b129183d

6 years agoMerge "Add space in error message."
Nicolas Geoffray [Thu, 12 Oct 2017 17:16:48 +0000 (17:16 +0000)]
Merge "Add space in error message."
am: 2bed78e95e

Change-Id: Id2caa03b118dbcf412539d1f3aad782b11a78579

6 years agoMerge "Add space in error message."
Treehugger Robot [Thu, 12 Oct 2017 17:12:34 +0000 (17:12 +0000)]
Merge "Add space in error message."

6 years agoAdd space in error message.
Nicolas Geoffray [Thu, 12 Oct 2017 12:42:48 +0000 (13:42 +0100)]
Add space in error message.

Test: build and simpleperf non debuggable app.
Change-Id: I85970769648301f0bb53a1d08a9ca64b1aa58e52

6 years agoMerge "Add missing includes."
Dan Albert [Thu, 12 Oct 2017 00:30:44 +0000 (00:30 +0000)]
Merge "Add missing includes."
am: 3f822c189e

Change-Id: I70a81e3cb0aa299dfe4eb608293a144ea1b8a5eb

6 years agoMerge "Add missing includes."
Treehugger Robot [Thu, 12 Oct 2017 00:17:16 +0000 (00:17 +0000)]
Merge "Add missing includes."

6 years agoAdd missing includes.
Dan Albert [Wed, 11 Oct 2017 18:41:57 +0000 (11:41 -0700)]
Add missing includes.

Test: mma
Bug: None
Merged-In: I0b22dd6c4150adaceb840f5624973b13eec12f42
Change-Id: I0b22dd6c4150adaceb840f5624973b13eec12f42

6 years agoMerge "Port libtestUtil to use Android.bp"
Courtney Goeltzenleuchter [Wed, 11 Oct 2017 14:25:45 +0000 (14:25 +0000)]
Merge "Port libtestUtil to use Android.bp"
am: 700c1b0b57  -s ours

Change-Id: I8661abf7f50b36322e085852aac54e419cc75fb8

6 years agoMerge "Port libtestUtil to use Android.bp"
Courtney Goeltzenleuchter [Wed, 11 Oct 2017 14:14:04 +0000 (14:14 +0000)]
Merge "Port libtestUtil to use Android.bp"

6 years agobuild_verity_metadata.py: allow disabling verity
Bowgo Tsai [Wed, 11 Oct 2017 08:35:25 +0000 (16:35 +0800)]
build_verity_metadata.py: allow disabling verity

Allowing building metadata with the "VOFF" magic, for ENG builds to
disable dm-verity by default. The resulting metadata is the same as
triggering an "adb disable-verity" on an USERDEBUG image.

With this, fs_mgr doesn't need to know whether it's an ENG build and
can rely on the magic to know it should enable dm-verity or not.

Bug: 63056044
Test: boot sailfish eng/userdebug builds
Change-Id: Ie81de372aa057f3aafa0eb571b460e73aa5eb375

6 years agoPort libtestUtil to use Android.bp
Courtney Goeltzenleuchter [Fri, 5 May 2017 23:00:46 +0000 (17:00 -0600)]
Port libtestUtil to use Android.bp

Test: make
Bug: 29940137
Merged-In: I24299722722e6fe0e5e1c81e9e0d9d3631e29984
Change-Id: I24299722722e6fe0e5e1c81e9e0d9d3631e29984
(cherry picked from commit 944e78cfaeef277bb3476a7df925c652dc5affa6)

6 years agoMerge "Fix SDK build"
Dan Willemsen [Sat, 7 Oct 2017 01:59:59 +0000 (01:59 +0000)]
Merge "Fix SDK build"
am: 909fab2235

Change-Id: I78288d9488e7de354ed0bee1892745434261816a

6 years agoMerge "Fix SDK build"
Dan Willemsen [Sat, 7 Oct 2017 01:54:43 +0000 (01:54 +0000)]
Merge "Fix SDK build"

6 years agoFix SDK build
Dan Willemsen [Sat, 7 Oct 2017 01:52:17 +0000 (18:52 -0700)]
Fix SDK build

Test: m out/host/linux-x86/obj/PACKAGING/simplerperf_script_intermediates/simpleperf_script.zip
Change-Id: Ia45db80e0ee6db5a413817fc85c9498357c085ab

6 years agoMerge "simpleperf: add html report interface."
Yabin Cui [Sat, 7 Oct 2017 00:43:01 +0000 (00:43 +0000)]
Merge "simpleperf: add html report interface."
am: e6a6482659

Change-Id: Ica7de55be7036174ff7a128032339261487914e7

6 years agoMerge "simpleperf: add html report interface."
Yabin Cui [Sat, 7 Oct 2017 00:36:43 +0000 (00:36 +0000)]
Merge "simpleperf: add html report interface."

6 years agosimpleperf: add html report interface.
Yabin Cui [Tue, 29 Aug 2017 00:23:36 +0000 (17:23 -0700)]
simpleperf: add html report interface.

Also remove unnecessary dependency of jquery/jqueryui in inferno.

Bug: http://b/66914187
Test: manually run report_html.py.
Test: run test.py.

Change-Id: I963e05df0c38aa6a10a7ca53f77871efca9f2719

6 years agoMerge "simpleperf: fix --group option."
Yabin Cui [Fri, 6 Oct 2017 01:59:52 +0000 (01:59 +0000)]
Merge "simpleperf: fix --group option."
am: ac07d6eb1e

Change-Id: I9130646f7549cb707573f37d07ff61ecc3682a45

6 years agoMerge "simpleperf: fix --group option."
Treehugger Robot [Fri, 6 Oct 2017 01:49:17 +0000 (01:49 +0000)]
Merge "simpleperf: fix --group option."

6 years agosimpleperf: fix --group option.
Yabin Cui [Thu, 5 Oct 2017 22:18:20 +0000 (15:18 -0700)]
simpleperf: fix --group option.

Bug: None.
Test: simpleperf_unit_test.
Change-Id: I970e52481e63757a37ef3aa51a724d3dba7de6f2

6 years agoMerge "Fix mac build."
Andreas Huber [Tue, 3 Oct 2017 19:28:59 +0000 (19:28 +0000)]
Merge "Fix mac build."
am: 5da045dc1a

Change-Id: Ie180a5c81a6d8f43bb2e100590e3c1b27ac8b89c

6 years agoMerge "Fix mac build."
Treehugger Robot [Tue, 3 Oct 2017 19:20:29 +0000 (19:20 +0000)]
Merge "Fix mac build."

6 years agoMerge "Allow -Wformat warnings before they are all fixed."
Chih-hung Hsieh [Tue, 3 Oct 2017 19:13:19 +0000 (19:13 +0000)]
Merge "Allow -Wformat warnings before they are all fixed."
am: 01a2d12df3

Change-Id: Ic1d9b840218dc7dee230c500f272fcad75522b0f

6 years agoMerge "Allow -Wformat warnings before they are all fixed."
Chih-hung Hsieh [Tue, 3 Oct 2017 19:04:36 +0000 (19:04 +0000)]
Merge "Allow -Wformat warnings before they are all fixed."

6 years agoAllow -Wformat warnings before they are all fixed.
Chih-Hung Hsieh [Tue, 3 Oct 2017 18:59:15 +0000 (11:59 -0700)]
Allow -Wformat warnings before they are all fixed.

Bug: 66996870
Test: build with WITH_TIDY=1

Change-Id: I4ad2d974e3dfe196837266c5017a3360be435e9e

6 years agoFix mac build.
Andreas Huber [Tue, 3 Oct 2017 16:50:39 +0000 (09:50 -0700)]
Fix mac build.

"u64" is either an unsigned long (in __LP64__ builds) or
an unsigned long long (otherwise). This CL adds a format string
"PRIext4u64" to be used in place of "PRIu64" when referring to a
variable of type "u64".

related-to-build
Test: make

Change-Id: I6ef911dda3ebdcc0f895c54325b8a82b57a62ee6

6 years agoMerge "Use -Werror in system/extras"
Chih-hung Hsieh [Tue, 3 Oct 2017 15:31:56 +0000 (15:31 +0000)]
Merge "Use -Werror in system/extras"
am: 560b2196d5

Change-Id: Ib27445c71318d6aa11cf99b48aeb180529d7e11a

6 years agoMerge "Use -Werror in system/extras"
Chih-hung Hsieh [Tue, 3 Oct 2017 15:26:07 +0000 (15:26 +0000)]
Merge "Use -Werror in system/extras"

6 years agoMerge "Rename target.linux[_x86[_64]] to target.linux_glibc[_x86[_64]]"
Dan Willemsen [Tue, 3 Oct 2017 03:04:17 +0000 (03:04 +0000)]
Merge "Rename target.linux[_x86[_64]] to target.linux_glibc[_x86[_64]]"
am: 0d699ab3d2

Change-Id: Ic4ee82a22a3b3167b0a43f20965fb452ce667fc3

6 years agoMerge "Rename target.linux[_x86[_64]] to target.linux_glibc[_x86[_64]]"
Dan Willemsen [Tue, 3 Oct 2017 02:30:06 +0000 (02:30 +0000)]
Merge "Rename target.linux[_x86[_64]] to target.linux_glibc[_x86[_64]]"

6 years agoUse -Werror in system/extras
Chih-Hung Hsieh [Mon, 2 Oct 2017 22:06:37 +0000 (15:06 -0700)]
Use -Werror in system/extras

* Use system-extras-cflags-defaults
* Move -Wall -Werror from cppflags to cflags
* fix warning on redefinition of MAX_PATH

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: Ib14b4d8eece767225a6fef639ed190b343678c00

6 years agoRename target.linux[_x86[_64]] to target.linux_glibc[_x86[_64]]
Dan Willemsen [Mon, 2 Oct 2017 17:41:11 +0000 (10:41 -0700)]
Rename target.linux[_x86[_64]] to target.linux_glibc[_x86[_64]]

In the future, target.linux will apply to all targets running a linux kernel
(android, linux_glibc, linux_bionic). So move all current users to the specific
linux_glibc.

There will be another cleanup pass later that will move some instances back to
target.linux if the properties should be shared with target.android and
target.linux_bionic, but target.linux needs to be removed first.

Test: out/soong/build.ninja identical before/after
Change-Id: I79c638f0e5d0db86f14cb62209ece9166ebe8585
Exempt-From-Owner-Approval: build system cleanup

6 years agoMerge "Remove default libraries"
Dan Willemsen [Fri, 29 Sep 2017 21:53:24 +0000 (21:53 +0000)]
Merge "Remove default libraries"
am: 6c6b05c47a

Change-Id: I16e9d8a83b44453c625b3a8929f36b93161fba9d

6 years agoMerge "Remove default libraries"
Treehugger Robot [Fri, 29 Sep 2017 21:40:42 +0000 (21:40 +0000)]
Merge "Remove default libraries"

6 years agoMerge "Add libbase as a dependency for slideshow"
Tianjie Xu [Fri, 29 Sep 2017 17:40:04 +0000 (17:40 +0000)]
Merge "Add libbase as a dependency for slideshow"
am: e57830b20a

Change-Id: I46c7aac9e9c10f1590a04849c19edae958f72c0b

6 years agoMerge "Add libbase as a dependency for slideshow"
Tianjie Xu [Fri, 29 Sep 2017 17:34:20 +0000 (17:34 +0000)]
Merge "Add libbase as a dependency for slideshow"

6 years agoMerge "boot_control_copy: switching to C++"
Bowgo Tsai [Fri, 29 Sep 2017 08:37:08 +0000 (08:37 +0000)]
Merge "boot_control_copy: switching to C++"
am: 512f4b15b2

Change-Id: I9108edc16309282d6d57e709241389245663565d

6 years agoMerge "boot_control_copy: switching to C++"
Treehugger Robot [Fri, 29 Sep 2017 06:47:27 +0000 (06:47 +0000)]
Merge "boot_control_copy: switching to C++"

6 years agoRemove default libraries
Dan Willemsen [Fri, 29 Sep 2017 00:13:50 +0000 (17:13 -0700)]
Remove default libraries

libdl is part of system_shared_libs now. -ldl -lpthread -lm are now defaults
for host_ldlibs on Linux and Darwin. -lrt is a default for host_ldlibs on
Linux.

Test: m host
Test: mmma system/extras
Change-Id: I190f2f987392cd21275821645361adc19053c907
Exempt-From-Owner-Approval: build system cleanup

6 years agoMerge "Rename libz-host -> libz"
Dan Willemsen [Thu, 28 Sep 2017 22:57:49 +0000 (22:57 +0000)]
Merge "Rename libz-host -> libz"
am: 52e2821359

Change-Id: I1d462077904d8303b763dae78b69f77b5eff6efa

6 years agoMerge "Rename libz-host -> libz"
Dan Willemsen [Thu, 28 Sep 2017 20:57:43 +0000 (20:57 +0000)]
Merge "Rename libz-host -> libz"

6 years agoAdd libbase as a dependency for slideshow
Tianjie Xu [Thu, 28 Sep 2017 20:49:33 +0000 (13:49 -0700)]
Add libbase as a dependency for slideshow

libminui now depends on libbase

Bug: 67010912
Test: mma
Change-Id: Id12d1641b7d249e63ffd3b23d175aec6fa5ac334

6 years agoboot_control_copy: switching to C++
Bowgo Tsai [Thu, 28 Sep 2017 07:18:37 +0000 (15:18 +0800)]
boot_control_copy: switching to C++

fs_mgr_get_entry_for_mount_point() is switching to a C++ only API (using
std::string). Do a minimum conversion here to adopt that change.

Bug: 67024518
Test: make and boot sailfish
Change-Id: I191fd0043815d75a799eb4001437abb107af6e79

6 years agoRename libz-host -> libz
Dan Willemsen [Wed, 27 Sep 2017 23:26:36 +0000 (16:26 -0700)]
Rename libz-host -> libz

Test: m host
Change-Id: I26c41cd885f9a48bb1c02bbd269c3f61f3c4dbdb

6 years agoMerge "simpleperf: minor fix in report_sample.proto field"
Amaury Medeiros [Wed, 27 Sep 2017 17:10:31 +0000 (17:10 +0000)]
Merge "simpleperf: minor fix in report_sample.proto field"
am: 4f613859c8

Change-Id: Id0e72bb379f68bc41d75b3f9d77fcab76ad03471

6 years agoMerge "simpleperf: minor fix in report_sample.proto field"
Amaury Medeiros [Wed, 27 Sep 2017 17:06:33 +0000 (17:06 +0000)]
Merge "simpleperf: minor fix in report_sample.proto field"

6 years agosimpleperf: minor fix in report_sample.proto field
Amaury Medeiros [Wed, 27 Sep 2017 12:28:53 +0000 (13:28 +0100)]
simpleperf: minor fix in report_sample.proto field

Test: run simpleperf_unit_test.
Change-Id: Ia42ce4c267ddae3640666f73f4a002c88429cb8e

6 years agoMerge "simpleperf: update simpleperf prebuilts to build 4360250."
Yabin Cui [Tue, 26 Sep 2017 22:35:30 +0000 (22:35 +0000)]
Merge "simpleperf: update simpleperf prebuilts to build 4360250."
am: 6b369241f1

Change-Id: Id03e307c652c63daacea22a999e6911c858542cc

6 years agoMerge "simpleperf: update simpleperf prebuilts to build 4360250."
Yabin Cui [Tue, 26 Sep 2017 22:28:56 +0000 (22:28 +0000)]
Merge "simpleperf: update simpleperf prebuilts to build 4360250."

6 years agosimpleperf: update simpleperf prebuilts to build 4360250.
Yabin Cui [Tue, 26 Sep 2017 17:23:26 +0000 (10:23 -0700)]
simpleperf: update simpleperf prebuilts to build 4360250.

Taken from branch aosp-master.

Bug: http://b/66914187
Test: none.

Change-Id: I31779df7d25c5f7210a2aaa85b4d4200d4972a89

6 years agoMerge "inferno: support building embedded flamegraph."
Yabin Cui [Tue, 26 Sep 2017 17:24:31 +0000 (17:24 +0000)]
Merge "inferno: support building embedded flamegraph."
am: 9cc31b876f

Change-Id: I4f6dec36cdfa11d0db51ef94d632790e06f25687

6 years agoMerge "inferno: support building embedded flamegraph."
Yabin Cui [Tue, 26 Sep 2017 17:17:03 +0000 (17:17 +0000)]
Merge "inferno: support building embedded flamegraph."