Home | History | Annotate | Download | only in kernel_PerfEventRename
      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 
      5 AUTHOR = "Chrome OS Team"
      6 DOC = """
      7 Test to determine if the kernel's perf event architecture can handle
      8 a process changing its name and still attribute the samples to a binary.
      9 
     10 A test program which changes its name using prctl runs under perf and runs
     11 through a computational crc loop in order to ensure it gets some samples.
     12 Perf produces a data file from that run, and that data file is run through
     13 perf again to produce a report.  The report is checked to see that the samples
     14 were not marked "unknown".
     15 """
     16 NAME = "kernel_PerfEventRename"
     17 PURPOSE = "Checks that /dev/chromeos-low-mem reports low-memory conditions."
     18 CRITERIA = """
     19 Fails if perf report doesn't contain the correct executable name
     20 """
     21 ATTRIBUTES = "suite:bvt-perbuild"
     22 TIME = "FAST"
     23 TEST_CATEGORY = "Functional"
     24 TEST_CLASS = "kernel"
     25 TEST_TYPE = "client"
     26 
     27 job.run_test('kernel_PerfEventRename')
     28