5be914df7e842a052219a6ef4891ff3208373fc3 |
|
30-Nov-2016 |
Yabin Cui <yabinc@google.com> |
simpleperf: fix tests for dwarf callgraph unwinding. 32-bit simpleperf can't unwind a 64-bit `sleep` process in aarch64 environment. It makes following error in tests: simpleperf is built in arch arm, and can't do stack unwinding for arch arm64 So make the workload be able to start a process running callback function. By profiling that process, we can guarantee that 32-bit simpleperf is profiling a 32-bit process. Also fix a flaky test IOEventLoop.signal. Build 32-bit simpleperf_unit_test on 64-bit devices. Bug: http://b/33167911 Test: run simpleperf_unit_test. Change-Id: I82741dc5d90c73c1890f834d8e2a9188421a3828
/system/extras/simpleperf/IOEventLoop_test.cpp
|
a383c11bc5d56a3d245f5a915d3a8122db46b833 |
|
19-Oct-2016 |
Yabin Cui <yabinc@google.com> |
simpleperf: add functions to IOEventLoop. Support Write Event, and add functions to disable/enable Events. Bug: http://b/30974760 Test: run simpleperf_unit_test. Change-Id: I563738196fe5849d8cc3bee120707fd14076faa8
/system/extras/simpleperf/IOEventLoop_test.cpp
|
825e56be3a1c5310969aaa3e10a7cd1f63455189 |
|
27-Aug-2016 |
Yabin Cui <yabinc@google.com> |
simpleperf: support hotplug events in record cmd. 1. When a cpu is down, read records from event files on that cpu, then close those event files. 2. When a cpu is up, open event files on that cpu, and create mapped buffer for those event files to dump records. 3. Instead of creating a mapped buffer for each event type on each cpu, we can just create a mapped buffer for all event types on each cpu. 4. When new event files are created, store a EventIdRecord record in perf.data to notify record_file_reader.cpp. Bug: http://b/29245608 Test: run simpleperf record cmd and make cpu offline and online. Test: run simpleperf_unit_test. Change-Id: Ib97a24b6292fa143e9b35cb105bdddf1e826d60a
/system/extras/simpleperf/IOEventLoop_test.cpp
|
dbbda3020c483a8da2e9ce985c1e9d8b7bcc8ec0 |
|
28-Jul-2016 |
Yabin Cui <yabinc@google.com> |
simpleperf: use libevent in record command. Support read Event in IOEventLoop, test it, and use it in record command. Format related code and clean up some comments. Bug: http://b/30405638 Change-Id: I3b07d50b0374be3f3e7ee9fa4d0c0ccc8ae21a2b Test: run simpleperf_unit_test.
/system/extras/simpleperf/IOEventLoop_test.cpp
|
3e4c5950f3aafb0bf66544468d98ee3ec26b705c |
|
27-Jul-2016 |
Yabin Cui <yabinc@google.com> |
simpleperf: use libevent in stat command. Wrap libevent in IOEventLoop, use IOEventLoop in stat command. Add corresponding tests. Bug: http://b/30405638 Change-Id: I78b79e0eff1365ab46dde29c2a24a2def586af79 Test: run simpleperf_unit_test.
/system/extras/simpleperf/IOEventLoop_test.cpp
|