1# Copyright (c) 2012 The Chromium OS Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5AUTHOR = "Chrome OS Team" 6DOC = """ 7Test to determine if the kernel's perf event architecture can handle 8a process changing its name and still attribute the samples to a binary. 9 10A test program which changes its name using prctl runs under perf and runs 11through a computational crc loop in order to ensure it gets some samples. 12Perf produces a data file from that run, and that data file is run through 13perf again to produce a report. The report is checked to see that the samples 14were not marked "unknown". 15""" 16NAME = "kernel_PerfEventRename" 17PURPOSE = "Checks that /dev/chromeos-low-mem reports low-memory conditions." 18CRITERIA = """ 19Fails if perf report doesn't contain the correct executable name 20""" 21ATTRIBUTES = "suite:bvt-perbuild" 22TIME = "FAST" 23TEST_CATEGORY = "Functional" 24TEST_CLASS = "kernel" 25TEST_TYPE = "client" 26 27job.run_test('kernel_PerfEventRename') 28