diff options
author | pmc.waiver <pmc.waiver.user01@gmail.com> | 2019-11-07 16:54:38 +0900 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2019-11-15 21:28:28 +0000 |
commit | 44b4a19b44c4e1d791c60df763820729d2ca5c63 (patch) | |
tree | d0e9e74728d19a86fc36dd94bab6139e5cf46729 | |
parent | 999afeeb3e59b930f066cb0bb0402cd1b27d0805 (diff) | |
download | extras-44b4a19b44c4e1d791c60df763820729d2ca5c63.tar.gz |
simpleperf:add MSM8909 into whitelist, omit tests requireing hw counters.
Test: run cts -m CtsSimpleperfTestCases -t record_cmd#generate_samples_by_hw_counters
Test: hw counters.
Bug: 144472902
(cherry picked from commit 8a0a1ebb671bed0c910d35e71bbc083a031f7331)
Change-Id: I4f5391efc96a07a26564e1c373ead202edf4c8ad
-rw-r--r-- | simpleperf/cmd_record_test.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/simpleperf/cmd_record_test.cpp b/simpleperf/cmd_record_test.cpp index fdc26e60..4db0b072 100644 --- a/simpleperf/cmd_record_test.cpp +++ b/simpleperf/cmd_record_test.cpp @@ -268,7 +268,8 @@ bool HasHardwareCounter() { if (android::base::ReadFileToString("/proc/cpuinfo", &cpu_info)) { std::string hardware = GetHardwareFromCpuInfo(cpu_info); if (std::regex_search(hardware, std::regex(R"(i\.MX6.*Quad)")) || - std::regex_search(hardware, std::regex(R"(SC7731e)")) ) { + std::regex_search(hardware, std::regex(R"(SC7731e)")) || + std::regex_search(hardware, std::regex(R"(Qualcomm Technologies, Inc MSM8909)"))) { has_hw_counter = 0; } } |