616b3a020bf708f364e0608107ded083930ac6b4 |
|
15-Jul-2017 |
Yabin Cui <yabinc@google.com> |
simpleperf: change the way running cts tests. Before this CL, CtsSimpleperfTestCases copies itself to the app's directory, then run it using run-as. With this CL, CtsSimpleperfTestCases keeps itself in /data/local/tmp, but forces stat/record cmd to run with --app option. This gives more freedom to tests: 1. They can stay in shell's context with --in-app option. 2. The stat/record cmds are started in the shell's context, so they can collect information no available in app's context (like data in /sys/kernel/debug/tracing/events). This is a preparation to add tests for recording tracepoint events. It also matches the way we want users to use simpleperf (with --app option). Bug: http://b/29520177 Test: run CtsSimpleperfTestCases. Change-Id: I1709adfb1ff7169df87560226c197e473fdf8516
/system/extras/simpleperf/gtest_main.cpp
|
f560a6fdf092f0c03c0e7a92d62948d34318146a |
|
15-Dec-2016 |
Yabin Cui <yabinc@google.com> |
simpleperf: build cts test running in app context. When built for cts test, the test binary uses run-as to move itself to the data directory of debuggable app 'com.android.simpleperf', and run the tests in app context using run-as. Bug: http://b/18790309 Test: run cts-tradefed, 'run everything -m CtsSimpleperfTestCase'. Change-Id: I523470bb8062cb944b44dc6f264a8b1c14221b62
/system/extras/simpleperf/gtest_main.cpp
|
1e8ad07d1a20c52c9450dc2e64dbc386c2e65296 |
|
17-Dec-2016 |
Colin Cross <ccross@android.com> |
Use LOCAL_TEST_DATA for test data LOCAL_TEST_DATA will install the test data alongside the test, for both a local build and when building for the continuous testers. Ues it instead of hacking the test data into the binary. Test: simpleperf_unit_test Change-Id: I330e5a505d5bf6f65d0e283830da6f51f4bf2560
/system/extras/simpleperf/gtest_main.cpp
|
dec43c18d06415a955b8f32355bca925be901905 |
|
30-Jul-2016 |
Yabin Cui <yabinc@google.com> |
simpleperf: print warning message when failed to read symbol table from elf file. Change return type of read elf functions to ElfStatus, and print warning message based on situation. Add corresponding test. Bug: 29193936 Change-Id: Ie449f8be34cb579962cb73f4be3df9e4997270ca Test: run simpleperf_unit_test.
/system/extras/simpleperf/gtest_main.cpp
|
5896132e00c7e49d2468d7ebd5372654df29b872 |
|
10-Jun-2016 |
Yabin Cui <yabinc@google.com> |
simpleperf: restore perf_harden after simpleperf cts test. Bug: 29264324 Change-Id: Ia78ef924f049630968d222729cf3c1f378105b8a
/system/extras/simpleperf/gtest_main.cpp
|
5633586f0efc54dbaecad3deeb8568786317832d |
|
18-Apr-2016 |
Yabin Cui <yabinc@google.com> |
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
/system/extras/simpleperf/gtest_main.cpp
|
8f680f60dc800bec880c5c35bfbc1ac36165e1f3 |
|
19-Mar-2016 |
Yabin Cui <yabinc@google.com> |
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
/system/extras/simpleperf/gtest_main.cpp
|
6acf8c67e949bb5a4642ff0035a49a459bca9022 |
|
18-Mar-2016 |
Yabin Cui <yabinc@google.com> |
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
/system/extras/simpleperf/gtest_main.cpp
|
be7ec66eaa4f995bd9068637f7c7d5718173922c |
|
02-Mar-2016 |
Yabin Cui <yabinc@google.com> |
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
/system/extras/simpleperf/gtest_main.cpp
|
b1a885b014540a2f7798b5a35ea0f0ec150d93ee |
|
15-Feb-2016 |
Yabin Cui <yabinc@google.com> |
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
/system/extras/simpleperf/gtest_main.cpp
|
569f64afd3db2b43003978765b833669f99477d2 |
|
06-Feb-2016 |
Yabin Cui <yabinc@google.com> |
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
/system/extras/simpleperf/gtest_main.cpp
|
66dd09e8e2407082ce93bf0784de641298131912 |
|
04-Dec-2015 |
Elliott Hughes <enh@google.com> |
Track rename from base/ to android-base/. Change-Id: Ic15d4778c7accd1382de0b440a437aba2cf67016
/system/extras/simpleperf/gtest_main.cpp
|
323e945313b190373b3fcfe578e25ee8390a76d3 |
|
21-Apr-2015 |
Yabin Cui <yabinc@google.com> |
Implement simpleperf stat subcommand. Also add some simple unit-tests. Change-Id: Ic30a2d4a879e028a8c82babbaf82e322fc49a838
/system/extras/simpleperf/gtest_main.cpp
|