OSDN Git Service

android-x86/system-extras.git
7 years agoMerge \\"Remove call to no-op klog_init.\\" am: 2b66a6f2bd
Elliott Hughes [Fri, 8 Jul 2016 17:09:10 +0000 (17:09 +0000)]
Merge \\"Remove call to no-op klog_init.\\" am: 2b66a6f2bd
am: c127f96fb1

Change-Id: I691d8cb5f9e292625360455b685e6f67d5ed7f61

7 years agoMerge \"Remove call to no-op klog_init.\"
Elliott Hughes [Fri, 8 Jul 2016 17:05:27 +0000 (17:05 +0000)]
Merge \"Remove call to no-op klog_init.\"
am: 2b66a6f2bd

Change-Id: I5fd576a1e9c05c035d8618091a72f9c5a5f90333

7 years agoMerge "Remove call to no-op klog_init."
Elliott Hughes [Fri, 8 Jul 2016 17:00:24 +0000 (17:00 +0000)]
Merge "Remove call to no-op klog_init."

7 years agoMerge \\"simpleperf: don\\'t warn if child process was killed by simpleperf.\\" am...
Yabin Cui [Thu, 7 Jul 2016 23:17:45 +0000 (23:17 +0000)]
Merge \\"simpleperf: don\\'t warn if child process was killed by simpleperf.\\" am: e26676ef00
am: b609462246

Change-Id: Ia55dd5c9adfcd431f303b0fdc9b22b134e240e28

7 years agoMerge \\"simpleperf: give suggestion when mmap fails.\\" am: 57dac93cf3
Yabin Cui [Thu, 7 Jul 2016 23:17:45 +0000 (23:17 +0000)]
Merge \\"simpleperf: give suggestion when mmap fails.\\" am: 57dac93cf3
am: b47d3bd63b

Change-Id: Id88f60c47a1764aec9be94c3de8c5522bc8513bd

7 years agoMerge \"simpleperf: don\'t warn if child process was killed by simpleperf.\"
Yabin Cui [Thu, 7 Jul 2016 23:14:51 +0000 (23:14 +0000)]
Merge \"simpleperf: don\'t warn if child process was killed by simpleperf.\"
am: e26676ef00

Change-Id: I2471c50bbab5a8246f243e54fc280e9b050fa45c

7 years agoMerge \"simpleperf: give suggestion when mmap fails.\"
Yabin Cui [Thu, 7 Jul 2016 23:14:50 +0000 (23:14 +0000)]
Merge \"simpleperf: give suggestion when mmap fails.\"
am: 57dac93cf3

Change-Id: I352cd43a30770fc235b65e53aebb08c52f462c31

7 years agoMerge "simpleperf: don't warn if child process was killed by simpleperf."
Yabin Cui [Thu, 7 Jul 2016 23:06:32 +0000 (23:06 +0000)]
Merge "simpleperf: don't warn if child process was killed by simpleperf."

7 years agosimpleperf: don't warn if child process was killed by simpleperf.
Yabin Cui [Thu, 7 Jul 2016 22:00:10 +0000 (15:00 -0700)]
simpleperf: don't warn if child process was killed by simpleperf.

Bug: 29574526
Change-Id: I3ae95ed95703bcd380ed086d3fbf7ae2830feed5

7 years agoMerge "simpleperf: give suggestion when mmap fails."
Yabin Cui [Thu, 7 Jul 2016 23:04:42 +0000 (23:04 +0000)]
Merge "simpleperf: give suggestion when mmap fails."

7 years agoMerge \\"simpleperf: fix build id check of files in symfs.\\" am: 3077c433d5
Yabin Cui [Thu, 7 Jul 2016 22:24:17 +0000 (22:24 +0000)]
Merge \\"simpleperf: fix build id check of files in symfs.\\" am: 3077c433d5
am: 7d626d6e35

Change-Id: I2b997b3f1de65ae0a119782cf898d3f4ea4f568e

7 years agoMerge \"simpleperf: fix build id check of files in symfs.\"
Yabin Cui [Thu, 7 Jul 2016 22:21:02 +0000 (22:21 +0000)]
Merge \"simpleperf: fix build id check of files in symfs.\"
am: 3077c433d5

Change-Id: If76de1f0a61d1184491b03fb6fdc685287a95450

7 years agoMerge "simpleperf: fix build id check of files in symfs."
Treehugger Robot [Thu, 7 Jul 2016 22:15:02 +0000 (22:15 +0000)]
Merge "simpleperf: fix build id check of files in symfs."

7 years agosimpleperf: give suggestion when mmap fails.
Yabin Cui [Thu, 7 Jul 2016 21:42:54 +0000 (14:42 -0700)]
simpleperf: give suggestion when mmap fails.

Bug: 29574526
Change-Id: I72cf2d0e1d15a561314d3c043650479b2c6773ff

7 years agosimpleperf: fix build id check of files in symfs.
Yabin Cui [Thu, 7 Jul 2016 20:53:33 +0000 (13:53 -0700)]
simpleperf: fix build id check of files in symfs.

In dso.cpp, build_id_map_ should use path_ instead of GetAccessiblePath() as the key.
However, patch https://android-review.googlesource.com/#/c/175654/ wrongly used
GetAccessiblePath() as the key in build_id_map_. This patch fixes the error and add
corresponding test.

Check if file in symfs exists before using it as debug file path.
If the build id of debug file path doesn't match the one in build_id_map_, output
warning to user.

Bug: 28911532
Test: run simpleperf_unit_test.
Change-Id: I21bca508359a492245db4cba5d287005363cd465

7 years agoMerge \\"simpleperf: add --symfs option for record command.\\" am: a4f2c631cb
Yabin Cui [Thu, 7 Jul 2016 20:58:32 +0000 (20:58 +0000)]
Merge \\"simpleperf: add --symfs option for record command.\\" am: a4f2c631cb
am: c44b6f965c

Change-Id: I3392f3cf78010fdc7a6630282416bfed213f3fcf

7 years agoMerge \"simpleperf: add --symfs option for record command.\"
Yabin Cui [Thu, 7 Jul 2016 20:55:43 +0000 (20:55 +0000)]
Merge \"simpleperf: add --symfs option for record command.\"
am: a4f2c631cb

Change-Id: I3a560d98de1b1cd7f2a1302fd9d21f3a9d35cc0e

7 years agoMerge "simpleperf: add --symfs option for record command."
Yabin Cui [Thu, 7 Jul 2016 20:46:13 +0000 (20:46 +0000)]
Merge "simpleperf: add --symfs option for record command."

7 years agosimpleperf: add --symfs option for record command.
Yabin Cui [Thu, 7 Jul 2016 17:56:47 +0000 (10:56 -0700)]
simpleperf: add --symfs option for record command.

When running record command with -g or --dump-symbols command,
files with symbol table and debug information are needed. Similar
to report command, we can add --symfs option to record command.

Bug: 28911532
Test: run simpleperf_unit_test.

Change-Id: I8e2b6320ca29c8de78b4f217cd25e1ea4383150e

7 years agoMerge \\"simpleperf: add symbol for .plt section.\\" am: 13a21e1df3
Yabin Cui [Thu, 7 Jul 2016 18:49:21 +0000 (18:49 +0000)]
Merge \\"simpleperf: add symbol for .plt section.\\" am: 13a21e1df3
am: fdfcf730d4

Change-Id: I49e0780724a9fa76c527bcfa386466e98426819c

7 years agoMerge \"simpleperf: add symbol for .plt section.\"
Yabin Cui [Thu, 7 Jul 2016 18:43:54 +0000 (18:43 +0000)]
Merge \"simpleperf: add symbol for .plt section.\"
am: 13a21e1df3

Change-Id: I0e5dc7646c4225d2226b4ba0ba67a19c883a23e1

7 years agoMerge "simpleperf: add symbol for .plt section."
Yabin Cui [Thu, 7 Jul 2016 18:23:40 +0000 (18:23 +0000)]
Merge "simpleperf: add symbol for .plt section."

7 years agosimpleperf: add symbol for .plt section.
Yabin Cui [Thu, 7 Jul 2016 01:29:00 +0000 (18:29 -0700)]
simpleperf: add symbol for .plt section.

This avoid reporting unknown symbols when there are samples in .plt section.

Bug: 28911532
Test: run simpleperf_unit_test.
Change-Id: I62cb08776c99951ff845e98f0f601859d25ece5c

7 years agoMerge \\"Simpleperf: add auto generated summaries in stat command.\\" am: 11615de832
Yabin Cui [Thu, 7 Jul 2016 17:21:02 +0000 (17:21 +0000)]
Merge \\"Simpleperf: add auto generated summaries in stat command.\\" am: 11615de832
am: 6efb4bf6ca

Change-Id: I5541475f5e65c869af9539a68c9095970bd70f34

7 years agoMerge \"Simpleperf: add auto generated summaries in stat command.\"
Yabin Cui [Thu, 7 Jul 2016 17:18:04 +0000 (17:18 +0000)]
Merge \"Simpleperf: add auto generated summaries in stat command.\"
am: 11615de832

Change-Id: I41e95398507e62f442d948273c12cb65e5d1730d

7 years agoMerge "Simpleperf: add auto generated summaries in stat command."
Yabin Cui [Thu, 7 Jul 2016 17:09:48 +0000 (17:09 +0000)]
Merge "Simpleperf: add auto generated summaries in stat command."

7 years agoSimpleperf: add auto generated summaries in stat command.
Yabin Cui [Thu, 23 Jun 2016 03:58:52 +0000 (20:58 -0700)]
Simpleperf: add auto generated summaries in stat command.

When there are summaries monitoring one event type in user
space and kernel space at the same time period, we can automatically
generate a summary combining the results generated in user space and
kernel space.
This can help to decrease the number of needed hardware counters.

Also adjust scale check when deciding whether an event is monitored
all the time.

Bug: 29213742
Change-Id: I272e21420700c10fccb1336a1e60138db8d13b3d
Test: run simpleperf_unit_test.

7 years agoMerge \\"simpleperf: add symbol filter for report command.\\" am: 90c2cd36c6
Yabin Cui [Thu, 7 Jul 2016 00:17:57 +0000 (00:17 +0000)]
Merge \\"simpleperf: add symbol filter for report command.\\" am: 90c2cd36c6
am: 26edabd386

Change-Id: I51c52871e87091f4066d01abefaaa0c439046569

7 years agoMerge \\"simpleperf: fix RecordCache.\\" am: fb1f20eafe
Yabin Cui [Thu, 7 Jul 2016 00:17:57 +0000 (00:17 +0000)]
Merge \\"simpleperf: fix RecordCache.\\" am: fb1f20eafe
am: 5583365ea0

Change-Id: Ic164929601ef727847b5ac13733a5b4d981766de

7 years agoMerge \"simpleperf: add symbol filter for report command.\"
Yabin Cui [Thu, 7 Jul 2016 00:15:12 +0000 (00:15 +0000)]
Merge \"simpleperf: add symbol filter for report command.\"
am: 90c2cd36c6

Change-Id: Iacd1999b02878ed129409a4d538f0d8d0b141fe9

7 years agoMerge \"simpleperf: fix RecordCache.\"
Yabin Cui [Thu, 7 Jul 2016 00:15:10 +0000 (00:15 +0000)]
Merge \"simpleperf: fix RecordCache.\"
am: fb1f20eafe

Change-Id: If177bbdb589e92aab7d81c1831071561c0c5cdf1

7 years agoMerge "simpleperf: add symbol filter for report command."
Yabin Cui [Thu, 7 Jul 2016 00:04:31 +0000 (00:04 +0000)]
Merge "simpleperf: add symbol filter for report command."

7 years agoMerge "simpleperf: fix RecordCache."
Yabin Cui [Thu, 7 Jul 2016 00:04:18 +0000 (00:04 +0000)]
Merge "simpleperf: fix RecordCache."

7 years agosimpleperf: add symbol filter for report command.
Yabin Cui [Wed, 6 Jul 2016 19:26:13 +0000 (12:26 -0700)]
simpleperf: add symbol filter for report command.

By adding --symbols option, we can report for selected functions.
It helps to filter out functions we don't care, especially when
we are using `simpleperf report --sort vaddr_in_file` to profile
inside a function.

Bug: 29826956

Change-Id: I4de9dfe1a376db097f6163aa780a079cbc33689a

7 years agosimpleperf: fix RecordCache.
Yabin Cui [Wed, 6 Jul 2016 19:01:35 +0000 (12:01 -0700)]
simpleperf: fix RecordCache.

RecordCache::Push(vector<..>) doesn't update last_time_, this makes
RecordCache don't pop any record before PopAll().

Bug: 29581559
Change-Id: Icea806346b7ad812e606eaf05747797b766ebd71
Test: run simpleperf_unit_test.

7 years agoMerge \\"Simpleperf: add vaddr_in_file sort key in report command.\\" am: 5f99cdc04b
Yabin Cui [Sat, 2 Jul 2016 00:20:40 +0000 (00:20 +0000)]
Merge \\"Simpleperf: add vaddr_in_file sort key in report command.\\" am: 5f99cdc04b
am: ba95e32fec

Change-Id: Ibe03f2241e4a93587720aa1fb895e6a778560d66

7 years agoMerge \"Simpleperf: add vaddr_in_file sort key in report command.\"
Yabin Cui [Sat, 2 Jul 2016 00:18:07 +0000 (00:18 +0000)]
Merge \"Simpleperf: add vaddr_in_file sort key in report command.\"
am: 5f99cdc04b

Change-Id: I3fcd9d63a592f1e30b3623448124f33f22091840

7 years agoMerge "Simpleperf: add vaddr_in_file sort key in report command."
Yabin Cui [Sat, 2 Jul 2016 00:10:46 +0000 (00:10 +0000)]
Merge "Simpleperf: add vaddr_in_file sort key in report command."

7 years agoRemove call to no-op klog_init.
Elliott Hughes [Wed, 29 Jun 2016 23:18:12 +0000 (16:18 -0700)]
Remove call to no-op klog_init.

Change-Id: I3a55449f594c629edc75e4aa5b91b27c72ecd8ca

7 years agoSimpleperf: add vaddr_in_file sort key in report command.
Yabin Cui [Wed, 29 Jun 2016 19:18:11 +0000 (12:18 -0700)]
Simpleperf: add vaddr_in_file sort key in report command.

Currently report command can't report more details than function name.
After adding vaddr_in_file sort key, it can report the place of the
instruction being sampled. vaddr_in_file is the instruction's virtual
address in elf file, which matches output generated by objdump.

Bug: 29826956
Test: run simpleperf_unit_test.
Change-Id: Ifad4dfb7c60014a03c01ffbfd0b972858f1a4884

7 years agoANRdaemon: move trace result from /sdcard to /data am: d93aa41807 am: adfc967454
Zhengyin Qian [Wed, 29 Jun 2016 17:55:52 +0000 (17:55 +0000)]
ANRdaemon: move trace result from /sdcard to /data am: d93aa41807 am: adfc967454
am: 20e3c1bc94

Change-Id: I9ff729c4b48380e8f2ee877df2faa4c96b3f1292

7 years agoANRdaemon: move trace result from /sdcard to /data am: d93aa41807
Zhengyin Qian [Wed, 29 Jun 2016 17:53:11 +0000 (17:53 +0000)]
ANRdaemon: move trace result from /sdcard to /data am: d93aa41807
am: adfc967454

Change-Id: I4f8d4551c3ab2f5430600af833ced564aa328a55

7 years agoANRdaemon: move trace result from /sdcard to /data
Zhengyin Qian [Wed, 29 Jun 2016 17:50:00 +0000 (17:50 +0000)]
ANRdaemon: move trace result from /sdcard to /data
am: d93aa41807

Change-Id: I487116b8261bcef0fc9b829eaf38408d8a47ee78

7 years agoMerge \\"pagingtest: fix large read errors\\" am: d937202a3b
Rom Lemarchand [Tue, 28 Jun 2016 21:57:38 +0000 (21:57 +0000)]
Merge \\"pagingtest: fix large read errors\\" am: d937202a3b
am: f024991585

Change-Id: I9cceca1a9e3a785c623b794d6f5041aa00e11200

7 years agoMerge \"pagingtest: fix large read errors\"
Rom Lemarchand [Tue, 28 Jun 2016 21:55:23 +0000 (21:55 +0000)]
Merge \"pagingtest: fix large read errors\"
am: d937202a3b

Change-Id: If90cfaa7ed7769b760c57aace300fa2b10bed8df

7 years agoMerge "pagingtest: fix large read errors"
Treehugger Robot [Tue, 28 Jun 2016 21:30:42 +0000 (21:30 +0000)]
Merge "pagingtest: fix large read errors"

7 years agoMerge \\"Switch to new encoding scheme for large records.\\" am: 0380bb5f26
Than McIntosh [Tue, 28 Jun 2016 18:16:04 +0000 (18:16 +0000)]
Merge \\"Switch to new encoding scheme for large records.\\" am: 0380bb5f26
am: 702e0b6c3d

Change-Id: I55544638af87003c870868f0f1255817f7579cd6

7 years agoMerge \"Switch to new encoding scheme for large records.\"
Than McIntosh [Tue, 28 Jun 2016 18:12:53 +0000 (18:12 +0000)]
Merge \"Switch to new encoding scheme for large records.\"
am: 0380bb5f26

Change-Id: Ib6daa6183bcfb989ef52b71d4c9d012fd6884529

7 years agoMerge "Switch to new encoding scheme for large records."
Than McIntosh [Tue, 28 Jun 2016 18:07:12 +0000 (18:07 +0000)]
Merge "Switch to new encoding scheme for large records."

7 years agoMerge \\"Simpleperf: Add SPLIT and SPLIT_END records to handle big records.\\" am...
Yabin Cui [Tue, 28 Jun 2016 17:21:06 +0000 (17:21 +0000)]
Merge \\"Simpleperf: Add SPLIT and SPLIT_END records to handle big records.\\" am: 6d20b67da5
am: f0e232ddd6

Change-Id: I5258ee29b607bfe3fa0ba203550a087a979b2d9f

7 years agoMerge \"Simpleperf: Add SPLIT and SPLIT_END records to handle big records.\"
Yabin Cui [Tue, 28 Jun 2016 17:18:23 +0000 (17:18 +0000)]
Merge \"Simpleperf: Add SPLIT and SPLIT_END records to handle big records.\"
am: 6d20b67da5

Change-Id: I105cbdd688b50ce64450e8819b8d7ef28c15b838

7 years agoMerge "Simpleperf: Add SPLIT and SPLIT_END records to handle big records."
Treehugger Robot [Tue, 28 Jun 2016 17:09:26 +0000 (17:09 +0000)]
Merge "Simpleperf: Add SPLIT and SPLIT_END records to handle big records."

7 years agoSwitch to new encoding scheme for large records.
Than McIntosh [Tue, 28 Jun 2016 15:50:11 +0000 (11:50 -0400)]
Switch to new encoding scheme for large records.

Move to the new SPLIT/SPLIT_END encoding scheme used
by simpleperf for records with oversized (more than 2^16 bytes)
payloads.

Bug: 29818021
Change-Id: I40126748dbe9b07b107c85b891f7aafbc556ae1f

7 years agopagingtest: fix large read errors
Rom Lemarchand [Tue, 28 Jun 2016 14:51:33 +0000 (07:51 -0700)]
pagingtest: fix large read errors

Some kernels have a limit on the length of reads from urandom - fix

Change-Id: I67dda25c2e43121da1470a56e40d03c59fd5fabe

7 years agoresolve merge conflicts of a486a4b to nyc-dev-plus-aosp
Yabin Cui [Tue, 28 Jun 2016 00:21:37 +0000 (17:21 -0700)]
resolve merge conflicts of a486a4b to nyc-dev-plus-aosp

Change-Id: Iad2f0b498d7abd2eb52116a32517bfee20129f05

7 years agoSimpleperf: fix flaky tests.
Yabin Cui [Mon, 27 Jun 2016 23:00:20 +0000 (16:00 -0700)]
Simpleperf: fix flaky tests.

Simpleperf stat/record command may need 1 second to set security.perf_harden
property. So the monitored child threads should run longer than 1 second.

Bug: 29763505
Change-Id: I9bf6dcba03f3fc5c91130f38a08ce0062e104103

7 years agoSimpleperf: Add SPLIT and SPLIT_END records to handle big records.
Yabin Cui [Fri, 24 Jun 2016 00:11:14 +0000 (17:11 -0700)]
Simpleperf: Add SPLIT and SPLIT_END records to handle big records.

Previously we split KernelSymbolRecord because it is > 65535. Then
I found TracingDataRecord can also be > 65535. So it is better to
handle big records when reading and writing perf.data.
record_file_writer.cpp splits a big record into multiple SPLIT
records followed by a SPLIT_END record, and record_file_reader.cpp
restores the big record when reading SPLIT and SPLIT_END records.
Also Add RecordHeader to represent record having size > 65535.

Bug: 29581559
Change-Id: I0b4556988f77b3431c7f1a28fce65cf225d6a067
Test: run simpleperf_unit_test.

7 years agoMerge \\"Dist simpleperf executables in SDK targets\\" am: 965a99e493
Dan Willemsen [Thu, 23 Jun 2016 01:12:30 +0000 (01:12 +0000)]
Merge \\"Dist simpleperf executables in SDK targets\\" am: 965a99e493
am: aab6d80c06

Change-Id: I1d71111e4238ca9a2b87045d46485369e0271984

7 years agoMerge \"Dist simpleperf executables in SDK targets\"
Dan Willemsen [Thu, 23 Jun 2016 01:09:32 +0000 (01:09 +0000)]
Merge \"Dist simpleperf executables in SDK targets\"
am: 965a99e493

Change-Id: I35d4bb08697e32c889a5d0a4baa82de7ec79c9b8

7 years agoMerge "Dist simpleperf executables in SDK targets"
Treehugger Robot [Thu, 23 Jun 2016 01:00:39 +0000 (01:00 +0000)]
Merge "Dist simpleperf executables in SDK targets"

7 years agoMerge \\"Simpleperf: use libc++_static on host.\\" am: 185f314239
Yabin Cui [Thu, 23 Jun 2016 00:02:11 +0000 (00:02 +0000)]
Merge \\"Simpleperf: use libc++_static on host.\\" am: 185f314239
am: b76a0affbd

Change-Id: I9d6da22c618df56e5da08413ceb7eca6ce965a32

7 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

7 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."

7 years agoDist simpleperf executables in SDK targets
Dan Willemsen [Wed, 22 Jun 2016 23:41:36 +0000 (16:41 -0700)]
Dist simpleperf executables in SDK targets

Bug: 28911532
Change-Id: I5ec387ee1bbdff1e62788aa1fe3995cb44b37754

7 years agoANRdaemon: move trace result from /sdcard to /data
Zhengyin Qian [Tue, 21 Jun 2016 21:05:44 +0000 (14:05 -0700)]
ANRdaemon: move trace result from /sdcard to /data

Bug: 28765756
Change-Id: Ic9461bc66c8ba4df1455d8b75c4fb6b544d0cf27

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

Change-Id: I0cad51ed45ababb34d91f8b2a1359920da3b6ae4

7 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

7 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."

7 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.

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

Change-Id: Icbb019b43cb981c0694f3dc4b2f3c2cd4dc09ee8

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

Change-Id: Ifaab77fec55286a3f9831b181e1104050e83cb6c

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

Change-Id: I911e49326142c1bf34fa1de8f776782475187880

7 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

7 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

7 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

7 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.

7 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."

7 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."

7 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."

7 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.

7 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.

7 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.

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

Change-Id: I164fc1ee96153c80376c64ab60934f6555de0177

7 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

7 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."

7 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.\\" am: d5822b9d35
Yabin Cui [Sat, 18 Jun 2016 01:08:41 +0000 (01:08 +0000)]
Merge \\"simpleperf: support event group.\\" am: d5822b9d35
am: 733e4d06fb

Change-Id: I5ddace20c039e30eb973f339a847a13fa6dd079a

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\\" am: c2174a1934
Badhri Jagan Sridharan [Fri, 17 Jun 2016 03:02:03 +0000 (03:02 +0000)]
Merge \\"libfec: pack the fec_header structure\\" am: c2174a1934
am: bf504f017e

Change-Id: I696560cfb458f72f4162eecccee30026d68edf42

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 \"mksquashfsimage.sh: Make disable-4k-align a paramter\" into nyc-dev
Mohamad Ayyash [Thu, 16 Jun 2016 16:39:40 +0000 (16:39 +0000)]
Merge \"mksquashfsimage.sh: Make disable-4k-align a paramter\" into nyc-dev
am: 041bdd8e10

Change-Id: I601f54dcb907f1cbb247d8f1d4ef43871d5f92a7

8 years agoMerge "mksquashfsimage.sh: Make disable-4k-align a paramter" into nyc-dev
Mohamad Ayyash [Thu, 16 Jun 2016 16:24:33 +0000 (16:24 +0000)]
Merge "mksquashfsimage.sh: Make disable-4k-align a paramter" into nyc-dev

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

Change-Id: I544470c367fa0b188b5bb0a1b570efcddd0bdec1

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 agomksquashfsimage.sh: Make disable-4k-align a paramter
Mohamad Ayyash [Wed, 15 Jun 2016 22:53:55 +0000 (15:53 -0700)]
mksquashfsimage.sh: Make disable-4k-align a paramter

BUG: 29388879
Change-Id: I6ede2273419ba986d08decc0540741c54ed736b1
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
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:28:16 +0000 (22:28 +0000)]
Merge \\"simpleperf: replace SIMPLEPERF_ALIGN macro with Align inline function.\\" am: 82cc1bf01d
am: bf66399909

Change-Id: Iece599050c969665d2f03b20dc382d074b94b4ca