[test-suite] r264046 - [litsupport] Make sure perf is run under "rununder"!
James Molloy via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 22 05:36:57 PDT 2016
Author: jamesm
Date: Tue Mar 22 07:36:57 2016
New Revision: 264046
URL: http://llvm.org/viewvc/llvm-project?rev=264046&view=rev
Log:
[litsupport] Make sure perf is run under "rununder"!
When profiling, we were only mutating the *original* runscript. But the run_under argument is essential, as it might be pinning the execution to a particular core in a non-homogeneous system (for example big.LITTLE).
Modified:
test-suite/trunk/litsupport/perf.py
Modified: test-suite/trunk/litsupport/perf.py
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/litsupport/perf.py?rev=264046&r1=264045&r2=264046&view=diff
==============================================================================
--- test-suite/trunk/litsupport/perf.py (original)
+++ test-suite/trunk/litsupport/perf.py Tue Mar 22 07:36:57 2016
@@ -1,6 +1,6 @@
import shellcommand
import testplan
-
+import run_under
def mutateCommandLine(context, commandline):
profilefile = context.tmpBase + ".perf_data"
@@ -14,6 +14,10 @@ def mutateCommandLine(context, commandli
def mutatePlan(context, plan):
- script = testplan.mutateScript(context, context.original_runscript,
- mutateCommandLine)
+ if context.config.run_under:
+ script = testplan.mutateScript(context, context.original_runscript,
+ run_under.mutateCommandLine)
+ else:
+ script = context.original_runscript
+ script = testplan.mutateScript(context, script, mutateCommandLine)
plan.profilescript += script
More information about the llvm-commits
mailing list