OSDN Git Service
Tao Bao [Tue, 29 Nov 2016 18:19:04 +0000 (18:19 +0000)]
DO NOT MERGE verity_verifier: Support verifying images with FEC. am:
989f6a13a7 am:
533ed53bc0 am:
3734580187
am:
69dd400b72 -s ours
Change-Id: I4bb866122631ea580cd1811dc4b7e3f5138a2140
Tao Bao [Tue, 29 Nov 2016 18:09:11 +0000 (18:09 +0000)]
DO NOT MERGE verity_verifier: Support verifying images with FEC. am:
989f6a13a7 am:
533ed53bc0
am:
3734580187
Change-Id: Id3fd5d9611e86735f5cb54f7888048ff7c108f3b
Tao Bao [Tue, 29 Nov 2016 18:04:10 +0000 (18:04 +0000)]
DO NOT MERGE verity_verifier: Support verifying images with FEC. am:
989f6a13a7
am:
533ed53bc0
Change-Id: I1eca68a42d8c935f95e6dbeadd8e52ca5df48d01
Tao Bao [Tue, 29 Nov 2016 17:59:10 +0000 (17:59 +0000)]
DO NOT MERGE verity_verifier: Support verifying images with FEC.
am:
989f6a13a7
Change-Id: I7e9bebaafac56456c618befee18f971114e24b85
Mark Salyzyn [Tue, 29 Nov 2016 17:54:46 +0000 (17:54 +0000)]
Merge changes I2198f8b5,I245c859e am:
c3fbd8b936
am:
af3938ae34
Change-Id: I9092e5733eb6e861ed7631e77ea6968260159de8
Mark Salyzyn [Tue, 29 Nov 2016 17:54:44 +0000 (17:54 +0000)]
time test reclassification as gTest am:
11a438be18
am:
0ceab28690
Change-Id: I8ad8fef52e2949319b3bab0c5cf9e7275560e9d9
Mark Salyzyn [Tue, 29 Nov 2016 17:54:41 +0000 (17:54 +0000)]
system/extras: Replace cutils/log.h with android/log.h or log/log.h am:
3d66aa307e
am:
55925a0a50
Change-Id: I763b2d935997e0c125d60f474afe699260c7014c
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
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
Sami Tolvanen [Tue, 29 Nov 2016 00:05:54 +0000 (00:05 +0000)]
DO NOT MERGE: libfec: allow fec_header to be located anywhere
am:
549f048fcb
Change-Id: I1c0403a1449d5c6208f8b7330d7d12da7bac7df2
Sami Tolvanen [Tue, 29 Nov 2016 00:05:52 +0000 (00:05 +0000)]
DO NOT MERGE: fec: add --padding
am:
61fce29c45
Change-Id: I7c72ae76f73d5c8c48220f6f606722e3b1cd8287
Sami Tolvanen [Tue, 29 Nov 2016 00:05:48 +0000 (00:05 +0000)]
DO NOT MERGE: fec: remove unneeded target executable
am:
955d3afe95 -s ours
Change-Id: I10e0bc8cd075eb24a98e21916202c529f513943d
Sami Tolvanen [Tue, 29 Nov 2016 00:05:44 +0000 (00:05 +0000)]
DO NOT MERGE: fec: remove unused mmap code
am:
cace33a52a -s ours
Change-Id: I2a0e781693aa7849ddae32fab13b143ca198a242
Tao Bao [Mon, 28 Nov 2016 22:16:10 +0000 (22:16 +0000)]
build_verity_metadata: Support --signer_args argument. am:
1522691d1d am:
c2e9c0f0fc am:
c681cb32b3
am:
b91b1cd229 -s ours
Change-Id: I215a06b68f54322c4b7b2966d7f6ca626f6d7a66
Yabin Cui [Wed, 23 Nov 2016 01:41:57 +0000 (01:41 +0000)]
Merge "simpleperf: fix a check error." am:
89bf4d4276
am:
a2f8d9cbbd
Change-Id: Ia2b9084cc471eab895db31a509e73eb30234d441
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
Tao Bao [Tue, 18 Oct 2016 20:02:14 +0000 (13:02 -0700)]
DO NOT MERGE 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)
Note: this is a backport of commit
bb634ff8dab6327bd38eadee22d5f8ec9d3940d0. It uses the mincrypt headers
and functions instead.
Bug:
32173582
Test: $ verity_verifier $OUT/system.img -mincrypt $OUT/root/verity_key
VERIFIED
Change-Id: I8624973715dcd0f6d89d408c1c97bf584b50ce06
(cherry picked from commit
bb634ff8dab6327bd38eadee22d5f8ec9d3940d0)
Mark Salyzyn [Tue, 22 Nov 2016 19:07:22 +0000 (19:07 +0000)]
Merge "cts: android.kernel.config drop v2" am:
edb18846b8
am:
377daa8c61
Change-Id: Ifcc90e269e8cd00353457907159c2a2887a1688a
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:13:14 +0000 (02:13 +0000)]
Merge "Remove unnecessary reinterpret_cast" am:
71a681b891
am:
b01eb15e91
Change-Id: Id3cd5da8790f07af8a1e2d440ba4e31828aa0fb0
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
Sami Tolvanen [Thu, 1 Sep 2016 22:51:12 +0000 (15:51 -0700)]
DO NOT MERGE: libfec: allow fec_header to be located anywhere
Don't require fec_header to be immediately after ECC data.
Bug:
28865197
Bug:
32789520
Change-Id: Ie8faeeb07c35e2593553f7678762aae7f14c2ff7
(cherrypicked from commit
d9fd5b0d7507877ad6a0ede10c473fe2970d278d)
Sami Tolvanen [Thu, 1 Sep 2016 21:54:09 +0000 (14:54 -0700)]
DO NOT MERGE: fec: add --padding
Add an option to insert padding between ECC data and fec_header to
make it easier to position the header at the end of the partition.
Bug:
28865197
Bug:
32789520
Change-Id: I8c11401df56d15362fe3eb3c2a6a91ea82b02a83
(cherrypicked from commit
85e592cb86c9cbca82852240f0148adbee1b74e8)
Sami Tolvanen [Thu, 1 Sep 2016 20:43:51 +0000 (13:43 -0700)]
DO NOT MERGE: fec: remove unneeded target executable
Bug:
32789520
Change-Id: Ic925814191b8ac952b584a994cf455f871a8ee0c
(cherrypicked from commit
4c716c92a691e6b39e8e65a397f9b6e91f9e07ee)
Yabin Cui [Sat, 19 Nov 2016 02:01:53 +0000 (02:01 +0000)]
Merge "simpleperf: fix dumping arm regs on arm64 devices." am:
7c0d6db3cf
am:
ad52fbe650
Change-Id: Ib87cac0b0495fdd25849a7fa51325950b6e20fdc
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:43:06 +0000 (01:43 +0000)]
Merge "ext4_utils: Remove signed/unsigned comparison warnings" am:
2417cf79ce
am:
efd86cef98
Change-Id: I1e46259510cc8b99ba591909a5a92af68d253aa8
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 [Sat, 19 Nov 2016 00:00:29 +0000 (00:00 +0000)]
Merge "verity_verifier: Support verifying images with FEC." am:
89ac10269e
am:
a5e2880ed3
Change-Id: I25ff34271e2c159bf21911bc944a0bfaf488d7e9
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:58:04 +0000 (22:58 +0000)]
Merge "Support to use kallsyms" am:
53f91652de
am:
a38b2ff9fd
Change-Id: I82019514912368097ac1d9445f22d05d0b6dbb1b
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:57:32 +0000 (01:57 +0000)]
Merge "Revert "Revert "simpleperf: use libprocinfo.""" am:
960a81aaeb
am:
4d5775380e
Change-Id: I5c7678d653518a7418c0bbabd6198032ab226ff2
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:57:02 +0000 (00:57 +0000)]
Merge "simpleperf: update readme." am:
3bee5e326a
am:
106b61434c
Change-Id: Ib5b7534743ead1df5ca8e630fab5a28e628c02a3
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:52:27 +0000 (21:52 +0000)]
Merge "tests/framebuffer: Remove dead minui.h." am:
c2f3086b91
am:
30d2123f24
Change-Id: Ia057eb4f43a4d5b4941dac98f61e9525c0208e98
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 [Wed, 16 Nov 2016 19:37:16 +0000 (19:37 +0000)]
tests/framebuffer: Remove dead minui.h.
am:
43ef74b2e3
Change-Id: I6383fa534ca9bca9cb9e31a1df4fc9de6ff8a572
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:40:26 +0000 (04:40 +0000)]
Merge "Fix static-analyzer memory leak warnings." am:
ba27872adb
am:
283c74c540
Change-Id: Ib46eb54fb319d816ffcfdfa31a2cd38ae7886605
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:25:43 +0000 (03:25 +0000)]
Merge "Fix kernel panic when boot up" am:
857a9f9a57
am:
a28eba452f
Change-Id: I5c7dc9d6aeeefeef116eea216247b793d72a1c3e
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:14:59 +0000 (03:14 +0000)]
Merge "Revert "simpleperf: use libprocinfo."" am:
40f79982a2
am:
94fc942291
Change-Id: Ie5cc6d8cf5bdf0a0ef7c2a65891328ac3f79d0f3
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:20:26 +0000 (02:20 +0000)]
Merge "Support for multiple instances" am:
e97dfde326
am:
438487eb3c
Change-Id: I4df6c57fa1d4863b26a10d10cbf8c6be107a07f9
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:51:27 +0000 (01:51 +0000)]
Merge "simpleperf: use libprocinfo." am:
1007435341
am:
1e90d05be7
Change-Id: I5043d398ad66a0bcc8d15f866d35ff684c8f14a0
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:10:17 +0000 (00:10 +0000)]
Merge "simpleperf: fix potential unaligned memory access." am:
695d719bae
am:
62ffb7fba6
Change-Id: I60e1200c28194619b0e6ff1546934487c6f277e2
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:24:25 +0000 (01:24 +0000)]
Merge "simpleperf: dump only needed symbols in file feature section." am:
ee71d0b6a8
am:
b77019af4b
Change-Id: I7e2e39322b9a313f1318ab8adb2e589cf2af1a02
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:22:33 +0000 (20:22 +0000)]
Merge "simpleperf: update report shared library." am:
0dc19e6226
am:
1a5724eb34
Change-Id: I3890191a38b040da27c8b07156b906dd130746f1
Yabin Cui [Fri, 11 Nov 2016 20:22:18 +0000 (20:22 +0000)]
Merge "simpleperf: fix unaligned data access on arm." am:
c18d84a160
am:
9f6a4dffb8
Change-Id: If188fcb38d9b5e79a99ea6bbf546ca2f4152a4e1
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:28:46 +0000 (01:28 +0000)]
Merge "simpleperf: use file records in protobuf output." am:
2a309ae76b
am:
14a08ae117
Change-Id: I2c4f36f2102a85d5eb07f3a89666e4a25ad5ed09
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."