You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
718 B
25 lines
718 B
AUTHOR = "Autotest Team <autotest@test.kernel.org>"
|
|
TIME = "MEDIUM"
|
|
NAME = "Sample - Using profilers"
|
|
TEST_TYPE = "client"
|
|
TEST_CLASS = "Kernel"
|
|
TEST_CATEGORY = "Functional"
|
|
|
|
DOC = """
|
|
Runs our sleeptest (bogus test that only sleeps for a given amount of time),
|
|
while running the oprofile profilers, with and without special parameters
|
|
passed to the profiler.
|
|
"""
|
|
|
|
import logging
|
|
|
|
logging.info("Testing default event")
|
|
job.profilers.add('oprofile')
|
|
job.run_test('sleeptest', seconds=5, tag='default')
|
|
job.profilers.delete('oprofile')
|
|
|
|
logging.info("Testing ICACHE_MISSES")
|
|
job.profilers.add('oprofile', 'ICACHE_MISSES:100000')
|
|
job.run_test('sleeptest', seconds=5, tag='icache_misses')
|
|
job.profilers.delete('oprofile')
|