Age | Commit message (Collapse) | Author |
|
ETM device may not be ready when profcollectd is started.
So this CL adds interface to wait for ETM after boot:
1. In simpleperf_profcollect, split has_support() into
has_driver_support() and has_device_support().
2. In ProfcollectdBinderService and Scheduler, add interface
to register ProviderStatusCallback, which is called when
the trace provider is ready.
3. In profcollectd, register ProviderStatusCallback after boot.
Then record boot profile and schedule periodic recording in
the callback.
Bug: 213519191
Test: on oriole EVT and DVT devices, profcollectd can record boot
Test: profile and periodic profiles.
Test: run simpleperf_unit_test.
Change-Id: I87befcd372ad85a0131116a7925f303b4990ec47
|
|
For now, all the PGO enabled libraries are in these directories.
Filtering the profiles saves us some processing time.
We can add more paths if needed in the future.
Test: manual
Bug: 79161490
Change-Id: Ibb992f63990deacd8dbfa8c88e6e6098b9e22ccf
|
|
And record etm for both kernel and userspace by default.
Bug: 183135316
Test: run profcollectd
Change-Id: I91ea3a20efbcdf30df33d9280a8f15d25fa40f84
|
|
Test: build
Change-Id: I29dbc69cefa86bbaa4c5d411cf751949501af41b
|
|
Use the 2-space configuration by default and disable any formatting for
the demo/ subdirectory. The following command was used to generate this
change:
$ find . \( -name \*.cpp -o -name \*.h \) -exec clang-format \
--style=file -i {} \;
Test: mm
Change-Id: I89ec1f18f6e352f40cfa1a770087f3b586b1d7cb
|
|
Bug: 79161490
Change-Id: Ica8e48d9d5293fc0d079e4efc5e3bc854686b055
|
|
Test: build
Bug: 79161490
Change-Id: I947cb0c08a9be2dacbe00f4985c35552855c6fdc
|
|
Add interface to control perf counters.
Bug: http://b/35725972
Test: run simpleperf_record_test.
Change-Id: I2a9979f807253c60a9db6304454934034161c854
|