OSDN Git Service
Treehugger Robot [Wed, 14 Dec 2016 23:34:11 +0000 (23:34 +0000)]
Merge "fix warning: Potential leak of memory pointed to by 'bench'"
Yabin Cui [Wed, 14 Dec 2016 18:31:51 +0000 (18:31 +0000)]
Merge "simpleperf: check invalid perf.data."
Yabin Cui [Wed, 14 Dec 2016 01:49:19 +0000 (17:49 -0800)]
simpleperf: check invalid perf.data.
Bug: http://b/
33558210
Test: run simpleperf_unit_test.
Change-Id: If5a1f7fc9c436a39776f80f1e52479f1cd7ff407
Yunlian Jiang [Wed, 14 Dec 2016 01:05:50 +0000 (17:05 -0800)]
fix warning: Potential leak of memory pointed to by 'bench'
Bug: None
Test: The warning is gone.
Change-Id: Ifbe4550b372333f81bc0ff88b25687dfd0b64be9
Yabin Cui [Wed, 14 Dec 2016 00:29:55 +0000 (00:29 +0000)]
Merge "simpleperf: check monitored targets regularly."
Yabin Cui [Tue, 13 Dec 2016 21:47:49 +0000 (13:47 -0800)]
simpleperf: check monitored targets regularly.
When monitoring some threads/processes not forked by simpleperf,
check if these threads/processes exist regularly. So we can
stop profiling once all threads/processes exit.
Also handle SIGHUP signal, so we can finish profiling properly
when `adb shell simpleperf record xxx` is killed by Ctrl-C.
Add corresponding tests.
Bug: http://b/
33558210
Test: run simpleperf_unit_test.
Change-Id: Ieae4d00d099dc1c7a0c51b0610dff43981bb642e
Yabin Cui [Mon, 12 Dec 2016 22:00:27 +0000 (22:00 +0000)]
Merge "simpleperf: add script to manage app profiling process."
Yabin Cui [Mon, 5 Dec 2016 22:26:02 +0000 (14:26 -0800)]
simpleperf: add script to manage app profiling process.
app_profiler.py follows the instruction of profiling an
app in README.md. Users can just set the configuration,
and let app_profiler.py do environment setup, profiling
and data collection work.
Bug: http://b/
32834638
Test: run app_profiler.py on android M, N, O.
Change-Id: I2e08790396b02df32320eaa27b75d49108f4856f
Yabin Cui [Sat, 10 Dec 2016 01:24:19 +0000 (01:24 +0000)]
Merge "simpleperf: Improve Callgraph."
Yabin Cui [Fri, 9 Dec 2016 22:51:04 +0000 (14:51 -0800)]
simpleperf: Improve Callgraph.
1. Reduce columns used by callgraph by reducing spaces between
entries from 11 to 4. This helps to show more entries in the limited screen width.
2. Add [hit-in-function] line for each entry, so we know the percentage
of samples hit in the function and samples hit in the children functions.
3. Add --kallsyms option for report command.
After all, The callgraph is changed like below.
Before change:
|--99.08%-- java.lang.Thread.run
| void com.example.cyb.tappydefender.TDView.run()
| |
| | |--95.63%-- void com.example.cyb.tappydefender.TDView.draw()
After change:
|--98.85%-- java.lang.Thread.run
| void com.example.cyb.tappydefender.TDView.run()
| |--0.09%-- [hit in function]
| |
| |--95.54%-- void com.example.cyb.tappydefender.TDView.draw()
Bug: http://b/
33356538
Test: run simpleperf_unit_test.
Test: run simpleperf report -g manually.
Change-Id: Ifc1846d4ee7469cadbcc727cae6bf59552d919d5
Treehugger Robot [Wed, 7 Dec 2016 19:26:30 +0000 (19:26 +0000)]
Merge "ext4_utils: Fix return value in e4crypt_policy_get"
Ethan Yonker [Wed, 7 Dec 2016 04:42:14 +0000 (22:42 -0600)]
ext4_utils: Fix return value in e4crypt_policy_get
Change-Id: I9e02cda707b551980683895ef7f22522157628d8
Pat Tjin [Wed, 7 Dec 2016 07:07:25 +0000 (07:07 +0000)]
Merge "make_ext4fs: add option to specify the number of inodes"
Patrick Tjin [Thu, 20 Oct 2016 17:55:11 +0000 (10:55 -0700)]
make_ext4fs: add option to specify the number of inodes
Add option to specify the number of inodes to create when
making the filesystem. Read-only partitions don't have
a need for extra inodes, a lot of space is wasted by these
inodes.
Bug:
32246383
Test: make vendor partition with new options
Change-Id: I7063972ec4f4e617d28d2e029ad6a9f8e94add73
(cherry picked from commit
15c434682ac78262d2dad9730805eab52b748cdf)
Yabin Cui [Sat, 3 Dec 2016 04:23:48 +0000 (04:23 +0000)]
Merge "simpleperf: add binary_cache_builder script."
am:
a5a101294e
Change-Id: I0c2a0c8037cd95e25dab555e9c348ab7270cfaf7
The Android Automerger [Sat, 3 Dec 2016 04:08:00 +0000 (04:08 +0000)]
Manually merge commit '
bf03f2e' into stage-aosp-master
* commit '
bf03f2e':
ext4_utils: move ext2simg to upstream e2fsprogs
ext4_utils: use mke2fs instead of make_ext4
BUG:
33304034
Yabin Cui [Fri, 2 Dec 2016 23:38:49 +0000 (23:38 +0000)]
Merge "simpleperf: add binary_cache_builder script."
Treehugger Robot [Fri, 2 Dec 2016 22:48:21 +0000 (22:48 +0000)]
Merge changes from topic 'e2fsprogs'
* changes:
ext4_utils: move ext2simg to upstream e2fsprogs
ext4_utils: use mke2fs instead of make_ext4
Yabin Cui [Wed, 30 Nov 2016 19:46:20 +0000 (11:46 -0800)]
simpleperf: add binary_cache_builder script.
To report on host, we need to pull binaries from device to host.
binary_cache_builder.py is used to pull needed binaries automatically.
Other changes:
Move common functions to utils.py.
Move libsimpleperf_report.so to proper directory, so we can add other
host shared libraries and target binaries in the future.
Bug: http://b/
32834638
Test: run binary_cache_builder.py for N, O devices, both root and non-root.
Change-Id: Ifa8931842087ed43d1e530e40ca0254cbf9ea3a9
Adrien Schildknecht [Thu, 1 Dec 2016 23:10:09 +0000 (15:10 -0800)]
ext4_utils: move ext2simg to upstream e2fsprogs
This binary is now part of e2fsprogs.
Test: m ext2simg
Change-Id: I6c30cc7d6c79770541c13c84449e35bbca8b5541
Adrien Schildknecht [Wed, 16 Nov 2016 06:33:29 +0000 (22:33 -0800)]
ext4_utils: use mke2fs instead of make_ext4
Test: m -j32 && fastboot flashall (aosp_angler-userdebug)
Change-Id: Ic4f598fdf19c8d6fb44740999663ed4f166b0a5b
Yabin Cui [Wed, 30 Nov 2016 19:49:51 +0000 (19:49 +0000)]
Merge "simpleperf: improve script interface."
am:
090785e4dd
Change-Id: I6536a2764eed1b614628028fccb6a79477208268
Connor O'Brien [Wed, 30 Nov 2016 19:49:37 +0000 (19:49 +0000)]
Merge "Rewrite bootctl utility to use new HAL interface"
am:
1bc97843cb
Change-Id: I99deaf99e0f747ac75f53a03b1e85414228ed715
Yabin Cui [Wed, 30 Nov 2016 19:39:53 +0000 (19:39 +0000)]
Merge "simpleperf: improve script interface."
Connor O'Brien [Wed, 30 Nov 2016 19:33:34 +0000 (19:33 +0000)]
Merge "Rewrite bootctl utility to use new HAL interface"
Yabin Cui [Wed, 30 Nov 2016 17:54:55 +0000 (17:54 +0000)]
Merge "simpleperf: fix tests for dwarf callgraph unwinding."
am:
35f8849075
Change-Id: I4329e4c23a5c20e3b13749fcf13ba5bd82ae645e
Yabin Cui [Wed, 30 Nov 2016 17:41:27 +0000 (17:41 +0000)]
Merge "simpleperf: fix tests for dwarf callgraph unwinding."
Yabin Cui [Tue, 29 Nov 2016 20:54:50 +0000 (12:54 -0800)]
simpleperf: improve script interface.
1. In ReportLib, return structure instead of pointer to structure.
So users can use 'sample' instead of 'sample[0]', as in report_sample.py.
2. For python3, convert char pointer to str type. Because str is more
convenient to use.
Bug: http://b/
32834638
Test: run simpleperf_report_lib.py and report_sample.py.
Change-Id: Iee8c3570e82104c5dd02f3f657ac143d1fdc2233
Connor O'Brien [Fri, 14 Oct 2016 22:03:12 +0000 (15:03 -0700)]
Rewrite bootctl utility to use new HAL interface
Test: Ran and compared output to old version
Change-Id: I8889794a5c7953b066a1a7fecd0154c912f4d60d
Signed-off-by: Connor O'Brien <connoro@google.com>
Yabin Cui [Tue, 29 Nov 2016 23:21:13 +0000 (15:21 -0800)]
simpleperf: fix tests for dwarf callgraph unwinding.
32-bit simpleperf can't unwind a 64-bit `sleep` process in aarch64
environment. It makes following error in tests:
simpleperf is built in arch arm, and can't do stack unwinding for arch arm64
So make the workload be able to start a process
running callback function. By profiling that process, we can
guarantee that 32-bit simpleperf is profiling a 32-bit process.
Also fix a flaky test IOEventLoop.signal.
Build 32-bit simpleperf_unit_test on 64-bit devices.
Bug: http://b/
33167911
Test: run simpleperf_unit_test.
Change-Id: I82741dc5d90c73c1890f834d8e2a9188421a3828
Yabin Cui [Tue, 29 Nov 2016 19:51:53 +0000 (19:51 +0000)]
Merge "simpleperf: add stuff in report_lib_interface."
am:
c11a58e701
Change-Id: I6fcdd9b4476d927298f419cee37aaf46c4c0ed2e
Yabin Cui [Tue, 29 Nov 2016 19:46:07 +0000 (19:46 +0000)]
Merge "simpleperf: add stuff in report_lib_interface."
Mark Salyzyn [Tue, 29 Nov 2016 17:50:14 +0000 (17:50 +0000)]
Merge changes I2198f8b5,I245c859e
am:
c3fbd8b936
Change-Id: I8a765ad6d12ea8450fba6f229e564b0a40007c15
Mark Salyzyn [Tue, 29 Nov 2016 17:50:13 +0000 (17:50 +0000)]
time test reclassification as gTest
am:
11a438be18
Change-Id: I06539c7e894be9a1739779f97fb31ec6f1e672b1
Mark Salyzyn [Tue, 29 Nov 2016 17:50:12 +0000 (17:50 +0000)]
system/extras: Replace cutils/log.h with android/log.h or log/log.h
am:
3d66aa307e
Change-Id: Ifa46c3083140959b0cd1f27a96de7826a3413205
Yabin Cui [Tue, 29 Nov 2016 01:28:08 +0000 (17:28 -0800)]
simpleperf: add stuff in report_lib_interface.
It's a preparation to annotate binaries, containing following
changes:
1. Export build_id for binaries.
2. Export function virtual addresses.
3. Add unit tests in simpleperf_report_lib.py.
Bug: http://b/
32834638
Test: simpleperf_unit_test.
Test: run `python simpleperf_report_lib.py`.
Change-Id: Ieed40935ff9ede44bf823ba9c88ad87806ffac0a
Treehugger Robot [Tue, 29 Nov 2016 17:42:28 +0000 (17:42 +0000)]
Merge changes I2198f8b5,I245c859e
* changes:
time test reclassification as gTest
system/extras: Replace cutils/log.h with android/log.h or log/log.h
Yabin Cui [Wed, 23 Nov 2016 01:39:28 +0000 (01:39 +0000)]
Merge "simpleperf: fix a check error."
am:
89bf4d4276
Change-Id: I4478c64282ab9804f1790fee7e1a6609478562d2
Yabin Cui [Wed, 23 Nov 2016 01:36:35 +0000 (01:36 +0000)]
Merge "simpleperf: fix a check error."
Yabin Cui [Tue, 22 Nov 2016 23:32:03 +0000 (15:32 -0800)]
simpleperf: fix a check error.
Bug: None.
Test: `simpleperf record` a sleep process.
Change-Id: I334e9fb857743c63bf0a0b4b50f1a723d47ba6e7
Mark Salyzyn [Tue, 22 Nov 2016 19:04:54 +0000 (19:04 +0000)]
Merge "cts: android.kernel.config drop v2"
am:
edb18846b8
Change-Id: I5c74eb13ccfe2a475dbad0cb66dadde38d8d5249
Mark Salyzyn [Tue, 22 Nov 2016 19:01:23 +0000 (19:01 +0000)]
Merge "cts: android.kernel.config drop v2"
Mark Salyzyn [Thu, 14 Jan 2016 17:20:47 +0000 (09:20 -0800)]
time test reclassification as gTest
Test: compile
Bug:
26559308
Change-Id: I2198f8b580f5302bd3ca015a86fcd04e680765ee
Mark Salyzyn [Thu, 29 Sep 2016 17:50:27 +0000 (10:50 -0700)]
system/extras: Replace cutils/log.h with android/log.h or log/log.h
Test: build success
Bug:
26552300
Bug:
31289077
Change-Id: I245c859eae366f817f883e74717bb04050196b4e
Mark Salyzyn [Mon, 4 Apr 2016 14:37:27 +0000 (07:37 -0700)]
cts: android.kernel.config drop v2
Test: cts: android.kernel.config
Bug:
19173869
Change-Id: If5c600ad7d261d94d424ae948314fec79bd69828
Dimitry Ivanov [Tue, 22 Nov 2016 02:11:18 +0000 (02:11 +0000)]
Merge "Remove unnecessary reinterpret_cast"
am:
71a681b891
Change-Id: I0a7cbc220c82dae4a7ff6fc20a38c7632b459df4
Dimitry Ivanov [Tue, 22 Nov 2016 02:07:18 +0000 (02:07 +0000)]
Merge "Remove unnecessary reinterpret_cast"
Dimitry Ivanov [Mon, 21 Nov 2016 22:29:56 +0000 (14:29 -0800)]
Remove unnecessary reinterpret_cast
Test: mm
Change-Id: I4187b6eebcb093d15e2768da95edd069f7990130
Yabin Cui [Sat, 19 Nov 2016 01:58:23 +0000 (01:58 +0000)]
Merge "simpleperf: fix dumping arm regs on arm64 devices."
am:
7c0d6db3cf
Change-Id: I8fb140f3e754de6aeb3043379bb61d666a0d84b9
Yabin Cui [Sat, 19 Nov 2016 01:53:03 +0000 (01:53 +0000)]
Merge "simpleperf: fix dumping arm regs on arm64 devices."
Dmitry Shmidt [Sat, 19 Nov 2016 01:39:36 +0000 (01:39 +0000)]
Merge "ext4_utils: Remove signed/unsigned comparison warnings"
am:
2417cf79ce
Change-Id: If02f2a3097918bc5474b1f568cba08a748748956
Treehugger Robot [Sat, 19 Nov 2016 01:32:21 +0000 (01:32 +0000)]
Merge "ext4_utils: Remove signed/unsigned comparison warnings"
Tao Bao [Fri, 18 Nov 2016 23:57:27 +0000 (23:57 +0000)]
Merge "verity_verifier: Support verifying images with FEC."
am:
89ac10269e
Change-Id: Ia8742c9b5773f80d4877dcee5b293bbe289cc41e
Tao Bao [Fri, 18 Nov 2016 23:48:11 +0000 (23:48 +0000)]
Merge "verity_verifier: Support verifying images with FEC."
Dmitry Shmidt [Fri, 18 Nov 2016 23:38:47 +0000 (15:38 -0800)]
ext4_utils: Remove signed/unsigned comparison warnings
Bug:
33012393
Test: Manual
Change-Id: I18e442cb27f28be491b0ef6f620ba4fa0fad6713
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Tao Bao [Tue, 18 Oct 2016 20:02:14 +0000 (13:02 -0700)]
verity_verifier: Support verifying images with FEC.
The current VerityVerifier.jar cannot verify verity images with FEC
metadata (since N). Replace it with a new verity verifier that uses
libfec to parse and verify verity metadata.
It accepts the same command line arguments as the old verity_verifier
script.
Usage: verity_verifier <image> -mincrypt <verity_key>
image the image file (raw or sparse image) to be verified
verity_key the verity key in mincrypt format (/verity_key on device)
Bug:
32173582
Test: $ verity_verifier $OUT/system.img -mincrypt $OUT/root/verity_key
VERIFIED
Change-Id: I8624973715dcd0f6d89d408c1c97bf584b50ce06
Daniel Friederich [Thu, 17 Nov 2016 22:42:54 +0000 (22:42 +0000)]
Merge "Support to use kallsyms"
am:
53f91652de
Change-Id: Idfd6cf053e2ecd4a56c6cfa1b39b0d46d30db78c
Treehugger Robot [Thu, 17 Nov 2016 22:13:13 +0000 (22:13 +0000)]
Merge "Support to use kallsyms"
Yabin Cui [Wed, 16 Nov 2016 20:26:13 +0000 (12:26 -0800)]
simpleperf: fix dumping arm regs on arm64 devices.
On arm64 devices, the kernel dumps arm64 regs
even for 32-bit processes. So we need to map
from arm64 registers to arm registers.
Bug: http://b/
30974693
Test: run simpleperf manually on one app.
Change-Id: Iffeac9510b418b5dabc0604c16523887d63bba49
Yabin Cui [Thu, 17 Nov 2016 01:50:32 +0000 (01:50 +0000)]
Merge "Revert "Revert "simpleperf: use libprocinfo."""
am:
960a81aaeb
Change-Id: I8e9819f630828a7cf03ec189050a5b3ee353ad1c
Yabin Cui [Thu, 17 Nov 2016 01:38:12 +0000 (01:38 +0000)]
Merge "Revert "Revert "simpleperf: use libprocinfo."""
Yabin Cui [Thu, 17 Nov 2016 00:50:27 +0000 (00:50 +0000)]
Merge "simpleperf: update readme."
am:
3bee5e326a
Change-Id: Ic33ffdf23ba356543108790fd66e8d05bdc3a6d5
Yabin Cui [Thu, 17 Nov 2016 00:37:40 +0000 (00:37 +0000)]
Merge "simpleperf: update readme."
Yabin Cui [Wed, 16 Nov 2016 22:47:53 +0000 (22:47 +0000)]
Revert "Revert "simpleperf: use libprocinfo.""
This reverts commit
49bdb3d52dec84a715159c325748e5f15d69b9ce.
Change-Id: Ib9c061cc3b3fbcadfb6fdd1a25050644a9dae4e2
Yabin Cui [Wed, 16 Nov 2016 22:15:30 +0000 (14:15 -0800)]
simpleperf: update readme.
Test: none.
Change-Id: Ic4f15dc3dec11e75de01a9ef537be915602962bd
Tao Bao [Wed, 16 Nov 2016 21:44:59 +0000 (21:44 +0000)]
Merge "tests/framebuffer: Remove dead minui.h."
am:
c2f3086b91
Change-Id: Idd29119b500d35066f0c0bfdc682e22e07044e4e
Treehugger Robot [Wed, 16 Nov 2016 21:37:59 +0000 (21:37 +0000)]
Merge "tests/framebuffer: Remove dead minui.h."
Tao Bao [Tue, 15 Nov 2016 22:46:25 +0000 (14:46 -0800)]
tests/framebuffer: Remove dead minui.h.
commit
480a3b1c6d5413e06775a9d53cb1596535fd91ae removed the last user of
this local minui.h copy in 2011.
Test: mmma system/extras/tests/framebuffer
Change-Id: Iee42ef604616dc539d4a1699ada7209c48c3bcd9
(cherry picked from commit
12c8e9996232b3b41ebe9b3fe1c288823c77f292)
(cherry picked from commit
5eda75e963bae890e82c7112ce2d8a918e32ba4d)
Daniel Friederich [Mon, 17 Oct 2016 17:28:03 +0000 (12:28 -0500)]
Support to use kallsyms
Also:
- Adapt to use with Python 3
(where str is a wide type but our C API's expect 8 bit character strings)
- Use OS specific so names (e.g. simpleperf_report.dll on Windows)
- On Windows as we use mingw to build, preload libwinpthread-1.dll.
Test: with manual incovation using report_sample.py
Change-Id: Id973c463608c520b8eec229026c74dc5e8144cf8
George Burgess IV [Wed, 16 Nov 2016 04:32:55 +0000 (04:32 +0000)]
Merge "Fix static-analyzer memory leak warnings."
am:
ba27872adb
Change-Id: I6c5bae9ad45b543ee2de35b7089fb4f40da888fb
Treehugger Robot [Wed, 16 Nov 2016 04:26:13 +0000 (04:26 +0000)]
Merge "Fix static-analyzer memory leak warnings."
zhang sanshan [Wed, 16 Nov 2016 03:17:40 +0000 (03:17 +0000)]
Merge "Fix kernel panic when boot up"
am:
857a9f9a57
Change-Id: Iee390ee0b79b852b2f40f0482ab7e537715745a1
Treehugger Robot [Wed, 16 Nov 2016 03:08:01 +0000 (03:08 +0000)]
Merge "Fix kernel panic when boot up"
Tao Bao [Tue, 15 Nov 2016 22:46:25 +0000 (14:46 -0800)]
tests/framebuffer: Remove dead minui.h.
commit
480a3b1c6d5413e06775a9d53cb1596535fd91ae removed the last user of
this local minui.h copy in 2011.
Test: mmma system/extras/tests/framebuffer
Change-Id: Iee42ef604616dc539d4a1699ada7209c48c3bcd9
George Burgess IV [Tue, 15 Nov 2016 23:22:36 +0000 (15:22 -0800)]
Fix static-analyzer memory leak warnings.
system/extras/simpleperf/record_test.cpp:77:3: warning: Potential leak
of memory pointed to by 'r2'
system/extras/simpleperf/record_test.cpp:77:3: warning: Potential leak
of memory pointed to by 'r3'
system/extras/simpleperf/record_test.cpp:77:3: warning: Potential leak
of memory pointed to by 'r4'
Bug: None.
Test: Now builds without those warnings, and
`simpleperf_unit_test -t system/extras/simpleperf/testdata` passes.
Change-Id: Ie77955367efeeba13173e2542eba02727b298f86
Josh Gao [Tue, 15 Nov 2016 03:04:58 +0000 (03:04 +0000)]
Merge "Revert "simpleperf: use libprocinfo.""
am:
40f79982a2
Change-Id: I4e04c44c675e88fef6f990f76012fe6f96735528
Josh Gao [Tue, 15 Nov 2016 02:52:55 +0000 (02:52 +0000)]
Merge "Revert "simpleperf: use libprocinfo.""
Josh Gao [Tue, 15 Nov 2016 02:52:22 +0000 (02:52 +0000)]
Revert "simpleperf: use libprocinfo."
This reverts commit
7eb4f9bd77b82fc54f6396dd62be5655097e028a.
Change-Id: I5c7c25d2962678dd1a1ed9146eacd6880044ee45
Yabin Cui [Tue, 15 Nov 2016 02:13:25 +0000 (02:13 +0000)]
Merge "Support for multiple instances"
am:
e97dfde326
Change-Id: I4dd8a5018e2cec479f1d5d304f220992e0f37e39
Yabin Cui [Tue, 15 Nov 2016 02:01:42 +0000 (02:01 +0000)]
Merge "Support for multiple instances"
Josh Gao [Tue, 15 Nov 2016 01:44:28 +0000 (01:44 +0000)]
Merge "simpleperf: use libprocinfo."
am:
1007435341
Change-Id: I1f5cfc4ab8adcbc550ff13e6c2a8d8e29d508359
Josh Gao [Tue, 15 Nov 2016 01:39:04 +0000 (01:39 +0000)]
Merge "simpleperf: use libprocinfo."
Yabin Cui [Tue, 15 Nov 2016 00:02:48 +0000 (00:02 +0000)]
Merge "simpleperf: fix potential unaligned memory access."
am:
695d719bae
Change-Id: I4b78f3305f4b6afd014c471fe5377401939d69fd
Yabin Cui [Mon, 14 Nov 2016 23:56:05 +0000 (23:56 +0000)]
Merge "simpleperf: fix potential unaligned memory access."
Daniel Friederich [Wed, 12 Oct 2016 14:41:09 +0000 (09:41 -0500)]
Support for multiple instances
Allows to use separate instances for separate perf.datai
files (and possibly also separate instances on separate threads)
Test: Tested by running report_sample.py
Change-Id: I0ebdb3c650a4540f07237b515d451d69ec3810e6
Yabin Cui [Mon, 14 Nov 2016 19:23:14 +0000 (11:23 -0800)]
simpleperf: fix potential unaligned memory access.
1. It is reported that when elf section headers are malformed,
GetBuildIdFromNoteSection() aborts with SIGBUS. So fix it to
accept not 4 bytes aligned section data.
2. Fix potential unaligned memory access in ConvertBytesToValue().
Test: run simpleperf_unit_test.
Change-Id: I2e1612a6567978e0b526b2274377765ba2837ec2
Yabin Cui [Sat, 12 Nov 2016 01:17:25 +0000 (01:17 +0000)]
Merge "simpleperf: dump only needed symbols in file feature section."
am:
ee71d0b6a8
Change-Id: Ia782246eaf68e813735b7b6c7d03569ea8d79364
Yabin Cui [Sat, 12 Nov 2016 01:08:38 +0000 (01:08 +0000)]
Merge "simpleperf: dump only needed symbols in file feature section."
Yabin Cui [Fri, 11 Nov 2016 22:53:52 +0000 (14:53 -0800)]
simpleperf: dump only needed symbols in file feature section.
Instead of dumping all symbols in the hit elf files, dump only
needed symbols can save a lot of space. To do so, read perf.data
after recording to collect hit file and symbol information.
Bug: http://b/
32340274
Test: test using `simpleperf record --dump-symbols` manually.
Test: run simpleperf_unit_test.
Change-Id: I480f3e2e7ccebfbb5df16a597724f5f40d62c821
Josh Gao [Fri, 11 Nov 2016 21:59:07 +0000 (13:59 -0800)]
simpleperf: use libprocinfo.
Test: python runtest/runtest.py.
Test: simpleperf_unit_test
Change-Id: Ie19c0010571392459c03928208db21f0ba48b6df
Yabin Cui [Fri, 11 Nov 2016 20:15:31 +0000 (20:15 +0000)]
Merge "simpleperf: update report shared library."
am:
0dc19e6226
Change-Id: I9fdb0daed52351f129b47f4d1343b05f10780c19
Yabin Cui [Fri, 11 Nov 2016 20:15:18 +0000 (20:15 +0000)]
Merge "simpleperf: fix unaligned data access on arm."
am:
c18d84a160
Change-Id: If11904c47684853410a8ad5e4fef36b5aab703a5
Yabin Cui [Fri, 11 Nov 2016 20:03:57 +0000 (20:03 +0000)]
Merge "simpleperf: update report shared library."
Yabin Cui [Fri, 11 Nov 2016 20:03:35 +0000 (20:03 +0000)]
Merge "simpleperf: fix unaligned data access on arm."
Yabin Cui [Fri, 11 Nov 2016 01:21:46 +0000 (01:21 +0000)]
Merge "simpleperf: use file records in protobuf output."
am:
2a309ae76b
Change-Id: I2be21e68611ff552f9ecc7c3e8fa09a7ea783f85
Yabin Cui [Fri, 11 Nov 2016 01:14:26 +0000 (01:14 +0000)]
Merge "simpleperf: use file records in protobuf output."
Yabin Cui [Wed, 19 Oct 2016 22:06:29 +0000 (15:06 -0700)]
simpleperf: use file records in protobuf output.
Dump file name and symbol name for each CallChainEntry
takes too much space. So instead we store file_id and
symbol_id for each CallChainEntry, and store file
records separately.
In CallChainEntry, replace ip with vaddr_in_file, because
vaddr_in_file is more useful in finding instructions in
elf file.
Bug: http://b/
32210800
Test: simpleperf_unit_test.
Change-Id: I85542db21acbaa4d81b3c3aa7f9215f2d23c4878
Yabin Cui [Thu, 10 Nov 2016 23:25:15 +0000 (15:25 -0800)]
simpleperf: fix unaligned data access on arm.
Bug: http://b/
32340274
Test: run `simpleperf record --dump-symbols` manually.
Test: run simpleperf_unit_test.
Change-Id: I771a516bb644f18fafa987061ecfc76ae3521ca9
Yabin Cui [Thu, 10 Nov 2016 22:40:02 +0000 (14:40 -0800)]
simpleperf: update report shared library.
So it can read the newly added file section.
Bug: http://b/
32340274
Test: run `python report-sample.py`.
Change-Id: I22dadd2b3a18f9f40a13ff370eb73b3c6b7a2adf
Alex Deymo [Wed, 9 Nov 2016 19:14:14 +0000 (19:14 +0000)]
Merge "Rename libfec_host to libfec."
am:
51aa3fdeff
Change-Id: I46a420d99bc274de117ed038d965113d2422492e