[LNT] r218056 - Add option to use Perf in nt test
Yi Kong
Yi.Kong at arm.com
Thu Sep 18 08:51:28 PDT 2014
Author: kongyi
Date: Thu Sep 18 10:51:28 2014
New Revision: 218056
URL: http://llvm.org/viewvc/llvm-project?rev=218056&view=rev
Log:
Add option to use Perf in nt test
Modified:
lnt/trunk/lnt/tests/nt.py
Modified: lnt/trunk/lnt/tests/nt.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/tests/nt.py?rev=218056&r1=218055&r2=218056&view=diff
==============================================================================
--- lnt/trunk/lnt/tests/nt.py (original)
+++ lnt/trunk/lnt/tests/nt.py Thu Sep 18 10:51:28 2014
@@ -398,6 +398,10 @@ class TestConfiguration(object):
make_variables['USER_MODE_EMULATION'] = '1'
make_variables['RUNUNDER'] = self.qemu_user_mode_command
+ # Set USE_PERF flag, if specified.
+ if self.use_perf:
+ make_variables['USE_PERF'] = '1'
+
return make_variables, public_vars
###
@@ -1241,6 +1245,10 @@ class NTTest(builtintest.BuiltinTest):
group.add_option("", "--build-threads", dest="build_threads",
help="Number of compilation threads",
type=int, default=0, metavar="N")
+ group.add_option("", "--use-perf", dest="use_perf",
+ help=("Use perf to obtain high accuracy timing"
+ "[%default]"),
+ type=str, default=None)
group.add_option("", "--remote", dest="remote",
help=("Execute remotely, see "
More information about the llvm-commits
mailing list