Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(234)

Unified Diff: client/samples/control.oprofile_power5

Issue 4823005: Merge remote branch 'cros/upstream' into tempbranch (Closed) Base URL: http://git.chromium.org/git/autotest.git@master
Patch Set: patch Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/samples/control.oprofile ('k') | client/samples/control.parallel » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/samples/control.oprofile_power5
diff --git a/client/samples/control.oprofile_power5 b/client/samples/control.oprofile_power5
new file mode 100644
index 0000000000000000000000000000000000000000..18eecc97ff379c5f528f8e09f6c0a39b7711a37d
--- /dev/null
+++ b/client/samples/control.oprofile_power5
@@ -0,0 +1,43 @@
+AUTHOR = "Autotest Team <autotest@test.kernel.org>"
+TIME = "MEDIUM"
+NAME = "Sample - Using oprofile - specific power5 options"
+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. This particular control shows special features of
+oprofile under power 5 cpu architecture.
+"""
+
+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 specified vmlinux")
+job.profilers.add('oprofile', '/boot/vmlinux-autotest')
+job.run_test('sleeptest', seconds=5, tag='vmlinux')
+job.profilers.delete('oprofile')
+
+logging.info("Testing one event")
+job.profilers.add('oprofile', None, ['PM_RUN_CYC_GRP153:100000'])
+job.run_test('sleeptest', seconds=5, tag='one')
+job.profilers.delete('oprofile')
+
+logging.info("Testing multiple events")
+job.profilers.add('oprofile', None,
+ ['PM_RUN_CYC_GRP153:100000', 'PM_INST_CMPL_GRP153:10000'])
+job.run_test('sleeptest', seconds=5, tag='multi')
+job.profilers.delete('oprofile')
+
+logging.info("Testing other args")
+job.profilers.add('oprofile', None,
+ ['PM_RUN_CYC_GRP153:150000', 'PM_INST_CMPL_GRP153:150000'],
+ '--callgraph=3')
+job.run_test('sleeptest', seconds=5, tag='other')
+job.profilers.delete('oprofile')
« no previous file with comments | « client/samples/control.oprofile ('k') | client/samples/control.parallel » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698