OSDN Git Service
Yabin Cui [Tue, 15 Nov 2016 00:26:44 +0000 (00:26 +0000)]
Merge "simpleperf: fix potential unaligned memory access." am:
695d719bae am:
62ffb7fba6 am:
5826105049
am:
b382b20452
Change-Id: If55f8ef801d2dba888f70a1691830349a077422c
Yabin Cui [Tue, 15 Nov 2016 00:17:48 +0000 (00:17 +0000)]
Merge "simpleperf: fix potential unaligned memory access." am:
695d719bae am:
62ffb7fba6
am:
5826105049
Change-Id: Iec3652380f3cf3fcf2329c3792d50c2d8ec22373
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."
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
Pat Tjin [Mon, 14 Nov 2016 16:42:51 +0000 (16:42 +0000)]
Merge "make_ext4fs: add option to specify the number of inodes"
Yabin Cui [Sat, 12 Nov 2016 01:38:00 +0000 (01:38 +0000)]
Merge "simpleperf: dump only needed symbols in file feature section." am:
ee71d0b6a8 am:
b77019af4b am:
19fe235c6e
am:
3feb0489a3
Change-Id: I0b353308078f537575cf901495700fbb720b3c7c
Yabin Cui [Sat, 12 Nov 2016 01:31:26 +0000 (01:31 +0000)]
Merge "simpleperf: dump only needed symbols in file feature section." am:
ee71d0b6a8 am:
b77019af4b
am:
19fe235c6e
Change-Id: I8fc497cbf9f8cd1161779d31e79a51e0474f4d49
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
Yabin Cui [Fri, 11 Nov 2016 20:36:15 +0000 (20:36 +0000)]
Merge "simpleperf: update report shared library." am:
0dc19e6226 am:
1a5724eb34 am:
c6a3ad34b5
am:
b7f9d07de7
Change-Id: Ic24503970f2526b82e3d41d67143d76c514b0514
Yabin Cui [Fri, 11 Nov 2016 20:36:01 +0000 (20:36 +0000)]
Merge "simpleperf: fix unaligned data access on arm." am:
c18d84a160 am:
9f6a4dffb8 am:
20ea2ac5c2
am:
4c860447c3
Change-Id: Ic59d99c7de8a465c182677a9f815be6964db2b2e
Yabin Cui [Fri, 11 Nov 2016 20:28:30 +0000 (20:28 +0000)]
Merge "simpleperf: update report shared library." am:
0dc19e6226 am:
1a5724eb34
am:
c6a3ad34b5
Change-Id: Ib35ee4a4dd5d0e1bc3bac42c30cf4e60e092707b
Yabin Cui [Fri, 11 Nov 2016 20:28:18 +0000 (20:28 +0000)]
Merge "simpleperf: fix unaligned data access on arm." am:
c18d84a160 am:
9f6a4dffb8
am:
20ea2ac5c2
Change-Id: Ie9d3e6ec03ee4504aed6be2ab55cfef476c0f65c
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:42:16 +0000 (01:42 +0000)]
Merge "simpleperf: use file records in protobuf output." am:
2a309ae76b am:
14a08ae117 am:
7b3275b85b
am:
826173267a
Change-Id: I5ef24d69557938e87cc2ae1106bea8839d0046f4
Yabin Cui [Fri, 11 Nov 2016 01:35:46 +0000 (01:35 +0000)]
Merge "simpleperf: use file records in protobuf output." am:
2a309ae76b am:
14a08ae117
am:
7b3275b85b
Change-Id: I1e2c275adc738696a68019058cc1ebf1d76c83e9
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."
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:37:50 +0000 (19:37 +0000)]
Merge "Rename libfec_host to libfec." am:
51aa3fdeff am:
bf72aa2386 am:
0ec39ee8fb
am:
c98f0c774d
Change-Id: Ie8363bc80a93fdfa53876d88c68a19a1293a6b8d
Alex Deymo [Wed, 9 Nov 2016 19:25:41 +0000 (19:25 +0000)]
Merge "Rename libfec_host to libfec." am:
51aa3fdeff am:
bf72aa2386
am:
0ec39ee8fb
Change-Id: I71136236ffedf0536115b0b5e3106a4caecab39e
Alex Deymo [Wed, 9 Nov 2016 19:21:16 +0000 (19:21 +0000)]
Merge "Rename libfec_host to libfec." am:
51aa3fdeff
am:
bf72aa2386
Change-Id: If2a845dd341d68acae7d2bedc140521369135aee
Alex Deymo [Wed, 9 Nov 2016 19:14:14 +0000 (19:14 +0000)]
Merge "Rename libfec_host to libfec."
am:
51aa3fdeff
Change-Id: I46a420d99bc274de117ed038d965113d2422492e
Alex Deymo [Wed, 9 Nov 2016 19:02:16 +0000 (19:02 +0000)]
Merge "Rename libfec_host to libfec."
Alex Deymo [Wed, 9 Nov 2016 03:13:52 +0000 (19:13 -0800)]
Rename libfec_host to libfec.
Host libraries don't need to have a different name from the device target.
Bug: None
Test: `make dist`
Change-Id: Ib7709a327ac2fdbdfb131e40f578217633e1f996
Paul Lawrence [Mon, 7 Nov 2016 22:11:26 +0000 (22:11 +0000)]
Merge "Change char to uint8_t in ext4_encryption_policy"
Yabin Cui [Mon, 7 Nov 2016 19:30:24 +0000 (19:30 +0000)]
Merge "simpleperf: make file feature section used in more report commands." am:
f94f3d3d43 am:
82431c98b5 am:
e650833325
am:
50eec702ab
Change-Id: I8476e68a8d7a646303b32f93b36eb2ef29a7bcaf
Yabin Cui [Mon, 7 Nov 2016 19:25:24 +0000 (19:25 +0000)]
Merge "simpleperf: make file feature section used in more report commands." am:
f94f3d3d43 am:
82431c98b5
am:
e650833325
Change-Id: I74194a1003e8a7828e7aa84e5396d38b1ebd1d74
Yabin Cui [Mon, 7 Nov 2016 19:20:24 +0000 (19:20 +0000)]
Merge "simpleperf: make file feature section used in more report commands." am:
f94f3d3d43
am:
82431c98b5
Change-Id: I0b005527d7e9636ab5ebc897b9e2187ccca0ae61
Yabin Cui [Mon, 7 Nov 2016 19:14:51 +0000 (19:14 +0000)]
Merge "simpleperf: make file feature section used in more report commands."
am:
f94f3d3d43
Change-Id: I9b9e1e9b3a36d0821fc1139f639d0498c9be9da1
Yabin Cui [Mon, 7 Nov 2016 19:05:55 +0000 (19:05 +0000)]
Merge "simpleperf: make file feature section used in more report commands."
Paul Lawrence [Mon, 7 Nov 2016 18:34:45 +0000 (10:34 -0800)]
Change char to uint8_t in ext4_encryption_policy
Test: Make sure compiles and boots
Bug:
29000669
Change-Id: I4bb28677034c1381999d06d58335572b15745de9
Yabin Cui [Fri, 4 Nov 2016 23:49:35 +0000 (16:49 -0700)]
simpleperf: make file feature section used in more report commands.
Bug: http://b/
32340274
Test: run simpleperf_unit_test.
Change-Id: I0bed466c145fdbb2988308f56a031c06bad16352
Yabin Cui [Fri, 4 Nov 2016 18:54:56 +0000 (18:54 +0000)]
Merge "simpleperf: dump file feature section." am:
a9afa0053e am:
a258c2bd4f am:
2ec1db7382
am:
cc79380cbf
Change-Id: I231b1fe0c14f07daa3574e50a1b7a1af218d168a
Yabin Cui [Fri, 4 Nov 2016 18:50:33 +0000 (18:50 +0000)]
Merge "simpleperf: dump file feature section." am:
a9afa0053e am:
a258c2bd4f
am:
2ec1db7382
Change-Id: Ia740b0e2e6723a88357d1b1a9ddeb01194a0182d
Yabin Cui [Fri, 4 Nov 2016 18:47:03 +0000 (18:47 +0000)]
Merge "simpleperf: dump file feature section." am:
a9afa0053e
am:
a258c2bd4f
Change-Id: Id6d99c256cff3c1ee684fbea497ba0d090cbdcd8
Yabin Cui [Fri, 4 Nov 2016 18:43:04 +0000 (18:43 +0000)]
Merge "simpleperf: dump file feature section."
am:
a9afa0053e
Change-Id: I186607a5752b6799e82ceddacf14152924b1ee36
Yabin Cui [Fri, 4 Nov 2016 18:37:00 +0000 (18:37 +0000)]
Merge "simpleperf: dump file feature section."
Yabin Cui [Mon, 31 Oct 2016 18:04:19 +0000 (18:04 +0000)]
Merge "simpleperf: remove external sort." am:
d2fcab88ef am:
f4e360dcf5 am:
7e9a51f272
am:
8828751a53
Change-Id: I4f42db6ce840164064c4bb7976ce643e41d05434
Yabin Cui [Mon, 31 Oct 2016 17:57:32 +0000 (17:57 +0000)]
Merge "simpleperf: remove external sort." am:
d2fcab88ef am:
f4e360dcf5
am:
7e9a51f272
Change-Id: Ie7b19d6d65bba4418d360cace6bd6ccb95b058f2
Yabin Cui [Mon, 31 Oct 2016 17:51:31 +0000 (17:51 +0000)]
Merge "simpleperf: remove external sort." am:
d2fcab88ef
am:
f4e360dcf5
Change-Id: I89e1b722ce2db1f15793057e384f6bc6e82ecc54
Yabin Cui [Mon, 31 Oct 2016 17:45:57 +0000 (17:45 +0000)]
Merge "simpleperf: remove external sort."
am:
d2fcab88ef
Change-Id: I4292eb7c5b9f9fb0eccd5445071685d4b3b56bc4
Yabin Cui [Mon, 24 Oct 2016 20:38:38 +0000 (13:38 -0700)]
simpleperf: dump file feature section.
For `record --dump-symbols` option, change from dumping
DsoRecord and SymbolRecord to dumping file feature section.
It is to avoid reading symbols from elf files during recording,
which takes a lot of time. And we don't want to mix optional
data (the symbol tables) with necessary data (the profiling records).
Bug: http://b/
32340274
Test: run simpleperf_unit_test.
Test: run simpleperf runtest.py.
Change-Id: I0a387de243afac93486fc885f223a58060ec07f4
Yabin Cui [Mon, 31 Oct 2016 17:33:58 +0000 (17:33 +0000)]
Merge "simpleperf: remove external sort."
Yabin Cui [Sat, 29 Oct 2016 02:34:15 +0000 (02:34 +0000)]
Merge "simpleperf: avoid errors/warnings caused by sepolicy." am:
2a16892192 am:
13a5a7021e am:
ca02e33aeb
am:
f7f82b0283
Change-Id: Ied1edc51aa84e7523cc36a69fa218b8131ee19a6
Yabin Cui [Sat, 29 Oct 2016 02:28:45 +0000 (02:28 +0000)]
Merge "simpleperf: avoid errors/warnings caused by sepolicy." am:
2a16892192 am:
13a5a7021e
am:
ca02e33aeb
Change-Id: I54a236f4a4e07077f3f833c65cef423c65b7fb74
Yabin Cui [Sat, 29 Oct 2016 02:23:44 +0000 (02:23 +0000)]
Merge "simpleperf: avoid errors/warnings caused by sepolicy." am:
2a16892192
am:
13a5a7021e
Change-Id: Ib2d5a08df7e856cbc9b5d792b907ff518cb8d963
Yabin Cui [Sat, 29 Oct 2016 02:17:45 +0000 (02:17 +0000)]
Merge "simpleperf: avoid errors/warnings caused by sepolicy."
am:
2a16892192
Change-Id: Ia024783075a63762055e7ff07f3f811c03206d74
Yabin Cui [Sat, 29 Oct 2016 02:10:20 +0000 (02:10 +0000)]
Merge "simpleperf: avoid errors/warnings caused by sepolicy."
Yabin Cui [Sat, 29 Oct 2016 01:50:04 +0000 (18:50 -0700)]
simpleperf: remove external sort.
Also remove set low mark for dwarf callgraph recording.
Bug: http://b/
32343227
Test: run simpleperf runtest.py.
Test: run simpleperf_unit_test.
Change-Id: I57c0146b0a52cc1bb940a54f685058fe00677992
Yabin Cui [Fri, 28 Oct 2016 20:27:41 +0000 (13:27 -0700)]
simpleperf: avoid errors/warnings caused by sepolicy.
If running in an app user id, sepolicy doesn't allow reading
many /proc and /sys files, like /proc/<pid> belonging to
other users, /sys/kernel/notes, /proc/sys/kernel/perf_event_paranoid,
/proc/sys/kernel/kptr_restrict.
With this patch, simpleperf doesn't read /proc/<pid> belonging to
other users, and doesn't report error/warning when failing to read
/proc/sys/* files.
Bug: http://b/
32460013
Test: run `simpleperf record` in an app user id.
Test: run simpleperf_unit_test.
Test: run simpleperf runtest.py.
Change-Id: I6618fbd10a9112637c8e501ec76628c9ec4ccaa7
Colin Cross [Fri, 28 Oct 2016 20:24:44 +0000 (20:24 +0000)]
Merge "Convert perfprofd to Android.bp" am:
52ebd8e5b2 am:
4473b498fd am:
9d25c46373
am:
dcdc395081
Change-Id: I3a0a294f32b3087c414c06c309035aee3ecf025f
Colin Cross [Fri, 28 Oct 2016 20:20:14 +0000 (20:20 +0000)]
Merge "Convert perfprofd to Android.bp" am:
52ebd8e5b2 am:
4473b498fd
am:
9d25c46373
Change-Id: I798955694a4e9c45d7695d8525ca7136ecf7f0e8
Colin Cross [Fri, 28 Oct 2016 20:15:14 +0000 (20:15 +0000)]
Merge "Convert perfprofd to Android.bp" am:
52ebd8e5b2
am:
4473b498fd
Change-Id: I02b09ac68781004ba93122308fbb1420211c6f1c
Colin Cross [Fri, 28 Oct 2016 20:10:14 +0000 (20:10 +0000)]
Merge "Convert perfprofd to Android.bp"
am:
52ebd8e5b2
Change-Id: I38a94da626204f78487141badc3f8257669951e0
Treehugger Robot [Fri, 28 Oct 2016 20:04:49 +0000 (20:04 +0000)]
Merge "Convert perfprofd to Android.bp"
Colin Cross [Wed, 26 Oct 2016 17:23:15 +0000 (10:23 -0700)]
Convert perfprofd to Android.bp
See build/soong/README.md for more information.
Converted as a test for .proto compilation support.
Bug:
32286026
Test: perfprofd_test
Change-Id: I1e0934aa5bf4649d598ec460128de6f02711597f
Yabin Cui [Thu, 27 Oct 2016 16:49:50 +0000 (16:49 +0000)]
Merge "simpleperf: Add UnixSocket." am:
b1bb2ea2fd am:
1d47e5ac0e am:
fa5b08577b
am:
6810d18d76
Change-Id: I04fa2d22266e0acd1843b716545efbd77a84d7d5
Yabin Cui [Thu, 27 Oct 2016 16:49:39 +0000 (16:49 +0000)]
Merge "simpleperf: merge records from different buffers in memory." am:
f95e0a3b26 am:
7f12240c5e am:
c94a502c98
am:
4749cf2f3b
Change-Id: I64160377935c04a55f8891a65261573601bff174
Yabin Cui [Thu, 27 Oct 2016 16:49:29 +0000 (16:49 +0000)]
Merge "simpleperf: reduce default test log output." am:
bd0935dc79 am:
5f94c4360e am:
dcc1434a41
am:
ade7c0edf6
Change-Id: I28690c3e52d795a68c3653d842c72cdb87bb7aa8
Yabin Cui [Thu, 27 Oct 2016 16:44:53 +0000 (16:44 +0000)]
Merge "simpleperf: Add UnixSocket." am:
b1bb2ea2fd am:
1d47e5ac0e
am:
fa5b08577b
Change-Id: Ic7a8229530fef63499939cfc2642320cf57bda2b
Yabin Cui [Thu, 27 Oct 2016 16:44:41 +0000 (16:44 +0000)]
Merge "simpleperf: merge records from different buffers in memory." am:
f95e0a3b26 am:
7f12240c5e
am:
c94a502c98
Change-Id: I938371ce5d4655c92d2044a654e8da22521b37f6
Yabin Cui [Thu, 27 Oct 2016 16:44:29 +0000 (16:44 +0000)]
Merge "simpleperf: reduce default test log output." am:
bd0935dc79 am:
5f94c4360e
am:
dcc1434a41
Change-Id: I5ab77a6aeb5e96907604b975c627207940871f26
Yabin Cui [Thu, 27 Oct 2016 16:40:20 +0000 (16:40 +0000)]
Merge "simpleperf: Add UnixSocket." am:
b1bb2ea2fd
am:
1d47e5ac0e
Change-Id: I77b30fee54aad48c8af518ff586b4f381fb0e89a
Yabin Cui [Thu, 27 Oct 2016 16:40:09 +0000 (16:40 +0000)]
Merge "simpleperf: merge records from different buffers in memory." am:
f95e0a3b26
am:
7f12240c5e
Change-Id: Ia9bc150305d8fe940925930d59699d071f7c09d4
Yabin Cui [Thu, 27 Oct 2016 16:39:59 +0000 (16:39 +0000)]
Merge "simpleperf: reduce default test log output." am:
bd0935dc79
am:
5f94c4360e
Change-Id: I00523a8f65c385541534de4d7177b8fef8e18a5c
Yabin Cui [Thu, 27 Oct 2016 16:35:50 +0000 (16:35 +0000)]
Merge "simpleperf: Add UnixSocket."
am:
b1bb2ea2fd
Change-Id: I65d94193941f439aaac0889e3cdcb44b84419a48
Yabin Cui [Thu, 27 Oct 2016 16:35:40 +0000 (16:35 +0000)]
Merge "simpleperf: merge records from different buffers in memory."
am:
f95e0a3b26
Change-Id: I00e77520245fff966d7b0a358cb50a2a1871ebb5
Yabin Cui [Thu, 27 Oct 2016 16:35:28 +0000 (16:35 +0000)]
Merge "simpleperf: reduce default test log output."
am:
bd0935dc79
Change-Id: I0a1da4d0d98e828f7923c9f79da832f89001d0b6
Yabin Cui [Thu, 27 Oct 2016 16:26:41 +0000 (16:26 +0000)]
Merge "simpleperf: Add UnixSocket."
Yabin Cui [Thu, 27 Oct 2016 16:26:19 +0000 (16:26 +0000)]
Merge "simpleperf: merge records from different buffers in memory."
Yabin Cui [Thu, 27 Oct 2016 16:26:00 +0000 (16:26 +0000)]
Merge "simpleperf: reduce default test log output."
Yabin Cui [Tue, 25 Oct 2016 02:13:09 +0000 (19:13 -0700)]
simpleperf: merge records from different buffers in memory.
By reading records from all buffers at once, we can merge records
in memory instead of sorting them in perf.data. To make it clear,
this patch only contains the code to merge records in memory, and
I will remove old method later.
Bug: http://b/
32343227
Test: run simpleperf_unit_test.
Test: run simpleperf_runtest.py.
Change-Id: Iea2da06c072243c2014f43c8aa6d96a23cfb9123
Yabin Cui [Wed, 26 Oct 2016 23:17:25 +0000 (16:17 -0700)]
simpleperf: reduce default test log output.
Bug: http://b/
32442055
Test: run simpleperf_cpu_hotplug_test.
Change-Id: I179a83cec98c6a32bdc9ba8ad403c199a8009f80
Tao Bao [Wed, 26 Oct 2016 23:11:40 +0000 (23:11 +0000)]
resolve merge conflicts of
303a851 to nyc-mr2-dev-plus-aosp
am:
4a029de94a
Change-Id: Ia016bf93c4b4ae58dd2d46994daaec003b6701ff
Tao Bao [Wed, 26 Oct 2016 22:50:11 +0000 (15:50 -0700)]
resolve merge conflicts of
303a851 to nyc-mr2-dev-plus-aosp
Change-Id: I2c128766ccab4c21ef87b0b87c6b6a517e9280b2
Tao Bao [Wed, 26 Oct 2016 22:27:01 +0000 (22:27 +0000)]
build_verity_metadata: Support --signer_args argument. am:
1522691d1d am:
c2e9c0f0fc am:
c681cb32b3
am:
b91b1cd229
Change-Id: I2fdccda3685d5c255dda29680aa1f9ea7629fd47
Tao Bao [Wed, 26 Oct 2016 22:23:00 +0000 (22:23 +0000)]
build_verity_metadata: Support --signer_args argument. am:
1522691d1d am:
c2e9c0f0fc
am:
c681cb32b3
Change-Id: Ifdaf37a7a04172798ce3ab125c799c819f350de3
Tao Bao [Wed, 26 Oct 2016 22:18:30 +0000 (22:18 +0000)]
build_verity_metadata: Support --signer_args argument. am:
1522691d1d
am:
c2e9c0f0fc
Change-Id: Id0290ac657b6ebd1c6ec59f6ac5f44cd3806d5d7
Tao Bao [Wed, 26 Oct 2016 22:13:29 +0000 (22:13 +0000)]
build_verity_metadata: Support --signer_args argument.
am:
1522691d1d
Change-Id: I9827575704475f3781a214ab73a3b82b7bd00e38
Tianjie Xu [Wed, 26 Oct 2016 20:55:32 +0000 (20:55 +0000)]
Merge "Convert verity tools to subprocess" am:
6a28545530 am:
78e22d339a am:
dcdb27f81b
am:
bf7e78b4c1
Change-Id: Iab01d4475abcb7a66dc1e6a7e5803a24797cf4d5
Tianjie Xu [Wed, 26 Oct 2016 20:48:21 +0000 (20:48 +0000)]
Merge "Convert verity tools to subprocess" am:
6a28545530 am:
78e22d339a
am:
dcdb27f81b
Change-Id: Ie5a01d286f5e992de853faecdddaec597525d940
Tianjie Xu [Wed, 26 Oct 2016 20:44:20 +0000 (20:44 +0000)]
Merge "Convert verity tools to subprocess" am:
6a28545530
am:
78e22d339a
Change-Id: Ibbc05ce648c0650cd77af6bf6d77ac1b1908f658
Tianjie Xu [Wed, 26 Oct 2016 20:40:21 +0000 (20:40 +0000)]
Merge "Convert verity tools to subprocess"
am:
6a28545530
Change-Id: I640228fc63e3bbe56d0d101a7cda5702266dc8f2
Tianjie Xu [Wed, 26 Oct 2016 20:34:23 +0000 (20:34 +0000)]
Merge "Convert verity tools to subprocess"
Yabin Cui [Mon, 24 Oct 2016 23:53:32 +0000 (16:53 -0700)]
simpleperf: Add UnixSocket.
It is used for communication between inplace-sampler-server and simpleperf.
Bug: http://b/
30974760
Test: run simpleperf_unit_test.
Change-Id: I055763b73fd0aaa03fe008c185ca8b78ab5435f2
Pirama Arumuga Nainar [Wed, 26 Oct 2016 18:22:08 +0000 (18:22 +0000)]
Merge "Make simpleperf build with LLVM r275480" am:
c27cccb8ef am:
5c5e17693f am:
9b1b5fe95e
am:
0290a3d935
Change-Id: I481552ff9fc51476e6b4eabc5b4af646f4be543b
Tianjie Xu [Wed, 26 Oct 2016 01:11:24 +0000 (18:11 -0700)]
Convert verity tools to subprocess
Convert build_verity_metadata.py to subprocess instead of commands
module.
Bug:
31500725
Test: build_verity_metadata.py executes successfully
Change-Id: I9a0db78390d330710e62a710f8f957743aebd822