Searched refs:has_hw_counter (Results 1 – 1 of 1) sorted by relevance
77 static int has_hw_counter = -1; in HasHardwareCounter() local78 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()