OSDN Git Service

android-x86/system-extras.git
6 years agoMerge "Perfprofd: Fix missing symbol crash in stack script"
Andreas Gampe [Wed, 17 Jan 2018 02:15:28 +0000 (02:15 +0000)]
Merge "Perfprofd: Fix missing symbol crash in stack script"
am: 0d7d882c04

Change-Id: If6d03598743cb4baef8a52ff4d982d240f1968cd

6 years agoMerge "Perfprofd: Fix missing symbol crash in stack script"
Treehugger Robot [Wed, 17 Jan 2018 02:07:26 +0000 (02:07 +0000)]
Merge "Perfprofd: Fix missing symbol crash in stack script"

6 years agoMerge "Perfprofd: Change the imported chrome-base logging"
Andreas Gampe [Tue, 16 Jan 2018 18:42:58 +0000 (18:42 +0000)]
Merge "Perfprofd: Change the imported chrome-base logging"
am: 55e15b8b24

Change-Id: Icbe57d5e811d5c2e62ed58589d4f8396dd17527e

6 years agoMerge "Perfprofd: Change the imported chrome-base logging"
Treehugger Robot [Tue, 16 Jan 2018 18:36:42 +0000 (18:36 +0000)]
Merge "Perfprofd: Change the imported chrome-base logging"

6 years agoPerfprofd: Fix missing symbol crash in stack script
Andreas Gampe [Tue, 16 Jan 2018 01:49:11 +0000 (17:49 -0800)]
Perfprofd: Fix missing symbol crash in stack script

It is possible we will not find a symbol for a frame in the backtrace.
Do not crash, print '???' instead.

Test: mmma system/extras/perfprofd
Test: manual
Change-Id: Ic91907c2f38adcbbd5979b7d1533df642ce763b3

6 years agoPerfprofd: Change the imported chrome-base logging
Andreas Gampe [Mon, 15 Jan 2018 23:08:56 +0000 (15:08 -0800)]
Perfprofd: Change the imported chrome-base logging

Call abort instead of exit to get decent Android support.

Test: mmma system/extras/perfprofd
Change-Id: Idaa22fef770be343d7939eed6be66429584c85b0

6 years agoMerge "Perfprofd: Enable some more warnings"
Andreas Gampe [Mon, 15 Jan 2018 23:34:42 +0000 (23:34 +0000)]
Merge "Perfprofd: Enable some more warnings"
am: 3e4cd931cc

Change-Id: Ib38b0cd9d61f9834bbece8ad5be49ffa9beac051

6 years agoMerge "Perfprofd: Enable some more warnings"
Treehugger Robot [Mon, 15 Jan 2018 23:23:32 +0000 (23:23 +0000)]
Merge "Perfprofd: Enable some more warnings"

6 years agoPerfprofd: Enable some more warnings
Andreas Gampe [Fri, 12 Jan 2018 02:57:15 +0000 (18:57 -0800)]
Perfprofd: Enable some more warnings

Test: mmma system/extras/perfprofd
Change-Id: Ic004ff1a0aad28739880c1a562af7af82e87a9ae

6 years agoMerge "Perfprofd: Generalize post-collection handling"
Andreas Gampe [Fri, 12 Jan 2018 20:56:07 +0000 (20:56 +0000)]
Merge "Perfprofd: Generalize post-collection handling"
am: 61fb5fe766

Change-Id: Iebe9c5926749118d2e79ec264c4d2099e2281fbb

6 years agoMerge "Perfprofd: Generalize post-collection handling"
Treehugger Robot [Fri, 12 Jan 2018 20:49:40 +0000 (20:49 +0000)]
Merge "Perfprofd: Generalize post-collection handling"

6 years agoMerge "Perfprofd: Remove perfprofdutils"
Andreas Gampe [Fri, 12 Jan 2018 20:43:11 +0000 (20:43 +0000)]
Merge "Perfprofd: Remove perfprofdutils"
am: f7f231042c

Change-Id: I483d992518f79ec3df0dd0307beb3e2036b8c8e7

6 years agoMerge "Perfprofd: Remove perfprofdutils"
Treehugger Robot [Fri, 12 Jan 2018 20:27:57 +0000 (20:27 +0000)]
Merge "Perfprofd: Remove perfprofdutils"

6 years agoMerge "Don't invent your own boolean type (and then not use it)."
Elliott Hughes [Fri, 12 Jan 2018 19:54:48 +0000 (19:54 +0000)]
Merge "Don't invent your own boolean type (and then not use it)."
am: 359559dbc7

Change-Id: I6cc2d24337e28134f741e0d44547047a3bd5cd1a

6 years agoMerge "Don't invent your own boolean type (and then not use it)."
Treehugger Robot [Fri, 12 Jan 2018 19:39:22 +0000 (19:39 +0000)]
Merge "Don't invent your own boolean type (and then not use it)."

6 years agoDon't invent your own boolean type (and then not use it).
Elliott Hughes [Fri, 12 Jan 2018 16:32:00 +0000 (08:32 -0800)]
Don't invent your own boolean type (and then not use it).

Bug: N/A
Test: builds
Change-Id: If1f064bce92e5c64768fd6d9042206c7e6a3aa69

6 years agoMerge "Perfprofd: Fix zero-second sleep"
Andreas Gampe [Fri, 12 Jan 2018 04:14:26 +0000 (04:14 +0000)]
Merge "Perfprofd: Fix zero-second sleep"
am: 48ecf72575

Change-Id: I463b377d4671e08933efb0b4b64ef83d479db570

6 years agoMerge "Perfprofd: Fix zero-second sleep"
Treehugger Robot [Fri, 12 Jan 2018 04:03:25 +0000 (04:03 +0000)]
Merge "Perfprofd: Fix zero-second sleep"

6 years agoPerfprofd: Fix zero-second sleep
Andreas Gampe [Fri, 12 Jan 2018 02:21:20 +0000 (18:21 -0800)]
Perfprofd: Fix zero-second sleep

The binder frontend uses wait_for, which will degenerate to
unlimited sleep on zero.

Test: mmma system/extras/perfprofd
Change-Id: I3c25d9b004f864ad9ce2c71cf6d49c5a68cc98b5

6 years agoPerfprofd: Generalize post-collection handling
Andreas Gampe [Thu, 11 Jan 2018 04:02:20 +0000 (20:02 -0800)]
Perfprofd: Generalize post-collection handling

Add a handler function to process to encoded protobuf. For now, just write
it to file, as before.

Test: mmma system/extras/perfprofd
Test: perfprofd_test
Change-Id: Ife55d6f62408fd1fd2eac5af3ad4cd319b985a69

6 years agoPerfprofd: Remove perfprofdutils
Andreas Gampe [Wed, 10 Jan 2018 19:37:20 +0000 (11:37 -0800)]
Perfprofd: Remove perfprofdutils

The indirection is unnecessary. Implement test hijacking through
custom libbase logger.

Add "[vdso]" to the recognized kernel DSOs to avoid a warning
message for the symbolizer.

Test: m
Test: perfprofd_test
Change-Id: I66c13f3b45a772f121be1e083c6194e2c962a104

6 years agoMerge "Perfprofd: Move binder code into subdirectory"
Andreas Gampe [Thu, 11 Jan 2018 01:21:14 +0000 (01:21 +0000)]
Merge "Perfprofd: Move binder code into subdirectory"
am: 5d9d50dd2a

Change-Id: I1b840bd093c40ab95af92db3cabf77253bac10c8

6 years agoMerge "Perfprofd: Move binder code into subdirectory"
Treehugger Robot [Thu, 11 Jan 2018 01:12:55 +0000 (01:12 +0000)]
Merge "Perfprofd: Move binder code into subdirectory"

6 years agoMerge "simpleperf: add missing report html example."
Yabin Cui [Thu, 11 Jan 2018 01:01:55 +0000 (01:01 +0000)]
Merge "simpleperf: add missing report html example."
am: 6ef674c596

Change-Id: Id1ac0b01f587f9a2e07cb2831a6e2bb7ae6a519d

6 years agoMerge "simpleperf: add missing report html example."
Yabin Cui [Thu, 11 Jan 2018 00:54:15 +0000 (00:54 +0000)]
Merge "simpleperf: add missing report html example."

6 years agosimpleperf: add missing report html example.
Yabin Cui [Wed, 10 Jan 2018 22:50:16 +0000 (14:50 -0800)]
simpleperf: add missing report html example.

It is referenced in README.md.

Bug: none
Test: none
Change-Id: I6e194178702f4b7611f3b94f80ab17cd60a05e20

6 years agoPerfprofd: Move binder code into subdirectory
Andreas Gampe [Wed, 10 Jan 2018 17:16:47 +0000 (09:16 -0800)]
Perfprofd: Move binder code into subdirectory

Cleaner separation of concerns.

Test: m
Change-Id: I8a2022b89bca225ee73d8779e2b7b32cc16e9113

6 years agoMerge "Perfprofd: Update proto config"
Andreas Gampe [Wed, 10 Jan 2018 02:28:18 +0000 (02:28 +0000)]
Merge "Perfprofd: Update proto config"
am: 455413b218

Change-Id: Id00238116539f66d7799d685422b7999281ce425

6 years agoMerge "Perfprofd: Update proto config"
Treehugger Robot [Wed, 10 Jan 2018 02:19:04 +0000 (02:19 +0000)]
Merge "Perfprofd: Update proto config"

6 years agoMerge "Perfprofd: Add functions in script"
Andreas Gampe [Wed, 10 Jan 2018 00:26:29 +0000 (00:26 +0000)]
Merge "Perfprofd: Add functions in script"
am: edb8ec27f3

Change-Id: I30d7a27f5fe5761bf0fcf57c1077096caaf731eb

6 years agoPerfprofd: Update proto config
Andreas Gampe [Wed, 10 Jan 2018 00:18:35 +0000 (16:18 -0800)]
Perfprofd: Update proto config

Add symbolizer flag to config protobuf. Initialize to default in
FillConfig. Clean up perf_config_proto.py

Test: m
Change-Id: I891a76c16259d039739e7084dd384a68fb15d7b1

6 years agoMerge "Perfprofd: Add functions in script"
Treehugger Robot [Wed, 10 Jan 2018 00:10:04 +0000 (00:10 +0000)]
Merge "Perfprofd: Add functions in script"

6 years agoMerge "Perfprofd: Add a symbolizer based on simpleperf code"
Andreas Gampe [Tue, 9 Jan 2018 23:14:18 +0000 (23:14 +0000)]
Merge "Perfprofd: Add a symbolizer based on simpleperf code"
am: 84bfff37c5

Change-Id: Ie003c78e28b65468e2953f27433e1a9201b5677b

6 years agoMerge "Perfprofd: Add a symbolizer based on simpleperf code"
Treehugger Robot [Tue, 9 Jan 2018 23:07:11 +0000 (23:07 +0000)]
Merge "Perfprofd: Add a symbolizer based on simpleperf code"

6 years agoPerfprofd: Add functions in script
Andreas Gampe [Tue, 9 Jan 2018 02:44:54 +0000 (18:44 -0800)]
Perfprofd: Add functions in script

Makes it easier to change functionality and printing for debug
purposes.

Test: m
Change-Id: I1a849adca9d72f748352accdc81a9ae38a7c174e

6 years agoMerge "Add OWNERS files for perfprofd and simpleperf."
Elliott Hughes [Tue, 9 Jan 2018 21:12:01 +0000 (21:12 +0000)]
Merge "Add OWNERS files for perfprofd and simpleperf."
am: b64d4bd265

Change-Id: I976304d8ab2661866f1f0aeef1b5d064643bc673

6 years agoMerge "Add OWNERS files for perfprofd and simpleperf."
Treehugger Robot [Tue, 9 Jan 2018 21:03:14 +0000 (21:03 +0000)]
Merge "Add OWNERS files for perfprofd and simpleperf."

6 years agoPerfprofd: Add a symbolizer based on simpleperf code
Andreas Gampe [Mon, 8 Jan 2018 20:39:38 +0000 (12:39 -0800)]
Perfprofd: Add a symbolizer based on simpleperf code

For the time being, compile a small library straight out of
simpleperf sources. Once simpleperf has been transitioned to
Soong, use it directly.

Test: m
Change-Id: I2aa4695fda97ce424b9e9382db4346b8b0e38d2a

6 years agoAdd OWNERS files for perfprofd and simpleperf.
Elliott Hughes [Tue, 9 Jan 2018 19:23:50 +0000 (11:23 -0800)]
Add OWNERS files for perfprofd and simpleperf.

Bug: N/A
Test: N/A
Change-Id: I04c950bcde5c2001c0dd0cc0acabbdfcc5e21e69

6 years agoMerge "Perfprofd: Add symbolizer interface"
Andreas Gampe [Tue, 9 Jan 2018 02:43:24 +0000 (02:43 +0000)]
Merge "Perfprofd: Add symbolizer interface"
am: f85302809d

Change-Id: I5c205c862d62275aa0fb19994d93a93ad2220357

6 years agoMerge "Perfprofd: Add symbolizer interface"
Treehugger Robot [Tue, 9 Jan 2018 02:38:49 +0000 (02:38 +0000)]
Merge "Perfprofd: Add symbolizer interface"

6 years agoMerge "simpleperf: stop recording when app exits."
Yabin Cui [Mon, 8 Jan 2018 22:17:56 +0000 (22:17 +0000)]
Merge "simpleperf: stop recording when app exits."
am: 7383649ebc

Change-Id: I93d87a5b48acc089c5fcc4e495907586068f85df

6 years agoMerge "simpleperf: fix test for vdso file."
Yabin Cui [Mon, 8 Jan 2018 22:17:33 +0000 (22:17 +0000)]
Merge "simpleperf: fix test for vdso file."
am: 631cca4f48

Change-Id: I9fbf5c3f4ebfb4620c9d0af87cd69f3c048fea83

6 years agoMerge "simpleperf: stop recording when app exits."
Yabin Cui [Mon, 8 Jan 2018 22:07:34 +0000 (22:07 +0000)]
Merge "simpleperf: stop recording when app exits."

6 years agoMerge "simpleperf: fix test for vdso file."
Yabin Cui [Mon, 8 Jan 2018 22:07:11 +0000 (22:07 +0000)]
Merge "simpleperf: fix test for vdso file."

6 years agosimpleperf: fix test for vdso file.
Yabin Cui [Mon, 8 Jan 2018 19:48:12 +0000 (11:48 -0800)]
simpleperf: fix test for vdso file.

The kernel may export vdso file with no symbols.

Bug: http://b/69073856
Test: run simpleperf_unit_test.
Change-Id: I5c59513debe014ffd7fd772be110044eefcbb37f

6 years agosimpleperf: stop recording when app exits.
Yabin Cui [Mon, 8 Jan 2018 19:13:52 +0000 (11:13 -0800)]
simpleperf: stop recording when app exits.

Bug: http://b/71708104
Test: run test.py.
Change-Id: I06ff0cb4feb046a7e66cea4640e3cbbd71cbb86d

6 years agoPerfprofd: Add symbolizer interface
Andreas Gampe [Thu, 4 Jan 2018 22:22:50 +0000 (14:22 -0800)]
Perfprofd: Add symbolizer interface

Add an interface for symbolizer support, translating a path an
offset to a symbol string.

Test: perfprofd_test
Change-Id: I9510ed308330735ec1023d9bccd972441a4cced6

6 years agoMerge "simpleperf: improve unwinding result report."
Yabin Cui [Sat, 6 Jan 2018 18:01:38 +0000 (18:01 +0000)]
Merge "simpleperf: improve unwinding result report."
am: c43ab84678

Change-Id: I7223ff9503b3675d6c921b7dac39f9cf8d0b35bb

6 years agoMerge "simpleperf: improve unwinding result report."
Treehugger Robot [Fri, 5 Jan 2018 23:42:35 +0000 (23:42 +0000)]
Merge "simpleperf: improve unwinding result report."

6 years agosimpleperf: improve unwinding result report.
Yabin Cui [Fri, 5 Jan 2018 01:17:55 +0000 (17:17 -0800)]
simpleperf: improve unwinding result report.

1. Add stack range in unwinding result.
2. Add option to omit callchains fixed by callchain joiner.

Bug: http://b/69383534
Test: manually.
Change-Id: I9672061a8972ac79c321fc5d5e63950369c63e9c

6 years agoMerge "Perfprofd: Fix tests"
Andreas Gampe [Thu, 4 Jan 2018 21:52:36 +0000 (21:52 +0000)]
Merge "Perfprofd: Fix tests"
am: cd270095ac

Change-Id: Iba04dffb0776038479c74b6dc8c97cfd06aca99c

6 years agoMerge "Perfprofd: Fix tests"
Treehugger Robot [Thu, 4 Jan 2018 21:46:55 +0000 (21:46 +0000)]
Merge "Perfprofd: Fix tests"

6 years agoPerfprofd: Fix tests
Andreas Gampe [Thu, 4 Jan 2018 06:28:18 +0000 (22:28 -0800)]
Perfprofd: Fix tests

Properly manage test directories. Allow running the test out of
its directory.

Test: adb shell 'cd /data/local/tmp ; ./perfprofd_test'
Change-Id: I622eec59210d581472ad406c06e564ef9d171ba3

6 years agoMerge "Don't TEMP_FAILURE_RETRY on close."
Josh Gao [Thu, 4 Jan 2018 19:21:08 +0000 (19:21 +0000)]
Merge "Don't TEMP_FAILURE_RETRY on close."
am: bfa4fc3250

Change-Id: I2a7b03a10503f14627ebed3b6b8b679f700fc940

6 years agoMerge "Don't TEMP_FAILURE_RETRY on close."
Treehugger Robot [Thu, 4 Jan 2018 19:14:56 +0000 (19:14 +0000)]
Merge "Don't TEMP_FAILURE_RETRY on close."

6 years agoMerge "Perfprofd: Fix tests"
Andreas Gampe [Thu, 4 Jan 2018 19:06:05 +0000 (19:06 +0000)]
Merge "Perfprofd: Fix tests"
am: 1261ab9d8d

Change-Id: I02bae8a500f5b394f6e83b1e85cc6b8ace1ba755

6 years agoMerge "Perfprofd: Fix tests"
Treehugger Robot [Thu, 4 Jan 2018 18:56:17 +0000 (18:56 +0000)]
Merge "Perfprofd: Fix tests"

6 years agoPerfprofd: Fix tests
Andreas Gampe [Wed, 3 Jan 2018 20:39:53 +0000 (12:39 -0800)]
Perfprofd: Fix tests

Follow-up to previous logging changes.

Test: development/testrunner/runtest.py --path=system/extras/perfprofd/tests
Change-Id: I5444edfdbc643fca679bb5017142f8b9e605169a

6 years agoMerge "Perfprofd: Start binder service by default"
Andreas Gampe [Wed, 3 Jan 2018 01:29:59 +0000 (01:29 +0000)]
Merge "Perfprofd: Start binder service by default"
am: 48f82d8730

Change-Id: I2ac777f8a705893da7bd14f6a5b51acc825ffc6b

6 years agoMerge "Perfprofd: Start binder service by default"
Treehugger Robot [Wed, 3 Jan 2018 01:23:11 +0000 (01:23 +0000)]
Merge "Perfprofd: Start binder service by default"

6 years agoMerge "Perfprofd: Add process-specific profiling"
Andreas Gampe [Fri, 29 Dec 2017 03:37:11 +0000 (03:37 +0000)]
Merge "Perfprofd: Add process-specific profiling"
am: 83aab690ec

Change-Id: I524c5e61240a7435d872cb2f128704ae058c20c8

6 years agoMerge "Perfprofd: Add process-specific profiling"
Treehugger Robot [Fri, 29 Dec 2017 03:33:23 +0000 (03:33 +0000)]
Merge "Perfprofd: Add process-specific profiling"

6 years agoPerfprofd: Start binder service by default
Andreas Gampe [Fri, 29 Dec 2017 02:02:43 +0000 (18:02 -0800)]
Perfprofd: Start binder service by default

Enable the binder service.

Test: m
Test: device boots, perfprofd is running
Change-Id: I7ee197997c11f1a9135a2e38fe7557b0088392e0

6 years agoPerfprofd: Add process-specific profiling
Andreas Gampe [Thu, 28 Dec 2017 03:20:45 +0000 (19:20 -0800)]
Perfprofd: Add process-specific profiling

Allow to restrict profiling to a process.

Test: m
Test: adb shell 'cmd perfprofd startProfilingProto - < /data/local/tmp/test.proto'
Change-Id: I4d56fb1b3f578130cf29fce7bcb6558e7434ab1f

6 years agoMerge "Perfprofd: Add a sample python script"
Andreas Gampe [Thu, 28 Dec 2017 23:44:40 +0000 (23:44 +0000)]
Merge "Perfprofd: Add a sample python script"
am: 1e04fb1685

Change-Id: I901b09ffd7fd9ffd81103b4336c62277ccca400b

6 years agoMerge "Perfprofd: Add startProfilingProtobuf"
Andreas Gampe [Thu, 28 Dec 2017 23:41:30 +0000 (23:41 +0000)]
Merge "Perfprofd: Add startProfilingProtobuf"
am: 5abe28a907

Change-Id: I1fee9c0fba8435f51f08957496a0b03193e2fcf3

6 years agoMerge "Perfprofd: Add IsProfilingEnabled to Config"
Andreas Gampe [Thu, 28 Dec 2017 23:41:11 +0000 (23:41 +0000)]
Merge "Perfprofd: Add IsProfilingEnabled to Config"
am: b1dead7b29

Change-Id: Iee0557d9bda6877bbbe9469866e5cf427689e82a

6 years agoMerge "Perfprofd: Add a sample python script"
Treehugger Robot [Thu, 28 Dec 2017 23:38:40 +0000 (23:38 +0000)]
Merge "Perfprofd: Add a sample python script"

6 years agoMerge "Perfprofd: Add startProfilingProtobuf"
Treehugger Robot [Thu, 28 Dec 2017 23:38:16 +0000 (23:38 +0000)]
Merge "Perfprofd: Add startProfilingProtobuf"

6 years agoMerge "Perfprofd: Add IsProfilingEnabled to Config"
Treehugger Robot [Thu, 28 Dec 2017 23:36:00 +0000 (23:36 +0000)]
Merge "Perfprofd: Add IsProfilingEnabled to Config"

6 years agoDon't TEMP_FAILURE_RETRY on close.
Josh Gao [Thu, 28 Dec 2017 22:13:38 +0000 (14:13 -0800)]
Don't TEMP_FAILURE_RETRY on close.

close always succeeds, even if it was interrupted and "fails" with
EINTR. Retrying will either close a nonexistent fd or stomp on another
thread's newly opened file descriptor.

Bug: http://b/20501816
Test: treehugger
Change-Id: I706d5e8027e60b13f23f9488fdf5cf7cef7b3d3b

6 years agoPerfprofd: Add a sample python script
Andreas Gampe [Thu, 28 Dec 2017 00:52:18 +0000 (16:52 -0800)]
Perfprofd: Add a sample python script

Add a sample script parsing the proto output of perfprofd.

Test: PYTHONPATH=$PYTHONPATH:development/scripts python system/extras/perfprofd/scripts/perf_proto_stack.py
Change-Id: Ia291495632072373dd8594f9c4d80b6b9bb11ada

6 years agoPerfprofd: Add startProfilingProtobuf
Andreas Gampe [Wed, 27 Dec 2017 18:57:34 +0000 (10:57 -0800)]
Perfprofd: Add startProfilingProtobuf

Add a binder interface to start profiling with a protobuf detailing
the configuration. Some light internal refactoring to reuse the
profiling driver.

Test: m
Test: adb shell 'cmd perfprofd startProfilingProto - < /data/local/tmp/test.proto'
Change-Id: I94bb220124d7200d75890bbeb7a5d153d959e02f

6 years agoMerge "Perfprofd: Move binder code to libperfprofd_binder"
Andreas Gampe [Thu, 28 Dec 2017 01:33:40 +0000 (01:33 +0000)]
Merge "Perfprofd: Move binder code to libperfprofd_binder"
am: 0073bd20bf

Change-Id: If346a3cc6bd87d4214c7dfe3805b5e4dfbda5ba5

6 years agoMerge "Perfprofd: Move binder code to libperfprofd_binder"
Treehugger Robot [Thu, 28 Dec 2017 01:28:32 +0000 (01:28 +0000)]
Merge "Perfprofd: Move binder code to libperfprofd_binder"

6 years agoPerfprofd: Add IsProfilingEnabled to Config
Andreas Gampe [Wed, 27 Dec 2017 19:23:41 +0000 (11:23 -0800)]
Perfprofd: Add IsProfilingEnabled to Config

Move part of enablement to Config. Maintain standard behavior for
the old version. The binder version always has profiling enabled,
and depends on the caller to determine the state.

Test: m
Change-Id: I6f27582132c7051299c0132a7d8f301b433c1c8e

6 years agoPerfprofd: Move binder code to libperfprofd_binder
Andreas Gampe [Wed, 27 Dec 2017 18:44:42 +0000 (10:44 -0800)]
Perfprofd: Move binder code to libperfprofd_binder

Refactor binder-related code into a static library.

Test: m
Change-Id: I2c976b1973dbc299e8c7d32a80bfa7fa062c08ed

6 years agoMerge changes I1572afcf,Ia6786225,Ia338f92c,I58312b59
Andreas Gampe [Sat, 23 Dec 2017 08:15:27 +0000 (08:15 +0000)]
Merge changes I1572afcf,Ia6786225,Ia338f92c,I58312b59
am: fade75c7a8

Change-Id: Ia69be41b0b013ae6214781a42445f20e07cf2dde

6 years agoMerge changes I1572afcf,Ia6786225,Ia338f92c,I58312b59
Treehugger Robot [Sat, 23 Dec 2017 08:10:04 +0000 (08:10 +0000)]
Merge changes I1572afcf,Ia6786225,Ia338f92c,I58312b59

* changes:
  Perfprofd: Implement simpleperf interrupt
  Perfprofd: Implement stopProfiling
  Perfprofd: Implement startProfiling
  Perfprofd: Add binder service

6 years agoMerge changes Ic5340e95,I94f54ffe,I3bc947a2
Andreas Gampe [Sat, 23 Dec 2017 02:04:37 +0000 (02:04 +0000)]
Merge changes Ic5340e95,I94f54ffe,I3bc947a2
am: 07091dc905

Change-Id: I37612eff52d584c7e77bbe77c8efb8528a140c94

6 years agoMerge changes Ic5340e95,I94f54ffe,I3bc947a2
Treehugger Robot [Sat, 23 Dec 2017 01:59:40 +0000 (01:59 +0000)]
Merge changes Ic5340e95,I94f54ffe,I3bc947a2

* changes:
  Perfprofd: Factor out profiling loop
  Perfprofd: Move Sleep to Config
  Perfprofd: Factor out configuration

6 years agoPerfprofd: Implement simpleperf interrupt
Andreas Gampe [Fri, 22 Dec 2017 21:51:52 +0000 (13:51 -0800)]
Perfprofd: Implement simpleperf interrupt

Change profiling to wait for the requested duration. This allows
profiling to be interrupted when simpleperf is already running.

When profiling should be stopped, send a SIGHUP to simpleperf, which
will make it finish sampling and clean up.

Test: m
Change-Id: I1572afcf61dd89bfaee00b036e4301e86e66e993

6 years agoPerfprofd: Implement stopProfiling
Andreas Gampe [Fri, 22 Dec 2017 18:32:16 +0000 (10:32 -0800)]
Perfprofd: Implement stopProfiling

Change sleep to a condition-variable wait-for. Add some early
exits to the profiling loop.

TODO: Refactor actual profiling to be interruptible.

Test: m
Change-Id: Ia6786225ae2efccd993c7932b97df1fd10d53d2e

6 years agoPerfprofd: Implement startProfiling
Andreas Gampe [Fri, 22 Dec 2017 02:15:37 +0000 (18:15 -0800)]
Perfprofd: Implement startProfiling

Add a startProfiling implementation that starts a dedicated thread
for the ProfilingLoop.

Test: m
Test: manual
Change-Id: Ia338f92c7fe6f6629b6743b1279377636cad0d6f

6 years agoPerfprofd: Factor out profiling loop
Andreas Gampe [Thu, 21 Dec 2017 18:43:01 +0000 (10:43 -0800)]
Perfprofd: Factor out profiling loop

Factor out profiling loop from perfprofd_main, to reuse it in the future.

Test: m
Change-Id: Ic5340e95afebd5daf8bf83eb14d32396bb4bc99e

6 years agoPerfprofd: Add binder service
Andreas Gampe [Thu, 21 Dec 2017 19:37:21 +0000 (11:37 -0800)]
Perfprofd: Add binder service

Start a binder service for perfprofd. This will require selinux policy
changes going forward.

Test: m
Change-Id: I58312b5908c67ca1203f052a01c95fba5b9c27ef

6 years agoPerfprofd: Move Sleep to Config
Andreas Gampe [Thu, 21 Dec 2017 18:26:36 +0000 (10:26 -0800)]
Perfprofd: Move Sleep to Config

Move sleep call to Config to be able to factor it out and change behavior
easier (e.g., wakeup without SIGHUP).

Test: m
Change-Id: I94f54ffefd9d2688ed3cffb4a99c4e75b58007d8

6 years agoPerfprofd: Factor out configuration
Andreas Gampe [Thu, 21 Dec 2017 18:02:23 +0000 (10:02 -0800)]
Perfprofd: Factor out configuration

Create Config struct to separate file configuration from usage.

Test: m
Change-Id: I3bc947a2982063afae8e4dc64ceb704683edead8

6 years agoMerge "simpleperf: update simpleperf prebuilts to build 4514082."
Yabin Cui [Thu, 21 Dec 2017 20:40:30 +0000 (20:40 +0000)]
Merge "simpleperf: update simpleperf prebuilts to build 4514082."
am: 33c83f782e

Change-Id: I41d8f5761e04b65d8c6cc64a05a6eab4e8b27f89

6 years agoMerge "simpleperf: update simpleperf prebuilts to build 4514082."
Yabin Cui [Thu, 21 Dec 2017 20:28:40 +0000 (20:28 +0000)]
Merge "simpleperf: update simpleperf prebuilts to build 4514082."

6 years agoMerge "Remove unused variables in memcpy-perf"
Yi Kong [Thu, 21 Dec 2017 20:13:41 +0000 (20:13 +0000)]
Merge "Remove unused variables in memcpy-perf"
am: a1832908f9

Change-Id: If0a366d42744e07a47e5333f9604999f518074a4

6 years agoMerge "Remove unused variables in memcpy-perf"
Treehugger Robot [Thu, 21 Dec 2017 20:06:07 +0000 (20:06 +0000)]
Merge "Remove unused variables in memcpy-perf"

6 years agoMerge "simpleperf: adjust callchains generated by kernel before unwinding records."
Yabin Cui [Thu, 21 Dec 2017 19:38:50 +0000 (19:38 +0000)]
Merge "simpleperf: adjust callchains generated by kernel before unwinding records."
am: c301887c4b

Change-Id: I7428c9ed9d4d9a1a559b0a8927556297810b058f

6 years agoMerge "simpleperf: Add needed testdata in artifacts."
Yabin Cui [Thu, 21 Dec 2017 19:38:34 +0000 (19:38 +0000)]
Merge "simpleperf: Add needed testdata in artifacts."
am: 7a7b47c665

Change-Id: I6ab5780bdb12b12cadf57fe926d983ec1539cb43

6 years agoMerge "Revert "Allow -Wformat warnings before they are all fixed.""
Elliott Hughes [Thu, 21 Dec 2017 19:38:13 +0000 (19:38 +0000)]
Merge "Revert "Allow -Wformat warnings before they are all fixed.""
am: efa3988e10

Change-Id: I9324245aaf5a182670399c806ad66f8dff3e0559

6 years agosimpleperf: update simpleperf prebuilts to build 4514082.
Yabin Cui [Thu, 21 Dec 2017 18:25:01 +0000 (10:25 -0800)]
simpleperf: update simpleperf prebuilts to build 4514082.

Taken from branch aosp-master.

Bug: none
Test: run test.py.

Change-Id: I8e21e0162ac3c142052ca12866309d19df2bc66e

6 years agoRemove unused variables in memcpy-perf
Yi Kong [Thu, 21 Dec 2017 18:06:54 +0000 (10:06 -0800)]
Remove unused variables in memcpy-perf

Discovered by the upcoming compiler update.

Test: Build
Change-Id: I27fccce3e6b89485c4eb1bc31a932910dfd70b86

6 years agoMerge "simpleperf: adjust callchains generated by kernel before unwinding records."
Yabin Cui [Thu, 21 Dec 2017 04:12:22 +0000 (04:12 +0000)]
Merge "simpleperf: adjust callchains generated by kernel before unwinding records."

6 years agoMerge "simpleperf: Add needed testdata in artifacts."
Treehugger Robot [Thu, 21 Dec 2017 02:02:53 +0000 (02:02 +0000)]
Merge "simpleperf: Add needed testdata in artifacts."