OSDN Git Service

android-x86/system-extras.git
8 years agoMerge \"Simpleperf: use libc++_static on host.\"
Yabin Cui [Wed, 22 Jun 2016 23:59:16 +0000 (23:59 +0000)]
Merge \"Simpleperf: use libc++_static on host.\"
am: 185f314239

Change-Id: Ia1b208c8e6120caef5fc7bb0cd2b0ab488fe1d32

8 years agoMerge "Simpleperf: use libc++_static on host."
Yabin Cui [Wed, 22 Jun 2016 23:49:12 +0000 (23:49 +0000)]
Merge "Simpleperf: use libc++_static on host."

8 years agoMerge \"Simpleperf: report lost record count and warn if 10% records are lost.\"
Yabin Cui [Wed, 22 Jun 2016 22:56:08 +0000 (22:56 +0000)]
Merge \"Simpleperf: report lost record count and warn if 10% records are lost.\"
am: 142b63f4e7

Change-Id: Id09c49521f8ae2d0e7b11a9607e6c5d2bb1cbad6

8 years agoMerge "Simpleperf: report lost record count and warn if 10% records are lost."
Yabin Cui [Wed, 22 Jun 2016 22:48:25 +0000 (22:48 +0000)]
Merge "Simpleperf: report lost record count and warn if 10% records are lost."

8 years agoSimpleperf: use libc++_static on host.
Yabin Cui [Wed, 22 Jun 2016 22:30:37 +0000 (15:30 -0700)]
Simpleperf: use libc++_static on host.

Bug: 28911532
Change-Id: I5cc97fc35f5c5225ea81bdaec04cc22d9a99790f
Test: Use readelf to make sure simpleperf on host doesn't dynamically link libc++.so.

8 years agoMerge \"Simpleperf: adjust default mmap_pages for system wide profiling.\"
Yabin Cui [Wed, 22 Jun 2016 21:26:23 +0000 (21:26 +0000)]
Merge \"Simpleperf: adjust default mmap_pages for system wide profiling.\"
am: b2fae142fb

Change-Id: I59e376723899d94ef33738e04724d532473bc6a9

8 years agoMerge \"Simpleperf: check if -f option for record command is in valid range.\"
Yabin Cui [Wed, 22 Jun 2016 21:26:22 +0000 (21:26 +0000)]
Merge \"Simpleperf: check if -f option for record command is in valid range.\"
am: d954410cc5

Change-Id: I80c6fd82200c56a7d0fc5c0c06b5483bdd0d0451

8 years agoMerge \"Simpleperf: check root privilege for system wide profiling.\"
Yabin Cui [Wed, 22 Jun 2016 21:26:21 +0000 (21:26 +0000)]
Merge \"Simpleperf: check root privilege for system wide profiling.\"
am: a961ee585d

Change-Id: Id1af325025b22cca657ae18fe5f4b6d43f53d4fa

8 years agoSimpleperf: report lost record count and warn if 10% records are lost.
Yabin Cui [Wed, 22 Jun 2016 18:37:26 +0000 (11:37 -0700)]
Simpleperf: report lost record count and warn if 10% records are lost.

Bug: 29126335
Change-Id: Id4a5b51120389387ec3ab45ea9ad9a276aa6ce2a
Test: run simpleperf with high -f option and check the lost record warning.

8 years agoMerge "Simpleperf: adjust default mmap_pages for system wide profiling."
Yabin Cui [Wed, 22 Jun 2016 21:19:54 +0000 (21:19 +0000)]
Merge "Simpleperf: adjust default mmap_pages for system wide profiling."

8 years agoMerge "Simpleperf: check if -f option for record command is in valid range."
Yabin Cui [Wed, 22 Jun 2016 21:19:41 +0000 (21:19 +0000)]
Merge "Simpleperf: check if -f option for record command is in valid range."

8 years agoMerge "Simpleperf: check root privilege for system wide profiling."
Yabin Cui [Wed, 22 Jun 2016 21:19:25 +0000 (21:19 +0000)]
Merge "Simpleperf: check root privilege for system wide profiling."

8 years agoSimpleperf: check if -f option for record command is in valid range.
Yabin Cui [Wed, 22 Jun 2016 19:43:09 +0000 (12:43 -0700)]
Simpleperf: check if -f option for record command is in valid range.

Read /proc/sys/kernel/perf_event_max_sample_rate to get max
valid sample frequency.

Bug: 29574526
Change-Id: I269fefc87a7561bb15f41c3b4a494e7604e005fb
Test: Run `simpleperf record -f 10000000`, check the error message.

8 years agoSimpleperf: check root privilege for system wide profiling.
Yabin Cui [Wed, 22 Jun 2016 19:14:45 +0000 (12:14 -0700)]
Simpleperf: check root privilege for system wide profiling.

Giving the suggestion to run as root is better than reporting
a bunch of failures trying to open perf_event files.

Bug: 29574526
Change-Id: Id7b7586a5aa7e79e4ef821f9ab710ccdf550ed94
Test: run `simpleperf record -a` with non root and check the error message.

8 years agoSimpleperf: adjust default mmap_pages for system wide profiling.
Yabin Cui [Wed, 22 Jun 2016 19:07:21 +0000 (12:07 -0700)]
Simpleperf: adjust default mmap_pages for system wide profiling.

System wide profiling have much more records to pass between kernel
and simpleperf, thus it needs a larger buffer than process profiling.

Bug: 29126335
Change-Id: I2eeb273096bb9786d9b37b17bb8745c1d3b3de74
Test: Run `simpleperf record -a` gives almost zero lost samples.

8 years agoMerge \"simpleperf: add kmem command to report slab allocation information.\"
Yabin Cui [Tue, 21 Jun 2016 17:16:54 +0000 (17:16 +0000)]
Merge \"simpleperf: add kmem command to report slab allocation information.\"
am: cee718a1c6

Change-Id: I71d41847471ad07c6e88b8b82d4b475caad1f10e

8 years agoMerge "simpleperf: add kmem command to report slab allocation information."
Yabin Cui [Tue, 21 Jun 2016 17:03:06 +0000 (17:03 +0000)]
Merge "simpleperf: add kmem command to report slab allocation information."

8 years agosimpleperf: add kmem command to report slab allocation information.
Yabin Cui [Wed, 15 Jun 2016 18:41:42 +0000 (11:41 -0700)]
simpleperf: add kmem command to report slab allocation information.

Bug: 27403614

Change-Id: Id3015a4828ec32170ea1db3a1580b14a8bd159ba

8 years agoMerge \"simpleperf: support event group.\"
Yabin Cui [Sat, 18 Jun 2016 01:05:53 +0000 (01:05 +0000)]
Merge \"simpleperf: support event group.\"
am: d5822b9d35

Change-Id: Ia604d089f8cda23e26f86c66113fa1a2d3e75de2

8 years agoMerge "simpleperf: support event group."
Yabin Cui [Sat, 18 Jun 2016 00:58:28 +0000 (00:58 +0000)]
Merge "simpleperf: support event group."

8 years agosimpleperf: support event group.
Yabin Cui [Tue, 14 Jun 2016 01:03:47 +0000 (18:03 -0700)]
simpleperf: support event group.

Kernel supports monitoring several events as a group, so they are
scheduled on and out at the same time. Add --group option to
stat command and record command.
Adjust the method to calculate miss rate in stat command: limit
the matched events in the same group or with scale == 1.0.

Bug: 29213742

Change-Id: I899aba207f1e3357307541e81f97526f5a2913c3

8 years agoMerge \"libfec: pack the fec_header structure\"
Jeremy Compostella [Fri, 17 Jun 2016 02:58:59 +0000 (02:58 +0000)]
Merge \"libfec: pack the fec_header structure\"
am: c2174a1934

Change-Id: Ifd15a6f8c35ba93948261b532a795da2a67d95ac

8 years agoMerge "libfec: pack the fec_header structure"
Badhri Jagan Sridharan [Fri, 17 Jun 2016 02:48:17 +0000 (02:48 +0000)]
Merge "libfec: pack the fec_header structure"

8 years agoMerge \"simpleperf: add type modifier when reporting events.\"
Yabin Cui [Wed, 15 Jun 2016 23:21:39 +0000 (23:21 +0000)]
Merge \"simpleperf: add type modifier when reporting events.\"
am: 90d56472a6

Change-Id: Iee188f56a1d74e972898f011e7d1bfc2a9e8ce12

8 years agoMerge "simpleperf: add type modifier when reporting events."
Yabin Cui [Wed, 15 Jun 2016 22:50:12 +0000 (22:50 +0000)]
Merge "simpleperf: add type modifier when reporting events."

8 years agoMerge \"simpleperf: replace SIMPLEPERF_ALIGN macro with Align inline function.\"
Yabin Cui [Wed, 15 Jun 2016 22:22:28 +0000 (22:22 +0000)]
Merge \"simpleperf: replace SIMPLEPERF_ALIGN macro with Align inline function.\"
am: 82cc1bf01d

Change-Id: I4e62a848ea0a5299c8884ecaa335698f3a439891

8 years agoMerge "simpleperf: replace SIMPLEPERF_ALIGN macro with Align inline function."
Yabin Cui [Wed, 15 Jun 2016 21:50:10 +0000 (21:50 +0000)]
Merge "simpleperf: replace SIMPLEPERF_ALIGN macro with Align inline function."

8 years agosimpleperf: add type modifier when reporting events.
Yabin Cui [Wed, 15 Jun 2016 19:10:33 +0000 (12:10 -0700)]
simpleperf: add type modifier when reporting events.

Before the change:
$simpleperf record -e cpu-cycles:u sleep 1
$simpleperf report
...
Event: cpu-cycles (type 0, config 0)
...

After the change:
$simpleperf report
...
Event: cpu-cycles:u (type 0, config 0)
...

Change-Id: I296c5476e03250e928ed0f579483d6866576d417

8 years agosimpleperf: replace SIMPLEPERF_ALIGN macro with Align inline function.
Yabin Cui [Wed, 15 Jun 2016 18:49:23 +0000 (11:49 -0700)]
simpleperf: replace SIMPLEPERF_ALIGN macro with Align inline function.

Change-Id: Id9e9e67174ab3f857eb2baa9609351b60586b8dd

8 years agoMerge \\"boot_control_copy: Track the the bootloader_message struct change.\\" am...
Tao Bao [Tue, 14 Jun 2016 16:23:01 +0000 (16:23 +0000)]
Merge \\"boot_control_copy: Track the the bootloader_message struct change.\\" am: 42ca0e1992
am: 713a9a5c19

Change-Id: Iefde6de81a2a566b66a51b707ea0aa8a3dfb24d2

8 years agoMerge \"boot_control_copy: Track the the bootloader_message struct change.\"
Tao Bao [Tue, 14 Jun 2016 16:18:27 +0000 (16:18 +0000)]
Merge \"boot_control_copy: Track the the bootloader_message struct change.\"
am: 42ca0e1992

Change-Id: If4d94cbe24619b3e9f7f7924d2e76dfe25b78f46

8 years agoMerge "boot_control_copy: Track the the bootloader_message struct change."
Tao Bao [Tue, 14 Jun 2016 16:09:16 +0000 (16:09 +0000)]
Merge "boot_control_copy: Track the the bootloader_message struct change."

8 years agoMerge \\"simpleperf: fix mac build.\\" am: 898b3f48e2
Yabin Cui [Tue, 14 Jun 2016 01:52:57 +0000 (01:52 +0000)]
Merge \\"simpleperf: fix mac build.\\" am: 898b3f48e2
am: ab0531d484

Change-Id: Iae639a12f2629774731b4ab7d85eab1b6755efd7

8 years agoMerge \"simpleperf: fix mac build.\"
Yabin Cui [Tue, 14 Jun 2016 01:47:48 +0000 (01:47 +0000)]
Merge \"simpleperf: fix mac build.\"
am: 898b3f48e2

Change-Id: I92ea3c4aea4ec7426770a49c313223b52fd2d807

8 years agoMerge "simpleperf: fix mac build."
Yabin Cui [Tue, 14 Jun 2016 01:40:35 +0000 (01:40 +0000)]
Merge "simpleperf: fix mac build."

8 years agoMerge \\"simpleperf: support report samples using format defined by protobuf.\\"...
Yabin Cui [Tue, 14 Jun 2016 01:24:17 +0000 (01:24 +0000)]
Merge \\"simpleperf: support report samples using format defined by protobuf.\\" am: 9e02231f56
am: 78b15d0e54

Change-Id: I166ad49ea4081500f77567a2cf7ab1f2664a793c

8 years agosimpleperf: fix mac build.
Yabin Cui [Tue, 14 Jun 2016 01:14:39 +0000 (18:14 -0700)]
simpleperf: fix mac build.

Bug: 28114205
Change-Id: I84ad011b10c19e07576b718ba4b6b6c52a823366

8 years agoMerge \"simpleperf: support report samples using format defined by protobuf.\"
Yabin Cui [Tue, 14 Jun 2016 00:25:17 +0000 (00:25 +0000)]
Merge \"simpleperf: support report samples using format defined by protobuf.\"
am: 9e02231f56

Change-Id: I6d7fd1959484c588ace7b8753c8d7c67d691773e

8 years agoMerge "simpleperf: support report samples using format defined by protobuf."
Yabin Cui [Tue, 14 Jun 2016 00:16:34 +0000 (00:16 +0000)]
Merge "simpleperf: support report samples using format defined by protobuf."

8 years agosimpleperf: support report samples using format defined by protobuf.
Yabin Cui [Fri, 3 Jun 2016 22:06:53 +0000 (15:06 -0700)]
simpleperf: support report samples using format defined by protobuf.

Bug: 28114205
Change-Id: Idf6d64b8418b3d55d5a43f6096dd2d69764692c0

8 years agoMerge \\"libfec: return raw and corrected verity metadata signatures\\" am: 964cae530c
Sami Tolvanen [Mon, 13 Jun 2016 15:20:18 +0000 (15:20 +0000)]
Merge \\"libfec: return raw and corrected verity metadata signatures\\" am: 964cae530c
am: 66c3086727

Change-Id: I8be1b4fbca0ce966aede30acd91fc9f88994e9de

8 years agoMerge \"libfec: return raw and corrected verity metadata signatures\"
Sami Tolvanen [Mon, 13 Jun 2016 15:12:21 +0000 (15:12 +0000)]
Merge \"libfec: return raw and corrected verity metadata signatures\"
am: 964cae530c

Change-Id: I5965e8f81c8f9813ce8cfe979283e9348f4e9ea7

8 years agoMerge "libfec: return raw and corrected verity metadata signatures"
Sami Tolvanen [Mon, 13 Jun 2016 15:04:16 +0000 (15:04 +0000)]
Merge "libfec: return raw and corrected verity metadata signatures"

8 years agoMerge \"simpleperf: restore perf_harden after simpleperf cts test.\" into nyc-dev
Yabin Cui [Sat, 11 Jun 2016 04:02:12 +0000 (04:02 +0000)]
Merge \"simpleperf: restore perf_harden after simpleperf cts test.\" into nyc-dev
am: 4d9e9c66fb  -s ours

Change-Id: I4b6cf1587671fba18b5bc5b45d8f0352c436a75c

8 years agoMerge "simpleperf: restore perf_harden after simpleperf cts test." into nyc-dev
Yabin Cui [Sat, 11 Jun 2016 03:53:11 +0000 (03:53 +0000)]
Merge "simpleperf: restore perf_harden after simpleperf cts test." into nyc-dev

8 years agosimpleperf: check perf event limit.
Yabin Cui [Sat, 11 Jun 2016 02:04:09 +0000 (02:04 +0000)]
simpleperf: check perf event limit.
am: 92c688b1f7  -s ours

Change-Id: Ic442205bbf8ba021f257f9cfcf46ed3ca30a7482

8 years agosimpleperf: restore perf_harden after simpleperf cts test.
Yabin Cui [Fri, 10 Jun 2016 19:15:11 +0000 (12:15 -0700)]
simpleperf: restore perf_harden after simpleperf cts test.

Bug: 29264324
Change-Id: Ia78ef924f049630968d222729cf3c1f378105b8a
(cherry picked from commit 5896132e00c7e49d2468d7ebd5372654df29b872)

8 years agoMerge \\"simpleperf: restore perf_harden after simpleperf cts test.\\" am: 33732ddfd3
Yabin Cui [Sat, 11 Jun 2016 00:45:19 +0000 (00:45 +0000)]
Merge \\"simpleperf: restore perf_harden after simpleperf cts test.\\" am: 33732ddfd3
am: 9e3191452e

Change-Id: I614cb8a32c44143e6c7630b1687c82fd1c9a8c5b

8 years agoMerge \"simpleperf: restore perf_harden after simpleperf cts test.\"
Yabin Cui [Sat, 11 Jun 2016 00:41:22 +0000 (00:41 +0000)]
Merge \"simpleperf: restore perf_harden after simpleperf cts test.\"
am: 33732ddfd3

Change-Id: Ibf4c201724d5254fed1db18e49ae8b1ccc6f05d3

8 years agoMerge "simpleperf: restore perf_harden after simpleperf cts test."
Yabin Cui [Sat, 11 Jun 2016 00:30:03 +0000 (00:30 +0000)]
Merge "simpleperf: restore perf_harden after simpleperf cts test."

8 years agosimpleperf: check perf event limit.
Yabin Cui [Wed, 1 Jun 2016 22:39:39 +0000 (15:39 -0700)]
simpleperf: check perf event limit.

The property security.perf_harden is added in https://android-review.googlesource.com/#/c/233736/5. And simpleperf needs to notice that.

Bug: 29054680
Change-Id: I5f1593f5b389d182a56c4bf3bd438a1dc2b66686
(cherry picked from commit ebf79f3a65c81ef0f8cd7a3b875771be88157fcc)

8 years agosimpleperf: restore perf_harden after simpleperf cts test.
Yabin Cui [Fri, 10 Jun 2016 19:15:11 +0000 (12:15 -0700)]
simpleperf: restore perf_harden after simpleperf cts test.

Bug: 29264324
Change-Id: Ia78ef924f049630968d222729cf3c1f378105b8a

8 years agoMerge \\"Support for converting callchain profiles.\\" am: 05c98248e6
Than McIntosh [Fri, 10 Jun 2016 11:09:18 +0000 (11:09 +0000)]
Merge \\"Support for converting callchain profiles.\\" am: 05c98248e6
am: 342b992f85

Change-Id: I1d1f18dc1aa21f830bde03ec45ef121f94f0c5bf

8 years agoMerge \"Support for converting callchain profiles.\"
Than McIntosh [Fri, 10 Jun 2016 11:06:34 +0000 (11:06 +0000)]
Merge \"Support for converting callchain profiles.\"
am: 05c98248e6

Change-Id: Ic217bbf8f52b1068e6778a56dea5e8a875305abd

8 years agoMerge "Support for converting callchain profiles."
Than McIntosh [Fri, 10 Jun 2016 11:02:40 +0000 (11:02 +0000)]
Merge "Support for converting callchain profiles."

8 years agoboot_control_copy: Track the the bootloader_message struct change.
Tao Bao [Fri, 10 Jun 2016 05:40:05 +0000 (22:40 -0700)]
boot_control_copy: Track the the bootloader_message struct change.

Bug: 29193360
Change-Id: I518e786eb2d45b6a71c25dc4402e3bbebef20dc6

8 years agoMerge \\"postinst: Update comment to match implementation example.\\" am: 47600b7efd
Alex Deymo [Fri, 10 Jun 2016 04:02:20 +0000 (04:02 +0000)]
Merge \\"postinst: Update comment to match implementation example.\\" am: 47600b7efd
am: fa31c2c899

Change-Id: I96d62f4a8b607cba5fd6a763fd77e7a46f1dc547

8 years agoMerge \"postinst: Update comment to match implementation example.\"
Alex Deymo [Fri, 10 Jun 2016 03:59:36 +0000 (03:59 +0000)]
Merge \"postinst: Update comment to match implementation example.\"
am: 47600b7efd

Change-Id: I0ff2b20b3de03e08e3784e565d05e747718d34a3

8 years agoMerge "postinst: Update comment to match implementation example."
Treehugger Robot [Fri, 10 Jun 2016 03:50:12 +0000 (03:50 +0000)]
Merge "postinst: Update comment to match implementation example."

8 years agopostinst: Update comment to match implementation example.
Alex Deymo [Fri, 10 Jun 2016 01:09:43 +0000 (18:09 -0700)]
postinst: Update comment to match implementation example.

"set_progress" should be "global_progress" in the documentation as the
example shows.

Bug: 29223204
TEST=None

Change-Id: I01b2abb2ba500941e591515217533150ef05dd97

8 years agolibfec: return raw and corrected verity metadata signatures
Sami Tolvanen [Fri, 3 Jun 2016 20:56:07 +0000 (13:56 -0700)]
libfec: return raw and corrected verity metadata signatures

Since it's not possible for libfec to identify whether the signature
field was successfully corrected, return both and allow the caller to
validate either signature.

Bug: 28943429
Change-Id: Ie913c21ba1d07d6df4c6feeb7226b2ec963f4d19
(cherry picked from commit 65cbaeb020b209f3d75d594ebbe49a609dd3c7e7)

8 years agoDo not build multinetwork tools when targeting the PDK
Erik Kline [Tue, 7 Jun 2016 04:03:13 +0000 (04:03 +0000)]
Do not build multinetwork tools when targeting the PDK
am: 600c6341e6

* commit '600c6341e62c165c60f526174d965cc7f1b30c38':
  Do not build multinetwork tools when targeting the PDK

Change-Id: If2fcc9f0326ce63248b1845f26546baa894fcccd

8 years agoDo not build multinetwork tools when targeting the PDK
Erik Kline [Mon, 6 Jun 2016 21:57:12 +0000 (06:57 +0900)]
Do not build multinetwork tools when targeting the PDK

Bug: 29071416
Change-Id: Ie39cad3151907aabbf523895d6cde37b82ff29a2

8 years agoresolve merge conflicts of 65cbaeb to nyc-dev-plus-aosp
Sami Tolvanen [Tue, 7 Jun 2016 00:47:07 +0000 (17:47 -0700)]
resolve merge conflicts of 65cbaeb to nyc-dev-plus-aosp

Change-Id: I577f36d8f4588866606ef4b3f4b88d5af3505fbf

8 years agolibfec: return raw and corrected verity metadata signatures
Sami Tolvanen [Fri, 3 Jun 2016 20:56:07 +0000 (13:56 -0700)]
libfec: return raw and corrected verity metadata signatures

Since it's not possible for libfec to identify whether the signature
field was successfully corrected, return both and allow the caller to
validate either signature.

Bug: 28943429
Change-Id: Ie913c21ba1d07d6df4c6feeb7226b2ec963f4d19

8 years agoMerge "simpleperf: dump tracing data when needed." am: 86bebf8ff0
Yabin Cui [Fri, 3 Jun 2016 23:40:10 +0000 (23:40 +0000)]
Merge "simpleperf: dump tracing data when needed." am: 86bebf8ff0
am: 38ed5b4c0c

* commit '38ed5b4c0c4071c994bdccc5430eead4e3d47548':
  simpleperf: dump tracing data when needed.

Change-Id: I60403f2546c52caaedc25f670ea03d24cee75e5b

8 years agoMerge "simpleperf: dump tracing data when needed."
Yabin Cui [Fri, 3 Jun 2016 23:32:30 +0000 (23:32 +0000)]
Merge "simpleperf: dump tracing data when needed."
am: 86bebf8ff0

* commit '86bebf8ff08a2573ad505b93376b7fb15a3b1a56':
  simpleperf: dump tracing data when needed.

Change-Id: Ie420f316db839d60e09089a490b75a6e9093add6

8 years agoMerge "simpleperf: dump tracing data when needed."
Treehugger Robot [Fri, 3 Jun 2016 23:26:14 +0000 (23:26 +0000)]
Merge "simpleperf: dump tracing data when needed."

8 years agosimpleperf: dump tracing data when needed.
Yabin Cui [Thu, 2 Jun 2016 00:29:06 +0000 (17:29 -0700)]
simpleperf: dump tracing data when needed.

When monitoring tracepoint events, dump tracing data to perf.data
can enable reporting on a different machine.

Bug: 27403614
Change-Id: Ie1af624717a245cacbeb44b4c1bcd499fc9ad8db

8 years agoMerge "simpleperf: add report-sample command." am: 471ec60687
Yabin Cui [Fri, 3 Jun 2016 18:51:23 +0000 (18:51 +0000)]
Merge "simpleperf: add report-sample command." am: 471ec60687
am: ea9056d785

* commit 'ea9056d7857b79ee57283d07c61e2e832d58401d':
  simpleperf: add report-sample command.

Change-Id: I3567f6f79c5b5e09015eb114ea810c01298d2371

8 years agoMerge "simpleperf: add report-sample command."
Yabin Cui [Fri, 3 Jun 2016 18:30:43 +0000 (18:30 +0000)]
Merge "simpleperf: add report-sample command."
am: 471ec60687

* commit '471ec606874a7224e304482f5fa9cc7d207d26b8':
  simpleperf: add report-sample command.

Change-Id: Ibc209b97882ede350ced27fb025555227e44628d

8 years agoMerge "simpleperf: add report-sample command."
Treehugger Robot [Fri, 3 Jun 2016 18:02:14 +0000 (18:02 +0000)]
Merge "simpleperf: add report-sample command."

8 years agoSupport for converting callchain profiles.
Than McIntosh [Mon, 23 May 2016 15:07:08 +0000 (11:07 -0400)]
Support for converting callchain profiles.

Support conversion/logging of callchain profiles. A similar
change is already in place in google3.

Change-Id: Ibe5495b792f51a8aa010548d4d7ae9dd1aa40f72

8 years agosimpleperf: add report-sample command.
Yabin Cui [Fri, 3 Jun 2016 04:02:43 +0000 (21:02 -0700)]
simpleperf: add report-sample command.

1. Add report-sample command to report each sample with symbol information.
2. Add --dump-symbols option to record command to collect dso and symbol
information in perf.data.

Bug: 28114205

Change-Id: I37424ee6abd74a21ad41cd3b6c4249cf0625c201

8 years agoMerge "Handle additional record types in perf.data reader." am: d9aa9de346
Than McIntosh [Thu, 2 Jun 2016 18:50:02 +0000 (18:50 +0000)]
Merge "Handle additional record types in perf.data reader." am: d9aa9de346
am: 4ee0c018b3

* commit '4ee0c018b326327e25174f6be876686d21edb152':
  Handle additional record types in perf.data reader.

Change-Id: Ife09330d206ad18b161eb6ac392151803525fb18

8 years agoMerge "Handle additional record types in perf.data reader."
Than McIntosh [Thu, 2 Jun 2016 18:46:37 +0000 (18:46 +0000)]
Merge "Handle additional record types in perf.data reader."
am: d9aa9de346

* commit 'd9aa9de34638e46de141584bad9daf71c07ab678':
  Handle additional record types in perf.data reader.

Change-Id: I9ad532edb743d4e38f94c3ccf4f9981030323e22

8 years agoMerge "Handle additional record types in perf.data reader."
Than McIntosh [Thu, 2 Jun 2016 18:38:33 +0000 (18:38 +0000)]
Merge "Handle additional record types in perf.data reader."

8 years agoHandle additional record types in perf.data reader.
Than McIntosh [Wed, 1 Jun 2016 16:21:42 +0000 (12:21 -0400)]
Handle additional record types in perf.data reader.

Enhance the perf.data reader in perfprofd to handle the new kernel
symbol records that simpleperf generates. In addition, add support for
handling PERF_SAMPLE_REGS_USER and PERF_SAMPLE_STACK_USER records as
well (these wind up in perf.data files if callchain profiling is
used). Perfprofd doesn't need to look at any of the data in these
records, but it does need to be able to read past them.

Bug: 29067424
Bug: 29067428
Change-Id: I38c12f6a219a4d28afe50e0418d30cfdcd1a9222

8 years agoMerge "simpleperf: check perf event limit." am: 99bdc07d68
Yabin Cui [Thu, 2 Jun 2016 00:57:19 +0000 (00:57 +0000)]
Merge "simpleperf: check perf event limit." am: 99bdc07d68
am: ab5fb6833e

* commit 'ab5fb6833e1f10533db84946c07047167fc5e51e':
  simpleperf: check perf event limit.

Change-Id: I84c61612fe785840997355ff3166bf04331e1165

8 years agoMerge "simpleperf: check perf event limit."
Yabin Cui [Thu, 2 Jun 2016 00:53:57 +0000 (00:53 +0000)]
Merge "simpleperf: check perf event limit."
am: 99bdc07d68

* commit '99bdc07d68f744950292cf2fcd8af0c954d52eae':
  simpleperf: check perf event limit.

Change-Id: I3b770d6fe5eda4d0c5e8c0b4902459cf619e7992

8 years agoMerge "simpleperf: check perf event limit."
Yabin Cui [Thu, 2 Jun 2016 00:42:22 +0000 (00:42 +0000)]
Merge "simpleperf: check perf event limit."

8 years agosimpleperf: check perf event limit.
Yabin Cui [Wed, 1 Jun 2016 22:39:39 +0000 (15:39 -0700)]
simpleperf: check perf event limit.

The property security.perf_harden is added in https://android-review.googlesource.com/#/c/233736/5. And simpleperf needs to notice that.

Bug: 29054680
Change-Id: I5f1593f5b389d182a56c4bf3bd438a1dc2b66686

8 years agoMerge "simpleperf: record kernel symbols in perf.data." am: 85a3e6e14f
Yabin Cui [Wed, 1 Jun 2016 19:09:34 +0000 (19:09 +0000)]
Merge "simpleperf: record kernel symbols in perf.data." am: 85a3e6e14f
am: efe23653d1

* commit 'efe23653d1da46e1ec5e5ec853d1ea6ad4258ed0':
  simpleperf: record kernel symbols in perf.data.

Change-Id: I14e38ce40ce7f3fc2e8ba59f76cf6727fe435aeb

8 years agoMerge "simpleperf: record kernel symbols in perf.data."
Yabin Cui [Wed, 1 Jun 2016 18:53:32 +0000 (18:53 +0000)]
Merge "simpleperf: record kernel symbols in perf.data."
am: 85a3e6e14f

* commit '85a3e6e14fd777b92199b2e39a3b80acd77a7a0f':
  simpleperf: record kernel symbols in perf.data.

Change-Id: I4c9a4a4ab2830211eea4e12cbac280dd7a629d3c

8 years agoMerge "simpleperf: record kernel symbols in perf.data."
Yabin Cui [Wed, 1 Jun 2016 18:27:57 +0000 (18:27 +0000)]
Merge "simpleperf: record kernel symbols in perf.data."

8 years agosimpleperf: record kernel symbols in perf.data.
Yabin Cui [Wed, 25 May 2016 21:08:05 +0000 (14:08 -0700)]
simpleperf: record kernel symbols in perf.data.

To better support kernel profiling, record kernel symbols in perf.data
when necessary. An option --no-dump-kernel-symbols is added in
record command to always avoid recording kernel symbols.
The way to handle all zero /proc/modules and /proc/kallsyms is
improved. Add Better support in finding symbols for kernel modules.

Bug: 27403614
Change-Id: I470151c54f8a45ad1c101c1b94490e33d7fd7485

8 years agoAdd multinetwork debugging tools, dnschk and httpurl
Erik Kline [Tue, 31 May 2016 04:53:18 +0000 (04:53 +0000)]
Add multinetwork debugging tools, dnschk and httpurl
am: 871e63d9b7

* commit '871e63d9b7e584bc398dd4aa983cf561a5e8394e':
  Add multinetwork debugging tools, dnschk and httpurl

Change-Id: I1afce6c0aaa0171b4e15b08d750f89b843b5b906

8 years agoAdd multinetwork debugging tools, dnschk and httpurl
Erik Kline [Fri, 22 Jan 2016 00:07:44 +0000 (09:07 +0900)]
Add multinetwork debugging tools, dnschk and httpurl

Bug: 19537384
Bug: 27199751
Bug: 28719525
Change-Id: Ie983ec12ac6c550fa76c89cd44343220688a99b4

8 years agoANRdaemon: add README and a bash script to easily get trace. am: 9e90477a67 am: 4b7f0...
Zhengyin Qian [Fri, 27 May 2016 18:12:15 +0000 (18:12 +0000)]
ANRdaemon: add README and a bash script to easily get trace. am: 9e90477a67 am: 4b7f0b27a2
am: 27879586ff

* commit '27879586fff26d5ac1864f57bf441a39f8ab9315':
  ANRdaemon: add README and a bash script to easily get trace.

Change-Id: Idbcbe2ac4603fe84f0cb58460cc8ac1c9b89d3c6

8 years agoANRdaemon: add a few new trace options and poke all userland services am: 5b42895d33...
Zhengyin Qian [Fri, 27 May 2016 18:12:13 +0000 (18:12 +0000)]
ANRdaemon: add a few new trace options and poke all userland services am: 5b42895d33 am: ecb5849a5d
am: 90ce7ac45f

* commit '90ce7ac45f183aad12151d691f82a4a9c9a78f2f':
  ANRdaemon: add a few new trace options and poke all userland services

Change-Id: Id46f7b9f0b0390e529fe72eabf238a3c9dad9615

8 years agoANRdaemon: increase the CPU threshold resolution to 0.01% am: 6d25c0bd81 am: c33bbcd4c7
Zhengyin Qian [Fri, 27 May 2016 18:12:09 +0000 (18:12 +0000)]
ANRdaemon: increase the CPU threshold resolution to 0.01% am: 6d25c0bd81 am: c33bbcd4c7
am: 05d982d4ed

* commit '05d982d4edde37937c9a6fdb97e36a492e18f7d5':
  ANRdaemon: increase the CPU threshold resolution to 0.01%

Change-Id: Ifbd7f11670bae8a3bc5bcc6366bd8f3dcf6a8472

8 years agoANRdaemon: add README and a bash script to easily get trace. am: 9e90477a67
Zhengyin Qian [Fri, 27 May 2016 17:58:00 +0000 (17:58 +0000)]
ANRdaemon: add README and a bash script to easily get trace. am: 9e90477a67
am: 4b7f0b27a2

* commit '4b7f0b27a267e5e10894bbf438dec15e534e4cc4':
  ANRdaemon: add README and a bash script to easily get trace.

Change-Id: I0ea20dd173cfaef70df4d07672810ca233fcb5f2

8 years agoANRdaemon: add a few new trace options and poke all userland services am: 5b42895d33
Zhengyin Qian [Fri, 27 May 2016 17:57:56 +0000 (17:57 +0000)]
ANRdaemon: add a few new trace options and poke all userland services am: 5b42895d33
am: ecb5849a5d

* commit 'ecb5849a5d8cc59828c66910f2096ac44e455ca3':
  ANRdaemon: add a few new trace options and poke all userland services

Change-Id: Id35a4a5d9ccab90c0ab661e835fcd55787efa09a

8 years agoANRdaemon: increase the CPU threshold resolution to 0.01% am: 6d25c0bd81
Zhengyin Qian [Fri, 27 May 2016 17:57:53 +0000 (17:57 +0000)]
ANRdaemon: increase the CPU threshold resolution to 0.01% am: 6d25c0bd81
am: c33bbcd4c7

* commit 'c33bbcd4c7a2700f28af68a8673bec71ec92aacc':
  ANRdaemon: increase the CPU threshold resolution to 0.01%

Change-Id: Ib6cc29b5ac94344c9c7a9766b6548563da060888

8 years agoANRdaemon: add README and a bash script to easily get trace.
Zhengyin Qian [Fri, 27 May 2016 17:50:50 +0000 (17:50 +0000)]
ANRdaemon: add README and a bash script to easily get trace.
am: 9e90477a67

* commit '9e90477a678b5b5fa6ac6dd7e78770746d6c50bf':
  ANRdaemon: add README and a bash script to easily get trace.

Change-Id: Ief3f17421cc970a6b8676921b414d093c43ea880

8 years agoANRdaemon: add a few new trace options and poke all userland services
Zhengyin Qian [Fri, 27 May 2016 17:50:49 +0000 (17:50 +0000)]
ANRdaemon: add a few new trace options and poke all userland services
am: 5b42895d33

* commit '5b42895d33d72e74e3e3446e1d43fc541fbf404f':
  ANRdaemon: add a few new trace options and poke all userland services

Change-Id: Ic1eac97f0b965cc8f1e2b73f26456975150acb48

8 years agoANRdaemon: increase the CPU threshold resolution to 0.01%
Zhengyin Qian [Fri, 27 May 2016 17:50:48 +0000 (17:50 +0000)]
ANRdaemon: increase the CPU threshold resolution to 0.01%
am: 6d25c0bd81

* commit '6d25c0bd81eee66810339d5db3d1ecd48691d229':
  ANRdaemon: increase the CPU threshold resolution to 0.01%

Change-Id: I4b8feac7f8908943ae543f096e97896e50963697

8 years agoANRdaemon: add README and a bash script to easily get trace.
Zhengyin Qian [Mon, 9 May 2016 18:40:18 +0000 (11:40 -0700)]
ANRdaemon: add README and a bash script to easily get trace.

Bug: 28989601
Change-Id: I5c9b819a6b05003e68d26bfacccf4c539ddab7ae

8 years agoANRdaemon: add a few new trace options and poke all userland services
Zhengyin Qian [Tue, 26 Apr 2016 22:14:27 +0000 (15:14 -0700)]
ANRdaemon: add a few new trace options and poke all userland services

Bug: 28989601
Change-Id: Ic0fdb6e0601d5e0a285d42cd9fe1a3d8d6f86286

8 years agoANRdaemon: increase the CPU threshold resolution to 0.01%
Zhengyin Qian [Tue, 26 Apr 2016 18:57:16 +0000 (11:57 -0700)]
ANRdaemon: increase the CPU threshold resolution to 0.01%

Bug: 28989601
Change-Id: If2a305bd14e8bd7c22115cbca668bd7777d0e7d2