Home
last modified time | relevance | path

Searched refs:has_hw_counter (Results 1 – 1 of 1) sorted by relevance

/system/extras/simpleperf/
Dtest_util.cpp77 static int has_hw_counter = -1; in HasHardwareCounter() local
78 if (has_hw_counter == -1) { in HasHardwareCounter()
79 has_hw_counter = 1; in HasHardwareCounter()
86 has_hw_counter = IsEventAttrSupported(attr, "cpu-cycles") ? 1 : 0; in HasHardwareCounter()
91 has_hw_counter &= HasNonZeroInstructionEventCount() ? 1 : 0; in HasHardwareCounter()
94 return has_hw_counter == 1; in HasHardwareCounter()