OSDN Git Service
Pirama Arumuga Nainar [Fri, 18 Mar 2016 21:54:50 +0000 (21:54 +0000)]
Merge "Update simpleperf for LLVM rebase to r256229."
Daniel Cashman [Wed, 16 Mar 2016 16:07:46 +0000 (16:07 +0000)]
Merge "Correct aslr_test minimum arm value."
dcashman [Tue, 15 Mar 2016 22:14:20 +0000 (15:14 -0700)]
Correct aslr_test minimum arm value.
Default mmap_rnd_bits value is now equal to the maximum supported (16)
on arm, not the minimum, 8. Adjust the test criteria to match this.
(cherry-pick of internal commit:
6d7b862b59743b64500b9b079c90cc50d556ecdf)
Bug:
27680571
Change-Id: I2017bf3b77b9513b0c8a797b6fe3dc6aef8ef431
Daniel Cashman [Mon, 14 Mar 2016 17:55:19 +0000 (17:55 +0000)]
Merge "Migrate aslr test to gtest."
dcashman [Mon, 7 Mar 2016 18:32:05 +0000 (10:32 -0800)]
Migrate aslr test to gtest.
Create tests which test the values of mmap_rnd_bits, and
mmap_rnd_compat_bits, if applicable, and verify that the address space
is randomized as expected given the provided values.
Also add a pair of tests to CTS that enforce that the observed entropy
is at least as high as a designated value. That value will start as our
default value, which also corresponds to the maximum value of some
configurations.
Packaging of executables along with a nativetest suite is not supported,
so add a dummy nativetest suite, scrape_mmap_addr, which ensure that the
executables are present along with the given tests at predictable
locations.
(cherry-pick of internal commit:
d661642651a6689c76d3f575b4b5dbf04e6b75bd)
Bug:
26512380
Change-Id: I8c4a68f3d10a57f9a51bdc6084df622cf8517b51
Yabin Cui [Thu, 10 Mar 2016 21:53:09 +0000 (21:53 +0000)]
Merge "simpleperf: check if dwarf callgraph is supported by kernel before testing."
Yabin Cui [Thu, 10 Mar 2016 19:49:57 +0000 (11:49 -0800)]
simpleperf: check if dwarf callgraph is supported by kernel before testing.
Move inclusion of poll.h from header files to source files,
as event_selection_set.h is used by cmd_report_test.cpp, which
can be built on windows.
Bug:
27590546
Change-Id: Ic6b141a93d96610f911ab52da1d927b7f619ccb2
Yabin Cui [Wed, 9 Mar 2016 22:48:52 +0000 (14:48 -0800)]
Update simpleperf for LLVM rebase to r256229.
Bug:
26987366
Change-Id: I55b0ab1214e0365d523eff3c8c1db2aa30effd18
Mark Salyzyn [Wed, 9 Mar 2016 16:50:49 +0000 (16:50 +0000)]
Merge "su: Segmentation Fault on unknown numerical uids"
Mark Salyzyn [Tue, 8 Mar 2016 21:36:00 +0000 (13:36 -0800)]
su: Segmentation Fault on unknown numerical uids
e.g.
su 2999,2999,2999 echo hello
Segmentation Fault
return from getpwuid is NULL. KISS we opt to unset LOGNAME and USER
Change-Id: I7e7eddacfd6857f83482727eb5ec5c51b9170039
Mark Salyzyn [Tue, 8 Mar 2016 23:48:05 +0000 (23:48 +0000)]
Merge "cts: android.kernel.config"
Chih-Hung Hsieh [Fri, 4 Mar 2016 19:56:37 +0000 (19:56 +0000)]
Merge "Fix static analyzer warnings."
am:
5667da92fd
* commit '
5667da92fd874c30eff40eae488ae6e05dba9d31':
Fix static analyzer warnings.
Chih-hung Hsieh [Fri, 4 Mar 2016 19:38:44 +0000 (19:38 +0000)]
Merge "Fix static analyzer warnings."
Chih-Hung Hsieh [Fri, 4 Mar 2016 18:14:32 +0000 (10:14 -0800)]
Fix static analyzer warnings.
* Add missing free.
* Remove unused local variable.
BUG:
27120398
Change-Id: I84d32fcee5615a428bd1de6673a6f15036736998
Alex Deymo [Fri, 4 Mar 2016 05:45:33 +0000 (05:45 +0000)]
Merge "postinst: Update postinstall_example documentation."
am:
9be329ae32
* commit '
9be329ae3292cd3c90057bb8b945ac55ff35b2ca':
postinst: Update postinstall_example documentation.
Alex Deymo [Fri, 4 Mar 2016 05:39:49 +0000 (05:39 +0000)]
Merge "postinst: Update postinstall_example documentation."
George Burgess IV [Thu, 3 Mar 2016 21:53:17 +0000 (21:53 +0000)]
Merge "Cleanup uses of sprintf so we can deprecate it."
am:
33f2127b43
* commit '
33f2127b43c3f0a5bd4496822222810f22e1489d':
Cleanup uses of sprintf so we can deprecate it.
George Burgess IV [Thu, 3 Mar 2016 21:44:56 +0000 (21:44 +0000)]
Merge "Cleanup uses of sprintf so we can deprecate it."
Yabin Cui [Thu, 3 Mar 2016 19:08:53 +0000 (19:08 +0000)]
Merge "simpleperf: support building cts test."
am:
acf5a605e8
* commit '
acf5a605e8e97f6beab23a2b270a02c3565c12cd':
simpleperf: support building cts test.
Yabin Cui [Thu, 3 Mar 2016 18:59:38 +0000 (18:59 +0000)]
Merge "simpleperf: support building cts test."
Yabin Cui [Wed, 2 Mar 2016 21:56:28 +0000 (13:56 -0800)]
simpleperf: support building cts test.
1. build cts test libraries.
2. change tests to use tmpfile instead of perf.data.
3. support extracting testdata from cts test file.
Bug:
27387280
Change-Id: I7c5db77f3157d586d0c9beb446b247626e7cce36
Alex Deymo [Thu, 3 Mar 2016 02:02:17 +0000 (18:02 -0800)]
postinst: Update postinstall_example documentation.
We don't need the /postinst symlink anymore, instead we should provide
the path to the executable in the config. An example of how to setup
that is now included in the documentation of postinstall_example.
Bug:
27177071
TEST=Deployed this script as postinstall on edison-eng.
Change-Id: I2f7bd50174db42a57d25277883b0ec795ca17144
George Burgess IV [Wed, 2 Mar 2016 22:15:49 +0000 (14:15 -0800)]
Cleanup uses of sprintf so we can deprecate it.
Change-Id: I3ed15a7c261adf01c310bb58ff7ce836ea400bba
Yabin Cui [Wed, 2 Mar 2016 18:59:04 +0000 (18:59 +0000)]
Merge "simpleperf: fix analyzer warning."
am:
5cfed7b49b
* commit '
5cfed7b49b1ae706265d4181b1d4f0dbb79491f5':
simpleperf: fix analyzer warning.
Yabin Cui [Wed, 2 Mar 2016 18:47:52 +0000 (18:47 +0000)]
Merge "simpleperf: fix analyzer warning."
Lorenzo Colitti [Wed, 2 Mar 2016 08:15:41 +0000 (08:15 +0000)]
Merge "Delete net_test from system/extras now that it\'s in kernel/tests."
am:
3669b3f331
* commit '
3669b3f331485fec4a304177b8a80a25efd1f7d8':
Delete net_test from system/extras now that it's in kernel/tests.
Lorenzo Colitti [Wed, 2 Mar 2016 08:04:01 +0000 (08:04 +0000)]
Merge "Delete net_test from system/extras now that it's in kernel/tests."
Yabin Cui [Tue, 1 Mar 2016 22:05:25 +0000 (14:05 -0800)]
simpleperf: fix analyzer warning.
Bug:
27432175
Change-Id: If0e8bc724cf659508726215d515d3df30cbebe6b
Chih-Hung Hsieh [Tue, 1 Mar 2016 22:29:22 +0000 (22:29 +0000)]
Merge "Fix one static analyzer warning."
am:
63728630cb
* commit '
63728630cb507e1b797eafb6b22cc0720684b87c':
Fix one static analyzer warning.
Chih-hung Hsieh [Tue, 1 Mar 2016 22:22:28 +0000 (22:22 +0000)]
Merge "Fix one static analyzer warning."
Chih-Hung Hsieh [Tue, 1 Mar 2016 21:42:49 +0000 (13:42 -0800)]
Fix one static analyzer warning.
Result of 'realloc' is converted to a pointer of type 'struct
mapping_info *', which is incompatible with sizeof operand type 'struct
mapping *'
BUG:
27121003
Change-Id: Ib05b884ba577751a382b7a5dbbfea8cca2e0f23f
Elliott Hughes [Tue, 1 Mar 2016 20:07:42 +0000 (20:07 +0000)]
Merge "Fix pagemap_test#maps."
am:
5dc5241d77
* commit '
5dc5241d7785569a6a4b65df475ac9451cdfe531':
Fix pagemap_test#maps.
Elliott Hughes [Tue, 1 Mar 2016 20:06:55 +0000 (20:06 +0000)]
Merge "Fix pagemap_test#maps."
Elliott Hughes [Tue, 1 Mar 2016 16:02:37 +0000 (08:02 -0800)]
Fix pagemap_test#maps.
We don't necessarily have a brk-based heap.
Bug: http://b/
27425642
Change-Id: Iac30904ba35c645afe9b056de8df975ebce92a37
Than McIntosh [Tue, 1 Mar 2016 18:31:34 +0000 (18:31 +0000)]
Merge "Fix typo in \'help report\' output."
am:
4e6f660ab0
* commit '
4e6f660ab0d58bd375deec17f36532254183d29d':
Fix typo in 'help report' output.
Than McIntosh [Tue, 1 Mar 2016 18:27:45 +0000 (18:27 +0000)]
Merge "Fix typo in 'help report' output."
Than McIntosh [Tue, 1 Mar 2016 17:38:33 +0000 (12:38 -0500)]
Fix typo in 'help report' output.
Was "--pid", should be "--pids".
Change-Id: Icb49a3d7568bd8f339bf0e4e1065fe2367514588
Yabin Cui [Thu, 25 Feb 2016 20:38:25 +0000 (20:38 +0000)]
Merge "simpleperf: fix mac build."
am:
9e0f649ea9
* commit '
9e0f649ea94cce48df7bfca238fecac1ed1dac98':
simpleperf: fix mac build.
Yabin Cui [Thu, 25 Feb 2016 20:36:03 +0000 (20:36 +0000)]
Merge "simpleperf: fix mac build."
Yabin Cui [Thu, 25 Feb 2016 19:09:44 +0000 (19:09 +0000)]
Merge "simpleperf: port cmd_report_test to nonlinux."
am:
ec2bf27cb9
* commit '
ec2bf27cb962e55cfa25116ba5880ecb19910a07':
simpleperf: port cmd_report_test to nonlinux.
Yabin Cui [Thu, 25 Feb 2016 19:08:07 +0000 (19:08 +0000)]
Merge "simpleperf: port cmd_report_test to nonlinux."
Yabin Cui [Thu, 25 Feb 2016 19:02:30 +0000 (11:02 -0800)]
simpleperf: fix mac build.
I forgot that mac doesn't support whole static library. Change to static library
to avoid hiting the same problem in the future.
Bug:
26962895
Change-Id: Ia8e26c2e1cf7621391e00e100b22b7ed451dfa32
Yabin Cui [Wed, 24 Feb 2016 05:41:03 +0000 (21:41 -0800)]
simpleperf: port cmd_report_test to nonlinux.
And fix one build_id bug introduced by previous patch.
Bug:
26962895
Change-Id: Ibb8bd6ec77ee862bb01c26342d3b3024468e75b2
Lorenzo Colitti [Thu, 25 Feb 2016 13:37:48 +0000 (22:37 +0900)]
Delete net_test from system/extras now that it's in kernel/tests.
The directories are identical. This commit was generated by:
$ diff -u system/extras/tests/net_test kernel/tests/net/test/
$ cd system/extras/tests/net_test
$ git rm *
Bug:
27228782
Change-Id: I08ca870049c8e91bb0848314bf647f6e1ad2dd09
Lorenzo Colitti [Thu, 25 Feb 2016 13:18:08 +0000 (13:18 +0000)]
Merge "Cite more kernel commits."
am:
e090897280
* commit '
e0908972807e5366aba6af130a53803333f94145':
Cite more kernel commits.
Lorenzo Colitti [Thu, 25 Feb 2016 13:13:19 +0000 (13:13 +0000)]
Merge "Cite more kernel commits."
Lorenzo Colitti [Tue, 23 Feb 2016 14:42:10 +0000 (23:42 +0900)]
Cite more kernel commits.
Change-Id: Ia335d5c8461e7dfb41211977df74422e00012be8
Lorenzo Colitti [Mon, 22 Feb 2016 01:38:07 +0000 (01:38 +0000)]
Merge "Teach iproute how to dump IP addresses as well."
am:
9e73f5af39
* commit '
9e73f5af39c035f25b0ac081e999907865789f9e':
Teach iproute how to dump IP addresses as well.
Lorenzo Colitti [Mon, 22 Feb 2016 01:33:06 +0000 (01:33 +0000)]
Merge "Teach iproute how to dump IP addresses as well."
Lorenzo Colitti [Sun, 21 Feb 2016 13:45:09 +0000 (22:45 +0900)]
Teach iproute how to dump IP addresses as well.
Change-Id: I38b5182d9110d72758c48da4d0edc7cf0fb84283
Yabin Cui [Thu, 18 Feb 2016 20:35:28 +0000 (20:35 +0000)]
Merge "simpleperf: fix build by removing off64_t."
am:
21ac023d8e
* commit '
21ac023d8e90b61f4e82e3952a2f706f7db1038a':
simpleperf: fix build by removing off64_t.
Yabin Cui [Thu, 18 Feb 2016 20:26:56 +0000 (20:26 +0000)]
Merge "simpleperf: fix build by removing off64_t."
Yabin Cui [Thu, 18 Feb 2016 20:11:40 +0000 (12:11 -0800)]
simpleperf: fix build by removing off64_t.
Bug:
26962895
Change-Id: I211bacc22c2f6b6b24c639365c706e93d66ce4ac
Yabin Cui [Thu, 18 Feb 2016 18:33:34 +0000 (18:33 +0000)]
Merge "simpleperf: report symbols of native libraries in apk file."
am:
88a0a38c86
* commit '
88a0a38c86f34d1169fee5a66cc98bc3cc5ac30e':
simpleperf: report symbols of native libraries in apk file.
Yabin Cui [Thu, 18 Feb 2016 18:22:51 +0000 (18:22 +0000)]
Merge "simpleperf: report symbols of native libraries in apk file."
Yabin Cui [Mon, 15 Feb 2016 03:18:02 +0000 (19:18 -0800)]
simpleperf: report symbols of native libraries in apk file.
Changes included:
1. provide interface in read_apk.h to read build id and symbols.
2. report symbols of native libraries in apk file.
3. refactor code in read_elf.cpp and read_apk.cpp.
4. add verbose log.
5. add -o report_file_name option for report command.
6. add corresponding unit tests.
Bug:
26962895
Change-Id: I0d5398996e0c29dba4a6f5226692b758ca096bbd
Bill Yi [Wed, 17 Feb 2016 17:51:16 +0000 (09:51 -0800)]
Lorenzo Colitti [Wed, 17 Feb 2016 06:03:08 +0000 (06:03 +0000)]
Merge changes I871eb6a2,Ied6f5aae,I226a41e7
* changes:
Add a test for the behaviour of FIN_WAIT sockets.
Make the bytecode tests a bit more robust.
Rename DisableLinger to DisableFinWait, and add an EnableFinWait.
Yabin Cui [Tue, 16 Feb 2016 21:28:16 +0000 (21:28 +0000)]
Merge "simpleperf: accept different perf_attr sizes."
Yabin Cui [Tue, 16 Feb 2016 20:15:31 +0000 (12:15 -0800)]
simpleperf: accept different perf_attr sizes.
The size of perf_attr can be increased as new features are added. And
we can accept different perf_attr sizes in perf.data, and ignore
unknown features.
Change-Id: Ia42617f92acb3ab6ae56eb91aa0d7b73efc0b8af
Lorenzo Colitti [Tue, 16 Feb 2016 16:07:15 +0000 (01:07 +0900)]
Add a test for the behaviour of FIN_WAIT sockets.
Change-Id: I871eb6a2d3ff889417e6ed02661c8d9a41980e61
Lorenzo Colitti [Tue, 16 Feb 2016 16:05:54 +0000 (01:05 +0900)]
Make the bytecode tests a bit more robust.
They used to require that there were no TCP sockets on the system
at all. Now they only require that there be no established
sockets. Not a huge improvement, but it does make it possible to
write tests that leave-non established sockets around after they
terminate.
Change-Id: Ied6f5aae3b6cf4a5bd25aa4fbeac637010e1f0e8
Lorenzo Colitti [Tue, 16 Feb 2016 15:42:58 +0000 (00:42 +0900)]
Rename DisableLinger to DisableFinWait, and add an EnableFinWait.
Change-Id: I226a41e7eed6cc5bda04f1fb3a0f1889a10408c0
Lorenzo Colitti [Tue, 16 Feb 2016 16:08:28 +0000 (16:08 +0000)]
Merge "Improve sock_diag debugging code."
Dimitry Ivanov [Sat, 13 Feb 2016 04:44:24 +0000 (04:44 +0000)]
Merge "Add missing liblog dependency"
Dimitry Ivanov [Sat, 13 Feb 2016 02:43:40 +0000 (18:43 -0800)]
Add missing liblog dependency
Bug: http://b/
27171986
Change-Id: I508d3cfbcb9e026b0f4a086fc6dd1adeffbffcc3
Dimitry Ivanov [Sat, 13 Feb 2016 00:31:18 +0000 (00:31 +0000)]
Merge "Add missing liblog dependency"
Dimitry Ivanov [Sat, 13 Feb 2016 00:28:49 +0000 (16:28 -0800)]
Add missing liblog dependency
Bug: http://b/
27171986
Change-Id: Ifef160cce7f64cd95ceb121e1c311e52352174c4
Chih-hung Hsieh [Fri, 12 Feb 2016 20:02:48 +0000 (20:02 +0000)]
Merge "Fix clang warnings and leak of full_stats_file ."
Chih-hung Hsieh [Fri, 12 Feb 2016 19:56:41 +0000 (19:56 +0000)]
Merge "Fix memory leak of dirbuf."
Chih-Hung Hsieh [Fri, 12 Feb 2016 19:16:19 +0000 (11:16 -0800)]
Fix memory leak of dirbuf.
BUG:
26962062
Change-Id: I5fae9eed5b154205a6780fb28c59fccf0b5b16ec
Chih-Hung Hsieh [Fri, 12 Feb 2016 19:32:33 +0000 (11:32 -0800)]
Fix clang warnings and leak of full_stats_file .
BUG:
27121040
Change-Id: I33a218c7746509278e1222cd5dbd6d4876405b28
Mark Salyzyn [Thu, 11 Feb 2016 22:20:24 +0000 (14:20 -0800)]
cts: android.kernel.config
- Added plumbing for CTS tests
- Divide Required into CTS and gTest and
Recommended into gTest
- Added check of CONFIG_ANDROID_LOGGER
- test typically completes after 3ms
Bug:
19173869
Change-Id: I13a92081bfa9b53abb69923b160b82e3be2142ab
Mark Salyzyn [Thu, 11 Feb 2016 23:45:46 +0000 (23:45 +0000)]
Merge "rtc_time: test agent timeouts"
Mark Salyzyn [Thu, 11 Feb 2016 23:04:35 +0000 (15:04 -0800)]
rtc_time: test agent timeouts
Break the test up into four, keeping each well below the 60 second
timeout for the test agents. Overhead for the splitting up is an
additional 10 seconds in order to complete all four of the tests
instead of one. typical single test completion is 22.5 seconds.
Change-Id: If8e9a6c7dfd505a9fbc73e9248be4eb2b61521e5
Yabin Cui [Thu, 11 Feb 2016 18:29:30 +0000 (18:29 +0000)]
Merge "simpleperf: support building static binary on target."
Yabin Cui [Wed, 10 Feb 2016 19:29:51 +0000 (11:29 -0800)]
simpleperf: support building static binary on target.
Bug:
27125711
Change-Id: I7e951c9ffb3e056d05a2b3567f482c6862a3a5b3
Sergio Giro [Wed, 10 Feb 2016 23:34:49 +0000 (23:34 +0000)]
Merge "Track update to bouncycastle 1.54"
Kenny Root [Wed, 10 Feb 2016 23:30:56 +0000 (15:30 -0800)]
Track update to bouncycastle 1.54
Change-Id: I87252e179e191c6210d26e4055bee03fb43d8ba7
Mark Salyzyn [Wed, 10 Feb 2016 23:20:17 +0000 (23:20 +0000)]
Merge "Add kernel config tests"
Mark Salyzyn [Wed, 10 Feb 2016 22:00:14 +0000 (14:00 -0800)]
Add kernel config tests
A simple start to simple day. Check for evidence of following CONFIGs:
CONFIG_MMC_BLOCK_MAX_SPEED=y
CONFIG_IPV6=y
CONFIG_IP_MULTICAST=y
CONFIG_PSTORE=y
CONFIG_PSTORE_CONSOLE=y
CONFIG_PSTORE_PMSG=y
CONFIG_SYSVIPC is not set
ToDo: Evidence for all configs in android/configs/android-base.cfg
and android/configs/android-recommended.cfg. Most are not
possible to directly discover, this is performed on a best
effort basis.
Bug:
19173869
Bug:
26559308
Change-Id: I0447334fab7781579fab10610d2f7ac1d34e6044
Yabin Cui [Wed, 10 Feb 2016 19:21:54 +0000 (19:21 +0000)]
Merge "simpleperf: port read_apk and read_apk/read_elf tests to nonlinux."
Yabin Cui [Sat, 6 Feb 2016 01:32:08 +0000 (17:32 -0800)]
simpleperf: port read_apk and read_apk/read_elf tests to nonlinux.
Also make following small changes:
1. Manage testdata files like libziparchive.
2. Replace StringToPid() with android::base::ParseInt().
3. Add tests in read_elf_test.
Bug:
26962895
Change-Id: I6603e9f3cea3a013e2618ea003790d102739f843
Sami Tolvanen [Mon, 8 Feb 2016 19:00:57 +0000 (19:00 +0000)]
Merge "libfec: fix thread count calculation"
Sami Tolvanen [Mon, 8 Feb 2016 18:54:27 +0000 (10:54 -0800)]
libfec: fix thread count calculation
On systems with a large number of cores, smallish reads may not be
able to utilize all the cores. Correctly compute the number of threads
we should use.
Change-Id: I7a05c144c2b83a2f6083c33a686ced32cce576c4
Christopher Ferris [Sat, 6 Feb 2016 00:55:51 +0000 (00:55 +0000)]
Merge "Add __s32 define."
Christopher Ferris [Sat, 6 Feb 2016 00:53:13 +0000 (16:53 -0800)]
Add __s32 define.
This is needed for the new v4.4.1 kernel headers.
Bug:
23789423
Change-Id: I3053cdf895793c38ff1af41ebb560c13fda23215
Lorenzo Colitti [Fri, 5 Feb 2016 03:58:07 +0000 (12:58 +0900)]
Improve sock_diag debugging code.
- Unbreak GetConstantName on modules that contain constants whose
names start with "INET_DIAG_BC".
- Honour NL_DEBUG when sending dump requests.
- Decode sock_diag messages differently depending on whether
they are requests or responses.
- Print sock_diag bytecode hex-encoded instead of raw.
Change-Id: I3cc20ab635d1ff4f137aa0f9ff0ff88b1a37ce72
Than McIntosh [Wed, 3 Feb 2016 12:00:41 +0000 (12:00 +0000)]
Merge "Support profiling of shared libs embedded in APKs."
Dan Albert [Wed, 3 Feb 2016 03:53:23 +0000 (03:53 +0000)]
Merge "Stop living in the '80s."
Dan Albert [Wed, 3 Feb 2016 03:52:41 +0000 (19:52 -0800)]
Stop living in the '80s.
Build fix for GCC.
Change-Id: I2215913647a95897dc39b862696e395a1ebcf208
Dan Albert [Wed, 3 Feb 2016 02:25:12 +0000 (02:25 +0000)]
Merge "Fix warnings in system/extras."
Dan Albert [Tue, 2 Feb 2016 23:35:33 +0000 (15:35 -0800)]
Fix warnings in system/extras.
Bug: http://b/
26936282
Change-Id: I1b9c6c9bb06944c32abcb871279d056eea0fb11a
Than McIntosh [Tue, 2 Feb 2016 00:50:20 +0000 (19:50 -0500)]
Support profiling of shared libs embedded in APKs.
Some APKs contain shared libraries that the linker handles
by mmap'ing directly from their APKs (if the library is
uncompressed and the proper manifest flag is set). With
this patch simpleperf now breaks out samples on a per-li
basis and reports the name of the lib within the APK.
Example output:
Cmdline: /system/xbin/simpleperf record -a sleep 30
Samples: 140672 of event 'cpu-cycles'
Event count:
84111474884
Overhead Command Pid Tid Shared Object
90.22% b_open_from_apk 19066 19066
/data/app/com.android.frameworks.coretests.install_jni_lib_open_from_apk-2/base.apk!lib/armeabi-v7a/libgcdstuff.so
4.85% b_open_from_apk 19066 19066
/data/app/com.android.frameworks.coretests.install_jni_lib_open_from_apk-2/base.apk!lib/armeabi-v7a/libframeworks_coretests_jni.so
1.19% simpleperf 19085 19085 /system/lib/libc.so
...
Bug:
22560619
Change-Id: I1e0f2e155e03b33935eac24e104c3fd7b9a7e33c
Chih-hung Hsieh [Tue, 2 Feb 2016 19:40:10 +0000 (19:40 +0000)]
Merge "Fix/suppress potential memory leaks warnings."
Chih-Hung Hsieh [Tue, 2 Feb 2016 18:49:50 +0000 (10:49 -0800)]
Fix/suppress potential memory leaks warnings.
* One simple problem fixed by calling free.
* Others are suppressed since we don't care memory leaks
in this soon-to-be-obsolete test program.
BUG:
26910807
Change-Id: I5ac10115db9644b53e9e8b5fd40a5dc87b2019dc
Yabin Cui [Tue, 2 Feb 2016 06:23:38 +0000 (06:23 +0000)]
Merge "simpleperf: use RemoveFileIfExists in libbase."
Yabin Cui [Tue, 2 Feb 2016 02:07:03 +0000 (18:07 -0800)]
simpleperf: use RemoveFileIfExists in libbase.
Change-Id: Ife16103a5ec86cc6ee2aee4838d1a56a91f54516
Lorenzo Colitti [Wed, 27 Jan 2016 05:54:24 +0000 (05:54 +0000)]
Merge changes I3b881be8,I80d97bd5,Id115e8b2
* changes:
Fix lint warnings.
Note a 3.18 commit in neighbour_test.py.
SOCK_DESTROY is no longer optional.
Lorenzo Colitti [Tue, 26 Jan 2016 14:22:28 +0000 (23:22 +0900)]
Fix lint warnings.
Change-Id: I3b881be8b665ba790e7da79b3560c159d72be1e2