OSDN Git Service

android-x86/system-extras.git
7 years agoMerge "simpleperf: remove cpu option tests."
Yabin Cui [Fri, 5 Aug 2016 21:38:26 +0000 (21:38 +0000)]
Merge "simpleperf: remove cpu option tests."
am: 9ec492a979

Change-Id: I9ed4fc32a7ba7030c48d4d5b7d7a905caed01e6d

7 years agoMerge "simpleperf: reduce Record construction overhead while recording."
Yabin Cui [Fri, 5 Aug 2016 21:38:25 +0000 (21:38 +0000)]
Merge "simpleperf: reduce Record construction overhead while recording."
am: 4640256028

Change-Id: I55f89fb43605143e8c2f2d1931a40b4a495d1ad6

7 years agoMerge "simpleperf: remove cpu option tests."
Treehugger Robot [Fri, 5 Aug 2016 21:35:49 +0000 (21:35 +0000)]
Merge "simpleperf: remove cpu option tests."

7 years agoMerge "simpleperf: reduce Record construction overhead while recording."
Treehugger Robot [Fri, 5 Aug 2016 21:31:29 +0000 (21:31 +0000)]
Merge "simpleperf: reduce Record construction overhead while recording."

7 years agosimpleperf: remove cpu option tests.
Yabin Cui [Fri, 5 Aug 2016 19:11:26 +0000 (12:11 -0700)]
simpleperf: remove cpu option tests.

The cpu option tests are flaky because Cpu 0 can be offlined.

Bug: http://b/30389972
Change-Id: Ie9f57dcde957be245167c957eb029ab37496471e
Test: run simpleperf cts test.

7 years agoMerge "simpleperf: fix arm unwinding."
Yabin Cui [Fri, 5 Aug 2016 20:37:44 +0000 (20:37 +0000)]
Merge "simpleperf: fix arm unwinding."
am: 96bf860b97

Change-Id: Ia652107bc88d04012d3d16bc146ff98bc3bc15cf

7 years agoMerge "simpleperf: fix arm unwinding."
Yabin Cui [Fri, 5 Aug 2016 20:32:34 +0000 (20:32 +0000)]
Merge "simpleperf: fix arm unwinding."

7 years agosimpleperf: fix arm unwinding.
Yabin Cui [Fri, 5 Aug 2016 18:27:42 +0000 (11:27 -0700)]
simpleperf: fix arm unwinding.

Change-Id: Ie611504a7e5062c25466b59ebdcf8c33b51bf90c
Test: run simpleperf_unit_test.

7 years agosimpleperf: reduce Record construction overhead while recording.
Yabin Cui [Thu, 4 Aug 2016 21:47:50 +0000 (14:47 -0700)]
simpleperf: reduce Record construction overhead while recording.

Avoid binary allocation and memory copy in ReadRecordsFromBuffer(),
thus reduce Record construction overhead in
EventSelectionSet::ReadMmapEventDataForFd().

Remove RecordCache used while recording. Replace it with
RecordFileWriter::SortDataSection(). For unwinding while
recording, use low watermark to make records almost sorted
when dumped from the kernel.

Bug: 30649868
Test: run simpleperf_unit_test.

Change-Id: Ie5fb942046900a5960b3c990cf4177c026eaadfb

7 years agoMerge "simpleperf: fix runtest."
Yabin Cui [Thu, 4 Aug 2016 22:04:06 +0000 (22:04 +0000)]
Merge "simpleperf: fix runtest."
am: 2b29c4cea0

Change-Id: I386f50558456212a606af8a350df9189bc8047ba

7 years agoMerge "simpleperf: keep binary in class Record."
Yabin Cui [Thu, 4 Aug 2016 22:04:05 +0000 (22:04 +0000)]
Merge "simpleperf: keep binary in class Record."
am: 39141ecfa0

Change-Id: If61094b89477e3114c3b9ba54a6036d3d11b9219

7 years agoMerge "simpleperf: fix runtest."
Yabin Cui [Thu, 4 Aug 2016 21:46:51 +0000 (21:46 +0000)]
Merge "simpleperf: fix runtest."

7 years agoMerge "simpleperf: keep binary in class Record."
Yabin Cui [Thu, 4 Aug 2016 21:46:37 +0000 (21:46 +0000)]
Merge "simpleperf: keep binary in class Record."

7 years agosimpleperf: keep binary in class Record.
Yabin Cui [Thu, 4 Aug 2016 17:22:17 +0000 (10:22 -0700)]
simpleperf: keep binary in class Record.

It removes memory copy and heap allocation/deallocation in
Record::BinaryFormat(), and is a preparation to remove memory
copy and heap allocation in Record constructor.

Bug: 30649868
Test: run simpleperf_unit_test.
Change-Id: Ic8dd80e43f7b547a9beaf896d726b56aeb5d55a2

7 years agosimpleperf: fix runtest.
Yabin Cui [Thu, 4 Aug 2016 18:00:29 +0000 (11:00 -0700)]
simpleperf: fix runtest.

Use /data/local/tmp directory to pass runtest on non-rooted device.

Bug: 30413567
Change-Id: I730e0763b409f458390583dd894a644e9213e807

7 years agoMerge "Fix clang-tidy warnings in iotop."
Chih-Hung Hsieh [Tue, 2 Aug 2016 21:23:45 +0000 (21:23 +0000)]
Merge "Fix clang-tidy warnings in iotop."
am: 1f282c61fa

Change-Id: Ie3440dc2e619ad4168ffe3b0c3cf1d012fba673b

7 years agoMerge "Fix clang-tidy warnings in iotop."
Treehugger Robot [Tue, 2 Aug 2016 21:17:49 +0000 (21:17 +0000)]
Merge "Fix clang-tidy warnings in iotop."

7 years agoMerge "Fix google-explicit-constructor warnings in libfec."
Chih-Hung Hsieh [Tue, 2 Aug 2016 19:38:09 +0000 (19:38 +0000)]
Merge "Fix google-explicit-constructor warnings in libfec."
am: 7fc6a07696

Change-Id: Ifd09ebf2cce7e27f3261892b44c5c983b36b2fcc

7 years agoMerge "Fix google-explicit-constructor warnings in libfec."
Treehugger Robot [Tue, 2 Aug 2016 19:33:02 +0000 (19:33 +0000)]
Merge "Fix google-explicit-constructor warnings in libfec."

7 years agoFix clang-tidy warnings in iotop.
Chih-Hung Hsieh [Tue, 2 Aug 2016 18:19:23 +0000 (11:19 -0700)]
Fix clang-tidy warnings in iotop.

* Declare explicit conversion constructors.
* Use const reference type for parameter to avoid unnecessary copy.

Bug: 28341362
Bug: 30407689
Change-Id: Ia95a041125703ecbfac128709fd6ea0591df2103
Test: build with WITH_TIDY=1

7 years agoFix google-explicit-constructor warnings in libfec.
Chih-Hung Hsieh [Tue, 2 Aug 2016 18:11:24 +0000 (11:11 -0700)]
Fix google-explicit-constructor warnings in libfec.

Bug: 28341362
Change-Id: Id7d9593e87fc8187942ef808f6ccf943a6ec023d
Test: build with WITH_TIDY=1

7 years agoMerge "simpleperf: add version."
Yabin Cui [Tue, 2 Aug 2016 01:38:36 +0000 (01:38 +0000)]
Merge "simpleperf: add version."
am: 52e9f95751

Change-Id: If15f4b3221a79021acb5c58d619c2bbebf336b96

7 years agoMerge "simpleperf: add version."
Treehugger Robot [Tue, 2 Aug 2016 01:30:50 +0000 (01:30 +0000)]
Merge "simpleperf: add version."

7 years agoMerge "simpleperf: print warning message when failed to read symbol table from elf...
Yabin Cui [Tue, 2 Aug 2016 00:42:02 +0000 (00:42 +0000)]
Merge "simpleperf: print warning message when failed to read symbol table from elf file."
am: 966660c41b

Change-Id: I771685b3473c2ae75dc7e266127146ff476773c2

7 years agoMerge "simpleperf: print warning message when failed to read symbol table from elf...
Yabin Cui [Tue, 2 Aug 2016 00:36:26 +0000 (00:36 +0000)]
Merge "simpleperf: print warning message when failed to read symbol table from elf file."

7 years agosimpleperf: add version.
Yabin Cui [Wed, 27 Jul 2016 01:42:38 +0000 (18:42 -0700)]
simpleperf: add version.

Bug: http://b/30416563
Change-Id: I03e5dbae3f0944d7d6b73d4dfa252ad3396b83e6
Test: run `simpleperf --version`.

7 years agosimpleperf: print warning message when failed to read symbol table from elf file.
Yabin Cui [Fri, 29 Jul 2016 23:40:40 +0000 (16:40 -0700)]
simpleperf: print warning message when failed to read symbol table from elf file.

Change return type of read elf functions to ElfStatus, and print warning message
based on situation.
Add corresponding test.

Bug: 29193936
Change-Id: Ie449f8be34cb579962cb73f4be3df9e4997270ca
Test: run simpleperf_unit_test.

7 years agoMerge \"simpleperf: use libevent in record command.\"
Yabin Cui [Fri, 29 Jul 2016 00:10:01 +0000 (00:10 +0000)]
Merge \"simpleperf: use libevent in record command.\"
am: 8f5d3f48bf

Change-Id: I26617da3a97fe782a47f3309217915bf8fcfab95

7 years agoMerge "simpleperf: use libevent in record command."
Yabin Cui [Thu, 28 Jul 2016 23:56:34 +0000 (23:56 +0000)]
Merge "simpleperf: use libevent in record command."

7 years agosimpleperf: use libevent in record command.
Yabin Cui [Thu, 28 Jul 2016 19:55:41 +0000 (12:55 -0700)]
simpleperf: use libevent in record command.

Support read Event in IOEventLoop, test it, and use it
in record command.
Format related code and clean up some comments.

Bug: http://b/30405638
Change-Id: I3b07d50b0374be3f3e7ee9fa4d0c0ccc8ae21a2b
Test: run simpleperf_unit_test.

7 years agoMerge \"Fix clang-tidy performance warnings in simpleperf.\"
Chih-Hung Hsieh [Thu, 28 Jul 2016 15:59:56 +0000 (15:59 +0000)]
Merge \"Fix clang-tidy performance warnings in simpleperf.\"
am: 43b194dc15

Change-Id: Ie7206846246bd50fbc758e972b83596bcacb3faf

7 years agoMerge "Fix clang-tidy performance warnings in simpleperf."
Chih-hung Hsieh [Thu, 28 Jul 2016 15:50:06 +0000 (15:50 +0000)]
Merge "Fix clang-tidy performance warnings in simpleperf."

7 years agoMerge \"Fix clang-tidy performance warnings in perfprofd.\"
Chih-Hung Hsieh [Thu, 28 Jul 2016 06:25:58 +0000 (06:25 +0000)]
Merge \"Fix clang-tidy performance warnings in perfprofd.\"
am: c2643f1c69

Change-Id: I7cbd828531927d517b319ca3795eae2c3c049cc7

7 years agoMerge "Fix clang-tidy performance warnings in perfprofd."
Chih-hung Hsieh [Thu, 28 Jul 2016 01:19:16 +0000 (01:19 +0000)]
Merge "Fix clang-tidy performance warnings in perfprofd."

7 years agoFix clang-tidy performance warnings in simpleperf.
Chih-Hung Hsieh [Wed, 27 Jul 2016 22:22:01 +0000 (15:22 -0700)]
Fix clang-tidy performance warnings in simpleperf.

* Use const reference type for parameters to avoid unnecessary copy.
* Use faster overloaded string find function.

Bug: 30407689
Bug: 30411878
Change-Id: I2dac3ab1928fd51fe03c4d7889f17f3b165918f3
Test: build with WITH_TIDY=1

7 years agoMerge \"simpleperf: use libevent in stat command.\"
Yabin Cui [Wed, 27 Jul 2016 23:54:12 +0000 (23:54 +0000)]
Merge \"simpleperf: use libevent in stat command.\"
am: cab924fae5

Change-Id: Id3f2e39a1aebddcdc6e548595b394d4eedcf3e0f

7 years agoMerge "simpleperf: use libevent in stat command."
Yabin Cui [Wed, 27 Jul 2016 23:49:35 +0000 (23:49 +0000)]
Merge "simpleperf: use libevent in stat command."

7 years agoMerge \"simpleperf: report lost record situation in report-sample command.\"
Yabin Cui [Wed, 27 Jul 2016 23:48:28 +0000 (23:48 +0000)]
Merge \"simpleperf: report lost record situation in report-sample command.\"
am: fdd7b1f5f3

Change-Id: Ic5af58a491b03d7800b0886a995062249a2f0b7b

7 years agoMerge "simpleperf: report lost record situation in report-sample command."
Treehugger Robot [Wed, 27 Jul 2016 23:40:39 +0000 (23:40 +0000)]
Merge "simpleperf: report lost record situation in report-sample command."

7 years agoMerge \"Fix clang-tidy performance warnings in libfec.\"
Chih-Hung Hsieh [Wed, 27 Jul 2016 23:23:29 +0000 (23:23 +0000)]
Merge \"Fix clang-tidy performance warnings in libfec.\"
am: 1f6947bcd9

Change-Id: I7dd8acceacec22365ffb0157704cf839771a1e18

7 years agoMerge "Fix clang-tidy performance warnings in libfec."
Treehugger Robot [Wed, 27 Jul 2016 23:21:41 +0000 (23:21 +0000)]
Merge "Fix clang-tidy performance warnings in libfec."

7 years agoMerge \"simpleperf: fix runtest.\"
Yabin Cui [Wed, 27 Jul 2016 23:12:00 +0000 (23:12 +0000)]
Merge \"simpleperf: fix runtest.\"
am: b40840ff74

Change-Id: I734ce3ec710c9e8fdf65e976893d956d4e391cb7

7 years agoMerge "simpleperf: fix runtest."
Treehugger Robot [Wed, 27 Jul 2016 23:03:32 +0000 (23:03 +0000)]
Merge "simpleperf: fix runtest."

7 years agoFix clang-tidy performance warnings in perfprofd.
Chih-Hung Hsieh [Wed, 27 Jul 2016 22:16:00 +0000 (15:16 -0700)]
Fix clang-tidy performance warnings in perfprofd.

* Use faster overloaded find_last_of function.

Bug: 30411878
Change-Id: I8402437340170962811bd79af777be198712894b
Test: build with WITH_TIDY=1

7 years agoFix clang-tidy performance warnings in libfec.
Chih-Hung Hsieh [Wed, 27 Jul 2016 22:06:58 +0000 (15:06 -0700)]
Fix clang-tidy performance warnings in libfec.

* Use const reference type for for-loop index variables
  to avoid unnecessary copy.

Bug: 30413223
Change-Id: I9819261087a5385fe580f805be44a2407f35cdf5
Test: build with WITH_TIDY=1

7 years agosimpleperf: use libevent in stat command.
Yabin Cui [Tue, 26 Jul 2016 22:03:27 +0000 (15:03 -0700)]
simpleperf: use libevent in stat command.

Wrap libevent in IOEventLoop, use IOEventLoop in stat command.
Add corresponding tests.

Bug: http://b/30405638
Change-Id: I78b79e0eff1365ab46dde29c2a24a2def586af79
Test: run simpleperf_unit_test.

7 years agosimpleperf: report lost record situation in report-sample command.
Yabin Cui [Wed, 27 Jul 2016 02:49:15 +0000 (19:49 -0700)]
simpleperf: report lost record situation in report-sample command.

Bug: http://b/28114205
Change-Id: I1dc1389fb62596811a27d8dab5cbd214437457ee
Test: run simpleperf_unit_test.

7 years agosimpleperf: fix runtest.
Yabin Cui [Tue, 26 Jul 2016 22:57:10 +0000 (15:57 -0700)]
simpleperf: fix runtest.

1. Adjust function_fork.cpp and two_functions.cpp to make functions
not combined by compiler.
2. Download simpleperf and runtest executables on device before
testing on device.
3. Find config file in the same directory as runtest.py instead of
relying that it is in current directory.

Bug: http://b/30413567
Change-Id: I4ed9964f443c8cc75f4cb352ff1f13fb11104c89
Test: mmma system/extras/simpleperf && python system/extras/simpleperf/runtest/runtest.py

7 years agoMerge \"Rename lib{crypto,ssl}-host to lib{crypto,ssl}\"
Dan Willemsen [Sat, 23 Jul 2016 00:29:27 +0000 (00:29 +0000)]
Merge \"Rename lib{crypto,ssl}-host to lib{crypto,ssl}\"
am: 5b46f5747c

Change-Id: I513a2be90fee7b96d1e11bb45d93fc9f315c6e63

7 years agoMerge "Rename lib{crypto,ssl}-host to lib{crypto,ssl}"
Dan Willemsen [Sat, 23 Jul 2016 00:22:28 +0000 (00:22 +0000)]
Merge "Rename lib{crypto,ssl}-host to lib{crypto,ssl}"

7 years agoMerge \"simplperf: improve unknown symbol print in report-sample command.\"
Yabin Cui [Fri, 22 Jul 2016 22:59:21 +0000 (22:59 +0000)]
Merge \"simplperf: improve unknown symbol print in report-sample command.\"
am: 7682f60edc

Change-Id: I1738643c840698d65adecd67a586a02506dd26e1

7 years agoMerge "simplperf: improve unknown symbol print in report-sample command."
Treehugger Robot [Fri, 22 Jul 2016 22:50:18 +0000 (22:50 +0000)]
Merge "simplperf: improve unknown symbol print in report-sample command."

7 years agoMerge \"simpleperf: add --duration for stat/record command.\"
Yabin Cui [Fri, 22 Jul 2016 21:36:46 +0000 (21:36 +0000)]
Merge \"simpleperf: add --duration for stat/record command.\"
am: 53fdddd794

Change-Id: Ibc911eb9be4666dae97ae179248863a0622541a8

7 years agoMerge "simpleperf: add --duration for stat/record command."
Treehugger Robot [Fri, 22 Jul 2016 21:24:33 +0000 (21:24 +0000)]
Merge "simpleperf: add --duration for stat/record command."

7 years agosimpleperf: add --duration for stat/record command.
Yabin Cui [Fri, 22 Jul 2016 01:32:53 +0000 (18:32 -0700)]
simpleperf: add --duration for stat/record command.

Also fix a bug in ReportCommandTest.callgraph_option.

Bug: http://b/30292111
Change-Id: I21ced0c8aa7ec10c60c4fc1ddc6e5dfd256feeb1
Test: run simpleperf_unit_test.

8 years agoRename lib{crypto,ssl}-host to lib{crypto,ssl}
Dan Willemsen [Thu, 21 Jul 2016 21:16:53 +0000 (14:16 -0700)]
Rename lib{crypto,ssl}-host to lib{crypto,ssl}

There's no need to use a different name for target and host moudles. In
Soong, it's better to use the same for both, as target and host modules
can be defined at the same time.

Change-Id: I4b3ffd0b4abcd10490578d623ae140df5c19dc76

8 years agosimplperf: improve unknown symbol print in report-sample command.
Yabin Cui [Thu, 21 Jul 2016 19:29:47 +0000 (12:29 -0700)]
simplperf: improve unknown symbol print in report-sample command.

Add * for all unknown symbols, so it is easier to write program to
identify unknown symbols.
Use dso[+ip_offset] for unknown symbols.

Bug: 28114205
Change-Id: I14cfffe6673a9aedc62cc288c1b2d724ab411f5d

8 years agoMerge \"Add runconuid command to xbin\"
Zach Riggle [Thu, 21 Jul 2016 15:30:27 +0000 (15:30 +0000)]
Merge \"Add runconuid command to xbin\"
am: a33edd664d

Change-Id: I7f8403cb1f355c25c46659f9e5b0261ebe302791

8 years agoMerge "Add runconuid command to xbin"
Zach Riggle [Thu, 21 Jul 2016 15:23:14 +0000 (15:23 +0000)]
Merge "Add runconuid command to xbin"

8 years agoAdd runconuid command to xbin
Zach Riggle [Thu, 21 Jul 2016 15:21:54 +0000 (11:21 -0400)]
Add runconuid command to xbin

Change-Id: Iebaabb316682acd4415673f1ef3727a25922225d

8 years agoMerge \"simpleperf: add option for generating java code for report_sample.proto.\"
Yabin Cui [Thu, 21 Jul 2016 01:33:14 +0000 (01:33 +0000)]
Merge \"simpleperf: add option for generating java code for report_sample.proto.\"
am: 68320c1559

Change-Id: I26415fadd7e8be6866e8ace0a68354d81f4fa0f4

8 years agoMerge \"simpleperf: add thread_id in report_sample\'s output.\"
Yabin Cui [Thu, 21 Jul 2016 01:33:13 +0000 (01:33 +0000)]
Merge \"simpleperf: add thread_id in report_sample\'s output.\"
am: 0611ad5a36

Change-Id: Ib3b22e80e1f59827aa3ed65413ef2344c7ede390

8 years agoMerge "simpleperf: add option for generating java code for report_sample.proto."
Yabin Cui [Thu, 21 Jul 2016 01:12:19 +0000 (01:12 +0000)]
Merge "simpleperf: add option for generating java code for report_sample.proto."

8 years agoMerge "simpleperf: add thread_id in report_sample's output."
Yabin Cui [Thu, 21 Jul 2016 01:12:05 +0000 (01:12 +0000)]
Merge "simpleperf: add thread_id in report_sample's output."

8 years agosimpleperf: add option for generating java code for report_sample.proto.
Yabin Cui [Wed, 20 Jul 2016 00:15:12 +0000 (17:15 -0700)]
simpleperf: add option for generating java code for report_sample.proto.

Bug: 28114205
Change-Id: Iaa13b47b32c148c4770b4215e1dc2369538592f7

8 years agosimpleperf: add thread_id in report_sample's output.
Yabin Cui [Tue, 19 Jul 2016 23:07:54 +0000 (16:07 -0700)]
simpleperf: add thread_id in report_sample's output.

Also fix enum Type in report_sample.proto.

Bug: 28114205
Change-Id: Ia4e6a31a69095c8183544e2d53c8ceddc10ccb51

8 years agoMerge \"simpleperf: let simpleperf running record/stat command die if parent exits.\"
Yabin Cui [Fri, 15 Jul 2016 22:29:04 +0000 (22:29 +0000)]
Merge \"simpleperf: let simpleperf running record/stat command die if parent exits.\"
am: 20908fe1d7

Change-Id: Ibb27d164b498d88878517d9f100fcd71f8b71aed

8 years agoMerge "simpleperf: let simpleperf running record/stat command die if parent exits."
Yabin Cui [Fri, 15 Jul 2016 22:17:45 +0000 (22:17 +0000)]
Merge "simpleperf: let simpleperf running record/stat command die if parent exits."

8 years agosimpleperf: let simpleperf running record/stat command die if parent exits.
Yabin Cui [Fri, 15 Jul 2016 21:08:48 +0000 (14:08 -0700)]
simpleperf: let simpleperf running record/stat command die if parent exits.

Bug: 28114205
Change-Id: I310b9d7a4f52ad5bacf892eba34dbf531a3a7245

8 years agoMerge \"simpleperf: fix unwind stack size.\"
Yabin Cui [Thu, 14 Jul 2016 23:06:31 +0000 (23:06 +0000)]
Merge \"simpleperf: fix unwind stack size.\"
am: 7be7fee1e7

Change-Id: I549984ef043ecb05e2131d02901359d61efa879d

8 years agoMerge "simpleperf: fix unwind stack size."
Treehugger Robot [Thu, 14 Jul 2016 22:58:35 +0000 (22:58 +0000)]
Merge "simpleperf: fix unwind stack size."

8 years agoMerge \"simpleperf: show dso[+vaddr_in_file] for unknown symbols.\"
Yabin Cui [Thu, 14 Jul 2016 22:37:59 +0000 (22:37 +0000)]
Merge \"simpleperf: show dso[+vaddr_in_file] for unknown symbols.\"
am: 71f3fbc91b

Change-Id: Id47db344814bb5c9ab71509c7a6ccc45080ab645

8 years agoMerge "simpleperf: show dso[+vaddr_in_file] for unknown symbols."
Treehugger Robot [Thu, 14 Jul 2016 22:22:10 +0000 (22:22 +0000)]
Merge "simpleperf: show dso[+vaddr_in_file] for unknown symbols."

8 years agoMerge \"simpleperf: change default callgraph to use caller mode.\"
Yabin Cui [Thu, 14 Jul 2016 21:44:57 +0000 (21:44 +0000)]
Merge \"simpleperf: change default callgraph to use caller mode.\"
am: fd16291c83

Change-Id: Idde73a7d1220aaac208debd835a1145639a5b5a4

8 years agoMerge \"simpleperf: fix dumping symbols for unwinded ips.\"
Yabin Cui [Thu, 14 Jul 2016 21:44:56 +0000 (21:44 +0000)]
Merge \"simpleperf: fix dumping symbols for unwinded ips.\"
am: 1ebe5df8ae

Change-Id: Ib54f74775238a1827ceccb27b224e53ac53604c7

8 years agosimpleperf: fix unwind stack size.
Yabin Cui [Thu, 14 Jul 2016 21:29:33 +0000 (14:29 -0700)]
simpleperf: fix unwind stack size.

Currently, to work around the bug in N9, simpleperf uses
all dumped user stack for unwinding. However, not all of
the data is valid, which can make unwinding result annoying.
So fix this by using only valid stack data if dyn_size != 0.

Bug: 29574526
Test: run simpleperf_unit_test and use simpleperf manually.

Change-Id: Idaa82f3156215fc4fb902d96de290e43726b0e17

8 years agoMerge "simpleperf: change default callgraph to use caller mode."
Yabin Cui [Thu, 14 Jul 2016 21:34:59 +0000 (21:34 +0000)]
Merge "simpleperf: change default callgraph to use caller mode."

8 years agoMerge "simpleperf: fix dumping symbols for unwinded ips."
Yabin Cui [Thu, 14 Jul 2016 21:34:41 +0000 (21:34 +0000)]
Merge "simpleperf: fix dumping symbols for unwinded ips."

8 years agosimpleperf: show dso[+vaddr_in_file] for unknown symbols.
Yabin Cui [Thu, 14 Jul 2016 20:26:19 +0000 (13:26 -0700)]
simpleperf: show dso[+vaddr_in_file] for unknown symbols.

It gives more information than just unknown symbols.
Add --no-show-ip option to disable this additional detail.

Bug: 29772268
Change-Id: Ie8067f95b5fdc65806044e229ee12095367d115a
Test: run simpleperf_unit_test.

8 years agosimpleperf: change default callgraph to use caller mode.
Yabin Cui [Thu, 14 Jul 2016 18:50:31 +0000 (11:50 -0700)]
simpleperf: change default callgraph to use caller mode.

Callgraph in caller mode shows how functions call others, i.e.,
main() -> func1() -> func2(). Instead, callgraph in callee mode shows
how functions are called by others, i.e., func2() <- func1() <- main().
It seems callgraph in caller mode is easier to understand than callee
mode. So change to default option to use caller mode.

Bug: 29574526
Change-Id: I85f104ef7c974bbf7cafd290563e762ba1e0a084
Test: manually check if the default call graph changes.

8 years agosimpleperf: fix dumping symbols for unwinded ips.
Yabin Cui [Thu, 14 Jul 2016 18:13:41 +0000 (11:13 -0700)]
simpleperf: fix dumping symbols for unwinded ips.

Previous code dumps symbols for unwinded ips regardless of
--dump-symbols option. Fix it to be controled by --dump-symbols
option.

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

8 years agoMerge \"simpleperf: adjust mapped buffer size in record command.\"
Yabin Cui [Thu, 14 Jul 2016 02:35:28 +0000 (02:35 +0000)]
Merge \"simpleperf: adjust mapped buffer size in record command.\"
am: e5b5cf07c7

Change-Id: Ifff95d2239dc83267bb0dad870480bd4d29b9341

8 years agoMerge "simpleperf: adjust mapped buffer size in record command."
Treehugger Robot [Thu, 14 Jul 2016 02:17:21 +0000 (02:17 +0000)]
Merge "simpleperf: adjust mapped buffer size in record command."

8 years agosimpleperf: adjust mapped buffer size in record command.
Yabin Cui [Thu, 14 Jul 2016 00:06:50 +0000 (17:06 -0700)]
simpleperf: adjust mapped buffer size in record command.

Instead of fixing the mapped buffer size, we can adjust
it at runtime. So users don't need to adjust -m manually.

Bug: 29574526
Change-Id: Icb580df3d60f8d2cf554c0d4139e6f7f64b19f8f
Test: run simpleperf_unit_test.

8 years agoMerge \"simpleperf: check dump stack size and adjust its default value.\"
Yabin Cui [Wed, 13 Jul 2016 20:56:09 +0000 (20:56 +0000)]
Merge \"simpleperf: check dump stack size and adjust its default value.\"
am: 7a6b3fdff5

Change-Id: Ifbdce7abc65f089e35a0ecbcfedc81fc808282b6

8 years agoMerge "simpleperf: check dump stack size and adjust its default value."
Yabin Cui [Wed, 13 Jul 2016 20:47:40 +0000 (20:47 +0000)]
Merge "simpleperf: check dump stack size and adjust its default value."

8 years agosimpleperf: check dump stack size and adjust its default value.
Yabin Cui [Wed, 13 Jul 2016 19:18:18 +0000 (12:18 -0700)]
simpleperf: check dump stack size and adjust its default value.

Improve error message by checking if dump stack size > 65528.
And adjust the default dump stack size to 65528, because I
find that it is the value I always want to use.

Bug: 29574526
Change-Id: I8f16dcf3a86a477f17d81fd387bf4dfa0dc0b341
Test: run simpleperf_unit_test.

8 years agoMerge \"Convert libpagemap Android.mk to Android.bp\"
Colin Cross [Wed, 13 Jul 2016 00:34:40 +0000 (00:34 +0000)]
Merge \"Convert libpagemap Android.mk to Android.bp\"
am: 6941c09c77

Change-Id: I88ca7d0201da079bfb66c3c3a0ed8db0f83c6621

8 years agoMerge "Convert libpagemap Android.mk to Android.bp"
Colin Cross [Wed, 13 Jul 2016 00:22:29 +0000 (00:22 +0000)]
Merge "Convert libpagemap Android.mk to Android.bp"

8 years agoMerge \"simpleperf: combine mapped buffer used for the same event and cpu.\"
Yabin Cui [Tue, 12 Jul 2016 23:24:43 +0000 (23:24 +0000)]
Merge \"simpleperf: combine mapped buffer used for the same event and cpu.\"
am: 70e5ffea32

Change-Id: I4df54144afd5ada55a05c77f61c9ff3087bfbe1e

8 years agoMerge "simpleperf: combine mapped buffer used for the same event and cpu."
Treehugger Robot [Tue, 12 Jul 2016 23:19:36 +0000 (23:19 +0000)]
Merge "simpleperf: combine mapped buffer used for the same event and cpu."

8 years agoMerge \"Basic A/B bootloader tests via bootctl\"
Jed Estep [Tue, 12 Jul 2016 22:54:56 +0000 (22:54 +0000)]
Merge \"Basic A/B bootloader tests via bootctl\"
am: 0ef925afc0

Change-Id: I3f438cef798c59c856326b389a1b162cdd31e33a

8 years agoMerge "Basic A/B bootloader tests via bootctl"
Daniel Rosenberg [Tue, 12 Jul 2016 22:47:52 +0000 (22:47 +0000)]
Merge "Basic A/B bootloader tests via bootctl"

8 years agosimpleperf: combine mapped buffer used for the same event and cpu.
Yabin Cui [Fri, 8 Jul 2016 20:56:48 +0000 (13:56 -0700)]
simpleperf: combine mapped buffer used for the same event and cpu.

Non root users have a size limit of buffers used for profiling.
By combining buffers used for the same event and cpu, we can
reduce buffer cost when monitoring multiple threads, thus
avoid mmap() failures.

Increase default value for -m option for non system wide profiling.

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

8 years agoBasic A/B bootloader tests via bootctl
Jed Estep [Fri, 20 May 2016 23:58:59 +0000 (16:58 -0700)]
Basic A/B bootloader tests via bootctl

Change-Id: Ie7868cc205859c657e905e60ab6928517f02edb8

8 years agoMerge \"simpleperf: fix test record_cmd.dump_symbols.\"
Yabin Cui [Tue, 12 Jul 2016 22:06:39 +0000 (22:06 +0000)]
Merge \"simpleperf: fix test record_cmd.dump_symbols.\"
am: b17b6c3edf

Change-Id: I271713aad752d90d40dc3ae19ee5aa6ba7adab43

8 years agoMerge "simpleperf: fix test record_cmd.dump_symbols."
Treehugger Robot [Tue, 12 Jul 2016 21:57:48 +0000 (21:57 +0000)]
Merge "simpleperf: fix test record_cmd.dump_symbols."

8 years agoConvert libpagemap Android.mk to Android.bp
Colin Cross [Tue, 12 Jul 2016 20:03:02 +0000 (13:03 -0700)]
Convert libpagemap Android.mk to Android.bp

Change-Id: I551a7f7ce46267bb609e5ed8bd8dafc00b9fbab7

8 years agoMerge \"simpleperf: check kernel symbol addresses before dumping them.\"
Yabin Cui [Tue, 12 Jul 2016 21:16:22 +0000 (21:16 +0000)]
Merge \"simpleperf: check kernel symbol addresses before dumping them.\"
am: 7c3c50097e

Change-Id: I1a77f9e0f8ff19eb4c524cb13a9fd6ec98c38c14

8 years agoMerge "simpleperf: check kernel symbol addresses before dumping them."
Yabin Cui [Tue, 12 Jul 2016 21:14:08 +0000 (21:14 +0000)]
Merge "simpleperf: check kernel symbol addresses before dumping them."