commit | 0720d488b902fa5ddea20813dfaf34e942218c48 | [log] [tgz] |
---|---|---|
author | Yabin Cui <yabinc@google.com> | Mon Mar 06 17:05:50 2017 -0800 |
committer | Yabin Cui <yabinc@google.com> | Mon Mar 06 17:08:54 2017 -0800 |
tree | 2dc4195408859db0ea3082a5dbba441915b5172f | |
parent | 0e82c84abaa3a6368d17545d9f9e494f462c95cd [diff] |
simpleperf: adjust sample_freq based on max_sample_rate file. Starting from kernel 4.4, perf_event_max_sample_rate can be adjusted dynamically by the kernel to limit the cpu percentage used to dump records. Bug: http://b/35554543 Test: echo 100 >/proc/sys/kernel/perf_event_max_sample_rate && Test: run CtsSimpleperfTestCases Change-Id: I75f6cbc124c545d05fd56b07c6a868b7ca15cd8a