blob: 0576ffdf8d63c6b67e5bc02e4a045a3b062a2bc1 [file] [log] [blame]
# Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
AUTHOR = "David Sharp <dhsharp@chromium.org>"
NAME = "hardware_PerfCounterVerification"
TIME = "SHORT"
TEST_CATEGORY = "Functional"
TEST_CLASS = "hardware"
TEST_TYPE = "client"
ATTRIBUTES = "suite:experimental"
SUITE = "experimental"
DOC = """
Verify performance counters
Arguments:
events: Events to pass to perf stat -e. Events are passed in together, so
multiplexing may occur if more than one is specified.
"""
job.run_test('hardware_PerfCounterVerification', tag='cycles_instructions',
perf_cmd='stat', events=('cycles', 'instructions'))
job.run_test('hardware_PerfCounterVerification', tag='LBR',
perf_cmd='record -b', events=('br_inst_retired.all_branches',))