OSDN Git Service
Colin Cross [Wed, 17 Aug 2016 00:08:03 +0000 (00:08 +0000)]
Merge "Build icache for arm on arm64"
Colin Cross [Tue, 16 Aug 2016 22:23:45 +0000 (15:23 -0700)]
Build icache for arm on arm64
Change-Id: Iac9511f7d943fde9e00d21d46ca32f186d4d5673
Chih-hung Hsieh [Tue, 16 Aug 2016 16:50:45 +0000 (16:50 +0000)]
Merge "Fix google-explicit-constructor warnings in ext4_utils."
Yabin Cui [Mon, 15 Aug 2016 23:42:30 +0000 (23:42 +0000)]
Merge "simpleperf: add simpleperf_report.py to sdk artifacts."
Yabin Cui [Fri, 12 Aug 2016 22:19:40 +0000 (15:19 -0700)]
simpleperf: add simpleperf_report.py to sdk artifacts.
Bug: http://b/
28911532
Change-Id: I27ddc735c5629c65e7ef9f1218551ed048b39a08
Test: None.
Treehugger Robot [Fri, 12 Aug 2016 09:15:46 +0000 (09:15 +0000)]
Merge "Stop hard coding gtest/gmock things."
Treehugger Robot [Fri, 12 Aug 2016 04:27:37 +0000 (04:27 +0000)]
Merge "procrank: fix bounds check to prevent heap overflow"
Treehugger Robot [Thu, 11 Aug 2016 23:33:53 +0000 (23:33 +0000)]
Merge "Fix google-explicit-constructor warnings in simpleperf."
Nick Desaulniers [Wed, 10 Aug 2016 22:44:19 +0000 (15:44 -0700)]
procrank: fix bounds check to prevent heap overflow
Bug:
30774296
Change-Id: I44005caaa3cc17fe829f375a4cfeb5a464c97fbe
(cherry picked from commit
98a20cd1283b6ee029e871c0876815300475c40a)
Dan Albert [Thu, 11 Aug 2016 19:45:53 +0000 (12:45 -0700)]
Stop hard coding gtest/gmock things.
The headers are exported, and the build system automatically adds
libgtest for test modules.
Test: mma
Bug: None
Change-Id: I99373732aa71244c6dc8bfa21c5d06190ce76ada
Chih-Hung Hsieh [Thu, 11 Aug 2016 18:06:00 +0000 (11:06 -0700)]
Fix google-explicit-constructor warnings in simpleperf.
Bug:
28341362
Change-Id: I35f2be2563cd1dcd5bdac25e8e801c08eb665db5
Test: build with WITH_TIDY=1
David Zeuthen [Thu, 11 Aug 2016 14:40:41 +0000 (14:40 +0000)]
Merge "avb: Add common verified boot tools and library."
Treehugger Robot [Thu, 11 Aug 2016 01:19:23 +0000 (01:19 +0000)]
Merge "alloc-stress: use nullptr for execl sentinel."
Josh Gao [Wed, 10 Aug 2016 23:59:40 +0000 (16:59 -0700)]
alloc-stress: use nullptr for execl sentinel.
Passing 0 as a sentinel for execl is incorrect, use nullptr instead.
Bug: http://b/
30793878
Change-Id: Ib05c9b509823442ef7c2174a2086b97c32df387b
Treehugger Robot [Wed, 10 Aug 2016 00:26:42 +0000 (00:26 +0000)]
Merge "simpleperf: fix --pids option."
Treehugger Robot [Tue, 9 Aug 2016 22:24:14 +0000 (22:24 +0000)]
Merge "simpleperf: monitor and report cpu hotplug events."
Yabin Cui [Mon, 8 Aug 2016 21:42:25 +0000 (14:42 -0700)]
simpleperf: fix --pids option.
--pids option was recognized as --tids because of logic
error. this patch fixes that and adds corresponding test.
Bug: http://b/
30736228
Change-Id: I0515fc7e03f29f821f7b0aa32c608cf250e87662
Test: run simpleperf_unit_test.
Treehugger Robot [Mon, 8 Aug 2016 22:44:23 +0000 (22:44 +0000)]
Merge "simpleperf: fix test record_cmd.duration_option."
Yabin Cui [Mon, 8 Aug 2016 21:51:48 +0000 (14:51 -0700)]
simpleperf: fix test record_cmd.duration_option.
The test should write perf.data to a temporary file, because
the test may not have permission to write perf.data in
current directory.
Bug: http://b/
30405638
Change-Id: Iff4ac7ea014f29e58146ad79c8dc3b0abcdb8d41
Test: run simpleperf_unit_test.
Josh Gao [Mon, 8 Aug 2016 18:29:10 +0000 (18:29 +0000)]
Merge "Fix references to libcrypto_utils_static."
Chih-hung Hsieh [Mon, 8 Aug 2016 16:40:07 +0000 (16:40 +0000)]
Merge "Fix google-explicit-constructor warnings in perfprofd."
Josh Gao [Fri, 5 Aug 2016 23:03:01 +0000 (16:03 -0700)]
Fix references to libcrypto_utils_static.
Bug: http://b/
30708454
Change-Id: I471ed5e3be92d60a88bf75ed5e427f7e34eefbc3
Treehugger Robot [Fri, 5 Aug 2016 23:43:31 +0000 (23:43 +0000)]
Merge "simpleperf: fix record file writer."
Yabin Cui [Fri, 5 Aug 2016 22:31:33 +0000 (15:31 -0700)]
simpleperf: fix record file writer.
When running `run-as [package_name] ./simpleperf record...` on device,
simpleperf doesn't have permission to create temporary file in
/data/local/tmp. So create temporary files in the same directory
as perf.data instead.
Bug: http://b/
30649868
Change-Id: I48178d4eb421be8d8636721ac3b29b98fa673b5d
Test: run simpleperf_unit_test.
Treehugger Robot [Fri, 5 Aug 2016 22:48:05 +0000 (22:48 +0000)]
Merge "simpleperf: allow --duration option when executing child command."
David Zeuthen [Wed, 27 Jul 2016 21:58:40 +0000 (17:58 -0400)]
avb: Add common verified boot tools and library.
This code is originally from the Brillo project but has been adapted for
use in all of Android. It consists of a tool - avbtool - for working
with images (e.g. boot.img, system.img). See the README file for how
it's integrated into the Android build system and how to enable it.
The main job of avbtool is to create vbmeta.img which is the
top-level object for verified boot. This image is designed to go into
the vbmeta partition (or, if using A/B, the slot in question
e.g. vbmeta_a or vbmeta_b) and be of minimal size (for out-of-band
updates). The vbmeta image is cryptographically signed and contains
verification data (e.g. cryptographic digests) for verifying boot.img,
system.img, and other partitions/images.
The vbmeta image can also contain references to other partitions where
verification data is stored as well as a public key indicating who
should sign the verification data. This indirection provides
delegation, that is, it allows a 3rd party to control content on a given
partition by including the public key said 3rd party is using to sign
the data with, in vbmeta.img. By design, this authority can be easily
revoked by simply updating vbmeta.img with new descriptors for the
partition in question.
Storing signed verification data on other images - for example
boot.img and system.img - is also done with avbtool.
In addition to avbtool, a library - libavb - is provided. This library
performs all verification on the device side e.g. it starts by loading
the vbmeta partition, checks the signature, and then goes on to load
the boot partition for verification.
The libavb library is intended to be used in both boot loaders and
inside Android. It has a simple abstraction for system dependencies
(see libavb/avb_sysdeps.h) as well as operations that the boot loader
or OS is expected to implement (see libavb/avb_ops.h).
In addition to handling verified boot, libavb will in the future be
extended to handle A/B selection in a way that can be used in the
device's fastboot implementation, its boot loader, and its
boot_control HAL implementation. This will be implemented in a future
CL.
BUG=
29414516
TEST=Unit tests for avbtool and libavb + unit tests pass.
Change-Id: I69ee86878e21fa718faccfc56eb0b1f40707d847
Yabin Cui [Fri, 5 Aug 2016 21:50:37 +0000 (14:50 -0700)]
simpleperf: allow --duration option when executing child command.
Previously --duration option can't be used while executing child
command, mainly because we use `sleep XX` child command to implement
--duration option. By using libevent, the limit doesn't exist.
Bug: http://b/
30405638
Change-Id: Iea1953ecf3aca48e75fb74f048ed04ad5b168630
Test: run simpleperf_unit_test.
Yabin Cui [Fri, 5 Aug 2016 20:41:14 +0000 (13:41 -0700)]
simpleperf: monitor and report cpu hotplug events.
This patch is to measure whether we need to handle cpu hotplug events.
Bug: http://b/
29245608
Test: run simpleperf_unit_test.
Change-Id: I031c6ddc99aeae66be10b4c586541accd622ceda
Treehugger Robot [Fri, 5 Aug 2016 21:35:49 +0000 (21:35 +0000)]
Merge "simpleperf: remove cpu option tests."
Treehugger Robot [Fri, 5 Aug 2016 21:31:29 +0000 (21:31 +0000)]
Merge "simpleperf: reduce Record construction overhead while recording."
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.
Yabin Cui [Fri, 5 Aug 2016 20:32:34 +0000 (20:32 +0000)]
Merge "simpleperf: 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.
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
Yabin Cui [Thu, 4 Aug 2016 21:46:51 +0000 (21:46 +0000)]
Merge "simpleperf: fix runtest."
Yabin Cui [Thu, 4 Aug 2016 21:46:37 +0000 (21:46 +0000)]
Merge "simpleperf: 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
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
Treehugger Robot [Tue, 2 Aug 2016 21:17:49 +0000 (21:17 +0000)]
Merge "Fix clang-tidy warnings in iotop."
Treehugger Robot [Tue, 2 Aug 2016 19:33:02 +0000 (19:33 +0000)]
Merge "Fix google-explicit-constructor warnings in libfec."
Chih-Hung Hsieh [Tue, 2 Aug 2016 18:47:49 +0000 (11:47 -0700)]
Fix google-explicit-constructor warnings in perfprofd.
Bug:
28341362
Change-Id: Ia65b3a37e918c9bda5c197536e8b0b2b34f787a8
Test: build with WITH_TIDY=1
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
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
Chih-Hung Hsieh [Tue, 2 Aug 2016 18:05:41 +0000 (11:05 -0700)]
Fix google-explicit-constructor warnings in ext4_utils.
Bug:
28341362
Change-Id: If36937a8504b64bd306f70b78630103b943a7898
Test: build with WITH_TIDY=1
Treehugger Robot [Tue, 2 Aug 2016 01:30:50 +0000 (01:30 +0000)]
Merge "simpleperf: add version."
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."
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`.
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.
Yabin Cui [Thu, 28 Jul 2016 23:56:34 +0000 (23:56 +0000)]
Merge "simpleperf: 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.
Chih-hung Hsieh [Thu, 28 Jul 2016 15:50:06 +0000 (15:50 +0000)]
Merge "Fix clang-tidy performance warnings in simpleperf."
Chih-hung Hsieh [Thu, 28 Jul 2016 01:19:16 +0000 (01:19 +0000)]
Merge "Fix clang-tidy performance warnings in perfprofd."
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
Yabin Cui [Wed, 27 Jul 2016 23:49:35 +0000 (23:49 +0000)]
Merge "simpleperf: use libevent in stat command."
Treehugger Robot [Wed, 27 Jul 2016 23:40:39 +0000 (23:40 +0000)]
Merge "simpleperf: report lost record situation in report-sample command."
Treehugger Robot [Wed, 27 Jul 2016 23:21:41 +0000 (23:21 +0000)]
Merge "Fix clang-tidy performance warnings in libfec."
Treehugger Robot [Wed, 27 Jul 2016 23:03:32 +0000 (23:03 +0000)]
Merge "simpleperf: fix runtest."
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
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
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.
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.
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
Dan Willemsen [Sat, 23 Jul 2016 00:22:28 +0000 (00:22 +0000)]
Merge "Rename lib{crypto,ssl}-host to lib{crypto,ssl}"
Treehugger Robot [Fri, 22 Jul 2016 22:50:18 +0000 (22:50 +0000)]
Merge "simplperf: improve unknown symbol print in report-sample command."
Treehugger Robot [Fri, 22 Jul 2016 21:24:33 +0000 (21:24 +0000)]
Merge "simpleperf: 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.
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
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
Zach Riggle [Thu, 21 Jul 2016 15:23:14 +0000 (15:23 +0000)]
Merge "Add 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
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."
Yabin Cui [Thu, 21 Jul 2016 01:12:05 +0000 (01:12 +0000)]
Merge "simpleperf: add thread_id in report_sample's output."
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
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
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."
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
Treehugger Robot [Thu, 14 Jul 2016 22:58:35 +0000 (22:58 +0000)]
Merge "simpleperf: fix unwind stack size."
Treehugger Robot [Thu, 14 Jul 2016 22:22:10 +0000 (22:22 +0000)]
Merge "simpleperf: show dso[+vaddr_in_file] for unknown symbols."
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
Yabin Cui [Thu, 14 Jul 2016 21:34:59 +0000 (21:34 +0000)]
Merge "simpleperf: change default callgraph to use caller mode."
Yabin Cui [Thu, 14 Jul 2016 21:34:41 +0000 (21:34 +0000)]
Merge "simpleperf: fix dumping symbols for unwinded ips."
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.
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.
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.
Treehugger Robot [Thu, 14 Jul 2016 02:17:21 +0000 (02:17 +0000)]
Merge "simpleperf: 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.
Yabin Cui [Wed, 13 Jul 2016 20:47:40 +0000 (20:47 +0000)]
Merge "simpleperf: 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.
Colin Cross [Wed, 13 Jul 2016 00:22:29 +0000 (00:22 +0000)]
Merge "Convert libpagemap Android.mk to Android.bp"
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."
Daniel Rosenberg [Tue, 12 Jul 2016 22:47:52 +0000 (22:47 +0000)]
Merge "Basic A/B bootloader tests via bootctl"
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.
Jed Estep [Fri, 20 May 2016 23:58:59 +0000 (16:58 -0700)]
Basic A/B bootloader tests via bootctl
Change-Id: Ie7868cc205859c657e905e60ab6928517f02edb8
Treehugger Robot [Tue, 12 Jul 2016 21:57:48 +0000 (21:57 +0000)]
Merge "simpleperf: fix test record_cmd.dump_symbols."
Colin Cross [Tue, 12 Jul 2016 20:03:02 +0000 (13:03 -0700)]
Convert libpagemap Android.mk to Android.bp
Change-Id: I551a7f7ce46267bb609e5ed8bd8dafc00b9fbab7
Yabin Cui [Tue, 12 Jul 2016 21:14:08 +0000 (21:14 +0000)]
Merge "simpleperf: check kernel symbol addresses before dumping them."
Yabin Cui [Fri, 8 Jul 2016 18:27:48 +0000 (11:27 -0700)]
simpleperf: check kernel symbol addresses before dumping them.
If kernel symbols have zero addresses, there is no need to dump them,
and we can give useful suggestion.
Bug:
29574526
Test: manually set /proc/sys/kernel/kptr_restrict and run simpleperf record.
Change-Id: I850531c7e4c5315a44e08cf3b73852e77fef8eb8
Chih-hung Hsieh [Tue, 12 Jul 2016 20:48:58 +0000 (20:48 +0000)]
Merge "Fix google-explicit-constructor warnings in simpleperf."
Chih-hung Hsieh [Tue, 12 Jul 2016 20:48:49 +0000 (20:48 +0000)]
Merge "Fix google-explicit-constructor warnings in memory_replay."
Chih-Hung Hsieh [Tue, 12 Jul 2016 18:47:28 +0000 (11:47 -0700)]
Fix google-explicit-constructor warnings in memory_replay.
* Declare explicit conversion constructors.
Bug:
28341362
Change-Id: Ia6613392bd68f170ec2d7b0b033b7476aff27e0f
Test: build with clang-tidy