OSDN Git Service
Yabin Cui [Thu, 2 Jun 2016 00:42:22 +0000 (00:42 +0000)]
Merge "simpleperf: check perf event limit."
Yabin Cui [Wed, 1 Jun 2016 22:39:39 +0000 (15:39 -0700)]
simpleperf: check perf event limit.
The property security.perf_harden is added in https://android-review.googlesource.com/#/c/233736/5. And simpleperf needs to notice that.
Bug:
29054680
Change-Id: I5f1593f5b389d182a56c4bf3bd438a1dc2b66686
Yabin Cui [Wed, 1 Jun 2016 18:27:57 +0000 (18:27 +0000)]
Merge "simpleperf: record kernel symbols in perf.data."
Yabin Cui [Wed, 25 May 2016 21:08:05 +0000 (14:08 -0700)]
simpleperf: record kernel symbols in perf.data.
To better support kernel profiling, record kernel symbols in perf.data
when necessary. An option --no-dump-kernel-symbols is added in
record command to always avoid recording kernel symbols.
The way to handle all zero /proc/modules and /proc/kallsyms is
improved. Add Better support in finding symbols for kernel modules.
Bug:
27403614
Change-Id: I470151c54f8a45ad1c101c1b94490e33d7fd7485
Yabin Cui [Wed, 25 May 2016 21:07:19 +0000 (21:07 +0000)]
Merge "simpleperf: refactor SampleTree for reuse."
Yabin Cui [Wed, 25 May 2016 17:28:39 +0000 (17:28 +0000)]
Merge "simpleperf: remove unneeded file."
Yabin Cui [Wed, 25 May 2016 01:23:33 +0000 (18:23 -0700)]
simpleperf: refactor SampleTree for reuse.
By moving most function in report command into template classes, it
allows other report commands to reuse the code.
Bug:
27403614
Change-Id: I3d35b3a34d48c5c043ba4257a52eaf0961c12bca
Yabin Cui [Tue, 24 May 2016 23:51:45 +0000 (16:51 -0700)]
simpleperf: remove unneeded file.
Change-Id: I7cf5134834882dfe34ace94c0309f59012de4ecd
Colin Cross [Tue, 24 May 2016 22:41:06 +0000 (22:41 +0000)]
Merge changes I26e290c0,I1b006d2a
* changes:
Add oom score tracking to procrank
C++-ify procrank
Colin Cross [Tue, 24 May 2016 18:05:31 +0000 (11:05 -0700)]
Add oom score tracking to procrank
procrank -o will sort by the oom score for each process, and show
cuumulative totals of memory stats for processes whose score is below
each lowmemorykiller oom score threshold. This is particularly useful
with procrank -o -c to see the amount of page cache used lowmemorykiller
threshold.
Change-Id: I26e290c0835472630f70ed933de43bfbfd7bdfb0
Colin Cross [Mon, 23 May 2016 23:50:59 +0000 (16:50 -0700)]
C++-ify procrank
Change-Id: I1b006d2af04f21c0c02ac2d7629340d91b876886
Treehugger Robot [Tue, 24 May 2016 18:34:19 +0000 (18:34 +0000)]
Merge "Fix misc-macro-parentheses warnings in testUtil.c."
Treehugger Robot [Mon, 23 May 2016 23:47:53 +0000 (23:47 +0000)]
Merge "Use LOCAL_CTS_GTEST_LIST_EXECUTABLE"
Treehugger Robot [Mon, 23 May 2016 22:56:05 +0000 (22:56 +0000)]
Merge "Fix misc-macro-parentheses warnings in f2fs_utils."
Chih-Hung Hsieh [Wed, 18 May 2016 21:59:04 +0000 (14:59 -0700)]
Fix misc-macro-parentheses warnings in f2fs_utils.
Bug:
28705665
Change-Id: I3341451eb77dd2539d70f3d3fa14f7eca188a63b
Dan Willemsen [Mon, 23 May 2016 20:58:49 +0000 (13:58 -0700)]
Use LOCAL_CTS_GTEST_LIST_EXECUTABLE
In preparation to move host native tests to their own folder, stop
assuming the location of the test list executable in
BUILD_CTS_EXECUTABLE.
Change-Id: I79004a21ffc7edc5cf0d8111ea9e9a8c0f782d98
Chih-hung Hsieh [Thu, 19 May 2016 18:16:38 +0000 (18:16 +0000)]
Merge "Fix misc-macro-parentheses warnings in kexec_tools."
Chih-hung Hsieh [Thu, 19 May 2016 00:48:13 +0000 (00:48 +0000)]
Merge "Fix misc-macro-parentheses warnings in ksmutils."
Treehugger Robot [Wed, 18 May 2016 23:31:53 +0000 (23:31 +0000)]
Merge "Fix misc-macro-parentheses warnings in boot_control_copy."
Treehugger Robot [Wed, 18 May 2016 23:24:37 +0000 (23:24 +0000)]
Merge "Fix misc-macro-parentheses warnings in ext4_utils."
Treehugger Robot [Wed, 18 May 2016 22:43:49 +0000 (22:43 +0000)]
Merge "Fix misc-macro-parentheses warnings in perfprofd."
Treehugger Robot [Wed, 18 May 2016 22:42:08 +0000 (22:42 +0000)]
Merge "Fix misc-macro-parentheses warnings in libpagemap."
Treehugger Robot [Wed, 18 May 2016 22:40:28 +0000 (22:40 +0000)]
Merge "Fix misc-macro-parentheses warnings in micro_bench."
Treehugger Robot [Wed, 18 May 2016 22:24:21 +0000 (22:24 +0000)]
Merge "Fix misc-macro-parentheses warnings in simpleperf."
Chih-Hung Hsieh [Wed, 18 May 2016 22:03:01 +0000 (15:03 -0700)]
Fix misc-macro-parentheses warnings in boot_control_copy.
Bug:
28705665
Change-Id: I9a8f0bd587c70ff3c60666c9f7dfba2d6e809336
Chih-Hung Hsieh [Wed, 18 May 2016 22:00:49 +0000 (15:00 -0700)]
Fix misc-macro-parentheses warnings in ext4_utils.
Bug:
28705665
Change-Id: I00da37172c5c8ba37e09a9a5e6a47e9f7446efea
Chih-Hung Hsieh [Wed, 18 May 2016 21:55:10 +0000 (14:55 -0700)]
Fix misc-macro-parentheses warnings in kexec_tools.
Bug:
28705665
Change-Id: Ie9f5ffafd9a89f412d7a6495002ada50f18b645e
Chih-Hung Hsieh [Wed, 18 May 2016 21:52:05 +0000 (14:52 -0700)]
Fix misc-macro-parentheses warnings in ksmutils.
Bug:
28705665
Change-Id: Ia3d9f1fef03afe1b0075ea88e61b721e35d13465
Chih-Hung Hsieh [Wed, 18 May 2016 21:49:08 +0000 (14:49 -0700)]
Fix misc-macro-parentheses warnings in libpagemap.
Bug:
28705665
Change-Id: I3a40229aeba12b3fb643770c92039a2af1e4a441
Chih-Hung Hsieh [Wed, 18 May 2016 21:46:31 +0000 (14:46 -0700)]
Fix misc-macro-parentheses warnings in micro_bench.
Bug:
28705665
Change-Id: I04d393ae608a7b803001f763c544fc13e8f2e9e6
Chih-Hung Hsieh [Wed, 18 May 2016 21:40:58 +0000 (14:40 -0700)]
Fix misc-macro-parentheses warnings in perfprofd.
NOLINT added to suppress warning.
Some macros intentionally leave the last sub-expression open,
without parenthesis around the whole conditional expression.
Bug:
28705665
Change-Id: I0c1abbdc147ad480345792cef0081d98c013a3ab
Chih-Hung Hsieh [Wed, 18 May 2016 21:36:58 +0000 (14:36 -0700)]
Fix misc-macro-parentheses warnings in simpleperf.
Bug:
28705665
Change-Id: I0521602cbca7eb3d2e242771da697dfab3fc727f
Chih-Hung Hsieh [Wed, 18 May 2016 21:28:55 +0000 (14:28 -0700)]
Fix misc-macro-parentheses warnings in testUtil.c.
Bug:
28705665
Change-Id: I709ae08e15e5afb067bf9b208664107a449e1de3
Rom Lemarchand [Tue, 17 May 2016 18:18:27 +0000 (18:18 +0000)]
Merge "pagingtest: test both with prefetching enabled and disabled"
Rom Lemarchand [Tue, 17 May 2016 18:17:38 +0000 (18:17 +0000)]
Merge "pagingtest: switch to advising random accesses"
Rom Lemarchand [Tue, 17 May 2016 17:10:18 +0000 (10:10 -0700)]
pagingtest: test both with prefetching enabled and disabled
Run the same tests with page cache prefetching both enabled and disabled.
Change-Id: Ica253781a17fa0a66c07d0f5658c6c7d8b047a16
Yabin Cui [Tue, 17 May 2016 16:39:03 +0000 (16:39 +0000)]
Merge "simpleperf: fix stat scale output."
Rom Lemarchand [Tue, 17 May 2016 03:17:41 +0000 (20:17 -0700)]
pagingtest: switch to advising random accesses
Switch to using madvise(MADV_RANDOM) and posix_fadvise(POSIX_FADV_RANDOM)
to disable caching as opposed to reading the file backwards, which still
went through some caching.
Measured a 80% drop in worst case performance after switching.
Change-Id: I03115dfb94ae7dfc58e0e187af3936c4e371817f
Yabin Cui [Tue, 17 May 2016 03:07:26 +0000 (20:07 -0700)]
simpleperf: fix stat scale output.
Currently simpleperf stat command create an event file for each cpu and
scale the result by summarizing counters on each cpu. But one thread only
runs on one cpu at a time, so it results in wrongly scaled numbers.
Fix this by three changes:
1. For non system-wide stat, Create only one event file for all cpus.
2. When summarizing counters, omit counters having 0 running time.
3. Print real value instead of scaled value.
Run command:
$simpleperf stat ./empty_program
Before the change:
Performance counter statistics:
33,540,176 cpu-cycles # 54.812986 GHz (2%)
28,233,348 stalled-cycles-frontend # 46.140 G/sec (2%)
After the change:
Performance counter statistics:
625,335 cpu-cycles # 1.404496 GHz (100%)
507,200 stalled-cycles-frontend # 1.139 G/sec (100%)
Change-Id: I76bc3e220df4f149ab365e960295b24fde8ae2fc
Treehugger Robot [Fri, 13 May 2016 18:13:22 +0000 (18:13 +0000)]
Merge "Remove canned_fs_config from ext4_utils"
Mark Salyzyn [Fri, 13 May 2016 16:42:33 +0000 (16:42 +0000)]
Merge "lockdep_chains: graph visualization"
Mark Salyzyn [Thu, 12 May 2016 17:48:25 +0000 (10:48 -0700)]
lockdep_chains: graph visualization
Create the system/extras/tools directory for simple analysis helpers.
Publish a host tool helper script that aids visualization of kernel
runtime collected lock dependencies. Helpful to look for circular
locks, or to get a handle on locking order used in a driver.
Bug:
28310683
Change-Id: Ib52c23f4cdefb37882232eff11b943eeb1b2abfa
Mohamad Ayyash [Fri, 8 Apr 2016 05:15:57 +0000 (22:15 -0700)]
Remove canned_fs_config from ext4_utils
It is now also used in mksquashfs so it was added to libcutils
BUG:
27467028
Change-Id: I81c87938d5b6b200a8ad817f0c64c5ca699f451c
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
BUG:
28704419
Treehugger Robot [Fri, 6 May 2016 20:16:40 +0000 (20:16 +0000)]
Merge "Fix LOCAL_CPP_EXTENSION."
Chih-hung Hsieh [Fri, 6 May 2016 18:46:10 +0000 (18:46 +0000)]
Merge "Fix google-explicit-constructor warnings."
Ying Wang [Fri, 6 May 2016 02:41:11 +0000 (19:41 -0700)]
Fix LOCAL_CPP_EXTENSION.
Bug:
28622149
Change-Id: I785b9bdf90f77ed87c41542f3bd010c6b7356069
Chih-Hung Hsieh [Fri, 6 May 2016 17:41:04 +0000 (10:41 -0700)]
Fix google-explicit-constructor warnings.
Bug:
28341362
Change-Id: I420d23cc1f7ed44e1d9a215ee6815afab365046e
Treehugger Robot [Wed, 27 Apr 2016 21:09:34 +0000 (21:09 +0000)]
Merge "Fix google-explicit-constructor warnings."
Yabin Cui [Tue, 26 Apr 2016 17:55:49 +0000 (17:55 +0000)]
Merge "simpleperf: improve cpu_hotplug tests."
Yabin Cui [Mon, 18 Apr 2016 20:43:20 +0000 (13:43 -0700)]
simpleperf: improve cpu_hotplug tests.
Add cpu hotplug test for ioctl(PERF_EVENT_IOC_ENABLE),
and improve cpu_hotplug tests by removing sleep calls.
Bug:
28384580
Change-Id: I5869cd9bb3086b6f3a73cf7dce4ffd720326c3c6
Chih-hung Hsieh [Tue, 26 Apr 2016 16:14:44 +0000 (16:14 +0000)]
Merge "Fix google-explicit-constructor warnings."
Chih-hung Hsieh [Mon, 25 Apr 2016 22:30:17 +0000 (22:30 +0000)]
Merge "Fix google-explicit-constructor warnings."
Chih-hung Hsieh [Mon, 25 Apr 2016 22:21:09 +0000 (22:21 +0000)]
Merge "Fix google-explicit-constructor warnings."
Chih-Hung Hsieh [Mon, 25 Apr 2016 21:17:14 +0000 (14:17 -0700)]
Fix google-explicit-constructor warnings.
Bug:
28341362
Change-Id: I9f388006f5593b9f224e98e93deca7da35c5618a
Chih-Hung Hsieh [Mon, 25 Apr 2016 21:12:26 +0000 (14:12 -0700)]
Fix google-explicit-constructor warnings.
Bug:
28341362
Change-Id: I1825b4e58c7c82e247a3be9cbe1139fa2b79f151
Chih-Hung Hsieh [Mon, 25 Apr 2016 21:08:08 +0000 (14:08 -0700)]
Fix google-explicit-constructor warnings.
Bug:
28341362
Change-Id: Ie9d9c33b48b179917f084e59a4e595c6eb972adf
Chih-Hung Hsieh [Mon, 25 Apr 2016 21:01:30 +0000 (14:01 -0700)]
Fix google-explicit-constructor warnings.
Bug:
28341362
Change-Id: I871beda49b122df7680ab712f7116469d343ad8f
Yabin Cui [Mon, 25 Apr 2016 19:02:42 +0000 (19:02 +0000)]
Merge "simpleperf: always build static binary on device."
Chih-hung Hsieh [Mon, 18 Apr 2016 20:48:53 +0000 (20:48 +0000)]
Merge "Fix some google-runtime-int warnings."
Chih-Hung Hsieh [Fri, 15 Apr 2016 23:12:03 +0000 (16:12 -0700)]
Fix some google-runtime-int warnings.
Bug:
28220065
Change-Id: Ic6b24216d216bbb165a1420b52b11c7703b810a0
Yabin Cui [Thu, 14 Apr 2016 23:35:00 +0000 (16:35 -0700)]
simpleperf: always build static binary on device.
Bug:
28199918
Change-Id: I7008e6e7c0de60521bc7ae5f1b7ee4fd2d57cf04
Yabin Cui [Thu, 14 Apr 2016 21:14:54 +0000 (21:14 +0000)]
Merge "simpleperf: use libbacktrace_offline static library."
Yabin Cui [Thu, 14 Apr 2016 04:28:54 +0000 (21:28 -0700)]
simpleperf: use libbacktrace_offline static library.
Device may not have libbacktrace_offline shared library, so always
using libbacktrace_offline static library.
Use simpleperf namespace to avoid conflicts with ThreadEntry in
libbacktrace.
Bug:
28152982
Change-Id: Ia2cdbee3b28556c790ccd7b061a801ed96f9b97c
Treehugger Robot [Wed, 13 Apr 2016 17:28:24 +0000 (17:28 +0000)]
Merge "verity: delete keystore_signer"
Sami Tolvanen [Wed, 13 Apr 2016 16:16:20 +0000 (09:16 -0700)]
verity: delete keystore_signer
This signer is unnecessary, because we are not using keystores.
Change-Id: Iede3b54ac137e79c51f7e673e7e32ac5717e9661
Elliott Hughes [Tue, 12 Apr 2016 23:12:35 +0000 (23:12 +0000)]
Merge "Switch to BoringSSL for crypto."
Mattias Nissler [Thu, 31 Mar 2016 14:29:37 +0000 (16:29 +0200)]
Switch to BoringSSL for crypto.
Adjust code and dependencies to use BoringSSL + libcrypto_utils
instead of libmincrypt.
Change-Id: Id1b4ee538923e9dac68a7db2521b70007119c268
Yabin Cui [Wed, 6 Apr 2016 01:15:22 +0000 (01:15 +0000)]
Merge "simpleperf: support reporting more than one event type."
Yabin Cui [Sat, 2 Apr 2016 03:22:35 +0000 (20:22 -0700)]
simpleperf: support reporting more than one event type.
When sampling kernel trace points, it is like to sample more than
one even type. Like `simpleperf record -e kmem:mm_page_alloc,kmem:mm_page_free`.
1. change record command to dump event_id for all records.
2. change report command and record reader to support multiple
event attrs.
3. hide record_cache inside EventSelectionSet.
4. add test to report multiple event types.
Bug:
27403614
Change-Id: Ic22a5527d68e7a843e3cf95e85381f8ad6bcb196
Mohamad Ayyash [Mon, 4 Apr 2016 19:42:43 +0000 (19:42 +0000)]
Merge "Make squashfs work on BSD and macOS"
Jaewan Kim [Mon, 4 Apr 2016 15:32:24 +0000 (00:32 +0900)]
Make squashfs work on BSD and macOS
Change-Id: Ie025a3d70237a7a959203d8cd066d05acf9e94b2
Alex Deymo [Fri, 1 Apr 2016 22:01:00 +0000 (22:01 +0000)]
Merge "postinst: Update postinstall_example."
Yabin Cui [Fri, 1 Apr 2016 19:03:36 +0000 (19:03 +0000)]
Merge "simpleperf: loosen unwinding arch check for system wide collection."
Yabin Cui [Thu, 31 Mar 2016 21:39:19 +0000 (14:39 -0700)]
simpleperf: loosen unwinding arch check for system wide collection.
When doing system wide collection, it is possible that there are
32-bit compat processes running on 64-bit devices. It is not proper
to abort in this situation. So loosen the check to allow it. Also
add corresponding test.
Bug:
27927427
Change-Id: I5c9253eb6e474497e4f37e234e0e523e141fab20
Alex Deymo [Thu, 31 Mar 2016 01:50:59 +0000 (18:50 -0700)]
postinst: Update postinstall_example.
The postinstall step now receives two parameters: the target slot and
the progress file descriptor. This file descriptor is a pipe where the
postinstall program can write back to the updater what's its current
progress.
Bug:
27880754
TEST=Deployed an image with the postinstall example installed.
Change-Id: I0afedb47556885d4e3b3f1b93be82314153ffc19
Yabin Cui [Thu, 31 Mar 2016 00:08:42 +0000 (00:08 +0000)]
Merge "simpleperf: build 32-bit binaries on 64-bit devices."
Yabin Cui [Thu, 31 Mar 2016 00:08:30 +0000 (00:08 +0000)]
Merge "simpleperf: don't allow 64bit simpleperf unwinding 32bit processes."
Yabin Cui [Wed, 30 Mar 2016 23:21:47 +0000 (16:21 -0700)]
simpleperf: don't allow 64bit simpleperf unwinding 32bit processes.
Bug:
27927427
Change-Id: I87abc7f8d1f160da4366ed04db054206403bc803
Yabin Cui [Wed, 30 Mar 2016 22:37:53 +0000 (15:37 -0700)]
simpleperf: build 32-bit binaries on 64-bit devices.
Bug:
27927427
Change-Id: I5b6db459ab2c31e09e1f438a44b98efad5f814a5
Yabin Cui [Tue, 29 Mar 2016 18:18:47 +0000 (18:18 +0000)]
Merge "Simpleperf: add test for reporting callgraph of shared libraries in apk file."
Yabin Cui [Sat, 19 Mar 2016 01:47:43 +0000 (18:47 -0700)]
Simpleperf: add test for reporting callgraph of shared libraries in apk file.
Also add comment for how to generate each perf.data in testdata/.
Add --log <leve> argument in unit test to help debugging.
Bug:
26962895
Change-Id: Iaa5a81cd8da5174d5b5b4e7847811e2432bf0db8
Yabin Cui [Sat, 26 Mar 2016 03:05:11 +0000 (03:05 +0000)]
Merge "simpleperf: don't looking for _text symbol in /proc/kallsyms."
Yabin Cui [Sat, 26 Mar 2016 00:43:43 +0000 (17:43 -0700)]
simpleperf: don't looking for _text symbol in /proc/kallsyms.
simpleperf looks for _text symbol in /proc/kallsyms to get
kernel address space information. But that info is no longer
needed. As some kernels don't have _text symbol, we should
remove the corresponding code.
Bug:
27814103
Change-Id: I4eb9869b58c51846c99b1204f304cd107a0eb354
Daniel Cashman [Wed, 23 Mar 2016 14:10:57 +0000 (14:10 +0000)]
Merge "aslr_test: Fix typo."
dcashman [Tue, 22 Mar 2016 23:08:26 +0000 (16:08 -0700)]
aslr_test: Fix typo.
(cherry-pick of internal commit:
b543b4ed380bd3571f23225b216ad82860d281ee)
Bug:
26512380
Change-Id: I3e92b3ac7412a14ef875297310541fccd1774c03
Yabin Cui [Sat, 19 Mar 2016 00:38:36 +0000 (00:38 +0000)]
Merge "Simpleperf: support reading symbols from .gnu_debugdata."
Yabin Cui [Sat, 19 Mar 2016 00:03:51 +0000 (00:03 +0000)]
Merge "Simpleperf: insert testdata into simpleperf_unit_test for target build."
Yabin Cui [Sat, 19 Mar 2016 00:03:37 +0000 (00:03 +0000)]
Merge "Simpleperf: remove dependency on global current_arch."
Yabin Cui [Fri, 18 Mar 2016 04:18:53 +0000 (21:18 -0700)]
Simpleperf: support reading symbols from .gnu_debugdata.
As in https://sourceware.org/gdb/onlinedocs/gdb/MiniDebugInfo.html,
elf files can store mini debug information in .gnu_debugdata.
Bug:
27744639
Change-Id: If4a53a4a1332824388ee309ac63a008dc5cf8d5c
Yabin Cui [Fri, 18 Mar 2016 19:30:31 +0000 (12:30 -0700)]
Simpleperf: remove dependency on global current_arch.
When running unit tests on arm64 devices:
[OK] ReportCommandTest.dwarf_callgraph
[OK] record_cmd.dwarf_callchain_sampling.
ERROR: can't unwind data recorded on a different architecture.
It is because ReportCommandtest.dwarf_callgraph opens a perf.data
recorded on x86_64, and changes current_arch. It causes a problem when
the test record_cmd.dwarf_callchain_sampling calls libbacktrace built
on aarch64. Athough it doesn't make the test fail, we should fix this.
Change-Id: I2cd70369a769ef2199cab2302b8b824369be0907
Yabin Cui [Fri, 18 Mar 2016 20:48:42 +0000 (13:48 -0700)]
Simpleperf: insert testdata into simpleperf_unit_test for target build.
Before this change, we need to download testdata/ to device to run
unit tests. By inserting testdata into unit test elf file, we no
longer need to dowload testdata/ or add -t option to run unit tests
on device.
Change-Id: I888def6d55f893768dd8917083eead869b78c24b
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"