OSDN Git Service

android-x86/system-extras.git
4 years agoMerge "simpleperf: update building prebuilts."
Yabin Cui [Tue, 20 Aug 2019 21:02:17 +0000 (14:02 -0700)]
Merge "simpleperf: update building prebuilts."
am: d1df579357

Change-Id: Ic38640eccc732b298b94ab4f6b5a49a307f441bf

4 years agoMerge "simpleperf: update building prebuilts."
Yabin Cui [Tue, 20 Aug 2019 20:23:09 +0000 (20:23 +0000)]
Merge "simpleperf: update building prebuilts."

4 years agosimpleperf: update building prebuilts.
Yabin Cui [Tue, 20 Aug 2019 17:32:56 +0000 (10:32 -0700)]
simpleperf: update building prebuilts.

1. add simpleperf_scripts in simpleperf dist build.
2. remove simpleperf in sdk,win_sdk dist build.

Bug: none
Test: run build/soong/soong_ui.bash --make-mode
Test: MODULES-IN-system-extras-simpleperf dist
Test: TARGET_PRODUCT=aosp_arm64 simpleperf
Change-Id: Ica63c106b67d3ec7400c0f7148fd78f65d6d16c3

4 years agoMerge "simpleperf: update simpleperf prebuilts to build 5806936."
Yabin Cui [Mon, 19 Aug 2019 20:29:47 +0000 (13:29 -0700)]
Merge "simpleperf: update simpleperf prebuilts to build 5806936."
am: e2af8d6b15

Change-Id: I831e836071fce2cb5332cd30a94025c96a8a0744

4 years agoMerge "simpleperf: update simpleperf prebuilts to build 5806936."
Yabin Cui [Mon, 19 Aug 2019 19:24:11 +0000 (19:24 +0000)]
Merge "simpleperf: update simpleperf prebuilts to build 5806936."

4 years agosimpleperf: update simpleperf prebuilts to build 5806936.
Yabin Cui [Fri, 16 Aug 2019 18:00:22 +0000 (11:00 -0700)]
simpleperf: update simpleperf prebuilts to build 5806936.

Taken from branch aosp-simpleperf-release.

Bug: none
Test: run test.py on Android master/Q/P/O/N.

Change-Id: Ib527b0ba17f8c583359e157198b5b93fdac88c45

4 years agoMerge "simpleperf: Update apks for testing ApiProfiler."
Yabin Cui [Fri, 16 Aug 2019 18:26:47 +0000 (11:26 -0700)]
Merge "simpleperf: Update apks for testing ApiProfiler."
am: 3c9e6a09ca

Change-Id: I801bed79640c429244a929bcfe35afe850ba5d26

4 years agoMerge "simpleperf: Update apks for testing ApiProfiler."
Yabin Cui [Fri, 16 Aug 2019 17:52:36 +0000 (17:52 +0000)]
Merge "simpleperf: Update apks for testing ApiProfiler."

4 years agosimpleperf: Update apks for testing ApiProfiler.
Yabin Cui [Fri, 16 Aug 2019 17:48:54 +0000 (10:48 -0700)]
simpleperf: Update apks for testing ApiProfiler.

The previous apks has error in sdk version setting, thus
fail to install on master.

Bug: none
Test: run test.py TestApiProfiler.* on master/Q/P/O/N.
Change-Id: I6ef7eabcc0602147b0aa31dc9b3d5bac616e1e83

4 years agoMerge "Add new traces."
Christopher Ferris [Thu, 15 Aug 2019 14:41:19 +0000 (07:41 -0700)]
Merge "Add new traces."
am: 3b4faa69d0

Change-Id: I0eeaec19946a31fb004e936fb3f3a02df4cd3c97

4 years agoMerge "Add new traces."
Christopher Ferris [Thu, 15 Aug 2019 14:17:49 +0000 (14:17 +0000)]
Merge "Add new traces."

4 years agoAdd new traces.
Christopher Ferris [Wed, 14 Aug 2019 22:10:13 +0000 (15:10 -0700)]
Add new traces.

Updates included:
- Adding traces from a few games and one top app (Angry Birds2, Candy Crush,
  Pubg, Google Photos).
- Change the dumps directory to traces to use a better name.
- Add new traces to TraceBenchmark.cpp.
- Add a TRACES file that includes information about how the trace files
  were collected.

Test: Unit tests pass.
Test: Ran the trace benchmarks.

Change-Id: I8d60db23cf78dd31977bb81d29749c06e1df354d

5 years agoMerge "Fix test broken by PSS to RSS change."
Christopher Ferris [Fri, 9 Aug 2019 15:47:29 +0000 (08:47 -0700)]
Merge "Fix test broken by PSS to RSS change."
am: c0dabf28ca

Change-Id: I0448f6455c48b166c59887716c5c1a11eff40692

5 years agoMerge "Fix test broken by PSS to RSS change."
Christopher Ferris [Fri, 9 Aug 2019 15:36:07 +0000 (15:36 +0000)]
Merge "Fix test broken by PSS to RSS change."

5 years agoMerge "simpleperf: add --aux-buffer-size in record cmd."
Yabin Cui [Fri, 9 Aug 2019 01:04:17 +0000 (18:04 -0700)]
Merge "simpleperf: add --aux-buffer-size in record cmd."
am: f36aa2b28a

Change-Id: Ifac3113a2ba15fa0cb45d9afc8eaa88851286c99

5 years agoMerge "simpleperf: add --aux-buffer-size in record cmd."
Yabin Cui [Fri, 9 Aug 2019 00:36:16 +0000 (00:36 +0000)]
Merge "simpleperf: add --aux-buffer-size in record cmd."

5 years agoFix test broken by PSS to RSS change.
Christopher Ferris [Thu, 8 Aug 2019 22:07:36 +0000 (15:07 -0700)]
Fix test broken by PSS to RSS change.

Also, make the tests isolated and remove the suffix on the unit
test executable.

Bug: 138394907

Test: Unit tests pass now.
Change-Id: Iefe0e1738a2c9eda5cc220c55dfd91e4ff0e5a5f

5 years agosimpleperf: add --aux-buffer-size in record cmd.
Yabin Cui [Sat, 3 Aug 2019 00:12:28 +0000 (17:12 -0700)]
simpleperf: add --aux-buffer-size in record cmd.

Bug: 135204414
Test: run simpleperf_unit_test.
Change-Id: I6baee8a2b178a374e446e0da4792eb9287bba6b1

5 years agoMerge "simpleperf: add AuxRecord and AUXTRACE feature section."
Yabin Cui [Thu, 8 Aug 2019 20:21:24 +0000 (13:21 -0700)]
Merge "simpleperf: add AuxRecord and AUXTRACE feature section."
am: 0ac62db142

Change-Id: Ia0dd643f87a7766eeab034f44236e86ebcc02cf7

5 years agoMerge "simpleperf: add AuxRecord and AUXTRACE feature section."
Treehugger Robot [Thu, 8 Aug 2019 19:58:25 +0000 (19:58 +0000)]
Merge "simpleperf: add AuxRecord and AUXTRACE feature section."

5 years agosimpleperf: add AuxRecord and AUXTRACE feature section.
Yabin Cui [Fri, 2 Aug 2019 18:35:38 +0000 (11:35 -0700)]
simpleperf: add AuxRecord and AUXTRACE feature section.

In the kernel, each time generating a block of etm data, it also
generates a PERF_RECORD_AUX record. An Aux record contains a timestamp
showing when a block of etm data is generated. It can be used to
synchronize etm data with other records (like mmap and comm records).

So we want to parse etm data each time seeing an Aux record (as in dump
cmd). It needs to know etm data locations in perf.data without reading
the whole file. To fulfill that, this CL also adds AUXTRACE feature section,
in the same format as in linux perf.

Also dump AUX records and their corresponding etm data in dump cmd.

Bug: 135204414
Test: run simpleperf_unit_test.
Test: run `simpleperf record -e cs-etm xxx` && `perf report -D --stdio`.

Change-Id: Ifae716a10fefe0f3d4822a0214384b40ada9da45

5 years agoMerge "Change from PSS to RSS."
Christopher Ferris [Thu, 8 Aug 2019 01:48:21 +0000 (18:48 -0700)]
Merge "Change from PSS to RSS."
am: 87062f382d

Change-Id: Ibb7cb2927b699d909aa0afe08966f1f37e279698

5 years agoMerge "Change from PSS to RSS."
Christopher Ferris [Thu, 8 Aug 2019 01:25:23 +0000 (01:25 +0000)]
Merge "Change from PSS to RSS."

5 years agoChange from PSS to RSS.
Christopher Ferris [Wed, 7 Aug 2019 21:31:25 +0000 (14:31 -0700)]
Change from PSS to RSS.

In practice, PSS and RSS should be the same for this test, but what
we are really measuring is RSS, so display it as such.

Bug: 138394907

Test: Ran memory_replay32/64 and verified that new RSS is the same as
Test: old version that used PSS.
Change-Id: Ida92e4551f5b58729cd699bc9a296d324483daae

5 years agoMerge "simpleperf: fix report_html.py."
Yabin Cui [Sat, 3 Aug 2019 00:22:36 +0000 (17:22 -0700)]
Merge "simpleperf: fix report_html.py."
am: fe6f4fa2ad

Change-Id: Ieabe6d4a1f21b87962537d5b323fccc0ce920e9a

5 years agoMerge "simpleperf: fix report_html.py."
Yabin Cui [Sat, 3 Aug 2019 00:06:01 +0000 (00:06 +0000)]
Merge "simpleperf: fix report_html.py."

5 years agoMerge "libfscrypt: Remove an unused variable"
Vic Yang [Fri, 2 Aug 2019 23:47:32 +0000 (16:47 -0700)]
Merge "libfscrypt: Remove an unused variable"
am: a596802d39

Change-Id: I6554b3b5c144123fbf709db577191394d8a7b81c

5 years agosimpleperf: fix report_html.py.
Yabin Cui [Fri, 2 Aug 2019 23:31:40 +0000 (16:31 -0700)]
simpleperf: fix report_html.py.

report_html.py removes threads having too small percentage
of samples. But it doesn't remove processes having no threads,
which makes showing flamegraph broken.

Bug: none
Test: run test.py TestReportHtml.test_no_empty_process.
Change-Id: I3d568c98f0426a8ebbc9760dbc3c2bd25eda4c67

5 years agoMerge "libfscrypt: Remove an unused variable"
Treehugger Robot [Fri, 2 Aug 2019 23:05:22 +0000 (23:05 +0000)]
Merge "libfscrypt: Remove an unused variable"

5 years agolibfscrypt: Remove an unused variable
Vic Yang [Fri, 2 Aug 2019 20:40:51 +0000 (13:40 -0700)]
libfscrypt: Remove an unused variable

This is the only object in .bss in libfscrypt and it's unused, so it's
costing us 4KB for nothing.  Remove it.

Bug: 138856262
Test: objdump -h libfscrypt.so. Check .bss is gone.
Change-Id: Iac5eff45e28453f09d380c10a1818eb53ed2fe48

5 years agoMerge "simpleperf: support recording etm data in perf.data."
Yabin Cui [Thu, 1 Aug 2019 20:25:11 +0000 (13:25 -0700)]
Merge "simpleperf: support recording etm data in perf.data."
am: 9a3596488e

Change-Id: I50a35dff5b424ab13d56f1a8a7497c57f1d31114

5 years agoMerge "simpleperf: support recording etm data in perf.data."
Treehugger Robot [Thu, 1 Aug 2019 19:51:50 +0000 (19:51 +0000)]
Merge "simpleperf: support recording etm data in perf.data."

5 years agoMerge "Simpleperf: Add max_chain_length to pprof_proto_generator.py"
Andreas Gampe [Tue, 30 Jul 2019 16:32:17 +0000 (09:32 -0700)]
Merge "Simpleperf: Add max_chain_length to pprof_proto_generator.py"
am: 471bffe67d

Change-Id: I0896f0a18c086611c30b0840ef6f66c9aff3be72

5 years agoMerge "Simpleperf: Add max_chain_length to pprof_proto_generator.py"
Treehugger Robot [Tue, 30 Jul 2019 16:09:50 +0000 (16:09 +0000)]
Merge "Simpleperf: Add max_chain_length to pprof_proto_generator.py"

5 years agoSimpleperf: Add max_chain_length to pprof_proto_generator.py
Andreas Gampe [Mon, 29 Jul 2019 16:56:12 +0000 (09:56 -0700)]
Simpleperf: Add max_chain_length to pprof_proto_generator.py

Add an option to truncate very long callchains.

Test: m
Test: manual
Change-Id: I6892597f58bf6a8381b455c8f288b29f00a75f70

5 years agosimpleperf: support recording etm data in perf.data.
Yabin Cui [Thu, 25 Jul 2019 22:12:58 +0000 (15:12 -0700)]
simpleperf: support recording etm data in perf.data.

1. In event_fd.cpp, add functions to create aux buffer and read etm
data.
2. In record.h, Add AuxTraceRecord.
2. In RecordReadThread.cpp, wrap etm data into AuxTraceRecords.
3. Add logic to read and write AuxTraceRecords in perf.data.
4. Show recorded etm data size after recording.

Bug: 135204414
Test: run simpleperf_unit_test.
Change-Id: I3b20fe8f3c786f130f38e34962ca9f86a31fc584

5 years agoMerge "Simpleperf: Restrict callchain depth in inferno"
Andreas Gampe [Wed, 24 Jul 2019 16:20:46 +0000 (09:20 -0700)]
Merge "Simpleperf: Restrict callchain depth in inferno"
am: 14c83fced1

Change-Id: Id3a73e8867647270c42a271e97478510a7bad55d

5 years agoMerge "Simpleperf: Restrict callchain depth in inferno"
Treehugger Robot [Wed, 24 Jul 2019 15:43:32 +0000 (15:43 +0000)]
Merge "Simpleperf: Restrict callchain depth in inferno"

5 years agoSimpleperf: Restrict callchain depth in inferno
Andreas Gampe [Tue, 23 Jul 2019 20:19:23 +0000 (13:19 -0700)]
Simpleperf: Restrict callchain depth in inferno

Add an option to restrict the callchain depth in inferno, so as
to cope with deep stack that otherwise lead to a python stack
overflow.

Use a large value as a stand-in for unlimited. Try to capture
stack overflow and add a message to try the parameter.

Test: manual
Change-Id: I411b4210ad7ddb8c418a8142b0392df192111e06

5 years agoMerge "simpleperf: fix filters in pprof_proto_generator.py."
Yabin Cui [Tue, 23 Jul 2019 18:42:05 +0000 (11:42 -0700)]
Merge "simpleperf: fix filters in pprof_proto_generator.py."
am: bcbd17bd40

Change-Id: I9dd886438bcfc43ff203255163fe49c8e96bb959

5 years agoMerge "simpleperf: add --log option in app_profiler.py."
Yabin Cui [Tue, 23 Jul 2019 18:41:01 +0000 (11:41 -0700)]
Merge "simpleperf: add --log option in app_profiler.py."
am: 661952850c

Change-Id: Ic58767ed8bc5b2982a018e2928a06935027b34d2

5 years agoMerge "simpleperf: fix filters in pprof_proto_generator.py."
Yabin Cui [Tue, 23 Jul 2019 18:08:52 +0000 (18:08 +0000)]
Merge "simpleperf: fix filters in pprof_proto_generator.py."

5 years agoMerge "simpleperf: add --log option in app_profiler.py."
Yabin Cui [Tue, 23 Jul 2019 18:07:40 +0000 (18:07 +0000)]
Merge "simpleperf: add --log option in app_profiler.py."

5 years agosimpleperf: add --log option in app_profiler.py.
Yabin Cui [Mon, 22 Jul 2019 19:33:47 +0000 (12:33 -0700)]
simpleperf: add --log option in app_profiler.py.

The default log output of app_profiler.py is too verbose. So add
--log option to adjust it, and omit debug outputs by default.

Bug: 138112297
Test: run app_profiler.py manually.
Change-Id: I9f08d3eeb890347a1017b5b39832dc2cc3a9e2af

5 years agosimpleperf: fix filters in pprof_proto_generator.py.
Yabin Cui [Mon, 22 Jul 2019 18:39:36 +0000 (11:39 -0700)]
simpleperf: fix filters in pprof_proto_generator.py.

Bug: 138107481
Test: run test.py TestPprof*.
Change-Id: I3344c4252ca469845e3844c0f2de447f293c38d1

5 years agoMerge "simpleperf: set scoped arch and event types in RecordFileReader."
Yabin Cui [Fri, 19 Jul 2019 19:19:55 +0000 (12:19 -0700)]
Merge "simpleperf: set scoped arch and event types in RecordFileReader."
am: 8ec32656b3

Change-Id: I6d472a70264cac1e55b397b3dd6cb99819c5a8d0

5 years agoMerge "simpleperf: add PERF_RECORD_AUXTRACE_INFO record."
Yabin Cui [Fri, 19 Jul 2019 19:18:49 +0000 (12:18 -0700)]
Merge "simpleperf: add PERF_RECORD_AUXTRACE_INFO record."
am: b332597c03

Change-Id: Iad4253685b47a0d6387212750fddcccb886f4802

5 years agoMerge "simpleperf: set scoped arch and event types in RecordFileReader."
Yabin Cui [Fri, 19 Jul 2019 18:49:57 +0000 (18:49 +0000)]
Merge "simpleperf: set scoped arch and event types in RecordFileReader."

5 years agoMerge "simpleperf: add PERF_RECORD_AUXTRACE_INFO record."
Yabin Cui [Fri, 19 Jul 2019 18:49:36 +0000 (18:49 +0000)]
Merge "simpleperf: add PERF_RECORD_AUXTRACE_INFO record."

5 years agosimpleperf: add PERF_RECORD_AUXTRACE_INFO record.
Yabin Cui [Wed, 17 Jul 2019 23:59:48 +0000 (16:59 -0700)]
simpleperf: add PERF_RECORD_AUXTRACE_INFO record.

PERF_RECORD_AUXTRACE_INFO is used to record etm configurations on device.
Make its content the same as in linux perf.

Bug: 135204414
Test: run simpleperf_unit_test.
Change-Id: I5d32cbe22acbc690d2ba47473ff344241982a0c3

5 years agosimpleperf: set scoped arch and event types in RecordFileReader.
Yabin Cui [Fri, 19 Jul 2019 00:27:48 +0000 (17:27 -0700)]
simpleperf: set scoped arch and event types in RecordFileReader.

To record on device and report on host, simpleperf keeps arch type
and event types in perf.data. Currently, RecordFileReader needs
its users to read and set the arch type and event types properly.

This patch changes to let RecordFileReader set arch type and
event types. It avoids repeating the effort in users of
RecordFileReader.

Bug: none
Test: run simpleperf_unit_test.
Test: run simpleperf record on device, and report it on host.
Change-Id: Ief637ca6e2c3acfbf74b6447ef7ff0679439ca1d

5 years agoMerge "simpleperf: don't expose libunwindstack in OfflineUnwinder.h."
Yabin Cui [Thu, 18 Jul 2019 20:09:13 +0000 (13:09 -0700)]
Merge "simpleperf: don't expose libunwindstack in OfflineUnwinder.h."
am: 168d61edeb

Change-Id: I48bde09580616ab6e3b1cd8140820d097ca09dc7

5 years agoMerge "simpleperf: don't expose libunwindstack in OfflineUnwinder.h."
Yabin Cui [Thu, 18 Jul 2019 19:29:19 +0000 (19:29 +0000)]
Merge "simpleperf: don't expose libunwindstack in OfflineUnwinder.h."

5 years agosimpleperf: don't expose libunwindstack in OfflineUnwinder.h.
Yabin Cui [Thu, 18 Jul 2019 17:43:32 +0000 (10:43 -0700)]
simpleperf: don't expose libunwindstack in OfflineUnwinder.h.

It is to build etm decode library happen to include
OfflineUnwinder.h, but don't link with libunwindstack.

Bug: 135204414
Test: run simpleperf_unit_test.
Change-Id: I924498e7315b50ff44f85445f23c4be342bd39bd

5 years agoMerge "simpleperf: fix raw event names."
Yabin Cui [Wed, 17 Jul 2019 21:10:05 +0000 (14:10 -0700)]
Merge "simpleperf: fix raw event names."
am: 193ca49c16

Change-Id: I3e5429beeb007dafe5665e5a56d723168af3b140

5 years agoMerge "simpleperf: fix raw event names."
Yabin Cui [Wed, 17 Jul 2019 20:51:45 +0000 (20:51 +0000)]
Merge "simpleperf: fix raw event names."

5 years agoMerge "simpleperf: add cs-etm event type."
Yabin Cui [Wed, 17 Jul 2019 20:33:00 +0000 (13:33 -0700)]
Merge "simpleperf: add cs-etm event type."
am: c126f158ee

Change-Id: I774c958daabd4b0e2202f96aebcefd05c8565b45

5 years agoMerge "simpleperf: add rate comment for new raw events."
Yabin Cui [Wed, 17 Jul 2019 20:23:57 +0000 (13:23 -0700)]
Merge "simpleperf: add rate comment for new raw events."
am: 91f570861c

Change-Id: Ib38fc00f3cb6fdd4eeb9d51dac67c9b856509d71

5 years agoMerge "Remove perfprofd feature."
Elliott Hughes [Wed, 17 Jul 2019 20:23:39 +0000 (13:23 -0700)]
Merge "Remove perfprofd feature."
am: 8f300bae66

Change-Id: Id44518a994b166f6ceabce14349888b80c7ec01a

5 years agoMerge "simpleperf: add cs-etm event type."
Yabin Cui [Wed, 17 Jul 2019 20:21:14 +0000 (20:21 +0000)]
Merge "simpleperf: add cs-etm event type."

5 years agoMerge "simpleperf: add rate comment for new raw events."
Yabin Cui [Wed, 17 Jul 2019 19:55:00 +0000 (19:55 +0000)]
Merge "simpleperf: add rate comment for new raw events."

5 years agoMerge "Remove perfprofd feature."
Treehugger Robot [Wed, 17 Jul 2019 19:53:37 +0000 (19:53 +0000)]
Merge "Remove perfprofd feature."

5 years agosimpleperf: add cs-etm event type.
Yabin Cui [Fri, 12 Jul 2019 20:09:15 +0000 (13:09 -0700)]
simpleperf: add cs-etm event type.

cs-etm event type is used to select etm instruction tracing.
It can be show in simpleperf list cmd, and used by
`simpleperf record -e cs-etm`.

Changes receiving etm data from the kernel will be added
in later CLs.

Bug: 135204414
Test: run simpleperf_unit_test.
Change-Id: I431b5521dc23519ff8e154d50458ec0aa9ac65cd

5 years agosimpleperf: fix raw event names.
Yabin Cui [Wed, 17 Jul 2019 17:53:01 +0000 (10:53 -0700)]
simpleperf: fix raw event names.

Bug: 137044139
Test: run simpleperf list.
Change-Id: If87690f767e8f37d137a7d53d0c3ffb0c07c4adf

5 years agosimpleperf: add rate comment for new raw events.
Yabin Cui [Mon, 15 Jul 2019 17:39:15 +0000 (10:39 -0700)]
simpleperf: add rate comment for new raw events.

After the patch, simpleperf shows rate comments for new raw events:

$ simpleperf stat --group raw-l1d-cache-refill-rd,raw-l1d-cache-rd sleep 1
Performance counter statistics:

     98,519  raw-l1d-cache-refill-rd   # 2.226422% level 1 cache refill rate, read  (100%)
  4,424,993  raw-l1d-cache-rd          #                                            (100%

Bug: 137044139
Test: run simpleperf_unit_test.
Test: run simpleperf manually.
Change-Id: Ic71ee7326451e62feefb26feb0471fa3a72a173f

5 years agoRemove perfprofd feature.
Elliott Hughes [Wed, 17 Jul 2019 15:19:03 +0000 (08:19 -0700)]
Remove perfprofd feature.

perfprofd is dead and gone.

Test: treehugger
Change-Id: Ia3edd46db30427e0e3b280c92bb89d3f6d71aa48

5 years agoMerge "Remove perfprofd."
Elliott Hughes [Tue, 16 Jul 2019 23:16:56 +0000 (16:16 -0700)]
Merge "Remove perfprofd."
am: c111db3f8c

Change-Id: Ic0888f8d7c5d37d6b0a206f3c2e4c259959dc725

5 years agoMerge "Remove perfprofd."
Elliott Hughes [Tue, 16 Jul 2019 22:59:21 +0000 (22:59 +0000)]
Merge "Remove perfprofd."

5 years agoMerge "libext4_utils: remove unused deps"
Steven Moreland [Mon, 15 Jul 2019 18:59:35 +0000 (11:59 -0700)]
Merge "libext4_utils: remove unused deps"
am: e0246c6095

Change-Id: Ie57aaa3b25616afa2b0bfba91df1f92dc9f6a9f8

5 years agoMerge "libext4_utils: remove unused deps"
Treehugger Robot [Mon, 15 Jul 2019 18:27:06 +0000 (18:27 +0000)]
Merge "libext4_utils: remove unused deps"

5 years agoMerge "simpleperf: add event numbers listed in ARM 8.4 manual."
Yabin Cui [Fri, 12 Jul 2019 22:21:06 +0000 (15:21 -0700)]
Merge "simpleperf: add event numbers listed in ARM 8.4 manual."
am: 61170253d5

Change-Id: I76195c8a5421f67d0e134131a19243cbdabb7ec2

5 years agoMerge "simpleperf: add event numbers listed in ARM 8.4 manual."
Yabin Cui [Fri, 12 Jul 2019 21:55:44 +0000 (21:55 +0000)]
Merge "simpleperf: add event numbers listed in ARM 8.4 manual."

5 years agolibext4_utils: remove unused deps
Steven Moreland [Fri, 12 Jul 2019 00:19:38 +0000 (17:19 -0700)]
libext4_utils: remove unused deps

Bug: 137311188
Test: library still builds
Change-Id: Iee71887bc0f969c349369b7d70c981c3f89ce23a

5 years agosimpleperf: add event numbers listed in ARM 8.4 manual.
Yabin Cui [Thu, 11 Jul 2019 19:23:05 +0000 (12:23 -0700)]
simpleperf: add event numbers listed in ARM 8.4 manual.

Also don't report error when testing if a raw event is supported.
Also print raw numbers even if we think they are not supported to
avoid false negative.

Bug: 137044139
Test: run simpleperf list.
Test: run simpleperf_unit_test.
Change-Id: I8799ae2a8892c76c9ac7d7a2b38544e9ca8ba533

5 years agoRemove perfprofd.
Elliott Hughes [Wed, 10 Jul 2019 19:35:15 +0000 (12:35 -0700)]
Remove perfprofd.

This isn't finished, and no-one's working on finishing it.

Test: N/A
Change-Id: If52aa7f7dba8991f53bf432c0c3bc59c7a3cd2ca

5 years agoMerge "Wrap getenv and append euid to GCOV_PREFIX"
Pirama Arumuga Nainar [Tue, 9 Jul 2019 15:57:26 +0000 (08:57 -0700)]
Merge "Wrap getenv and append euid to GCOV_PREFIX"
am: 52aa89d133

Change-Id: I868fab18ad3ebd00f0dcbdbc16492ab0ce97eb15

5 years agoMerge "Wrap getenv and append euid to GCOV_PREFIX"
Pirama Arumuga Nainar [Tue, 9 Jul 2019 15:32:48 +0000 (15:32 +0000)]
Merge "Wrap getenv and append euid to GCOV_PREFIX"

5 years agoWrap getenv and append euid to GCOV_PREFIX
Pirama Arumuga Nainar [Tue, 2 Jul 2019 05:13:10 +0000 (22:13 -0700)]
Wrap getenv and append euid to GCOV_PREFIX

The coverage runtime creates coverage files with permissions 0644 and
intermediate directories with 0755.  This causes conflicts and
permissions issues when multiple processes create/access the same file
or directory under $GCOV_PREFIX.  Some processes also call umask, which
further complicates things.

It is possible to handle all of these in the coverage runtime library
but a foolproof alternative is to have a separate coverage directory per
effective userid (euid) by customizing GCOV_PREFIX.

This change adds a wrapper to getenv which appends the euid of the
current process for the "GCOV_PREFIX" environment variable.

Test: Verify that coverage files are written to
/data/misc/trace/<euid>/proc/... instead of /data/misc/trace/proc/...

Change-Id: I6be1e748618d84697c354516ab1c734fb33ab5f4

5 years agoDO NOT MERGE - Merge qt-dev-plus-aosp-without-vendor (5699924) into stage-aosp-master
Xin Li [Mon, 1 Jul 2019 21:00:29 +0000 (21:00 +0000)]
DO NOT MERGE - Merge qt-dev-plus-aosp-without-vendor (5699924) into stage-aosp-master

Bug: 134405016
Change-Id: Ifecc9ea53205db887d777a3655711a151a2911e9

5 years agoMerge "Fix cf_x86_phone-userdebug_coverage build" am: 1c41026536
Dimitry Ivanov [Fri, 28 Jun 2019 16:55:20 +0000 (09:55 -0700)]
Merge "Fix cf_x86_phone-userdebug_coverage build" am: 1c41026536
am: bc39da47bd

Change-Id: I880b2954c4226a1745eabc9461756cc640b5d8d6

5 years agoMerge "Fix cf_x86_phone-userdebug_coverage build"
Dimitry Ivanov [Fri, 28 Jun 2019 16:34:10 +0000 (09:34 -0700)]
Merge "Fix cf_x86_phone-userdebug_coverage build"
am: 1c41026536

Change-Id: Iac430012d7e8e7d1db504458d36898efbed9ceee

5 years agoMerge "Fix cf_x86_phone-userdebug_coverage build"
Dimitry Ivanov [Fri, 28 Jun 2019 16:18:31 +0000 (16:18 +0000)]
Merge "Fix cf_x86_phone-userdebug_coverage build"

5 years agoFix cf_x86_phone-userdebug_coverage build
dimitry [Fri, 28 Jun 2019 09:24:09 +0000 (11:24 +0200)]
Fix cf_x86_phone-userdebug_coverage build

coverage builds depend on libprofile-extras* libraries
for natively bridged architectures.

Bug: http://b/136237669
Test: make EMMA_INSTRUMENT=true EMMA_INSTRUMENT_FRAMEWORK=true NATIVE_COVERAGE=true COVERAGE_PATHS="*" SKIP_BOOT_JARS_CHECK=true platform_tests
Change-Id: I400afe7696378c0bfb2b93e7dc85bdcaa62bf9f3

5 years agoMerge "squashfs_utils: Declare required modules." am: 1653f95528
Tao Bao [Tue, 25 Jun 2019 18:52:07 +0000 (11:52 -0700)]
Merge "squashfs_utils: Declare required modules." am: 1653f95528
am: 0bdd04fd41

Change-Id: I3998c0468ca8abd9979a72f038d2343e123d83d1

5 years agoMerge "squashfs_utils: Declare required modules."
Tao Bao [Tue, 25 Jun 2019 18:35:21 +0000 (11:35 -0700)]
Merge "squashfs_utils: Declare required modules."
am: 1653f95528

Change-Id: Ia8472e954335d83368adf4d3a61c66aad26b04a3

5 years agoMerge "squashfs_utils: Declare required modules."
Tao Bao [Tue, 25 Jun 2019 17:57:43 +0000 (17:57 +0000)]
Merge "squashfs_utils: Declare required modules."

5 years agoMerge "lpmake: Add a flag to force building a complete, empty super.img." am: ee69c9ea95
David Anderson [Tue, 25 Jun 2019 17:40:21 +0000 (10:40 -0700)]
Merge "lpmake: Add a flag to force building a complete, empty super.img." am: ee69c9ea95
am: b3ece43a2f

Change-Id: I7080ab6ebb2fd3ccf1716f6d90fe464a129ae85a

5 years agoMerge "lpmake: Add a flag to force building a complete, empty super.img."
David Anderson [Tue, 25 Jun 2019 17:30:38 +0000 (10:30 -0700)]
Merge "lpmake: Add a flag to force building a complete, empty super.img."
am: ee69c9ea95

Change-Id: Ie71b49da252a443e6b020eecf4e0a22c3f4e81bc

5 years agoMerge "lpmake: Add a flag to force building a complete, empty super.img."
David Anderson [Tue, 25 Jun 2019 16:52:43 +0000 (16:52 +0000)]
Merge "lpmake: Add a flag to force building a complete, empty super.img."

5 years agosquashfs_utils: Declare required modules.
Tao Bao [Fri, 21 Jun 2019 21:47:10 +0000 (14:47 -0700)]
squashfs_utils: Declare required modules.

mksquashfsimage.sh depends on mksquashfs and img2simg.

Test: TreeHugger
Change-Id: Iac4efef68f87528c3601417829a934cc1b53b15d

5 years agoMerge "Call public create function." am: 8015ec361e
Christopher Ferris [Wed, 12 Jun 2019 16:31:26 +0000 (09:31 -0700)]
Merge "Call public create function." am: 8015ec361e
am: 6aa2a45365

Change-Id: Ie2da78202c0b1721f01a41c505de9c9effdd4b2b

5 years agoMerge "Call public create function."
Christopher Ferris [Wed, 12 Jun 2019 16:23:23 +0000 (09:23 -0700)]
Merge "Call public create function."
am: 8015ec361e

Change-Id: I6dac772541b3bf9a6aa5e979ac3ca6dcedccfd8a

5 years agoMerge "Call public create function."
Christopher Ferris [Wed, 12 Jun 2019 16:10:10 +0000 (16:10 +0000)]
Merge "Call public create function."

5 years agoCall public create function.
Christopher Ferris [Tue, 28 May 2019 23:17:54 +0000 (16:17 -0700)]
Call public create function.

Test: Ran unit tests.
Change-Id: I8a017c4225f6141b109be059313dd1322c69fbdd

5 years agoLower gc_urgent_sleeptime to 50
Daniel Rosenberg [Fri, 7 Jun 2019 23:02:24 +0000 (16:02 -0700)]
Lower gc_urgent_sleeptime to 50
am: 999afeeb3e

Change-Id: Ia25847229c8784b915689557b127520d07e61606

5 years agoLower gc_urgent_sleeptime to 50
Daniel Rosenberg [Thu, 6 Jun 2019 23:03:21 +0000 (16:03 -0700)]
Lower gc_urgent_sleeptime to 50

This will substantially speed up GC progress

Test: Run /vendor/bin/checkpoint_gc
Bug: 133822599
Change-Id: Ic1f064437381bce99d62dfd146088d43e08b1766

5 years agoMerge "Opt adbd and init out of property-watcher thread" am: ecddd834da
Pirama Arumuga Nainar [Thu, 6 Jun 2019 18:25:50 +0000 (11:25 -0700)]
Merge "Opt adbd and init out of property-watcher thread" am: ecddd834da
am: dbb72ce4c9

Change-Id: I8c83b2aea0db7898b643a6b4298a858d5444e7b8

5 years agoMerge "Opt adbd and init out of property-watcher thread"
Pirama Arumuga Nainar [Thu, 6 Jun 2019 18:15:54 +0000 (11:15 -0700)]
Merge "Opt adbd and init out of property-watcher thread"
am: ecddd834da

Change-Id: I9fdb1016e0a13233792fe48b25b89e3b2ad79ff1

5 years agoMerge "simpleperf: work around a simpleperf bug on Android Q." am: 6d2cbfe3d5
Yabin Cui [Thu, 6 Jun 2019 18:04:31 +0000 (11:04 -0700)]
Merge "simpleperf: work around a simpleperf bug on Android Q." am: 6d2cbfe3d5
am: 7e6459a11f

Change-Id: Ic4b0f27853ec166a5509ef002981fc8f3a55432b

5 years agoMerge "Opt adbd and init out of property-watcher thread"
Treehugger Robot [Thu, 6 Jun 2019 18:02:10 +0000 (18:02 +0000)]
Merge "Opt adbd and init out of property-watcher thread"