virt.virt_test_utils: run_autotest - 'tar' needs relative paths to strip the leading '/'
[autotest-zwu.git] / client / samples / control.oprofile
blobdb5730a663cca7f8e62886f24a1be1d652a69385
1 AUTHOR = "Autotest Team <autotest@test.kernel.org>"
2 TIME = "MEDIUM"
3 NAME = "Sample - Using profilers"
4 TEST_TYPE = "client"
5 TEST_CLASS = "Kernel"
6 TEST_CATEGORY = "Functional"
8 DOC = """
9 Runs our sleeptest (bogus test that only sleeps for a given amount of time),
10 while running the oprofile profilers, with and without special parameters
11 passed to the profiler.
12 """
14 import logging
16 logging.info("Testing default event")
17 job.profilers.add('oprofile')
18 job.run_test('sleeptest', seconds=5, tag='default')
19 job.profilers.delete('oprofile')
21 logging.info("Testing ICACHE_MISSES")
22 job.profilers.add('oprofile', 'ICACHE_MISSES:100000')
23 job.run_test('sleeptest', seconds=5, tag='icache_misses')
24 job.profilers.delete('oprofile')