commit | 8c426d91c940ddfdb480dec9369a21f1c6907bc9 | [log] [tgz] |
---|---|---|
author | Yabin Cui <yabinc@google.com> | Wed Oct 27 14:45:08 2021 -0700 |
committer | Yabin Cui <yabinc@google.com> | Wed Oct 27 15:16:19 2021 -0700 |
tree | b52a3ea36810e6fa833fdcf8a95f570b122b17b4 | |
parent | 4a90dcfd53e51cdd0279d80d3cdf5ba552adfb91 [diff] |
simpleperf: detect hardware counters on emulators. We may run arm64 tests on emulators, which may not have hardware counters. So use fingerprint to check if we are running on an emulator, and dynamically detect if hardware counters are available. Bug: 202840384 Bug: 191278807 Test: run CtsSimpleperfTestCases on emulators. Change-Id: I3b6ea439e72188d5b4cf23662b0ee00bfa3b28cd